/* Écran d’accueil façon appli — thème clair crème, tout tient dans l’écran */
body.splash { --bg: #FBF6F1; --ink: #1F1429; --mute: #675C72; --dim: #9A8FA4; --orange: #E0592A;
  height: 100svh; min-height: 600px; overflow: hidden; margin: 0; background: var(--bg); color: var(--ink); }
html:has(body.splash) { background: #FBF6F1; }
.sp { height: 100svh; min-height: 600px; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
  padding: calc(14px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom)); }

.sp-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.9rem; font-weight: 800; letter-spacing: -.055em; animation: fadeDown .8s var(--ease) both; }
.sp-brand svg { width: 42px; height: 42px; filter: drop-shadow(0 8px 18px rgba(255,77,109,.4)); animation: beat 2.6s ease-in-out infinite; }

.sp-photo { position: relative; flex: 1; min-height: 0; border-radius: 30px; overflow: hidden; background: #EDE4EC;
  box-shadow: 0 30px 60px -28px rgba(42,24,56,.55); animation: pop .9s var(--ease) both; }
.bg, .bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg img { object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.bg img.on { opacity: 1; transform: scale(1); }
.sp-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(31,20,41,.35)); pointer-events: none; }
.fl { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(42,24,56,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: float 6s ease-in-out infinite; }
.fl svg { width: 16px; height: 16px; }
.fl1 { top: 16px; left: 14px; color: #0F7A4A; }
.fl2 { top: 58px; right: 14px; animation-delay: -2s; }
.fl3 { bottom: 16px; left: 50%; transform: translateX(-50%); animation: none; background: var(--grad); color: #fff; }
.fl3 svg path:first-child { fill: #fff; }
.fl3 svg path:last-child { stroke: #FF6A55; }
@keyframes float { 50% { transform: translateY(-6px); } }

.sp-bottom { display: flex; flex-direction: column; gap: 10px; text-align: center; animation: fadeUp .9s .15s var(--ease) both; }
.sp-bottom h1 { margin: 4px 0 0; font-size: clamp(2.2rem, 9.5vw, 3rem); line-height: 1; letter-spacing: -.045em; color: var(--ink); }
.sp-tag { margin: 0 0 6px; color: var(--mute); font-size: .98rem; }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(42,24,56,.14), 0 8px 20px -14px rgba(42,24,56,.4); }
.btn-light::after { display: none; }
.btn-light:hover { box-shadow: inset 0 0 0 1.5px var(--orange); }
.sp-how { align-self: center; background: none; border: 0; color: var(--ink); font: 600 .92rem var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(42,24,56,.3); cursor: pointer; padding: 4px; }
.sp-legal { margin: 0; font-size: .72rem; color: var(--dim); line-height: 1.5; }
.sp-legal a { color: var(--mute); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } }

/* « Comment ça marche ? » */
.sheet { width: min(480px, 100%); max-width: 100%; margin: auto auto 0; padding: 14px 24px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 28px 28px 0 0;
  background: #fff; color: var(--ink); box-shadow: 0 -30px 80px rgba(42,24,56,.3); }
.sheet[open] { animation: sheetUp .45s var(--ease); }
.sheet::backdrop { background: rgba(31,20,41,.35); backdrop-filter: blur(4px); }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: rgba(42,24,56,.15); margin: 0 auto 18px; }
.sheet h2 { font-size: 2rem; text-align: center; margin-bottom: 20px; }
.sheet ol { list-style: none; counter-reset: s; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.sheet li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; }
.sheet li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.sheet li b { font-size: 1.05rem; }
.sheet li span { color: var(--mute); font-size: .93rem; }
.sheet-close { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--mute); font: 500 .95rem var(--sans); cursor: pointer; padding: 8px; }
@keyframes sheetUp { from { transform: translateY(100%); } }

/* Ordinateur : grande photo à gauche, accueil à droite */
@media (min-width: 900px) {
  .sp { max-width: 1180px; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 20px; padding: 28px 40px 32px; }
  .sp-brand { grid-column: 1 / -1; justify-content: flex-start; }
  .sp-photo { grid-row: 2; height: 100%; }
  .sp-bottom { grid-row: 2; align-self: center; text-align: left; max-width: 420px; gap: 12px; }
  .sp-bottom h1 { font-size: 4rem; }
  .sp-tag { font-size: 1.1rem; margin-bottom: 18px; }
  .sp-how { align-self: flex-start; }
  .sheet { margin: auto; border-radius: 28px; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .sp-brand { font-size: 1.6rem; } .sp-brand svg { width: 34px; height: 34px; }
  .sp-bottom h1 { font-size: 2rem; }
  .btn-lg { padding: 15px 24px; }
  .fl2 { display: none; }
}
