/*
  Charte du site vitrine SantéGo (VitrineController, T54245).
  Bleu du logo comme couleur de marque, vert officine réservé à ce que gagne le client
  (points, chèques) ; l'élément signature est le ticket de caisse du haut de page, imprimé
  une seule fois au chargement. Polices auto-hébergées : aucun appel à un service tiers.
*/
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url("/assets/vitrine/schibsted-grotesk-latin-6e9507bb.woff2") format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url("/assets/vitrine/ibm-plex-mono-400-latin-a258e185.woff2") format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url("/assets/vitrine/ibm-plex-mono-600-latin-ff146818.woff2") format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #13233b;
  --muted: #4d5d74;
  --blue: #1d4f91;
  --blue-deep: #143a6c;
  --green: #11805f;
  --green-pale: #e2f3ec;
  --paper: #ffffff;
  --tint: #eef3f9;
  --line: #d3deea;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--quiet { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--quiet:hover { background: var(--tint); border-color: var(--line); color: var(--blue-deep); }
.btn--line { min-height: 42px; padding: 0 18px; background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--line:hover { background: var(--blue); color: #fff; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.top__logo { display: block; line-height: 0; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top__nav a:hover { color: var(--blue); }

/* Haut de page */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 13ch; }
.lead { margin-top: 28px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Ticket de caisse */
.ticket { margin: 0; justify-self: center; width: min(100%, 340px); }
.ticket__slot {
  position: relative; z-index: 2; height: 22px; margin: 0 -18px;
  border-radius: 12px; background: var(--ink);
  box-shadow: inset 0 -6px 0 #0a1628;
}
/* l'ombre est portée par le rouleau : sur le papier, le masque du bord déchiré la couperait */
.ticket__roll { position: relative; margin: -8px 4px 0; filter: drop-shadow(0 10px 14px rgba(19, 35, 59, .18)) drop-shadow(0 1px 1px rgba(19, 35, 59, .12)); }
.ticket__paper {
  padding: 30px 24px 38px;
  background: #fffdf9; color: #26303d;
  font: 400 .875rem/1.55 var(--mono);
  /* bord inférieur déchiré en dents de scie */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
  animation: ticket-print 2.4s steps(22, end) .3s both;
}
.ticket__head { text-align: center; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ticket__head span { font-weight: 400; text-transform: none; letter-spacing: 0; color: #6b7482; }
.ticket__lines { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed #b9c0ca; }
.ticket__lines div { display: flex; justify-content: space-between; gap: 12px; }
.ticket__lines dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket__lines dd { margin: 0; white-space: nowrap; }
.ticket__total { margin-top: 6px; font-weight: 600; }
.ticket__card { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #b9c0ca; text-align: center; font-weight: 600; color: var(--blue); }
.ticket__card + .ticket__lines { margin-top: 8px; padding-top: 0; border-top: 0; }
.ticket__card + .ticket__lines div:first-child dd { color: var(--green); font-weight: 600; }
.ticket__reward {
  margin-top: 16px; padding: 10px 12px; text-align: center; font-weight: 600;
  color: var(--green); background: var(--green-pale); border: 1.5px dashed var(--green); border-radius: 6px;
  animation: ticket-reward .5s ease-out 2.8s both;
}
.ticket__foot { margin-top: 18px; text-align: center; color: #6b7482; }

@keyframes ticket-print {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes ticket-reward {
  from { background: #fffdf9; box-shadow: 0 0 0 0 rgba(17, 128, 95, .45); }
  60% { box-shadow: 0 0 0 8px rgba(17, 128, 95, 0); }
  to { background: var(--green-pale); box-shadow: 0 0 0 0 rgba(17, 128, 95, 0); }
}
.ticket { overflow: hidden; padding: 0 18px 32px; }

/* Chiffres */
.figures { background: var(--blue-deep); color: #fff; }
.figures__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures p { padding: 32px 24px 34px; color: #c9d7ea; border-left: 1px solid rgba(255, 255, 255, .16); }
.figures p:first-child { border-left: 0; padding-left: 0; }
.figures strong { display: block; color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }

/* Blocs */
.block { padding: clamp(64px, 9vw, 112px) 0; }
.block--tint { background: var(--tint); }
.block__intro { margin-top: 16px; max-width: 40em; color: var(--muted); font-size: 1.125rem; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--blue); color: var(--blue); font-weight: 750;
}
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -20px; border-top: 2px dotted var(--line); }
.steps p { margin-top: 10px; color: var(--muted); }

.offer { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.offer article { padding-top: 20px; border-top: 2px solid var(--blue); }
.offer p { margin-top: 10px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split > div p { margin-top: 18px; color: var(--muted); max-width: 34em; }

/* Carrousel des logiciels de caisse : défilement continu, suspendu au survol ou au focus */
.logos { margin-top: 48px; overflow: hidden; border-block: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, #0000, #000 8%, #000 92%, #0000);
  mask: linear-gradient(90deg, #0000, #000 8%, #000 92%, #0000); }
.logos__track { display: flex; width: max-content; animation: logos-scroll 45s linear infinite; }
.logos:hover .logos__track, .logos:focus-within .logos__track { animation-play-state: paused; }
.logos__list { display: flex; align-items: center; gap: 72px; margin: 0; padding: 32px 36px; list-style: none; }
.logos__list li { flex: none; display: grid; place-items: center; height: 56px; }
.logos__list img { display: block; max-height: 40px; max-width: 160px; width: auto; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.logos__list li:hover img { filter: none; opacity: 1; }
.logos__list span { font-weight: 700; font-size: 1.125rem; color: var(--muted); white-space: nowrap; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }

.commitments { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.commitments li { padding-left: 22px; border-left: 3px solid var(--green); }
.commitments p { margin-top: 6px; color: var(--muted); }

/* Contact */
.contact { background: var(--blue); color: #fff; padding: clamp(64px, 9vw, 104px) 0; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact__in > p { margin-top: 14px; color: #d4e0f0; font-size: 1.125rem; max-width: 36em; }
.contact__ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.contact__ways > * { display: block; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .3); color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 650; }
.contact__ways a:hover { text-decoration: underline; }
.contact__ways span { display: block; margin-bottom: 4px; font-size: .9375rem; font-weight: 400; color: #bcd0ea; }
.contact__partner { margin-top: 44px !important; font-size: 1rem !important; }
.contact a:focus-visible { outline-color: #fff; }
.contact__partner a { color: #fff; font-weight: 650; }

/* Mentions légales */
.legal__in { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
.legal h2 { margin-top: 40px; font-size: 1.25rem; }
.legal p { margin-top: 12px; color: var(--muted); }

/* Pied de page */
.foot { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.foot__logo { display: block; margin-bottom: 10px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot__nav a { color: var(--muted); }

@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__logo { margin-right: auto; }
  .hero__in, .split { grid-template-columns: minmax(0, 1fr); }
  .figures__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures p:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures p { padding-left: 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps li:nth-child(2)::after { display: none; }
  .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .figures p { padding: 22px 0 24px 16px; }
  .steps, .offer, .contact__ways { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .logos__list { gap: 48px; padding: 24px; }
  .top__in { gap: 12px; }
  .top__logo img { width: 110px; }
  .btn--line { padding: 0 14px; font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket__paper, .ticket__reward { animation: none; }
  .logos { -webkit-mask: none; mask: none; }
  .logos__track { animation: none; width: auto; }
  .logos__track .logos__list { flex-wrap: wrap; justify-content: center; }
  .logos__track .logos__list[aria-hidden] { display: none; }
}
