:root {
  --night: #08193d;
  --lagoon: #10303f;
  --lagoon-deep: #091e2a;
  --reef: #00d9b5;
  --reef-deep: #0096aa;
  --foam: #e9fbf7;
  --mist: #9fc3c4;
  --line: rgba(159, 195, 196, 0.22);
  --display: "Familjen Grotesk", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--lagoon-deep);
  color: var(--foam);
  font: 400 1.0625rem/1.6 var(--body);
}

a { color: var(--reef); text-underline-offset: 3px; }
a:hover { color: var(--foam); }

:focus-visible {
  outline: 3px solid var(--reef);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* En-tête */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--foam);
  text-decoration: none;
  font: 700 1.35rem/1 var(--display);
  letter-spacing: -0.01em;
}

.brand img { width: 40px; height: 40px; border-radius: 10px; }

.top nav a {
  color: var(--mist);
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.95rem;
}
.top nav a:hover { color: var(--foam); }

/* Accueil : l'anneau de l'icône, en grand, derrière la recherche */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 112px);
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(0, 217, 181, 0.16), transparent 70%),
    linear-gradient(180deg, var(--lagoon) 0%, var(--lagoon-deep) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  right: max(-420px, -40vw);
  top: -180px;
  border-radius: 50%;
  border: clamp(28px, 4vw, 48px) solid transparent;
  background: linear-gradient(180deg, var(--reef), var(--reef-deep)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.22;
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero h1 {
  font: 700 clamp(2.4rem, 6.4vw, 4.6rem)/1.02 var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 14ch;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--mist);
  max-width: 46ch;
  margin: 0 0 36px;
}

/* Recherche en direct */
.search {
  max-width: 640px;
  background: var(--foam);
  color: var(--night);
  border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.search label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
}

.search svg { flex: none; color: var(--reef-deep); }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 400 1.15rem var(--body);
  color: var(--night);
  padding: 16px 0;
}
.search input:focus { outline: none; }
.search label:focus-within { box-shadow: inset 0 0 0 3px var(--reef); border-radius: 18px; }

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--mist);
}

.examples button {
  font: inherit;
  color: var(--foam);
  background: rgba(233, 251, 247, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.examples button:hover { border-color: var(--reef); }

.results { border-top: 1px solid #d3e7e4; }
.results[hidden] { display: none; }

.results ol { list-style: none; margin: 0; padding: 0; }

.results li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #e3f0ee;
}

.r-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.r-meta { grid-column: 1; font-size: 0.92rem; color: #4b6470; line-height: 1.4; }
.r-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 6px;
  background: #fbe3df;
  color: #8c2a1c;
  font-size: 0.8rem;
  font-weight: 700;
}
.r-call {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--reef-deep);
  font-weight: 700;
  white-space: nowrap;
}

.r-foot {
  padding: 12px 18px;
  font-size: 0.92rem;
  color: #4b6470;
  background: #f2faf8;
}

/* Boutons de téléchargement */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1.2;
}
.store small { display: block; font-size: 0.78rem; opacity: 0.8; }
.store strong { font: 700 1.1rem var(--display); }

.store-android { background: var(--reef); color: var(--night); }
.store-android:hover { background: var(--foam); color: var(--night); }

.store-ios {
  border: 1px solid var(--line);
  color: var(--mist);
}

.stores-note { margin: 14px 0 0; font-size: 0.92rem; color: var(--mist); }

/* Sections */
section.band { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }

.band h2 {
  font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 22ch;
}

.band p { max-width: 62ch; }

.uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 48px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.uses h3 { font: 700 1.25rem/1.25 var(--display); margin: 14px 0 6px; }
.uses p { margin: 0; color: var(--mist); }
.uses svg { color: var(--reef); }

.figures {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  margin: 36px 0 28px;
}
.figures div { font-size: 0.98rem; color: var(--mist); }
.figures b {
  display: block;
  font: 700 clamp(2rem, 4vw, 2.8rem)/1.1 var(--display);
  color: var(--foam);
  letter-spacing: -0.02em;
}

.steps { margin: 28px 0 0; padding-left: 1.4em; max-width: 62ch; }
.steps li { margin-bottom: 12px; padding-left: 6px; }
.steps li::marker { color: var(--reef); font-weight: 700; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 72px;
}

/* Pied de page */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 0.92rem;
  color: var(--mist);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--mist); }

/* Page texte (confidentialité) */
.doc { padding: 40px 0 80px; }
.doc h1 { font: 700 clamp(2rem, 5vw, 3rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font: 700 1.35rem/1.3 var(--display); margin: 40px 0 10px; }
.doc p, .doc li { max-width: 68ch; color: #cfe4e2; }
.doc .updated { color: var(--mist); margin-bottom: 32px; }

@media (max-width: 560px) {
  .top nav a:not(:last-child) { display: none; }
  .store { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
