/* Accueil & services — un écran par page, scroll snap si défilement */

html:has(body.snap-page) {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body.snap-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f4f4f5;
  color: #111827;
  font-family: 'Poppins', system-ui, sans-serif;
}

.snap-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  pointer-events: none;
}

.snap-nav > * {
  pointer-events: auto;
}

.snap-logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #111;
  text-decoration: none;
}

.snap-logo span {
  color: #6b7280;
  font-weight: 600;
}

.snap-nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}

.snap-nav-indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #2563eb;
  transform: translateX(0);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    width 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}

.snap-nav-pill a {
  position: relative;
  z-index: 1;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: color 0.35s ease;
}

.snap-nav-pill a:hover {
  color: #111;
}

.snap-nav-pill a.is-active {
  color: #fff;
}

.snap-nav-pill a.is-active:hover {
  color: #fff;
}

.snap-nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #111827;
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.2);
}

.snap-nav-contact:hover {
  background: #2563eb;
}

.snap-stage {
  min-height: 100vh;
  min-height: 100dvh;
}

body.snap-page--home .snap-stage {
  min-height: auto;
}

.snap-panel {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  box-sizing: border-box;
}

.snap-panel__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.snap-panel--home {
  background: #fafafa;
}

.snap-panel--services {
  background: #f4f4f5;
  justify-content: center;
  overflow-y: auto;
}

/* Accueil — hero centré + icônes flottantes */
.snap-hero-scatter {
  position: relative;
  width: min(100%, 920px);
  min-height: clamp(480px, 68vh, 620px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem 2rem;
}

.snap-scatter {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.snap-float {
  --r: 0deg;
  --s: 1;
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  animation: snap-float-drift 5s ease-in-out infinite;
}

.snap-float--delay {
  animation-delay: -1.6s;
}

.snap-float--delay2 {
  animation-delay: -3.2s;
}

@keyframes snap-float-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)) translateY(-7px);
  }
}

.snap-copy--center {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.snap-actions--center,
.snap-stats--center {
  justify-content: center;
}

.snap-stats--center {
  border-top: 1px solid #e5e7eb;
}

.snap-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 96px 96px 88px;
  gap: 12px;
  width: min(100%, 420px);
  min-height: 304px;
  margin: 0 auto;
  align-self: center;
}

.snap-mosaic__cell {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  min-height: 72px;
  min-width: 0;
}

.snap-mosaic__cell--pos-a {
  grid-column: 1;
  grid-row: 1 / 3;
}

.snap-mosaic__cell--pos-b {
  grid-column: 2;
  grid-row: 1;
}

.snap-mosaic__cell--pos-c {
  grid-column: 3;
  grid-row: 1;
}

.snap-mosaic__cell--pos-d {
  grid-column: 2 / 4;
  grid-row: 2;
  min-height: 96px;
}

.snap-mosaic__cell--pos-e {
  grid-column: 1 / 4;
  grid-row: 3;
  min-height: 88px;
}

.snap-mosaic--empty .snap-mosaic__cell {
  background: #fff;
}

.snap-mosaic__icon-single,
.snap-mosaic__stack,
.snap-mosaic__icon-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snap-mosaic__stack {
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
}

.snap-mosaic__icon-row {
  gap: 0.5rem 0.65rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
}

.snap-mosaic__cell--pos-e .snap-mosaic__icon-row {
  padding: 0.75rem 1rem;
}

.snap-copy {
  max-width: 34rem;
  width: 100%;
  justify-self: center;
}

.snap-split > .snap-mosaic {
  justify-self: center;
}

.snap-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 1rem;
}

.snap-copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.snap-copy h1 em {
  font-style: normal;
  color: #2563eb;
}

.snap-lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #6b7280;
}

.snap-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.snap-btn-with-icon iconify-icon {
  flex-shrink: 0;
}

.snap-nav-contact iconify-icon {
  color: #fff;
}

.snap-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
  transition: transform 0.15s, background 0.15s;
}

.snap-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.snap-btn-ghost {
  font-size: 0.92rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
}

.snap-btn-ghost:hover {
  color: #2563eb;
}

.snap-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.snap-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.snap-stat span {
  font-size: 0.82rem;
  color: #9ca3af;
}

.snap-foot {
  text-align: center;
  flex-shrink: 0;
  margin: 0;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.snap-foot a {
  color: #6b7280;
  text-decoration: none;
}

.snap-foot a:hover {
  color: #2563eb;
}

.snap-foot-product {
  color: #9ca3af;
  font-weight: 500;
}

/* Services — une seule vue */
.snap-services-head {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.snap-services-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.snap-services-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.snap-services-grid {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.snap-service-card {
  padding: 1.25rem 1.35rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.snap-service-card__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.snap-service-card__icons iconify-icon[icon^="mdi:"] {
  color: #2563eb;
}

.snap-service-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.snap-service-card span {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.45;
}

.snap-services-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .snap-nav-pill {
    display: none;
  }

  .snap-hero-scatter {
    min-height: clamp(440px, 62vh, 560px);
  }

  .snap-float {
    padding: 0.45rem 0.55rem;
    border-radius: 14px;
  }

  .snap-float iconify-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .snap-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 520px) {
  .snap-nav-contact {
    padding: 0.5rem 0.85rem;
    font-size: 0.72rem;
  }

  .snap-float--hide-sm {
    display: none;
  }

  .snap-hero-scatter {
    min-height: 420px;
  }
}

body.snap-page .site-brand-watermark {
  z-index: 110;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.snap-page) {
    scroll-behavior: auto;
  }

  .snap-float {
    animation: none;
  }

  .snap-nav-indicator {
    transition: none;
  }
}
