/* Veloce web. Same palette and type as veloce-app.com (site/src/styles/base.css). */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/archivo.woff2') format('woff2-variations');
}

:root {
  --nuit: #0B1633;
  --nuit-haut: #14224A;
  --nuit-bord: #24356a;
  --blanc: #FFFFFF;
  --brume: #AEB9D6;
  --brume-2: #7E8BB0;
  --signal: #2563EB;
  --signal-fort: #1D4ED8;
  --signal-clair: #8DB0FF;
  --violet: #8B5CF6;
  --emeraude: #10B981;
  --rouge: #F87171;
  --font: 'Archivo Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--nuit); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--blanc);
  background: var(--nuit);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--signal-clair); }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--signal-clair); outline-offset: 2px; border-radius: 8px; }

/* Soft light behind the hero, in the logo's colours. */
.glow {
  position: fixed; inset: -20vh -20vw auto; height: 90vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(59, 130, 246, .35), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(30% 40% at 60% 60%, rgba(16, 185, 129, .12), transparent 70%);
  filter: blur(20px);
}

.top, main, .foot { position: relative; z-index: 1; width: min(100% - 32px, 620px); margin-inline: auto; }

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 0 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: var(--signal-clair);
  background: rgba(37, 99, 235, .18); border: 1px solid rgba(141, 176, 255, .3);
}

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero h1 {
  margin: 0; font-size: clamp(2.2rem, 1.4rem + 4vw, 3.4rem); line-height: 1.02;
  font-weight: 850; letter-spacing: -.035em;
}
.hero h1 span {
  background: linear-gradient(90deg, #60A5FA, #8B5CF6 60%, #34D399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 14px 0 24px; color: var(--brume); font-size: 1.08rem; max-width: 34ch; }

.grab {
  padding: 10px; border-radius: 24px;
  background: rgba(20, 34, 74, .72); border: 1px solid var(--nuit-bord);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.grab__field {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--blanc); color: #0D1526;
}
.grab__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: #7E8BB0; stroke-width: 2; stroke-linecap: round; }
.grab input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit;
  font: inherit; font-size: 16px; /* 16px: iOS does not zoom on focus */ padding: 12px 0;
}
.grab input::placeholder { color: #8892AA; }
.grab__paste {
  flex: none; border: 0; border-radius: 11px; padding: 10px 14px;
  font-size: .9rem; font-weight: 700; color: var(--signal-fort); background: #E8EEFF;
}
.grab__clear { flex: none; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; padding: 4px 10px; color: #7E8BB0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px; border-radius: 16px; border: 0;
  font-weight: 750; font-size: 1.06rem; text-decoration: none; transition: transform .15s var(--ease), background .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn--main {
  width: 100%; margin-top: 10px; color: var(--blanc);
  background: linear-gradient(180deg, #3B82F6, var(--signal-fort));
  box-shadow: 0 10px 30px -8px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--main:hover { background: linear-gradient(180deg, #4C8DF8, var(--signal)); }
.btn--main[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn--main[aria-busy="true"] svg { animation: spin 1s linear infinite; }
.btn--ghost { color: var(--blanc); background: rgba(255, 255, 255, .06); border: 1px solid var(--nuit-bord); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
@keyframes spin { to { transform: rotate(360deg); } }

.platforms { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 18px 4px 0; color: var(--brume); font-size: .92rem; font-weight: 600; }
.platforms li { display: flex; align-items: center; gap: 7px; }
.platforms i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ---------- Result ---------- */
.result { margin-top: 26px; }
.media {
  overflow: hidden; border-radius: 24px; background: var(--nuit-haut); border: 1px solid var(--nuit-bord);
  animation: rise .5s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.media__top { display: flex; gap: 14px; padding: 14px; align-items: center; }
.media__thumb {
  position: relative; flex: none; width: 108px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #0d1838;
}
.media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media__thumb[data-wide] { width: 150px; aspect-ratio: 16 / 9; }
.media__time {
  position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px;
  font-size: .75rem; font-weight: 700; background: rgba(0, 0, 0, .7);
}
.media__info { min-width: 0; }
.media__platform { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brume); }
.media__platform i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.media__title { margin: 6px 0 2px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.media__author { margin: 0; color: var(--brume); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.formats { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 8px; }
.format {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--nuit-bord); text-align: left;
  transition: background .2s, border-color .2s, transform .15s var(--ease);
}
.format:hover { background: rgba(255, 255, 255, .08); border-color: var(--brume-2); }
.format:active { transform: scale(.99); }
.format[data-best] { background: linear-gradient(90deg, rgba(37, 99, 235, .22), rgba(139, 92, 246, .12)); border-color: rgba(141, 176, 255, .45); }
.format__q { font-weight: 800; font-size: 1.1rem; min-width: 4.2em; }
.format__tag { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--emeraude); color: #04241a; }
.format__size { margin-left: auto; color: var(--brume); font-size: .92rem; font-variant-numeric: tabular-nums; }
.format__go { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--signal); }
.format__go svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px;
  background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); animation: rise .4s var(--ease) both;
}
.notice__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rouge); color: #3b0a0a; font-weight: 900; }
.notice p { margin: 0; }
.notice a { font-weight: 700; }

.skeleton { height: 160px; border-radius: 24px; background: linear-gradient(90deg, var(--nuit-haut) 30%, #1c2d5c 50%, var(--nuit-haut) 70%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Ads (shown only after consent, see consent.js) ---------- */
.pub { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 28px auto; max-width: 100%; }
.pub[hidden] { display: none; }
.pub__label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brume-2); }
.pub iframe { display: block; border: 0; max-width: 100%; background: transparent; }
.pub--box { margin: 18px auto 6px; }

/* ---------- Sections ---------- */
h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 14px; }
.steps { margin-top: 44px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: rgba(20, 34, 74, .55); border: 1px solid var(--nuit-bord); }
.steps b { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #3B82F6, #8B5CF6); font-weight: 800; }
.steps h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--brume); font-size: .96rem; }

.card { margin-top: 18px; padding: 18px; border-radius: 22px; border: 1px solid var(--nuit-bord); background: var(--nuit-haut); display: flex; gap: 16px; align-items: center; }
.card h2 { margin: 0 0 4px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--brume); font-size: .95rem; }
.install { background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(139, 92, 246, .16)); border-color: rgba(141, 176, 255, .35); }
.install__icon img { border-radius: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.share-glyph {
  display: inline-block; width: 18px; height: 20px; vertical-align: -4px; margin: 0 2px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22' fill='none' stroke='%238DB0FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 1v13M5 5l4-4 4 4M5 9H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1h-2'/%3E%3C/svg%3E");
}

.faq { margin-top: 44px; }
.faq details { border-bottom: 1px solid var(--nuit-bord); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--signal-clair); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--brume); }

.foot { padding: 30px 0 calc(30px + var(--safe-b)); margin-top: 20px; border-top: 1px solid var(--nuit-bord); color: var(--brume-2); font-size: .9rem; }
.foot__brand { display: flex; align-items: center; gap: 8px; color: var(--blanc); font-weight: 800; margin: 0 0 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a, .foot nav button { color: var(--brume); text-decoration: none; background: none; border: 0; padding: 0; font-size: inherit; }
.foot nav a:hover, .foot nav button:hover { color: var(--blanc); }
.foot__note { margin: 14px 0 0; font-size: .82rem; }

/* ---------- Download sheet ---------- */
.sheet {
  width: min(100%, 520px); max-width: 100%; max-height: 92dvh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 26px 26px 0 0; color: var(--blanc); background: var(--nuit-haut);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
}
.sheet[open] { animation: up .45s var(--ease) both; }
@keyframes up { from { transform: translateY(100%); } }
.sheet::backdrop { background: rgba(5, 10, 25, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 26px; } }
.sheet__inner { padding: 20px 18px calc(16px + var(--safe-b)); }
.sheet__inner::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--nuit-bord); margin: -6px auto 14px; }
.sheet__head { display: flex; gap: 12px; align-items: center; }
.sheet__thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: #0d1838; flex: none; }
.sheet__title { margin: 0; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet__meta { margin: 2px 0 0; color: var(--brume); font-size: .9rem; }
.progress { margin-top: 20px; }
.progress__step { margin: 0 0 10px; font-weight: 650; }
.progress__bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #3B82F6, #8B5CF6, #34D399); transition: width .3s var(--ease); }
.progress__bar[data-wait] i { width: 35% !important; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.progress__num { margin: 8px 0 0; color: var(--brume); font-size: .88rem; font-variant-numeric: tabular-nums; }
.ready { margin-top: 18px; text-align: center; }
.ready__check { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; color: #04241a; background: var(--emeraude); box-shadow: 0 0 30px rgba(16, 185, 129, .5); }
.ready__text { margin: 0 0 4px; font-weight: 700; }
.ready .btn--ghost { width: 100%; margin-top: 8px; }
.ready__tip { margin: 10px 0 0; color: var(--brume); font-size: .88rem; }
.sheet__close { display: block; width: 100%; margin-top: 12px; padding: 12px; border: 0; background: none; color: var(--brume); font-weight: 650; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); z-index: 50;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: #fff; color: #0D1526; font-weight: 650;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: rise .3s var(--ease) both;
}

/* ---------- Not an iPhone: the way to the Android app ---------- */
.gate {
  position: relative; z-index: 1; width: min(100% - 32px, 520px); margin: 8vh auto 40px; text-align: center;
  padding: 32px 22px; border-radius: 28px; border: 1px solid var(--nuit-bord); background: var(--nuit-haut);
  animation: rise .5s var(--ease) both;
}
.gate__icon { border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.gate__title { margin: 18px 0 10px; font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem); line-height: 1.15; letter-spacing: -.02em; }
.gate__text { margin: 0 auto 22px; max-width: 40ch; color: var(--brume); }
.gate .btn--main { width: 100%; text-decoration: none; }
.gate__note { margin: 16px 0 0; color: var(--brume-2); font-size: .85rem; letter-spacing: .04em; }

/* ---------- The quality tapped once glows until tapped again ---------- */
.format[data-again] { border-color: var(--signal-clair); animation: again 1.4s var(--ease) infinite; }
@keyframes again {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .55); }
  60% { box-shadow: 0 0 0 8px rgba(96, 165, 250, 0); }
}

/* ---------- Ad blocker ---------- */
.wall {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 10, 25, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wall__box {
  width: min(100%, 460px); padding: 26px 22px; border-radius: 24px; background: #fff; color: #0D1526;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55); animation: rise .4s var(--ease) both;
}
.wall__icon {
  width: 48px; height: 48px; margin: 0 0 12px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, #F59E0B, #EF4444);
}
.wall h2 { margin: 0 0 8px; font-size: 1.3rem; }
.wall p { margin: 0; color: #4B5568; }
.wall__steps { margin: 14px 0 18px; padding-left: 20px; color: #2A3448; display: grid; gap: 8px; font-size: .95rem; }
.wall .btn--main { width: 100%; margin-top: 0; }

/* ---------- Consent (same choice as on veloce-app.com) ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 60;
  max-width: 560px; margin: 0 auto; padding: 18px; border-radius: 20px;
  background: #fff; color: #0D1526; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: rise .4s var(--ease) both;
}
.consent__title { margin: 0 0 6px; font-weight: 800; }
.consent__text { margin: 0; font-size: .92rem; color: #4B5568; }
.consent__text a { color: var(--signal-fort); }
.consent__actions { display: flex; gap: 10px; margin-top: 14px; }
.consent__button { flex: 1; min-height: 48px; border-radius: 14px; border: 1px solid #CBD3E6; background: #fff; font-weight: 750; }
.consent__button[data-choice="yes"] { border: 0; color: #fff; background: var(--signal); }

@media (min-width: 760px) {
  .top, main, .foot { width: min(100% - 48px, 720px); }
  .hero { padding-top: 56px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .platforms { justify-content: center; }
  .grab { display: flex; gap: 10px; align-items: stretch; }
  .grab__field { flex: 1; }
  .btn--main { width: auto; margin-top: 0; }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
