/* Jelori — une feuille pour tout le site. Les couleurs sont celles de
   src/theme/brand.ts ; le damier jaune est celui de Bento. */
:root {
  --electric: #3341c4;
  --coral: #ff7a5c;
  --amber: #ffc24e;
  --pale-yellow: #ffe9a8;
  --cream: #fff3cf;
  --lavender: #c3b5f5;
  --lavender-pale: #eeeafc;
  --pink: #f4a7b9;
  --paper: #ffffff;
  --ink: #3341c4;
  --muted: #4754ca;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    conic-gradient(var(--pale-yellow) 0 25%, var(--cream) 0 50%,
                   var(--pale-yellow) 0 75%, var(--cream) 0);
  background-size: 24px 24px;
  font-family: Nunito, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
body.studio { background-image: none; background-color: var(--lavender-pale); }
h1, h2, .brand { font-family: "Mochiy Pop One", Nunito, system-ui, sans-serif; font-weight: 400; letter-spacing: -0.01em; }
a { color: var(--electric); font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }

/* En-tête et pied communs */
.top {
  max-width: 1040px; margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font-size: 22px; text-decoration: none; color: var(--ink); }
.lang { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--paper); }
footer.foot {
  max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px;
  text-align: center; font-size: 14px; color: var(--muted);
}
footer.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }

/* Les pages de texte : assistance, confidentialité */
.sheet {
  max-width: 680px; margin: 16px auto 0; background: var(--paper);
  border-radius: 24px; padding: 36px 28px;
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--electric) 26%, transparent);
}
.sheet h1 { font-size: clamp(26px, 5.4vw, 34px); line-height: 1.25; margin: 0 0 6px; }
.sheet h2 { font-family: Nunito, system-ui, sans-serif; font-weight: 800; font-size: 18px; margin: 30px 0 8px; }
.sheet p, .sheet li { color: var(--muted); }
.sheet ul { padding-left: 20px; }
.lede, .date { margin: 0 0 28px; color: var(--muted); }
.date { font-size: 14px; }
.callout {
  background: var(--lavender-pale); border-radius: 14px; padding: 18px 20px;
  margin: 24px 0; font-weight: 600; color: var(--ink);
}
.mail {
  display: inline-block; margin-top: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--coral); color: #fff; text-decoration: none; font-weight: 800;
}

/* La page d'une app */
.hero {
  max-width: 1040px; margin: 0 auto; padding: 32px 16px 16px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hero-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--electric) 40%, transparent); }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.1; margin: 20px 0 12px; }
.hero .tagline { font-size: clamp(19px, 2.6vw, 23px); font-weight: 700; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none;
  font-family: -apple-system, system-ui, sans-serif; font-weight: 600; font-size: 24px; line-height: 1;
}
.badge svg { width: 26px; height: 32px; }
.badge span { display: flex; flex-direction: column; gap: 2px; letter-spacing: -0.01em; }
.badge small { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.hero-shot { justify-self: center; max-width: 340px; filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--electric) 25%, transparent)); border-radius: 28px; }

.shots {
  max-width: 1040px; margin: 24px auto 0; padding: 8px 16px 20px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.shots img { border-radius: 18px; scroll-snap-align: start; }

.features {
  max-width: 1040px; margin: 24px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card { background: var(--paper); border-radius: 20px; padding: 22px 22px 18px; }
.card h2 { font-size: 20px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card.alt { background: var(--electric); color: #fff; }
.card.alt h2, .card.alt p, .card.alt a { color: #fff; }

.cta { text-align: center; padding: 40px 16px 8px; }
.cta h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 18px; }

/* L'animation « depuis Photos » : un cycle de 11 s, toutes les pistes
   synchronisées sur la même durée. Écrans = vraies captures ; la sélection, le
   doigt et les photos qui tombent dans la planche sont posés par-dessus. */
.flow {
  max-width: 1040px; margin: 40px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.flow h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 20px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.flow li {
  counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  background: var(--paper); border-radius: 18px; padding: 14px 18px; opacity: .45;
  animation: 11s infinite both;
}
.flow li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--lavender-pale); font-family: "Mochiy Pop One", sans-serif; font-size: 18px;
}
.flow li strong { display: block; font-size: 18px; }
.flow li span { color: var(--muted); }
.flow li:nth-child(1) { animation-name: step1; }
.flow li:nth-child(2) { animation-name: step2; }
.flow li:nth-child(3) { animation-name: step3; }
@keyframes step1 { 0%, 29% { opacity: 1; transform: none; } 32%, 100% { opacity: .45; } }
@keyframes step2 { 0%, 29% { opacity: .45; } 32%, 49% { opacity: 1; } 52%, 100% { opacity: .45; } }
@keyframes step3 { 0%, 49% { opacity: .45; } 52%, 93% { opacity: 1; } 98%, 100% { opacity: .45; } }

.phone {
  position: relative; width: 290px; aspect-ratio: 1320 / 2868; overflow: hidden;
  border: 10px solid #15151a; border-radius: 48px; background: #000;
  box-shadow: 0 24px 48px -16px color-mix(in srgb, var(--electric) 45%, transparent);
}
.phone > * { position: absolute; animation: 11s infinite both; }
.phone .screen { inset: 0; width: 100%; height: 100%; }
.phone .share { animation-name: share; }
.phone .board { animation-name: board; }
.phone .cell { left: 14.47%; width: 71.06%; height: 33.12%; border-radius: 4px; object-fit: cover; }
.phone .cell.a { top: 16.49%; animation-name: drop-a; }
.phone .cell.b { top: 50.38%; animation-name: drop-b; }
.phone .check {
  width: 7%; aspect-ratio: 1; top: 54.6%; border-radius: 50%;
  background: #0a84ff; border: 2px solid #fff; display: grid; place-items: center;
}
.phone .check::after { content: ""; width: 35%; height: 18%; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-20%) rotate(-45deg); }
.phone .check.a { left: 25%; animation-name: check-a; }
.phone .check.b { left: 58.3%; animation-name: check-b; }
.phone .finger {
  width: 15%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
  background: rgb(255 255 255 / .55); border: 2px solid rgb(255 255 255 / .9);
  box-shadow: 0 2px 12px rgb(0 0 0 / .25); animation-name: finger;
}
@keyframes share { 0%, 31% { transform: translateY(100%); opacity: 1; } 35.5%, 93% { transform: none; opacity: 1; } 98% { transform: none; opacity: 0; } 99%, 100% { transform: translateY(100%); opacity: 0; } }
@keyframes board { 0%, 51% { opacity: 0; } 54.5%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes drop-a { 0%, 57% { opacity: 0; transform: scale(.6) translateY(-20%); } 60.5% { opacity: 1; transform: scale(1.03); } 62%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes drop-b { 0%, 62% { opacity: 0; transform: scale(.6) translateY(-20%); } 65.5% { opacity: 1; transform: scale(1.03); } 67%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes check-a { 0%, 12% { opacity: 0; transform: scale(.4); } 14%, 50% { opacity: 1; transform: none; } 51%, 100% { opacity: 0; } }
@keyframes check-b { 0%, 23% { opacity: 0; transform: scale(.4); } 25%, 50% { opacity: 1; transform: none; } 51%, 100% { opacity: 0; } }
@keyframes finger {
  0%, 5% { left: 16.5%; top: 51%; opacity: 0; transform: none; }
  8% { left: 16.5%; top: 51%; opacity: 1; transform: none; }
  11% { left: 16.5%; top: 51%; transform: scale(.75); }
  13% { left: 16.5%; top: 51%; transform: none; }
  19% { left: 50%; top: 51%; transform: none; }
  22% { left: 50%; top: 51%; transform: scale(.75); }
  24% { left: 50%; top: 51%; opacity: 1; transform: none; }
  28%, 38% { left: 50%; top: 51%; opacity: 0; }
  39% { left: 38.3%; top: 49.6%; opacity: 0; }
  42% { left: 38.3%; top: 49.6%; opacity: 1; transform: none; }
  45.5% { left: 38.3%; top: 49.6%; transform: scale(.75); }
  47% { left: 38.3%; top: 49.6%; opacity: 1; transform: none; }
  50%, 100% { left: 38.3%; top: 49.6%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flow li, .phone > * { animation: none; }
  .flow li { opacity: 1; }
  .phone .finger, .phone .check { display: none; }
}

/* L'accueil Jelori */
.intro { max-width: 1040px; margin: 0 auto; padding: 48px 16px 24px; }
.intro h1 { font-size: clamp(40px, 8vw, 72px); margin: 0 0 10px; line-height: 1.1; }
.intro p { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0; }
.apps { max-width: 1040px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.app {
  display: flex; gap: 18px; align-items: center; background: var(--paper);
  border-radius: 24px; padding: 20px; text-decoration: none; color: var(--ink);
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--electric) 35%, transparent);
  transition: transform .15s ease;
}
.app:hover { transform: translateY(-2px); }
.app img { width: 76px; height: 76px; border-radius: 18px; flex: none; }
.app strong { font-family: "Mochiy Pop One", Nunito, sans-serif; font-weight: 400; font-size: 20px; display: block; }
.app span { color: var(--muted); font-weight: 600; font-size: 15px; }
.app.soon { background: transparent; box-shadow: none; border: 2px dashed var(--lavender); color: var(--muted); justify-content: center; min-height: 116px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-icon { margin: 0 auto; }
  .facts { justify-content: center; }
  .hero-shot { max-width: 260px; }
  .features { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .flow h2 { text-align: center; margin-bottom: 14px; }
  /* Étapes et téléphone doivent tenir ensemble dans l'écran. */
  .flow ol { gap: 8px; }
  .flow li { padding: 8px 14px; grid-template-columns: 36px 1fr; }
  .flow li::before { width: 36px; height: 36px; font-size: 16px; }
  .flow li span { display: none; }
  .phone { width: 220px; border-width: 8px; border-radius: 38px; }
  .sheet { padding: 28px 20px; }
}
