.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.mark {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 auto 20px;
}

#produits,
.prose h2[id] {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.shots {
  margin-top: 56px;
}

.band > .wrap > .shots:first-child {
  margin-top: 0;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.shot-grid + .shot-grid,
.shot-wide + .shot-grid,
.shot-grid + .shot-film,
.shot-grid + .shot-wide {
  margin-top: 48px;
}

.shot-wide {
  margin-top: 28px;
}

.shot-film {
  max-width: 420px;
  margin-inline: auto;
}

.shot-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
}

.shot-tablet .shot-frame {
  max-width: 520px;
  margin-inline: auto;
}

.shot-phone .shot-frame {
  max-width: 300px;
  margin-inline: auto;
}

.shot-grid figure {
  margin: 0;
}

.shot-grid > .shot-film {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* Le cadre d'écran est une ombre étalée : il ne déplace pas les images superposées. */
.shot-frame {
  --bezel: 6px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 var(--bezel) var(--foot),
    0 18px 40px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

html.dark .shot-frame {
  box-shadow:
    0 0 0 var(--bezel) var(--foot),
    0 0 0 calc(var(--bezel) + 1px) var(--bd-strong),
    0 18px 48px rgba(0, 0, 0, 0.6);
}

/* Les captures de téléphone montrent déjà l'appareil : pas de cadre en plus. */
.shot-phone .shot-frame,
.shot-film .shot-frame,
html.dark .shot-phone .shot-frame,
html.dark .shot-film .shot-frame {
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.shot-grid {
  background: radial-gradient(ellipse 55% 50% at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 75%);
}

.shot-grid:has(> .shot-phone:nth-child(2)) {
  grid-template-columns: 1fr 1fr;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Frise des étapes au-dessus de la galerie, reprise en pastille sur chaque visuel. */
.shot-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: var(--tx-strong);
  font-weight: 600;
}

.shot-rail li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-rail li:not(:last-child)::after {
  content: "";
  width: clamp(12px, 4vw, 40px);
  height: 2px;
  margin-left: 4px;
  background: var(--bd);
}

.shot-rail span,
.shot-badge span {
  display: grid;
  place-items: center;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

/* Étroit : la frise tient sur une ligne. */
@container (max-width: 420px) {
  .shot-rail {
    gap: 6px;
    font-size: 14px;
  }

  .shot-rail li {
    gap: 6px;
  }

  .shot-rail span {
    width: 24px;
  }
}

.shot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.shot-badge span {
  width: 24px;
  background: #fff;
  color: var(--accent);
}

/* Écran de caisse : la zone du flux reste éclairée, le reste s'assombrit. */
.shot-flow-zone .shot-frame::after {
  content: "";
  position: absolute;
  inset: 27.4% 0 0 27.1%;
  z-index: 1;
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  box-shadow: 0 0 0 100vmax rgba(20, 14, 10, 0.55);
  pointer-events: none;
}

.shot-zone-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.shot-swap .shot-frame img:last-of-type {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: shot-next 12s ease-in-out infinite;
}

.shot-swap:nth-child(2) .shot-frame img:last-of-type {
  animation-delay: -6s;
}

.shot-swap:hover .shot-frame img:last-of-type {
  animation-play-state: paused;
}

.shot-theme .shot-frame {
  border: 0;
  border-radius: 0;
}

.shot-theme.shot-swap .shot-frame img:last-of-type {
  animation: none;
  opacity: 0;
}

html.dark .shot-theme.shot-swap .shot-frame img:last-of-type {
  opacity: 1;
}

.shot-reel .shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: shot-reel 30s ease-in-out infinite;
}

.shot-reel .shot-frame img:first-child {
  position: relative;
  height: auto;
}

.shot-reel .shot-frame img:nth-child(2) { animation-delay: 5s; }
.shot-reel .shot-frame img:nth-child(3) { animation-delay: 10s; }
.shot-reel .shot-frame img:nth-child(4) { animation-delay: 15s; }
.shot-reel .shot-frame img:nth-child(5) { animation-delay: 20s; }
.shot-reel .shot-frame img:nth-child(6) { animation-delay: 25s; }

.shot-reel-late .shot-frame img:nth-child(1) { animation-delay: -2.5s; }
.shot-reel-late .shot-frame img:nth-child(2) { animation-delay: 2.5s; }
.shot-reel-late .shot-frame img:nth-child(3) { animation-delay: 7.5s; }
.shot-reel-late .shot-frame img:nth-child(4) { animation-delay: 12.5s; }
.shot-reel-late .shot-frame img:nth-child(5) { animation-delay: 17.5s; }
.shot-reel-late .shot-frame img:nth-child(6) { animation-delay: 22.5s; }

.shot-portrait .shot-frame {
  max-width: 240px;
  margin-inline: auto;
}

.shot-reel:hover .shot-frame img {
  animation-play-state: paused;
}

.shots figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--tx-mut);
}

@keyframes shot-next {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes shot-reel {
  0% { opacity: 0; }
  1.2% { opacity: 1; }
  16% { opacity: 1; }
  18% { opacity: 0; }
  100% { opacity: 0; }
}

/* Les grilles de visuels suivent la largeur de leur bloc, pas celle de l'écran (MAR-07). */
.shots {
  container-type: inline-size;
}

@container (min-width: 688px) {
  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid-board {
    grid-template-columns: 3.16fr 1fr;
    align-items: start;
  }

  .shot-portrait .shot-frame {
    max-width: none;
  }

  .shot-grid.shot-grid-single {
    grid-template-columns: 1fr;
  }
}

@container (min-width: 1008px) {
  .shot-grid-three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Écrans en hauteur : deux par ligne sur mobile, le second un peu plus bas. */
.shot-grid-three {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.shot-grid-three > .shot:nth-child(even) {
  margin-top: 32px;
}

/* Trois colonnes : la colonne du milieu descend, la rangée ondule au lieu de s'empiler. */
@container (min-width: 688px) {
  .shot-grid-three > .shot:nth-child(even) {
    margin-top: 0;
  }

  .shot-grid-three {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 28px;
    row-gap: 36px;
    align-items: start;
  }

  .shot-grid-three > .shot:nth-child(3n + 2) {
    margin-top: 56px;
  }
}

/* Assez large : une seule rangée, un écran sur deux décalé. */
@container (min-width: 1008px) {
  .shot-grid-three:has(> .shot:nth-child(6):last-child) {
    grid-template-columns: repeat(6, 1fr);
    column-gap: 18px;
  }

  .shot-grid-three:has(> .shot:nth-child(6):last-child) > .shot:nth-child(3n + 2) {
    margin-top: 0;
  }

  .shot-grid-three:has(> .shot:nth-child(6):last-child) > .shot:nth-child(even) {
    margin-top: 56px;
  }

  .shot-grid-three > .shot:hover .shot-frame {
    transform: translateY(-8px) scale(1.04);
  }
}

@container (min-width: 688px) {
  /* Deux écrans côte à côte : ils se tournent l'un vers l'autre et se redressent au survol. */
  .shot-grid:not(.shot-grid-board):not(:has(> .shot-phone)) > .shot:first-child:nth-last-child(2) .shot-frame {
    transform: perspective(1800px) rotateY(7deg);
  }

  .shot-grid:not(.shot-grid-board):not(:has(> .shot-phone)) > .shot:nth-child(2):last-child .shot-frame {
    transform: perspective(1800px) rotateY(-7deg);
  }

  .shot-grid > .shot:hover .shot-frame {
    transform: none;
  }

  /* Trois écrans : le premier en grand, les deux autres empilés à côté. */
  .shot-grid:not(.shot-grid-three):has(> .shot:first-child:nth-last-child(3)) {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .shot-grid:not(.shot-grid-three) > .shot:first-child:nth-last-child(3) {
    grid-row: span 2;
  }

  /* Nombre impair à partir de cinq : le premier prend toute la largeur, les autres vont par deux. */
  .shot-grid:not(.shot-grid-three):not(:has(> .shot-phone)) > .shot:first-child:nth-last-child(2n + 5) {
    grid-column: 1 / -1;
  }

  /* Téléphones : une rangée qui ondule. */
  .shot-grid:has(> .shot-phone:nth-child(2)) {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 28px;
  }

  .shot-grid > .shot-phone:nth-child(even) {
    margin-top: 48px;
  }
}

@supports (animation-timeline: view()) {
  .shots figure.shot {
    animation: shot-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}

@keyframes shot-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-swap .shot-frame img:last-of-type,
  .shot-reel .shot-frame img:not(:first-child) {
    display: none;
  }

  .shot-reel .shot-frame img:first-child {
    animation: none;
    opacity: 1;
    position: relative;
  }

  .shots figure.shot {
    animation: none;
  }

  .shot-frame {
    transition: none;
  }

  .nav-links,
  .nav-shade {
    transition: none;
  }
}

/* Scène : plusieurs écrans posés ensemble. Les positions sont en pourcentage, la scène garde ses proportions à toutes les largeurs (MAR-07). */
.scene {
  position: relative;
  width: min(100%, 1040px);
  aspect-ratio: 16 / 10;
  margin: 8px auto 48px;
  container-type: inline-size;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 4% 8% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent);
  filter: blur(24px);
}

.scene-item {
  position: absolute;
  margin: 0;
  padding: 0.7cqi;
  background: var(--foot);
  border-radius: 1.6cqi;
  box-shadow:
    0 2cqi 4cqi rgba(0, 0, 0, 0.22),
    0 0.4cqi 1cqi rgba(0, 0, 0, 0.12);
  animation: scene-in 0.8s ease-out both;
}

.scene-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1cqi;
}

.scene-item .on-dark,
html.dark .scene-item .on-light {
  display: none;
}

html.dark .scene-item .on-dark {
  display: block;
}

html.dark .scene-item {
  box-shadow:
    0 0 0 1px var(--bd-strong),
    0 2cqi 5cqi rgba(0, 0, 0, 0.55);
}

.scene-kitchen {
  top: 3%;
  left: 2%;
  width: 46%;
  z-index: 1;
  animation-delay: 0.1s;
}

.scene-register {
  top: 24%;
  left: 19%;
  width: 60%;
  z-index: 2;
}

.scene-kiosk {
  top: 0;
  right: 3%;
  width: 19%;
  z-index: 3;
  padding: 0.9cqi;
  border-radius: 2.2cqi;
  animation-delay: 0.2s;
}

.scene-phone {
  bottom: 0;
  left: 6%;
  width: 13%;
  z-index: 4;
  padding: 0.8cqi;
  border-radius: 2.6cqi;
  animation-delay: 0.3s;
}

.scene-phone img {
  border-radius: 1.9cqi;
}

/* Visuel déjà composé (ombres et cadres dans l'image) : pas de cadre en plus. */
.shot-bare .shot-frame,
html.dark .shot-bare .shot-frame {
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

/* Texte et visuel côte à côte : le chapô décrit déjà le visuel. */
.shots > .feature figcaption {
  display: none;
}

/* Parcours en étapes : un numéro, la légende, puis l'écran recadré. Un tracé relie les numéros. */
.shot-steps {
  display: grid;
  gap: 40px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.shot-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.shot-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 52px;
  bottom: -36px;
  left: 21px;
  border-left: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent);
}

.shot-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}

.shot-step .shot {
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  margin: 0;
}

.shot-step .shot-frame {
  border-radius: var(--radius-lg);
}

.shots .shot-step figcaption {
  margin: 8px 0 0;
  color: var(--tx-strong);
  font-size: 18px;
  font-weight: 600;
}

@container (min-width: 688px) {
  .shot-steps {
    gap: 56px;
  }

  .shot-step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
  }

  .shot-step:not(:last-child)::before {
    top: 64px;
    bottom: -52px;
    left: 27px;
  }

  .shot-step-number {
    width: 56px;
    font-size: 22px;
  }

  .shots .shot-step figcaption {
    margin-top: 14px;
    font-size: 20px;
  }
}

/* Paiement réuni : chaque appareil paie par terminal ou en ligne, et UNITICE centralise les deux. */
.pay-scene {
  position: relative;
  width: min(100%, 1040px);
  aspect-ratio: 16 / 10;
  margin: 8px auto 48px;
  container-type: inline-size;
}

.pay-scene::before {
  content: "";
  position: absolute;
  inset: 45% 15% -5%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent);
  filter: blur(24px);
}

.pay-item {
  position: absolute;
  z-index: 1;
  margin: 0;
}

.pay-device {
  filter: drop-shadow(0 2cqi 3cqi rgba(0, 0, 0, 0.28));
  animation: scene-in 0.8s ease-out both;
}

html.dark .pay-device {
  filter:
    drop-shadow(0 0 1px var(--bd-strong))
    drop-shadow(0 2cqi 3cqi rgba(0, 0, 0, 0.5));
}

.pay-device img {
  display: block;
  width: 100%;
  height: auto;
}

.pay-register {
  top: 8%;
  left: 1%;
  width: 36%;
}

/* La vidéo coupe le haut de la borne : un fondu remplace la coupe nette. */
.pay-kiosk {
  top: 0;
  left: 41%;
  width: 13%;
  animation-delay: 0.1s;
  mask-image: linear-gradient(to bottom, transparent, #000 14%);
}

.pay-tablet {
  top: 0;
  left: 58%;
  width: 17%;
  animation-delay: 0.2s;
}

.pay-phone {
  top: 0;
  left: 80%;
  width: 13%;
  animation-delay: 0.3s;
}

.pay-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pay-links path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.45;
  stroke-linecap: round;
  stroke-dasharray: 1.2 1.6;
  animation: pay-flow 1.6s linear infinite;
}

/* Le paiement en ligne se distingue par un tracé neutre. */
.pay-links .pay-link-online {
  stroke: var(--tx-mut);
}

.pay-links .pay-link-hub {
  stroke-width: 0.7;
}

.pay-tag,
.pay-mode {
  position: absolute;
  z-index: 2;
  padding: 0.5cqi 1.2cqi;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  color: var(--tx);
  font-size: clamp(10px, 1.4cqi, 15px);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.pay-tag-register { left: 19%; top: 42%; }
.pay-tag-kiosk { left: 47.5%; top: 37%; }
.pay-tag-tablet { left: 66.5%; top: 40%; }
.pay-tag-phone { left: 86.5%; top: 44%; }

.pay-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqi;
  padding: 0.9cqi 1.8cqi;
  font-size: clamp(11px, 1.6cqi, 17px);
  font-weight: 700;
  color: var(--tx-strong);
}

.pay-mode .icon {
  color: var(--accent);
}

.pay-mode-online .icon {
  color: var(--tx-mut);
}

.pay-mode-card { left: 32.5%; top: 66%; }
.pay-mode-online { left: 72.5%; top: 66%; }

.pay-hub {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 82%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqi;
  transform: translateX(-50%);
}

.pay-hub-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(44px, 7.5cqi, 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 2px var(--accent),
    0 1cqi 3cqi color-mix(in srgb, var(--accent) 45%, transparent);
}

.pay-hub-icon img {
  width: 78%;
  height: auto;
}

.pay-hub-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pay-pulse 2.4s ease-out infinite;
}

.pay-hub-label {
  color: var(--tx-strong);
  font-size: clamp(12px, 1.7cqi, 17px);
  font-weight: 700;
  white-space: nowrap;
}

@keyframes pay-flow {
  to { stroke-dashoffset: -2.8; }
}

@keyframes pay-pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pay-links path,
  .pay-hub-icon::after,
  .pay-device {
    animation: none;
  }
}

/* Processus illustré : chaque porte d'entrée rejoint le même point, puis les mêmes étapes. */
.proc {
  position: relative;
  width: min(100%, 1040px);
  margin: 8px auto 0;
  container-type: inline-size;
}

.proc-entries,
.proc-steps,
.proc-tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.proc-entries {
  display: grid;
  gap: 16px;
}

.proc-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
  text-align: center;
  animation: scene-in 0.8s ease-out both;
}

.proc-entry:nth-child(2) { animation-delay: 0.1s; }
.proc-entry:nth-child(3) { animation-delay: 0.2s; }
.proc-entry:nth-child(4) { animation-delay: 0.3s; }

.proc-entry h3 {
  margin: 4px 0 0;
  font-size: 19px;
}

.proc-entry p,
.proc-step-copy p {
  margin: 0;
  color: var(--tx-mut);
  font-size: 14px;
  line-height: 1.5;
}

.proc-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.proc-tags li {
  padding: 3px 10px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--tx);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Sous 720 px, les portes d'entrée s'empilent : un trait vertical remplace les courbes. */
.proc-links {
  display: none;
  width: 100%;
  height: clamp(56px, 9cqi, 96px);
  overflow: visible;
}

.proc-links path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  vector-effect: non-scaling-stroke;
  animation: proc-flow 1.6s linear infinite;
}

.proc-hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 48px;
}

.proc-hub::before,
.proc-hub::after {
  content: "";
  position: absolute;
  left: 50%;
  border-left: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent);
}

.proc-hub::before {
  top: 8px;
  height: 32px;
}

.proc-hub::after {
  bottom: -40px;
  height: 32px;
}

.proc-hub-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 2px var(--accent),
    0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent);
}

.proc-hub-icon img {
  width: 78%;
  height: auto;
}

.proc-hub-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pay-pulse 2.4s ease-out infinite;
}

.proc-hub-label {
  color: var(--tx-strong);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.proc-steps {
  display: grid;
  gap: 28px;
  margin-top: 64px;
}

.proc-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.proc-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 52px;
  bottom: -24px;
  left: 21px;
  border-left: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent);
}

.proc-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}

.proc-step-copy h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: 18px;
}

.proc-step-copy h3 .icon {
  flex: none;
  color: var(--accent);
}

.proc-step-copy .proc-tags {
  justify-content: flex-start;
  margin-top: 10px;
}

/* L'étape mise en avant (le matériel) se détache sur un fond teinté. */
.proc-step-key .proc-step-copy {
  margin-top: -6px;
  padding: 14px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}

.proc-step-key .proc-step-copy h3 {
  margin-top: 0;
}

.proc-step-key .proc-tags li {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--bg);
}

html.dark .proc-entry {
  box-shadow: none;
}

@container (min-width: 720px) {
  .proc-entries {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 24px;
  }

  .proc-links {
    display: block;
  }

  .proc-hub {
    padding-top: 0;
  }

  .proc-hub::before {
    display: none;
  }

  .proc-hub-icon {
    width: 80px;
  }
}

/* Large : quatre étapes par ligne, reliées par un trait horizontal. */
@container (min-width: 900px) {
  .proc-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .proc-step {
    grid-template-columns: none;
    align-content: start;
    gap: 14px;
  }

  .proc-step:not(:last-child)::before {
    top: 21px;
    bottom: auto;
    left: 56px;
    right: -12px;
    border-left: 0;
    border-top: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  }

  .proc-step:nth-child(4n)::before {
    display: none;
  }

  .proc-step-copy h3 {
    margin-top: 0;
  }

  .proc-step-key .proc-step-copy {
    margin-top: 0;
  }
}

@keyframes proc-flow {
  to { stroke-dashoffset: -12; }
}

@media (prefers-reduced-motion: reduce) {
  .proc-links path,
  .proc-hub-icon::after,
  .proc-entry {
    animation: none;
  }
}

@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(3cqi);
  }
}

@supports (animation-timeline: view()) {
  .scene-item {
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
    animation-duration: auto;
  }

  .scene-kitchen { animation-range: entry 20% cover 35%; }
  .scene-kiosk { animation-range: entry 30% cover 40%; }
  .scene-phone { animation-range: entry 40% cover 45%; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-item {
    animation: none;
  }
}

.band {
  padding: clamp(48px, 7vw, 80px) 0;
}

.band-soft {
  background: var(--bg-soft);
}

body:has(.error) {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body:has(.error) > main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.error {
  flex: 1;
  display: flex;
  align-items: center;
}

.error-code {
  display: grid;
  place-items: center;
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--tx-mut);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn,
.icon-btn,
.nav-burger {
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 0;
  color: #ffffff;
  background: var(--accent);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  color: var(--tx);
  background: var(--bg);
  border: 1px solid var(--bd-strong);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--bg-soft);
}

.pills,
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li,
.sizes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--bd);
  border-radius: 9999px;
  background: var(--bg);
}

.sizes {
  align-items: flex-end;
}

.sizes li {
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.device {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bd-strong);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.device::before {
  content: "";
  width: 60%;
  height: 60%;
  border-radius: 4px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

.device-6 { width: 44px; height: 76px; }
.device-10 { width: 80px; height: 112px; }
.device-15 { width: 120px; height: 84px; }
.device-27 { width: 104px; height: 160px; }
.device-48 { width: 220px; height: 130px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.grid-channels {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.grid-features {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-pairs {
  grid-template-columns: 1fr;
}

.band:has(> .wrap.grid-pairs) {
  container-type: inline-size;
  container-name: points;
}

@container points (min-width: 720px) {
  .grid-pairs {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-pairs .card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 14px 16px;
}

.grid-pairs .card .icon-badge {
  grid-row: 1 / -1;
  width: 40px;
  height: 40px;
}

.grid-pairs .card h3,
.grid-pairs .card p {
  grid-column: 2;
}

.grid-pairs .card h3 {
  font-size: 16px;
  font-weight: 600;
}

.grid-features .card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.pair {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  max-width: 960px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.dg-frame {
  max-width: 720px;
  margin-inline: auto;
}

.prose .link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Liens vers les pages solutions : pictogramme, libellé et flèche, sur fond d'accent léger. */
.prose .link-row .link-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--tx-strong);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.prose .link-row .link-card > .icon {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.prose .link-row .link-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  text-decoration: none;
}

.prose .link-row .link-card:hover > .icon {
  transform: translateX(3px);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

/* Une rangée de liens seule suit le bloc d'avant, sans bande vide au-dessus. */
.band:has(> .prose > .link-row:only-child) {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .prose .link-row .link-card,
  .prose .link-row .link-card > .icon {
    transition: none;
  }
}

.band-tight {
  padding-block: 32px 8px;
}

.channels-note {
  margin: 24px 0 0;
  color: var(--tx-mut);
  text-align: center;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-copy span,
.card p {
  margin: 0;
  color: var(--tx-mut);
  font-size: 14px;
  line-height: 1.5;
}

.card strong {
  font-size: 17px;
}

.card h3 {
  margin: 0;
  font-size: 21px;
}

.more {
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.meta {
  color: var(--tx-mut);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.reading {
  max-width: 760px;
}

.reading .lead {
  margin-inline: 0;
  text-align: start;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.prose > h2:only-child {
  margin-top: 0;
  margin-bottom: 0;
}

.band:has(> .wrap.prose > h2:only-child):has(+ .band > .wrap.prose > p:only-child) {
  padding-bottom: 12px;
}

.band:has(> .wrap.prose > h2:only-child) + .band:has(> .wrap.prose > p:only-child) {
  padding-top: 0;
  padding-bottom: 0;
}

/* Un titre seul reste aussi lié à un texte de plusieurs paragraphes ou intertitres. */
.band:has(> .wrap.prose > h2:only-child):has(+ .band > .wrap.prose > :is(p, h3):first-child:not(:only-child)) {
  padding-bottom: 12px;
}

.band:has(> .wrap.prose > h2:only-child) + .band:has(> .wrap.prose > :is(p, h3):first-child:not(:only-child)) {
  padding-top: 0;
}

/* Un titre seul colle à la liste ou à la grille de cartes qui le suit. */
.band:has(> .wrap.prose > h2:only-child):has(+ .band > .wrap.prose > ul:only-child),
.band:has(> .wrap.prose > h2:only-child):has(+ .band > .wrap.cards) {
  padding-bottom: 0;
}

.band:has(> .wrap.prose > h2:only-child) + .band:has(> .wrap.prose > ul:only-child),
.band:has(> .wrap.prose > h2:only-child) + .band:has(> .wrap.cards) {
  padding-top: 20px;
}

/* Un titre et son introduction collent aussi à la grille de cartes qui les suit. */
.band:has(> .wrap.prose > h2:first-child + p):has(+ .band > .wrap.cards) {
  padding-bottom: 0;
}

.band:has(> .wrap.prose > h2:first-child + p) + .band:has(> .wrap.cards) {
  padding-top: 24px;
}

/* Liste sous un titre : des coches plutôt que des puces, sur deux colonnes quand la place le permet. */
.band:has(> .wrap.prose > h2:only-child) + .band > .wrap.prose > ul:only-child {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band:has(> .wrap.prose > h2:only-child) + .band > .wrap.prose > ul:only-child > li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}

.band:has(> .wrap.prose > h2:only-child) + .band > .wrap.prose > ul:only-child > li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--accent);
  -webkit-mask: url("../icons/check.7bcb173d5674.svg") center / contain no-repeat;
  mask: url("../icons/check.7bcb173d5674.svg") center / contain no-repeat;
}

.card .points {
  margin: 16px 0 0;
}

.card .points li {
  line-height: 1.5;
}

.band:has(> .wrap.prose > p:only-child) + .band:has(> .wrap.grid-pairs) {
  padding-top: 20px;
  padding-bottom: 8px;
}

.band:has(> .wrap.grid-pairs) + .band:has(.shots) {
  padding-top: 64px;
}

/* Deux paragraphes d'un même texte gardent une respiration. */
.prose p + p {
  margin-top: 12px;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.75;
}

.prose ul {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

/* Un intertitre se détache du texte qui précède et reste lié à celui qui suit. */
.prose h3 {
  margin: 32px 0 8px;
}

.prose > h3:first-child {
  margin-top: 0;
}

.prose p + ul {
  margin-top: 10px;
}

.prose ul + p {
  margin-top: 12px;
}

.prose li + li {
  margin-top: 6px;
}

.terms {
  display: grid;
  gap: 48px;
  max-width: 1040px;
}

.terms-nav {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  padding: 6px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.terms-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--tx-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.terms-nav a:hover {
  background: var(--bg-mut);
}

.terms-nav span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-mut);
  color: var(--tx-mut);
  font-size: 12px;
}

.terms-theme {
  display: grid;
  gap: 20px;
  scroll-margin-top: calc(var(--nav-h) + 72px);
}

.terms-head {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.terms-head h2 {
  margin: 0;
}

.terms-head p {
  margin: 0;
  color: var(--tx-mut);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.terms-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--bg);
  scroll-margin-top: calc(var(--nav-h) + 72px);
}

.terms-card:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.terms-card dt {
  font-size: 17px;
  font-weight: 700;
}

.terms-card dt a {
  color: var(--tx-strong);
  text-decoration: none;
}

.terms-card dt a:hover {
  color: var(--accent);
}

.terms-card dd {
  margin: 0;
  line-height: 1.55;
  color: var(--tx);
}

@media (max-width: 760px) {
  .terms-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .terms-nav {
    border-radius: var(--radius-lg);
  }
}

.quotes {
  margin-top: 28px;
}

blockquote.card {
  margin: 0;
}

blockquote.card > p {
  color: var(--tx);
  font-size: 16px;
  line-height: 1.6;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.who strong {
  display: block;
  font-size: 14px;
}

.who span span {
  color: var(--tx-mut);
  font-size: 13px;
}

.avatar {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-mut);
  font-weight: 600;
}

.gap-note {
  margin: 12px 0 0;
  color: var(--tx-mut);
  font-size: 12px;
}

.card-base {
  background: var(--bg-soft);
  box-shadow: none;
}

.card-option {
  background: var(--bg);
  border: 1px solid var(--bd);
}

.pill-label {
  align-self: flex-start;
  margin: 0;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-label-ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.pill-label-option {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.icon {
  display: block;
  flex-shrink: 0;
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.cell-yes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
}

.nav-drop > summary .icon,
.nav-link > .icon,
.nav-lang .icon {
  width: 16px;
  height: 16px;
  margin-inline-end: 10px;
}

.nav-lang .icon {
  margin-inline-end: 0;
}

.nav-drop > summary .icon,
.nav-link > .icon {
  color: var(--accent);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
  row-gap: 0;
  align-items: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 700;
}

.steps li h3,
.steps li p {
  grid-column: 2;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
  padding: 0 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 1 176px;
  min-width: 0;
}

.nav-logo img,
.foot-logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 100%;
}

.nav-logo img {
  width: 100%;
  height: auto;
}

.theme-mobile,
.nav-aside {
  margin-inline-start: auto;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--bd-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--tx);
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
}

.nav-shade {
  position: fixed;
  z-index: 3;
  inset: var(--nav-h) 0 0 0;
  background: color-mix(in srgb, var(--tx) 32%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.nav-links {
  display: flex;
  position: fixed;
  z-index: 4;
  top: var(--nav-h);
  right: 0;
  flex-direction: column;
  gap: 4px;
  width: min(20rem, calc(100vw - 3rem));
  height: calc(100dvh - var(--nav-h));
  margin: 0;
  padding: 16px 12px 24px;
  overflow: auto;
  background: var(--bg);
  border-left: 1px solid var(--bd);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0.22s;
}

.nav-links a,
.nav-drop > summary,
.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--tx);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-drop > summary:hover,
.nav-link:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

.nav-toggle:checked ~ .nav-shade {
  opacity: 1;
  pointer-events: auto;
}

.nav-toggle:checked ~ .nav-links {
  transform: none;
  visibility: visible;
}

@media (max-width: 1199px) {
  html:has(.nav-toggle:checked) {
    overflow: hidden;
  }
}

.nav-drop {
  position: relative;
  padding: 0;
  border: 0;
}

.nav-drop > summary {
  list-style: none;
  cursor: pointer;
}

.nav-drop > summary::-webkit-details-marker {
  display: none;
}

.nav-drop > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-start: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

/* Le chevron pointe vers le haut quand le sous-menu est ouvert. */
.nav-drop[open] > summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.nav-panel {
  display: flex;
  flex-direction: column;
}

/* Dans le tiroir, le sous-menu ouvert se signale et ses liens apparaissent en glissant. */
@media (max-width: 1199px) {
  .nav-drop[open] > summary {
    color: var(--accent);
  }

  .nav-drop[open] > .nav-panel {
    margin: 2px 0 8px 12px;
    padding-left: 8px;
    border-left: 2px solid var(--bd);
    animation: nav-panel-in 0.2s ease both;
  }
}

@keyframes nav-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drop > summary::after {
    transition: none;
  }

  .nav-drop[open] > .nav-panel {
    animation: none;
  }
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

a.nav-lang {
  align-self: flex-start;
  gap: 6px;
  border: 1px solid var(--bd);
  background: var(--bg);
  font-weight: 600;
  white-space: nowrap;
}

a.nav-lang:hover {
  border-color: var(--accent);
  background: var(--bg);
  color: var(--accent);
}

a.nav-lang:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-nav {
  padding: 10px 18px;
  box-shadow: none;
}

/* Le bouton de contact est un lien : il garde l'apparence du bouton, pas celle des liens du menu. */
.nav-links a.btn {
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 600;
}

.nav-links a.btn:hover {
  background: var(--accent-hover);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--tx);
  padding: 0;
}

.icon-sun,
.theme-desktop {
  display: none;
}

html.dark .icon-moon {
  display: none;
}

html.dark .icon-sun {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto;
  font-size: 14px;
  color: var(--tx-mut);
}

.foot {
  background: var(--foot);
  color: var(--foot-tx);
  border-top: 1px solid var(--foot-bd);
  padding: 48px 0;
}

.foot a {
  color: var(--foot-tx);
}

.foot a.btn {
  color: #ffffff;
}

/* Pied de page : la marque et le contact, puis les colonnes de liens, la zone d'intervention et la barre du bas. */
.foot-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--foot-bd);
}

.foot-brand p {
  max-width: 34ch;
  margin: 12px 0 0;
  color: var(--tx-faint);
  line-height: 1.5;
}

.foot-action {
  justify-self: start;
}

.foot-cols {
  display: grid;
  gap: 0 32px;
  padding: 8px 0;
}

.foot-col {
  border-bottom: 1px solid var(--foot-bd);
}

.foot-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

/* Sur mobile, chaque colonne se déplie : quatre titres plutôt qu'une longue liste. */
.foot-col summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
}

.foot-col summary::-webkit-details-marker,
.foot-zone summary::-webkit-details-marker {
  display: none;
}

.foot-col summary::after,
.foot-zone summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.foot-col[open] summary::after,
.foot-zone[open] summary::after {
  transform: rotate(45deg);
}

.foot-links {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--foot-tx);
}

.foot-links a:hover {
  color: var(--accent);
}

/* Pictogramme IA : réservé aux pages dont la case « Fonctions d'IA » est cochée. */
.ai-mark,
.card-copy .ai-mark {
  display: inline-flex;
  margin-left: 6px;
  color: var(--accent);
  vertical-align: -2px;
}

h2 .ai-mark {
  margin-left: 10px;
  vertical-align: 0;
}

/* Assez large pour tenir sur une rangée : les colonnes restent ouvertes et le titre n'est plus un bouton.
   En dessous, elles se replient : jamais de passage par trois colonnes (MAR-07 : container query). */
.foot > .wrap {
  container-type: inline-size;
}

@container (min-width: 900px) {
  .foot-cols {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding: 32px 0 8px;
  }

  .foot-col {
    border-bottom: 0;
  }

  .foot-col::details-content {
    content-visibility: visible;
    display: block;
  }

  .foot-col summary {
    min-height: 0;
    margin-bottom: 8px;
    cursor: default;
    pointer-events: none;
  }

  .foot-col summary::after {
    display: none;
  }
}

.foot-zone {
  margin-top: 16px;
}

.foot-zone summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--foot-bd);
  border-radius: 999px;
  color: var(--foot-tx);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.foot-zone summary .icon {
  color: var(--accent);
}

.foot-zone summary:hover {
  border-color: var(--accent);
}

.foot-zone-body {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}

.foot-map {
  width: 100%;
  height: auto;
}

.foot-map-land {
  fill: color-mix(in srgb, var(--accent) 22%, transparent);
  stroke: var(--accent);
  stroke-width: 0.6;
  stroke-linejoin: round;
}

.foot-map-city {
  fill: var(--accent);
  stroke: var(--foot);
  stroke-width: 0.5;
}

.foot-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-cities li {
  padding: 4px 12px;
  border: 1px solid var(--foot-bd);
  border-radius: 999px;
  color: var(--tx-faint);
  font-size: 14px;
}

@container (max-width: 479px) {
  .foot-zone-body {
    grid-template-columns: 1fr;
  }

  .foot-map {
    max-width: 180px;
  }
}

.foot-lang {
  display: flex;
  gap: 12px;
}

.foot-lang a {
  color: var(--tx-faint);
}

.foot-lang a[aria-current] {
  color: var(--foot-tx);
  font-weight: 600;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--foot-bd);
  color: var(--tx-faint);
  font-size: 13px;
}

.foot-bar p {
  margin: 0;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.foot-legal a {
  color: var(--tx-faint);
}

.coord-hours {
  margin: 4px 0 0;
  color: var(--tx-mut);
  font-size: 14px;
  line-height: 1.5;
}

.phone-note {
  color: var(--tx-mut);
  font-size: 14px;
}

.foot .contact-line {
  margin: 0 0 4px;
}

.foot .coord-hours {
  color: var(--tx-faint);
}

.reading-page .wrap {
  max-width: 760px;
}

.reading-page .band-soft .wrap {
  text-align: start;
}

.reading-page .lead {
  margin-inline: 0;
}

.reading-page .actions {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px;
  align-items: start;
}

.form-card,
.side-card {
  padding: 32px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.side-card {
  background: var(--bg-soft);
  border: 0;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-side .side-card:last-of-type {
  background: var(--bg);
  border: 1px solid var(--bd);
}

.contact-mark {
  display: flex;
  justify-content: center;
  margin: 0;
}

.contact-mark img {
  width: 160px;
  height: auto;
}

.contact-mark .on-dark,
html.dark .contact-mark .on-light {
  display: none;
}

html.dark .contact-mark .on-dark {
  display: block;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
}

.contact-line .icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  align-items: end;
}

.form-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  margin-top: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.form-grid .field {
  margin-top: 0;
}

.field span {
  font-size: 13px;
  font-weight: 600;
}

.input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--bd-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--tx);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
}

textarea.input {
  height: auto;
  min-height: 140px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

select.input {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23757575' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

html.dark select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a8a8a8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}

.input:focus {
  outline: 2px solid transparent;
  border-color: var(--accent);
  background-color: var(--bg);
  box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.25);
}

.field-error,
.form-error {
  color: var(--err);
  font-size: 14px;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--err-bg);
}

.form-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--tx-strong);
}

.form-note {
  margin: 12px 0 0;
  color: var(--tx-mut);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.side-card .form-note {
  text-align: start;
}

.btn-wide {
  width: 100%;
  margin-top: 24px;
}

.form-done {
  text-align: center;
  padding: 32px 0;
}

.ok-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
}

.form-card {
  position: relative;
}

/* Logo posé à cheval sur la bordure haute du cadre, comme une légende. */
.form-badge {
  position: absolute;
  top: 0;
  left: 24px;
  width: auto;
  height: 22px;
  padding: 0 8px;
  background: var(--bg);
  transform: translateY(-50%);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Le contenu forme son propre empilement : ses z-index (scène, paiement) restent sous le menu collant. */
main {
  isolation: isolate;
}

main details {
  padding: 12px 0;
  border-bottom: 1px solid var(--bd);
}

main summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  color: var(--tx-strong);
}

main summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

main details[open] summary::after {
  transform: rotate(225deg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* Un tableau large défile dans son cadre, jamais la page (MAR-04). */
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.table-scroll th,
.table-scroll td {
  min-width: 7rem;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--bd);
  text-align: left;
}

body {
  overflow-x: clip;
}

@media (min-width: 1200px) {
  /* Entre 1 200 et 1 480 px, le menu se resserre par des valeurs fluides (MAR-07). */
  .nav {
    gap: clamp(8px, 1vw, 16px);
    container: header / inline-size;
  }

  .btn-nav {
    white-space: nowrap;
  }

  .nav-logo {
    flex: 0 0 auto;
    width: clamp(120px, 10vw, 176px);
  }

  .nav-links a,
  .nav-drop > summary,
  .nav-link {
    padding: 0 clamp(5px, 0.6vw, 12px);
    font-size: clamp(14px, 1.05vw, 15px);
  }

  .nav-drop > summary .icon,
  .nav-link > .icon {
    margin-inline-end: clamp(4px, 0.45vw, 10px);
  }

  a.nav-lang {
    align-self: center;
  }

  .nav-drop > summary::after {
    margin-inline-start: clamp(4px, 0.45vw, 8px);
  }

  .btn-nav,
  .nav-links a.btn {
    padding-inline: clamp(10px, 1vw, 18px);
  }

  .nav-burger,
  .nav-toggle,
  .nav-shade,
  .theme-mobile {
    display: none;
  }

  /* Les icônes du menu ne s'affichent que si l'en-tête a la place. */
  @container header (max-width: 1399px) {
    .nav-drop > summary .icon,
    .nav-link > .icon {
      display: none;
    }
  }

  .theme-desktop {
    display: inline-flex;
  }

  .nav-links,
  .nav-toggle:checked ~ .nav-links {
    position: static;
    z-index: auto;
    top: auto;
    right: auto;
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    flex: 1;
    gap: 4px;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav-actions {
    flex-direction: row;
    align-items: center;
    margin-top: 0;
    margin-left: auto;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 3;
    min-width: 260px;
    padding: 6px;
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
  }

  .nav-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 8px;
  }
}

.feature-slot {
  container-type: inline-size;
}

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
}

.feature-copy {
  text-align: start;
}

.feature-copy h1,
.feature-copy h2,
.feature-copy .lead {
  margin-inline: 0;
}

.feature-copy .lead,
.feature-copy p,
.feature-text {
  max-width: 38rem;
  color: var(--tx);
}

.feature-copy .actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.feature-text {
  margin: 0 0 24px;
}

/* Illustration dessinée en HTML, dans le style des captures de l'application d'analyse. */
.ill {
  --ill-accent-soft: #fde9dd;
  --ill-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
}

html.dark .ill {
  --ill-accent-soft: #3b2216;
  --ill-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
}

.ill-card {
  overflow-x: auto;
  padding: 18px 20px 8px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--ill-shadow);
}

.ill-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 12px;
}

.ill-head b {
  font-size: 17px;
  color: var(--tx-strong);
}

.ill-head small {
  font-size: 12.5px;
  color: var(--tx-mut);
}

.ill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ill-table th {
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--bd);
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-mut);
  text-align: end;
}

.ill-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--bd);
  color: var(--tx-mut);
  text-align: end;
  white-space: nowrap;
}

.ill-table th:first-child,
.ill-table td:first-child {
  padding-left: 0;
  text-align: start;
  white-space: normal;
}

.ill-table td:first-child,
.ill-table td b {
  font-weight: 600;
  color: var(--tx-strong);
}

.ill-table tr:last-child td {
  border-bottom: 0;
}

.ill-up,
.ill-down,
.ill-same {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.ill-up {
  background: var(--ok-bg);
  color: var(--ok);
}

.ill-down {
  background: var(--ill-accent-soft);
  color: var(--accent);
}

.ill-same {
  background: var(--bg-soft);
  color: var(--tx-mut);
}

/* Étroit : le tableau tient dans sa carte. */
@container (max-width: 420px) {
  .ill-card {
    padding: 14px 14px 6px;
  }

  .ill-table {
    font-size: 13px;
  }

  .ill-table th,
  .ill-table td {
    padding-inline: 4px;
  }

  .ill-up,
  .ill-down,
  .ill-same {
    padding-inline: 6px;
    font-size: 12px;
  }
}

.ill-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-self: end;
  max-width: 30rem;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--ill-shadow);
  font-size: 14.5px;
  color: var(--tx);
}

.ill-note-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ill-accent-soft);
  color: var(--accent);
}

.points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.points .icon {
  margin-top: 2px;
  color: var(--ok);
}

/* Catalogue matériel : le filtre par catégorie tient en HTML et CSS (MAR-08).
   Sans :has(), toutes les fiches restent visibles. Une règle par catégorie de DEVICE_CATEGORIES. */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
}

.catalog-filter label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--bd);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--tx);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-filter label:hover {
  background: var(--bg-soft);
}

.catalog-filter input:checked + label {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.catalog-filter input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.catalog:has(input[value="tpe"]:checked) .product:not([data-category="tpe"]),
.catalog:has(input[value="caisse"]:checked) .product:not([data-category="caisse"]),
.catalog:has(input[value="borne"]:checked) .product:not([data-category="borne"]),
.catalog:has(input[value="monnayeur"]:checked) .product:not([data-category="monnayeur"]),
.catalog:has(input[value="ecrans"]:checked) .product:not([data-category="ecrans"]) {
  display: none;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.product .eyebrow {
  margin: 0;
}

/* Fiche sans titre de bloc : H2 au rendu d'un H3 de carte. */
.product h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.product .points {
  margin: 4px 0 0;
  font-size: 14px;
}

.product-media {
  margin: -24px -24px 8px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-soft);
}

.product-media img {
  display: block;
  width: 100%;
  height: auto;
}

.product-opinion {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.product-opinion p {
  margin: 0;
  font-style: italic;
  line-height: 1.55;
}

.product-opinion footer {
  margin-top: 6px;
  color: var(--tx);
  font-size: 12px;
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 8px;
}

.product-actions .more {
  margin-top: 0;
}

/* Avis pas encore rédigés : le bouton reste visible, inactif, avec son badge. */
.product-actions .is-soon {
  gap: 8px;
  color: var(--tx-mut);
  cursor: default;
}

.product-actions .is-soon:hover {
  background: var(--bg);
}

.product-actions .is-soon:active {
  transform: none;
}

.soon {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-hover);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.product-actions .btn {
  width: 100%;
  min-height: 44px;
  padding-block: 10px;
}

.band:has(> .wrap > .milestones) {
  container-type: inline-size;
  container-name: milestones;
}

.milestones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.milestones .card {
  align-items: flex-start;
  height: 100%;
}

.milestones .card time,
.milestones .card h3,
.milestones .card p {
  margin: 0;
}

.milestones time {
  color: var(--tx-mut);
  font-size: 14px;
  font-weight: 600;
}

.milestones .pill-label {
  margin-top: auto;
}

.milestones + .meta {
  margin-top: 40px;
}

@container (min-width: 640px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 40px;
  }

  .feature-mirror .feature-copy {
    order: 2;
  }
}

@container milestones (min-width: 640px) {
  .milestones {
    grid-template-columns: 1fr 1fr;
  }
}

.card .points .icon {
  color: var(--accent);
}

/* Coordonnée protégée : le texte est réassemblé à l'écran, absent du HTML en clair. */
.guard-mail::before {
  content: attr(data-first) "@" attr(data-second);
}

.guard-tel::before {
  content: attr(data-first) attr(data-second);
}

/* Photo de terrain : pas de cadre d'écran, un recadrage fixe en 4:3. */
.shot-photo .shot-frame,
html.dark .shot-photo .shot-frame {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.shot-photo .shot-frame picture,
.shot-photo .shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-empty {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 24px;
  border: 2px dashed var(--bd-strong);
  border-radius: inherit;
  background: var(--bg-soft);
  color: var(--tx-mut);
  text-align: center;
}

/* Aperçus du backoffice : écrans stylisés, données fictives (blocs/backoffice.html). */
.bo {
  --bo-accent-soft: #fde9dd;
  --bo-cell: #f0f0f0;
  --bo-device: #151515;
  --bo-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
  --bo-warn: #9a5b00;
  --bo-warn-bg: #fff3e0;
  --bo-c1: var(--accent);
  --bo-c2: #2f74b5;
  --bo-c3: #b8396f;
  --bo-c4: #2f8a4c;
  --bo-c5: #6b4fc0;
  display: flex;
  justify-content: center;
  min-width: 0;
}

html.dark .bo {
  --bo-accent-soft: #3b2216;
  --bo-cell: #262626;
  --bo-device: #050505;
  --bo-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  --bo-warn: #ffb74d;
  --bo-warn-bg: #3a2a12;
  --bo-c2: #6aa9e0;
  --bo-c3: #e07aa6;
  --bo-c4: #6cc488;
  --bo-c5: #a58ce6;
}

.bo-screen {
  container: bo / inline-size;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  box-shadow: var(--bo-shadow);
  text-align: start;
}

.bo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bd);
  background: var(--bg-soft);
}

.bo-dots {
  display: flex;
  gap: 6px;
}

.bo-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bd-strong);
}

.bo-bar b {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
}

.bo-bar small {
  margin-left: auto;
  font-size: 12px;
  color: var(--tx-faint);
}

.bo-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.bo-body p {
  margin: 0;
}

.bo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bo-tabs span {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--tx-mut);
}

.bo-tabs .on {
  background: var(--bo-accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.bo-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bo-kpi {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
}

.bo-kpi small,
.bo-card small {
  display: block;
  font-size: 11.5px;
  color: var(--tx-mut);
}

.bo-kpi strong {
  display: block;
  font-size: 1.1rem;
  color: var(--tx-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Saisonnalité : une colonne par semaine, sept jours par colonne. */
.bo-heat {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
}

.bo-months {
  grid-column: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  font-size: 10.5px;
  color: var(--tx-faint);
  white-space: nowrap;
}

.bo-days {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  align-items: center;
  font-size: 10px;
  line-height: 1;
  color: var(--tx-faint);
}

.bo-cells {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
}

.bo-cells i,
.bo-legend i {
  --t: 0%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) var(--t), var(--bo-cell));
}

.bo-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  color: var(--tx-faint);
}

.bo-legend i {
  width: 11px;
}

/* Teintes du calendrier, par classe : les styles en ligne sont refusés par le site. */
.bo-cells .t1, .bo-legend .t1 { --t: 12%; }
.bo-cells .t2 { --t: 22%; }
.bo-cells .t3 { --t: 32%; }
.bo-cells .t4, .bo-legend .t4 { --t: 42%; }
.bo-cells .t5 { --t: 52%; }
.bo-cells .t6 { --t: 62%; }
.bo-cells .t7, .bo-legend .t7 { --t: 72%; }
.bo-cells .t8 { --t: 82%; }
.bo-cells .t9 { --t: 91%; }
.bo-cells .t10, .bo-legend .t10 { --t: 100%; }

/* Téléphone */
.bo-phone {
  width: 272px;
  max-width: 100%;
  padding: 10px;
  border-radius: 34px;
  background: var(--bo-device);
  outline: 1px solid var(--bd-strong);
  box-shadow: var(--bo-shadow);
  text-align: start;
}

.bo-phone-in {
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 14px 14px 18px;
  border-radius: 26px;
  background: var(--page);
}

.bo-notch {
  width: 84px;
  height: 20px;
  margin: -14px auto 0;
  border-radius: 0 0 12px 12px;
  background: var(--bo-device);
}

.bo-phone-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.bo-phone-head b {
  font-size: 15px;
  color: var(--tx-strong);
}

.bo-phone-head small {
  font-size: 11px;
  color: var(--tx-faint);
}

.bo-card {
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
}

.bo-card strong {
  font-size: 1.1rem;
  color: var(--tx-strong);
  font-variant-numeric: tabular-nums;
}

.bo-phone-in > .bo-card strong {
  font-size: 1.35rem;
}

.bo-delta {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ok);
}

.bo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bo-spark {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 4px;
}

.bo-spark-area {
  fill: var(--bo-accent-soft);
}

.bo-spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.bo-spark-dot {
  fill: var(--accent);
}

/* Caution */
.bo-dep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.bo-dep-head b {
  display: block;
  color: var(--tx-strong);
}

.bo-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tx-strong);
  font-variant-numeric: tabular-nums;
}

.bo-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}

.bo-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bo-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 16px;
}

.bo-steps li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--bd);
}

.bo-steps li:last-child {
  padding-bottom: 0;
}

.bo-steps li:last-child::before {
  display: none;
}

.bo-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.bo-steps b {
  display: block;
  font-size: 14px;
  color: var(--tx-strong);
}

.bo-steps small {
  font-size: 12.5px;
  color: var(--tx-mut);
}

.bo-when {
  font-size: 12px;
  color: var(--tx-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Grille des prix */
.bo-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bo-periods div {
  padding: 6px 10px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--tx-mut);
}

.bo-periods b {
  display: block;
  font-size: 13px;
  color: var(--tx-strong);
}

.bo-periods .on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.bo-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 13.5px;
}

.bo-table th {
  padding: 0 8px 8px;
  font-size: 11.5px;
  font-weight: 500;
  text-align: start;
  color: var(--tx-mut);
}

.bo-table td {
  padding: 7px 8px;
  border-top: 1px solid var(--bd);
  color: var(--tx);
  font-variant-numeric: tabular-nums;
}

.bo-table th + th,
.bo-table td + td {
  text-align: end;
  white-space: nowrap;
}

.bo-table td small {
  display: block;
  font-size: 11.5px;
  color: var(--tx-faint);
}

.bo-field {
  display: inline-block;
  min-width: 76px;
  padding: 3px 8px;
  border: 1px solid var(--bd);
  border-radius: 6px;
  background: var(--bg);
  text-align: end;
}

.bo-field.on {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.bo-saved,
.bo-ro {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.bo-saved {
  color: var(--ok);
}

.bo-ro {
  color: var(--tx-mut);
}

/* Preuve fiscale */
.bo-verified {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-size: 13.5px;
}

.bo-verified svg {
  flex: none;
  color: var(--ok);
}

.bo-verified b {
  color: var(--tx-strong);
}

.bo-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bo-chain div {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
}

.bo-chain div + div::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  width: 18px;
  border-top: 2px dashed var(--accent);
}

.bo-chain small {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

.bo-chain b {
  font-size: 13px;
  color: var(--tx-strong);
}

.bo-chain code {
  overflow: hidden;
  font-size: 10.5px;
  color: var(--tx-mut);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  padding: 0;
}

.bo-chain span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ok);
}

/* Second lot : éléments communs */
.bo-sub {
  display: block;
  font-size: 12px;
  color: var(--tx-mut);
}

.bo-group {
  display: grid;
  gap: 8px;
}

.bo-group > small,
.bo-chips > small {
  font-size: 11.5px;
  color: var(--tx-mut);
}

.bo-note {
  font-size: 11.5px;
  color: var(--tx-faint);
}

.bo-scroll {
  min-width: 0;
  overflow-x: auto;
}

.bo-pill.warn {
  background: var(--bo-warn-bg);
  color: var(--bo-warn);
}

.bo-switches,
.bo-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bo-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--tx-mut);
}

.bo-switch i {
  position: relative;
  width: 26px;
  height: 15px;
  border-radius: 999px;
  background: var(--bd-strong);
}

.bo-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}

.bo-switch.on {
  color: var(--tx-strong);
  font-weight: 600;
}

.bo-switch.on i {
  background: var(--accent);
}

.bo-switch.on i::after {
  left: 13px;
}

.bo-chips span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-mut);
  font-size: 12px;
  color: var(--tx);
}

.bo-chips-pick span {
  border: 1px solid var(--bd);
  background: none;
  color: var(--tx-mut);
}

.bo-chips-pick .on {
  border-color: var(--accent);
  background: var(--bo-accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.bo-callout {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--bo-accent-soft);
  font-size: 12.5px;
  color: var(--tx);
}

.bo-callout b {
  display: block;
  font-size: 14px;
  color: var(--tx-strong);
}

.bo-doc {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

/* Menu caisse */
.bo-menu {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
}

.bo-cats {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bo-cats li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--tx);
}

.bo-cats li:nth-child(1) { --c: var(--bo-c1); }
.bo-cats li:nth-child(2) { --c: var(--bo-c2); }
.bo-cats li:nth-child(3) { --c: var(--bo-c3); }
.bo-cats li:nth-child(4) { --c: var(--bo-c4); }
.bo-cats li:nth-child(5) { --c: var(--bo-c5); }

.bo-cats i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.bo-cats span {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--tx-faint);
}

.bo-cats .on {
  background: color-mix(in srgb, var(--c) 14%, transparent);
  font-weight: 600;
  color: var(--tx-strong);
}

.bo-tiles {
  --c: var(--bo-c1);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bo-tiles span {
  display: grid;
  gap: 2px;
  min-height: 62px;
  align-content: center;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--c) 16%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--c) 35%, var(--bg));
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tx-strong);
}

.bo-tiles b {
  font-weight: 500;
  font-size: 12px;
  color: var(--tx-mut);
}

/* Périodes de prix */
.bo-matrix {
  min-width: 460px;
  font-size: 12.5px;
}

.bo-matrix th:nth-child(2), .bo-matrix th:nth-child(6) { --c: var(--bo-c4); }
.bo-matrix th:nth-child(3), .bo-matrix th:nth-child(5) { --c: var(--bo-c2); }
.bo-matrix th:nth-child(4) { --c: var(--bo-c1); }

.bo-matrix th + th {
  border-top: 3px solid var(--c);
  padding-top: 6px;
  font-weight: 600;
  color: var(--tx-strong);
}

.bo-matrix th small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--tx-faint);
}

/* Barres horizontales */
.bo-bars {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bo-bars li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--tx);
}

.bo-bars svg {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 3px;
}

.bo-track {
  fill: var(--bg-mut);
}

.bo-fill {
  fill: var(--accent);
}

.bo-bars b {
  font-variant-numeric: tabular-nums;
  color: var(--tx-strong);
  white-space: nowrap;
}

.bo-bars small {
  min-width: 34px;
  text-align: end;
  font-size: 11.5px;
  color: var(--tx-mut);
}

.bo-bars-sm li {
  grid-template-columns: 68px minmax(0, 1fr) auto;
}

.bo-bars-sm svg {
  height: 8px;
}

/* Statistiques clients */
.bo-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.bo-donut-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bo-donut {
  flex: none;
  width: 84px;
  height: 84px;
}

.bo-donut circle {
  fill: none;
  stroke-width: 6;
}

.bo-donut .d1, .bo-legend-list li:nth-child(1) { --c: var(--accent); stroke: var(--accent); }
.bo-donut .d2, .bo-legend-list li:nth-child(2) { --c: var(--bo-c2); stroke: var(--bo-c2); }
.bo-donut .d3, .bo-legend-list li:nth-child(3) { --c: var(--bo-c4); stroke: var(--bo-c4); }
.bo-donut .d4, .bo-legend-list li:nth-child(4) { --c: var(--bd-strong); stroke: var(--bd-strong); }

.bo-legend-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--tx);
}

.bo-legend-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bo-legend-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--c);
}

.bo-legend-list b {
  margin-left: auto;
  padding-left: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--tx-strong);
}

/* Borne */
.bo-kiosk {
  width: 300px;
  max-width: 100%;
  padding: 12px 12px 26px;
  border-radius: 22px;
  background: var(--bo-device);
  outline: 1px solid var(--bd-strong);
  box-shadow: var(--bo-shadow);
  text-align: start;
}

.bo-kiosk-in {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 12px;
  background: var(--page);
}

.bo-kiosk-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.bo-kiosk-head b {
  font-size: 17px;
  color: var(--tx-strong);
}

.bo-kiosk-head small {
  font-size: 12px;
  color: var(--tx-mut);
}

.bo-stepper {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bo-stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--tx-faint);
}

.bo-stepper i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--bd-strong);
  font-size: 11px;
  font-style: normal;
}

.bo-stepper .done {
  color: var(--tx-mut);
}

.bo-stepper .done i {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.bo-stepper .now {
  font-weight: 600;
  color: var(--tx-strong);
}

.bo-stepper .now i {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.bo-form {
  display: grid;
  gap: 8px;
}

.bo-form span {
  display: grid;
  padding: 8px 10px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--tx-strong);
}

.bo-form small {
  font-size: 11px;
  color: var(--tx-mut);
}

.bo-cart {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--bd);
  font-size: 12.5px;
  color: var(--tx);
}

.bo-cart span {
  display: flex;
  justify-content: space-between;
}

.bo-cart b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bo-cart .total {
  font-weight: 600;
  color: var(--tx-strong);
}

.bo-cart .total b {
  font-weight: 700;
}

/* Console du siège : prix hérités en gris, prix locaux en accent, produits masqués barrés. */
.bo-siege th:first-child,
.bo-siege td:first-child {
  text-align: start;
  white-space: nowrap;
}

.bo-inherit,
.bo-local,
.bo-hidden {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.bo-inherit {
  color: var(--tx-faint);
}

.bo-local {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent);
  font-weight: 600;
}

.bo-hidden {
  background: var(--bg-mut);
  color: var(--tx-mut);
  text-decoration: line-through;
}

.bo-siege-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
}

.bo-siege-legend .bo-hidden {
  text-decoration: none;
}

/* Exports : la ligne du nouvel export, séparée de l'historique. */
.bo-export-new {
  padding: 12px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.bo-export-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bo-export-period {
  font-size: 12.5px;
  text-align: start;
}

.bo-export-go {
  justify-self: start;
  padding: 7px 14px;
  font-size: 12.5px;
}

.bo-cta {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Postes */
.bo-places {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bo-places span,
.bo-legend i.bo-free,
.bo-legend i.bo-busy {
  border: 1px solid var(--bd);
  background: var(--bg-soft);
}

.bo-places span {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-mut);
}

.bo-places .busy,
.bo-legend i.bo-busy {
  border-color: var(--accent);
  background: var(--bo-accent-soft);
  color: var(--accent);
}

/* Fidélité */
.bo-stamps {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.bo-stamps i {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--bd-strong);
}

.bo-stamps .on {
  border: 0;
  background: var(--accent);
}

@container bo (max-width: 460px) {
  .bo-body {
    padding: 14px;
  }

  .bo-bar small {
    display: none;
  }

  .bo-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bo-kpis .bo-kpi:last-child {
    grid-column: 1 / -1;
  }

  .bo-chain {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .bo-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .bo-chain div + div::before {
    left: 50%;
    top: -15px;
    width: 0;
    height: 14px;
    border-top: 0;
    border-left: 2px dashed var(--accent);
  }
}

.bo-places-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Statistiques clients : l'anneau et les nationalités s'empilent avant de se serrer. */
@container bo (max-width: 600px) {
  .bo-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Séjours en cours */
.bo-kpis-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bo-kpi-hl {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--bd));
  background: var(--bo-accent-soft);
}

.bo-dates {
  color: var(--accent);
  white-space: nowrap;
}

@container bo (max-width: 460px) {
  .bo-kpis-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bo-kpis-4 .bo-kpi:last-child {
    grid-column: auto;
  }
}

/* Schémas de la plateforme (blocks/diagram.html) : boîtes HTML reliées par des traits, sans style en ligne. */
/* Organisation d'un réseau : sociétés, établissements et serveurs, en quatre cas. */
.orgs {
  container-type: inline-size;
  margin: 0;
}

.orgs-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.org {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.org-title {
  font-size: 16px;
  color: var(--tx-strong);
}

.org > small {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--tx-mut);
}

.org-servers {
  display: grid;
  gap: 10px;
  align-content: start;
}

.org-server {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1.5px dashed var(--bd-strong);
  border-radius: var(--radius);
}

.org-server-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx-mut);
}

.org-company {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
}

.org-company b {
  font-size: 13px;
  color: var(--accent);
}

.org-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.org-sites i {
  padding: 2px 8px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  font-style: normal;
  color: var(--tx);
}

/* Moyen : deux par ligne. Étroit : un par ligne. */
@container (max-width: 980px) {
  .orgs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 560px) {
  .orgs-list {
    grid-template-columns: 1fr;
  }
}

/* Trois parcours de borne, écrans tirés du film : classique, guidé, mixte, et le mode accessible. */
.kinds {
  container-type: inline-size;
  margin: 0;
}

.kinds-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kind {
  display: grid;
  align-content: start;
  gap: 6px;
  text-align: center;
}

.kind b {
  font-size: 17px;
  color: var(--tx-strong);
}

.kind small {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--tx-mut);
}

.kind-mode b {
  color: var(--accent);
}

.kind img {
  display: block;
  width: min(100%, 200px);
  height: auto;
  margin: 0 auto 10px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.kinds-mix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 32px auto 0;
  max-width: 46rem;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--tx);
  text-align: center;
}

.kinds-mix-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent);
}

/* Moyen : deux par ligne. Étroit : un par ligne, l'écran à côté du texte. */
@container (max-width: 760px) {
  .kinds-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

@container (max-width: 420px) {
  .kinds-list {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .kind {
    grid-template-columns: 96px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    text-align: start;
  }

  .kind img {
    grid-row: span 2;
    margin: 0;
    border-radius: 10px;
  }

  .kind b {
    align-self: end;
  }
}

/* Parcours d'une vente : quatre étapes reliées. Seul le point bouge, pour montrer qu'une même
   vente traverse toute la plateforme ; sans animation, le trait et sa flèche suffisent. */
.journey {
  container-type: inline-size;
  margin: 0;
}

.journey-track {
  --journey-top: 28px;
  position: relative;
}

.journey-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-steps::before {
  content: "";
  position: absolute;
  top: var(--journey-top);
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--bd-strong), var(--accent));
}

.journey-steps::after {
  content: "";
  position: absolute;
  top: calc(var(--journey-top) - 5px);
  right: calc(12.5% - 2px);
  border: 6px solid transparent;
  border-left-color: var(--accent);
  border-right: 0;
}

.journey-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 8px 16px;
  border-radius: var(--radius);
  color: var(--tx);
  text-align: center;
  text-decoration: none;
}

.journey-step:hover {
  text-decoration: none;
  background: var(--bg-soft);
}

.journey-step b {
  font-size: 16px;
  color: var(--tx-strong);
}

.journey-step small {
  max-width: 16rem;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--tx-mut);
}

.journey-icon {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  margin-bottom: 6px;
  border: 1px solid var(--bd);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.journey-icon-ai {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.journey-dot {
  position: absolute;
  top: calc(var(--journey-top) - 5px);
  left: 12.5%;
  z-index: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: journey-across 6s ease-in-out infinite;
}

@keyframes journey-across {
  0% { left: 12.5%; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 87.5%; opacity: 0; }
}

/* Étroit : les étapes s'empilent, le trait et le point descendent. */
@container (max-width: 620px) {
  .journey-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .journey-steps::before {
    top: 28px;
    bottom: 28px;
    left: 36px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--bd-strong), var(--accent));
  }

  .journey-steps::after {
    top: auto;
    bottom: 22px;
    left: 31px;
    right: auto;
    border: 6px solid transparent;
    border-top-color: var(--accent);
    border-bottom: 0;
  }

  .journey-step {
    grid-template-columns: 56px 1fr;
    justify-items: start;
    align-items: center;
    column-gap: 14px;
    row-gap: 0;
    padding: 4px 8px;
    text-align: start;
  }

  .journey-icon {
    grid-row: span 2;
    margin: 0;
  }

  .journey-dot {
    top: 28px;
    left: 36px;
    margin: -6px 0 0 -5px;
    animation-name: journey-down;
  }
}

@keyframes journey-down {
  0% { top: 28px; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 28px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-dot {
    display: none;
  }
}

.dg-head {
  margin-bottom: 32px;
  text-align: center;
}

.dg-head .lead {
  margin-bottom: 0;
}

.dg {
  display: grid;
  justify-items: center;
  margin: 0;
}

.dg-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

.dg-node {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 132px;
  max-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
}

.dg-node b {
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-strong);
}

.dg-node small {
  font-size: 12px;
  line-height: 1.35;
  color: var(--tx-mut);
}

.dg-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--bg-mut);
  color: var(--tx);
}

.dg-soft {
  background: var(--bg-soft);
}

.dg-accent {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}

.dg-accent .dg-icon {
  background: var(--accent);
  color: #fff;
}

.dg-link {
  position: relative;
  display: block;
  width: 2px;
  height: 36px;
  background: var(--bd-strong);
}

.dg-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  border: 6px solid transparent;
  border-top-color: var(--bd-strong);
  border-bottom: 0;
  transform: translateX(-50%);
}

.dg-group {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 18px 20px 20px;
  border: 1.5px dashed var(--bd-strong);
  border-radius: var(--radius-lg);
}

.dg-group-accent {
  border-color: var(--accent);
}

.dg-group-title {
  display: grid;
  gap: 2px;
  margin: 0;
  text-align: center;
}

.dg-group-title b {
  font-size: 15px;
  color: var(--tx-strong);
}

.dg-group-title small {
  font-size: 12.5px;
  color: var(--tx-mut);
}

.dg-hub {
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.dg-side {
  display: grid;
  gap: 12px;
}

.dg-center {
  position: relative;
  padding-inline: 36px;
}

.dg-center::before,
.dg-center::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px;
  height: 2px;
  background: var(--bd-strong);
}

.dg-center::before {
  left: 0;
}

.dg-center::after {
  right: 0;
}

@media (max-width: 640px) {
  .dg-row {
    width: 100%;
  }

  .dg-node {
    min-width: 0;
    flex: 1 1 130px;
    padding: 10px 12px;
  }

  .dg-hub {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .dg-center {
    padding-inline: 0;
    padding-block: 24px;
  }

  .dg-center::before,
  .dg-center::after {
    left: 50%;
    right: auto;
    width: 2px;
    height: 24px;
  }

  .dg-center::before {
    top: 0;
  }

  .dg-center::after {
    top: auto;
    bottom: 0;
  }
}

.supply {
  display: grid;
  gap: 20px;
  margin: 0;
}

.supply-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.supply-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.supply-best {
  border: 2px solid var(--accent);
}

.supply-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.supply-need {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-mut);
  color: var(--tx);
  font-size: 13px;
  font-weight: 600;
}

.supply-best .supply-need {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent-hover);
}

.supply-title {
  font-size: 20px;
  color: var(--tx-strong);
}

.supply-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  border-block: 1px solid var(--bd);
}

.supply-facts div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.supply-facts dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tx-mut);
}

.supply-facts dd {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-strong);
}

.supply-track {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), var(--bg) calc(25% - 1px) 25%),
    var(--bg-mut);
  overflow: hidden;
}

.supply-track-open {
  background: none;
  border: 1.5px dashed var(--bd-strong);
}

.supply-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
}

.supply-bar-express {
  left: 3.5%;
  width: 21.5%;
  background: var(--tx);
}

.supply-bar-order {
  left: 37.5%;
  width: 37.5%;
  background: var(--accent);
}

.supply-bar-max {
  left: 75%;
  width: 25%;
  background: color-mix(in srgb, var(--accent) 30%, var(--bg));
}

.supply-euros {
  display: inline-flex;
  gap: 2px;
  font-size: 16px;
  line-height: 1;
  color: var(--tx-mut);
}

.supply-euros i {
  font-style: normal;
  color: var(--bd-strong);
}

.supply-euros i.on {
  color: var(--tx-strong);
}

.supply-best .supply-euros i.on {
  color: var(--accent);
}

.supply-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tx);
}

.supply-legend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--tx-mut);
}

@media (max-width: 900px) {
  .supply-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.takeback {
  display: grid;
  justify-items: center;
  max-width: 920px;
  margin: 0 auto;
}

.takeback-fork {
  position: relative;
  display: block;
  width: calc(50% + 24px);
  height: 28px;
  margin-top: 28px;
  border: 2px solid var(--bd-strong);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.takeback-fork::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 28px;
  background: var(--bd-strong);
  transform: translateX(-50%);
}

.takeback-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
}

.takeback .supply-card:not(.supply-best) .supply-ribbon {
  background: var(--tx-strong);
  color: var(--bg);
}

.takeback-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 0;
  border-block: 1px solid var(--bd);
  list-style: none;
  counter-reset: takeback;
}

.takeback-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx-strong);
  counter-increment: takeback;
}

.takeback-steps li::before {
  content: counter(takeback);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-mut);
  font-size: 13px;
  color: var(--tx);
}

.supply-best .takeback-steps li::before {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 760px) {
  .takeback-fork {
    width: 2px;
    height: 28px;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: var(--bd-strong);
  }

  .takeback-fork::before {
    display: none;
  }

  .takeback-paths {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* Temps récupéré (page tarifs) */
.gain {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .gain {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.gain-range {
  width: 100%;
  accent-color: var(--accent);
}

.gain-group {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.gain-group legend {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.gain-hint {
  margin: 4px 0 10px;
  color: var(--tx-mut);
  font-size: 14px;
}

.gain-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(64px, 100%), 1fr));
  gap: 10px;
}

.gain-choice {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1px solid var(--bd-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  cursor: pointer;
}

.gain-choice input {
  accent-color: var(--accent);
}

.gain-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.gain-choice strong {
  font-size: 14px;
  text-align: center;
  color: var(--tx-strong);
}

.gain-submit {
  margin-top: 20px;
}

.gain-result {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.gain-orders {
  margin: 0;
  color: var(--tx-mut);
  font-size: 15px;
}

.gain-figure {
  margin: 4px 0 0;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ok);
}

.gain-sub {
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--tx-strong);
}

.gain-uses,
.gain-perks {
  margin: 0 0 16px;
  padding-left: 20px;
  line-height: 1.6;
}

.gain-honest {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  font-weight: 600;
}

.gain-source {
  margin: 12px 0 0;
  color: var(--tx-mut);
  font-size: 12px;
  line-height: 1.5;
}

.gain-result.htmx-request {
  opacity: 0.6;
}

.gain-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.gain-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.field .gain-scale,
.field .gain-scale span {
  display: flex;
  justify-content: space-between;
  color: var(--tx-mut);
  font-size: 12px;
  font-weight: 400;
}

.gain-detail {
  margin: 0 0 16px;
  color: var(--tx-mut);
}

.prose .gain-question,
.gain-question {
  margin: 0 auto 12px;
  max-width: 640px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--tx-strong);
}

.prose .gain-title,
.gain-title {
  color: var(--ok);
}

.gain-result .btn-wide {
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  height: auto;
  min-height: 44px;
}

/* Titre de section suivi de son contenu */
.band-head {
  padding-bottom: 0;
}

.band-head + .band {
  padding-top: 24px;
}

/* Pictogramme de supervision : un sceau maison, sans label officiel (COM-42). */
.seal-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
}

.seal {
  width: min(220px, 60vw);
  height: auto;
}

.seal-ring,
.seal-dots {
  stroke: var(--accent);
}

.seal-shield {
  fill: var(--accent);
}

.seal-pulse {
  stroke: #fff;
}

.seal-text {
  fill: var(--tx-strong);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.seal-text-small {
  font-size: 12px;
  fill: var(--tx-mut);
}

.seal-wrap figcaption {
  max-width: 420px;
  color: var(--tx-mut);
  font-size: 14px;
  text-align: center;
}

/* Deux chemins côte à côte : chaque étape fait face à son équivalent. */
.dg-mirror {
  display: grid;
  gap: 32px;
}

.dg-mirror .dg-group-title {
  margin-bottom: 12px;
}

.dg-mirror-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  color: var(--tx-strong);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.dg-mirror-link .icon {
  flex: none;
  color: var(--accent);
}

@media (min-width: 768px) {
  .dg-mirror {
    grid-template-columns: 1fr 1fr;
  }

  .dg-mirror-link {
    grid-column: 1 / -1;
  }
}
