:root {
  --bg: #F4F6F8;
  --surface: #FBFCFD;
  --surface-2: #EAEEF2;
  --text: #111827;
  --text-2: #5B6472;
  --line: #DCE2E8;
  --teal: #0F766E;
  --teal-text: #0F766E;
  --teal-soft: #E1F0EE;
  --teal-ring: rgba(15, 118, 110, .45);
  --on-teal: #F3FBFA;
  --chip: #E4E8EC;
  --blob-1: #DDEFEC;
  --blob-2: #E9F3F1;
  --postit: #FBEFB3;
  --postit-text: #4D3B00;
  --shot-line: rgba(17, 24, 39, .08);
  --shot-shadow: rgba(17, 24, 39, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121A26;
    --surface: #1A2331;
    --surface-2: #0E151F;
    --text: #DDE2E9;
    --text-2: #9DA6B3;
    --line: #283343;
    --teal: #0F766E;
    --teal-text: #5EEAD4;
    --teal-soft: #143B3C;
    --teal-ring: rgba(94, 234, 212, .45);
    --on-teal: #EAFBF8;
    --chip: #212B3A;
    --blob-1: #123338;
    --blob-2: #16283A;
    --postit: #3B3522;
    --postit-text: #F1DE9A;
    --shot-line: rgba(221, 226, 233, .10);
    --shot-shadow: rgba(0, 0, 0, .6);
  }
}

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

/* Without it, body's overflow moves to the viewport, which iOS Safari still pans sideways. */
html { overflow-x: clip; }

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 17px / 1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a {
  color: var(--teal-text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--teal-text);
  outline-offset: 2px;
}

/* Header and footer */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.brand svg {
  display: block;
  border-radius: 22.5%;
}
.brand span span { color: var(--teal-text); }

body > header { border-bottom: 1px solid var(--line); }

.bar {
  display: flex;
  align-items: center;
  max-width: 1080px;
  height: 64px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

footer { background: var(--surface-2); }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 40px) 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-mail {
  font-size: 15px;
  color: var(--text-2);
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  /* The links' padding hangs outside, so their text lines up with the brand and the right edge. */
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}

footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  color: var(--text-2);
  text-decoration: none;
}
footer nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) 28px;
  font-size: 13px;
  color: var(--text-2);
}

.heart { color: var(--teal-text); }

/* Hero */

.hero {
  position: relative;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 40px) clamp(40px, 5vw, 56px);
}

.hero-column {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.icon,
.hero h1,
.tagline,
.labels,
.band { animation: rise .8s var(--ease) both; }
.hero h1 { animation-delay: .15s; }
.tagline { animation-delay: .3s; }
.labels { animation-delay: .45s; }
.band { animation-delay: .6s; }

.icon svg {
  display: block;
  margin: 0 auto;
  border-radius: 22.5%;
  box-shadow: 0 24px 48px -24px rgba(11, 91, 85, .7);
  animation: bob 6s ease-in-out infinite;
}

.nb-line {
  transform-box: fill-box;
  transform-origin: left center;
  animation: nb-line .7s var(--ease) .5s both;
}
.nb-line-2 { animation-delay: .75s; }

.glint { animation: glint 5s ease-in-out infinite; }

.hero h1 {
  margin: 30px 0 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.bloc {
  position: relative;
  display: inline-block;
  color: var(--teal-text);
}

.suture {
  position: absolute;
  left: -2%;
  bottom: -0.32em;
  width: 104%;
  height: .36em;
  overflow: visible;
}

.incision {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: incision 1.1s cubic-bezier(.6, 0, .2, 1) .8s forwards;
}

.stitch {
  transform-box: fill-box;
  transform-origin: center;
  animation: stitch .4s cubic-bezier(.3, 1.6, .5, 1) 1.6s both;
}
.stitch:nth-child(2) { animation-delay: 1.72s; }
.stitch:nth-child(3) { animation-delay: 1.84s; }
.stitch:nth-child(4) { animation-delay: 1.96s; }

.tagline {
  margin: 26px 0 0;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.4;
  color: var(--text-2);
}

.labels {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-text);
  font-size: 15px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.2s ease-out infinite;
}

.soon {
  font-size: 15px;
  color: var(--text-2);
}

.blob {
  position: absolute;
  z-index: 0;
  left: 50%;
  border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%;
  animation: blob 18s ease-in-out infinite alternate;
}

.blob-1 {
  top: 4%;
  width: clamp(260px, 38vw, 480px);
  height: clamp(260px, 38vw, 480px);
  margin-left: clamp(-340px, -30vw, -150px);
  background: var(--blob-1);
}

.blob-2 {
  top: 22%;
  width: clamp(200px, 26vw, 340px);
  height: clamp(200px, 26vw, 340px);
  margin-left: clamp(0px, 6vw, 80px);
  background: var(--blob-2);
  animation-duration: 22s;
  animation-delay: -7s;
}

/* Floating decorations, wide screens only */

.wide { display: none; }

@media (min-width: 960px) {
  .wide { display: block; }
}

.deco {
  position: absolute;
  z-index: 1;
}

.postit-a { top: 120px; left: max(32px, calc(50% - 600px)); --r: -6deg; }
.postit-b { top: 300px; right: max(32px, calc(50% - 600px)); --r: 5deg; --delay: -3s; }
.entry-c { top: 150px; right: max(120px, calc(50% - 470px)); --r: 8deg; --delay: -1.5s; }
.entry-d { top: 380px; left: max(140px, calc(50% - 450px)); --r: -5deg; --delay: -4s; }

.postit {
  width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--postit);
  color: var(--postit-text);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 14px 30px -16px var(--shot-shadow);
  transform: rotate(var(--r));
  animation: sway 8s ease-in-out var(--delay, 0s) infinite;
}
.postit-b .postit { width: 210px; }
.postit b { display: block; }

.entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px var(--shot-shadow);
  font-size: 14px;
  white-space: nowrap;
  transform: rotate(var(--r));
  animation: float 7s ease-in-out var(--delay, 0s) infinite;
}

.entry-tile {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--teal);
  color: var(--on-teal);
  font-size: 12px;
  font-weight: 700;
}
.entry-tile-soft {
  background: var(--teal-soft);
  color: var(--teal-text);
}
.entry-name { font-weight: 600; }
.entry-time { color: var(--text-2); }

/* Band of procedure chips */

.band {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.band-row {
  display: flex;
  gap: 10px;
  width: max-content;
  /* One gap after the last chip, so -50% lands exactly on the second copy. */
  padding-right: 10px;
  animation: marquee 60s linear infinite;
}

.band-row-reverse {
  margin-left: -120px;
  animation-duration: 70s;
  animation-direction: reverse;
}

.band:hover .band-row { animation-play-state: paused; }

.chip {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.chip-on {
  background: var(--teal);
  color: var(--on-teal);
  font-weight: 600;
}

/* Fanned screenshots */

.shots {
  overflow: hidden;
  padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}

.shots ul {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot {
  position: relative;
  flex: none;
  z-index: 0;
}

.shot-left { margin-right: -64px; --r: -7deg; --delay: -2.3s; }
.shot-center { z-index: 1; --r: 0deg; }
.shot-right { margin-left: -64px; --r: 7deg; --delay: -4.6s; }

.float {
  transform: rotate(var(--r));
  animation: float 7s ease-in-out var(--delay, 0s) infinite;
}

.shots img {
  display: block;
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--shot-line), 0 24px 48px -20px var(--shot-shadow);
  transition: transform .5s var(--ease);
}

.shot-center img {
  border-radius: 32px;
  box-shadow: 0 0 0 1px var(--shot-line), 0 32px 64px -24px var(--shot-shadow);
}

.shots img:hover { transform: translateY(-10px) scale(1.02); }

/* Text pages: Confidentialité, Conditions, Mentions légales */

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px) clamp(56px, 7vw, 96px);
  line-height: 1.65;
}

.page h1,
.not-found h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page p,
.page ul { margin: 16px 0 0; }

.page .updated {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-2);
}

.page h2 {
  margin: 48px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page h3 {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.page ul { padding-left: 22px; }
.page li + li { margin-top: 8px; }
.page li::marker { color: var(--text-2); }

.page .summary {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.privacy h2 {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.table {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.table th,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table th {
  background: var(--surface-2);
  font-weight: 600;
}
.table tbody tr:last-child td { border-bottom: 0; }

.terms section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.terms h2,
.legal h2 { font-size: 20px; }
.terms section h2 { margin-top: 0; }
.terms h2 span { color: var(--teal-text); }

/* 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px clamp(20px, 4vw, 40px);
  text-align: center;
}

.code {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--teal-text);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

/* Motion */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes nb-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes glint {
  0%, 72% { transform: translateX(-260px) skewX(-20deg); }
  100% { transform: translateX(260px) skewX(-20deg); }
}

@keyframes incision {
  to { stroke-dashoffset: 0; }
}

@keyframes stitch {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  from { box-shadow: 0 0 0 0 var(--teal-ring); }
  to { box-shadow: 0 0 0 9px rgba(15, 118, 110, 0); }
}

@keyframes blob {
  0% { border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%; transform: rotate(0) scale(1); }
  50% { border-radius: 61% 39% 44% 56% / 58% 62% 38% 42%; transform: rotate(25deg) scale(1.07); }
  100% { border-radius: 38% 62% 52% 48% / 40% 55% 45% 60%; transform: rotate(-12deg) scale(.96); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-14px) rotate(var(--r)); }
}

@keyframes sway {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(calc(var(--r) + 4deg)) translateY(-8px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .incision { stroke-dashoffset: 0; }
}
