.product-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.product-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.product-shot figcaption {
  padding: 13px 18px;
  font-size: 14px;
  color: var(--muted);
}

.shot-link {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.shot-link:focus-visible {
  outline-offset: -3px;
}

.shot-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 12px #0e1c2d33;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.shot-link:hover .shot-zoom,
.shot-link:focus-visible .shot-zoom {
  transform: scale(1.1);
  background: var(--blue);
  color: #fff;
}

/* Visionneuse de captures (viewer.js) */
.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a1522f2;
  color: #fff;
}

.viewer[open] {
  display: flex;
  flex-direction: column;
}

.viewer::backdrop {
  background: #0a1522;
}

html:has(.viewer[open]) {
  overflow: hidden;
}

.viewer-single .viewer-nav,
.viewer-single .viewer-count {
  display: none;
}

.viewer-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 88px 12px 24px;
  font-size: 15px;
  font-weight: 700;
}

.viewer-count,
.viewer-caption {
  margin: 0;
  color: #fff;
}

.viewer-count {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff22;
  font-variant-numeric: tabular-nums;
}

.viewer-caption {
  color: #ffffffcc;
  font-weight: 600;
}

.viewer-close,
.viewer-nav {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 18px #0006;
  transition: transform 0.2s, opacity 0.2s;
}

.viewer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  width: 48px;
  height: 48px;
}

.viewer-close:hover,
.viewer-nav:hover {
  transform: scale(1.08);
}

.viewer-stage {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
}

.viewer-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.viewer-track::-webkit-scrollbar {
  display: none;
}

.viewer-slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 4px 88px 24px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.viewer-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px #0008;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin-top: -38px;
}

.viewer-prev {
  left: 18px;
}

.viewer-next {
  right: 18px;
}

.viewer-nav[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .viewer[open] {
    animation: viewer-in 0.2s ease-out;
  }

  @keyframes viewer-in {
    from {
      opacity: 0;
    }
  }
}

@media (max-width: 900px) {
  .viewer-bar {
    min-height: 64px;
    padding: 10px 76px 10px 16px;
    font-size: 14px;
  }

  .viewer-close {
    top: 8px;
    right: 12px;
  }

  .viewer-slide {
    padding: 4px 12px 84px;
  }

  .viewer-nav {
    top: auto;
    bottom: 16px;
    margin-top: 0;
  }

  .viewer-prev {
    left: calc(50% - 64px);
  }

  .viewer-next {
    right: calc(50% - 64px);
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .viewer-bar {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .viewer-close {
    top: 4px;
    width: 44px;
    height: 44px;
  }

  .viewer-slide {
    padding: 0 76px 8px;
  }

  .viewer-nav {
    top: 50%;
    bottom: auto;
    margin-top: -30px;
  }

  .viewer-prev {
    left: 12px;
  }

  .viewer-next {
    right: 12px;
  }
}

.duo .product-shot img {
  aspect-ratio: 1316 / 756;
  object-fit: cover;
  object-position: top left;
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.product-logo {
  width: 230px;
  max-width: 100%;
  height: auto;
  margin-bottom: 25px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.7fr);
  gap: 55px;
  align-items: start;
}

.contact-layout h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.contact-aside {
  background: var(--pale);
  padding: 30px;
  border-radius: 12px;
}

.contact-aside p {
  margin: 16px 0;
}

.contact-aside .email {
  font-size: 15px;
}

fieldset.form-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

fieldset.form-fields:disabled input,
fieldset.form-fields:disabled textarea {
  background: var(--tint);
  color: var(--muted);
}

label {
  display: block;
  margin: 20px 0 7px;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #8397a8;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid transparent;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #188abe33;
}

.input-wrap {
  position: relative;
}

.input-wrap input,
.input-wrap textarea {
  padding-left: 44px;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.input-wrap:focus-within .field-icon {
  stroke: var(--blue);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

@media (prefers-reduced-motion: no-preference) {
  input,
  textarea {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }
}

.contact-hero {
  padding: 34px 0 38px;
}

section.contact-block {
  padding: 44px 0 64px;
}

.contact-aside {
  position: sticky;
  top: 104px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border: 2px solid var(--error);
}

.field-error {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--error);
}

.field-error[hidden] {
  display: none;
}

.form-note {
  font-size: 14px;
  line-height: 1.5;
  margin: 18px 0;
}

.error-summary {
  border: 2px solid var(--error);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0;
  background: #fff;
}

.error-summary[hidden] {
  display: none;
}

.error-summary h3 {
  font-size: 18px;
  color: var(--error);
}

.error-summary ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.error-summary a {
  color: var(--error);
  font-weight: 700;
  text-decoration: underline;
}

.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  border-left: 4px solid var(--blue);
  background: var(--pale);
  color: var(--ink);
  font-size: 15px;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  border-left-color: var(--success);
}

.form-status.is-error {
  border-left-color: var(--error);
}

.form-status.is-success strong {
  color: var(--success);
}

.form-status.is-error strong {
  color: var(--error);
}

/* Confirmation d'envoi : remplace le formulaire après un envoi accepté */
.sent {
  padding: 44px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f1faf5, #fff 70%);
  box-shadow: 0 18px 50px #0e1c2d14;
  text-align: center;
}

.sent-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e3f4ea;
  color: var(--success);
}

.sent-icon svg {
  width: 56px;
  height: 56px;
}

.sent-ring,
.sent-check {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sent-ring {
  opacity: 0.3;
}

.sent .eyebrow {
  color: var(--success);
}

.sent h2 {
  max-width: 28ch;
  margin: 6px auto 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.sent h2:focus {
  outline: none;
}

.sent-lead {
  margin-top: 16px;
  font-size: 18px;
}

.sent-lead strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sent-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.sent .actions {
  justify-content: center;
  margin-top: 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .sent:not([hidden]) {
    animation: sent-in 0.45s ease-out;
  }

  .sent-ring {
    stroke-dasharray: 145;
    stroke-dashoffset: 145;
    animation: sent-draw 0.6s ease-out forwards;
  }

  .sent-check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: sent-draw 0.45s 0.35s ease-out forwards;
  }

  @keyframes sent-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }

  @keyframes sent-draw {
    to {
      stroke-dashoffset: 0;
    }
  }
}

@media (max-width: 480px) {
  .sent {
    padding: 34px 20px;
  }
}

.mail-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.mail-preview p {
  margin-top: 16px;
}

.mail-preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--tint);
  padding: 18px;
  font: 14px/1.7 Nunito, sans-serif;
  margin-top: 20px;
}

.mail-preview[hidden] {
  display: none;
}

#copy-status {
  font-size: 14px;
}

/* Pages légales et 404 */
.legal {
  max-width: 850px;
  margin: 55px auto 80px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal h2 {
  font-size: 25px;
  letter-spacing: -0.01em;
  margin: 32px 0 14px;
}

.legal p {
  margin: 14px 0;
}

.legal address {
  font-style: normal;
  margin: 24px 0;
  color: var(--ink);
  line-height: 1.8;
}

.legal li {
  margin: 8px 0;
  color: var(--muted);
}

.not-found {
  padding: 80px 0;
}

@media (min-width: 900px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duo > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .contact-aside {
    position: static;
  }

  section.contact-block {
    padding: 32px 0 48px;
  }

  .not-found {
    padding: 48px 0;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-hero {
    padding: 26px 0 28px;
  }
}

.split.start {
  align-items: start;
}

.split.start .list {
  margin-top: 8px;
}

/* Pictogrammes (assets/icons.svg) */
.picto {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--pale);
  color: var(--blue);
}

.picto svg {
  width: 24px;
  height: 24px;
}

.service > .picto {
  margin-bottom: 22px;
}

.service > .picto + .num {
  margin-bottom: 18px;
}

.module-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.module-head .picto {
  width: 42px;
  height: 42px;
}

.module-head h3 {
  margin: 0;
}

/* Capture dans un cadre de navigateur (page d'accueil) */
.browser {
  margin: 0;
  overflow: hidden;
  border: 1px solid #ffffff22;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 40px #0004;
}

.browser-bar {
  height: 34px;
  background:
    radial-gradient(circle at 18px 50%, #ff6b6b 5px, transparent 5.5px),
    radial-gradient(circle at 36px 50%, #ffc857 5px, transparent 5.5px),
    radial-gradient(circle at 54px 50%, #4cd48b 5px, transparent 5.5px),
    #1a2d42;
}

.browser img.screen {
  border-radius: 0;
  box-shadow: none;
}

/* Schéma « avant → pendant → après » des pages de service */
section.block.compact {
  padding: 56px 0;
}

.scenario {
  margin-top: 48px;
}

.flow {
  margin: 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -44px;
  width: 32px;
  height: 2px;
  background: var(--blue);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: -44px;
  width: 8px;
  height: 8px;
  border: solid var(--blue);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transform-origin: 75% 25%;
}

.flow-label {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-chips {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-chips li {
  padding: 10px 14px;
  border: 1px dashed #9fb4c4;
  border-radius: 8px;
  background: var(--tint);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.flow-step.mid {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.flow-step.mid .flow-label {
  color: #8ad0f0;
}

.flow-step.mid .picto {
  margin-bottom: 14px;
  background: #ffffff1f;
  color: #fff;
}

.flow-step.out {
  border-color: var(--cyan);
  background: var(--pale);
}

.flow-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.flow-text {
  margin: 0;
  font-size: 15px;
}

.flow-step.mid .flow-text {
  color: #d3e2ed;
}

.flow figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Parcours de vente et d'achat de COMMERCIA */
.journey-title {
  margin: 34px 0 20px;
  font-size: 18px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.journey .picto {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}

.journey li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 29px;
  left: calc(50% + 38px);
  width: calc(100% - 76px);
  height: 2px;
  background: var(--line);
}

.journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(150% - 48px);
  width: 8px;
  height: 8px;
  border: solid var(--blue);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

/* Portrait optionnel (page À propos) */
.portrait {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 28px;
}

.portrait img {
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px #0e1c2d1f;
}

.portrait figcaption {
  display: grid;
  gap: 2px;
  font-weight: 800;
}

.portrait figcaption span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .flow-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .flow-step:not(:last-child)::before {
    top: auto;
    bottom: -38px;
    right: auto;
    left: calc(50% - 1px);
    width: 2px;
    height: 32px;
  }

  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -40px;
    right: auto;
    left: calc(50% - 4px);
    transform: rotate(135deg);
    transform-origin: 50% 50%;
  }
}

@media (max-width: 700px) {
  .journey {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey li {
    flex-direction: row;
    gap: 16px;
    padding-bottom: 20px;
    text-align: left;
  }

  .journey li:last-child {
    padding-bottom: 0;
  }

  .journey .picto {
    width: 52px;
    height: 52px;
  }

  .journey li:not(:last-child)::before {
    top: 56px;
    bottom: 4px;
    left: 25px;
    width: 2px;
    height: auto;
  }

  .journey li:not(:last-child)::after {
    display: none;
  }
}
