/* Musicapella, site d'une page. Direction « Chorale pop » (docs/ADR.md §3) : mêmes couleurs, polices et arrondis que l'app. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #121214;
  --slate: #5e6068;
  --mist: #f2f2f5;
  --line: #e4e4e8;
  --outline: #d4d4da;
  --coral: #ff6b57;
  --sun: #ffc23d;
  --mint: #2fd1a6;
  --blue: #4c7dff;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  /* 92 battements par minute, comme le tempo de démo de l'app */
  --beat: 0.652s;
}

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

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font: 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 16px;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
}

h2 {
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* En-tête */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 22px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.lang:hover { border-color: var(--ink); }

/* Ouverture */

.hero {
  display: grid;
  gap: 48px;
  padding-block: 24px 64px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 32em;
  margin: 24px 0 32px;
  color: var(--slate);
  font-size: clamp(18px, 2vw, 21px);
}

.badge {
  display: inline-block;
  /* Espace libre d'Apple : au moins un quart de la hauteur du badge */
  margin: 14px 0;
  border-radius: 10px;
}

.badge img {
  display: block;
  width: auto;
  height: 56px;
}

.note {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
}

/* La grille animée : les voix entrent l'une après l'autre, sur le temps */

.choir-wrap { justify-self: center; width: min(100%, 400px); }

.choir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: 3 / 4;
  padding: 10px;
  border-radius: 36px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line), 0 32px 64px -32px rgba(18, 18, 20, 0.45);
}

.voice {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c);
  animation: enter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(0.4s + var(--i) * var(--beat) * 2);
}

.voice:nth-child(1) { border-top-left-radius: 28px; }
.voice:nth-child(2) { border-top-right-radius: 28px; }
.voice:nth-child(3) { border-bottom-left-radius: 28px; }
.voice:nth-child(4) { border-bottom-right-radius: 28px; }

.voice svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80%;
  transform: translateX(-50%);
  fill: rgba(18, 18, 20, 0.16);
}

.tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  font: 700 14px/1 var(--text);
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  animation: pulse var(--beat) ease-out infinite;
  animation-delay: calc(0.4s + 8 * var(--beat));
}

.tempo {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 0;
}

.tempo i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--outline);
  animation: tick calc(4 * var(--beat)) linear infinite;
  animation-delay: calc(0.4s + var(--i) * var(--beat));
}

@keyframes enter {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

@keyframes tick {
  0%, 22% { background: var(--ink); transform: scale(1.25); }
  25%, 100% { background: var(--outline); transform: scale(1); }
}

/* Captures de l'App Store : un bandeau qui défile sur téléphone, une rangée sur grand écran */

.shots { padding-bottom: 80px; }

.shots-row {
  display: flex;
  gap: 14px;
  margin: 0 -16px;
  padding: 4px 16px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  list-style: none;
}

.shots-row li { flex: 0 0 auto; scroll-snap-align: start; }

.shots-row img {
  display: block;
  width: min(62vw, 240px);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(18, 18, 20, 0.06);
}

/* Voix après voix */

.steps-section { padding-bottom: 88px; }

.steps {
  display: grid;
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--c);
  font: 800 24px/1 var(--display);
}

.steps h3 {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.steps p { margin: 0; color: var(--slate); }

/* Gratuit et Pro */

.plans-section {
  padding: 80px 0;
  background: var(--mist);
}

.plans-intro {
  margin: 16px 0 40px;
  color: var(--slate);
  font-size: clamp(18px, 2vw, 21px);
}

.plans {
  display: grid;
  gap: 16px;
}

.plan {
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
}

.plan-pro { background: var(--ink); color: #ffffff; }

.plan h3 {
  margin-bottom: 18px;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
}

.plan li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--outline));
}

.plan-foot {
  margin: 20px 0 0;
  color: #c9c9d1;
  font-size: 15px;
}

.privacy {
  max-width: 40em;
  margin: 48px 0 0;
}

.privacy h3 {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
}

.privacy p { margin: 0; color: var(--slate); }

/* Créateurs */

.creators {
  padding: 80px 0;
  background: var(--coral);
}

.creators p {
  max-width: 30em;
  margin: 20px 0 32px;
  font-size: clamp(18px, 2vw, 21px);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.button:hover { background: #000000; }

/* Pied de page */

.foot {
  padding-block: 40px 56px;
  color: var(--slate);
  font-size: 15px;
}

.foot p { margin: 0 0 16px; }

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li { padding: 11px 0; }

a:focus-visible, .lang:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Page introuvable */

.lost {
  padding-block: 64px 120px;
}

.lost h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lost p { margin: 20px 0 32px; color: var(--slate); font-size: 19px; }

@media (min-width: 640px) {
  .wrap { padding-inline: 32px; }
  .shots-row { margin: 0 -32px; padding: 4px 32px 16px; scroll-padding: 0 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .top { padding-block: 24px; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; padding-block: 48px 104px; }
  .shots-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .shots-row img { width: 100%; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plan { padding: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .voice, .tag::before, .tempo i { animation: none; }
}
