:root { --bg: #0f3d2c; --card: #0b2e21; --ink: #f4ecd8; --muted: #c9bb95; --gold: #f0ae2a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
header img { width: 64px; height: 64px; border-radius: 15px; }
h1 { font-size: 28px; margin: 0; }
h2 { font-size: 19px; margin: 28px 0 6px; color: var(--gold); }
a { color: var(--gold); }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border-radius: 16px; padding: 16px 18px; margin: 12px 0; }
nav { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; }
ul { padding-left: 20px; }

/* défi ou invitation ouvert sans l'app (challenge.js) : en tête de page, le reste du site en dessous, atténué */
.ch { text-align: center; padding: 22px 18px 18px; border: 2px solid rgba(240, 174, 42, 0.55); }
.ch-title { font-size: 26px; margin: 0 0 12px; color: var(--ink); }
.ch-goal { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto 8px; }
.ch-cap { color: var(--muted); font-size: 15px; }
.ch-score { font-size: 56px; font-weight: 800; line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; }
.ch-lead { margin: 6px 0 14px; color: var(--ink); }
.ch-rank { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 340px; text-align: start; counter-reset: rk; }
.ch-rank li { display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; counter-increment: rk; }
.ch-rank li:nth-child(odd) { background: rgba(0, 0, 0, 0.18); }
.ch-rank li::before { content: counter(rk); color: var(--muted); min-width: 1.2em; }
.ch-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ch-pts { font-variant-numeric: tabular-nums; color: var(--gold); }
.ch-btn { display: block; width: 100%; max-width: 340px; margin: 10px auto 0; padding: 14px 16px; border-radius: 28px; font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; border: 0; }
.ch-store { background: linear-gradient(180deg, #ffe596, #f5b93a 55%, #d8901a); color: #4f2e00; font-size: 18px; }
.ch-open, .ch-copy { background: rgba(0, 0, 0, 0.28); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(240, 174, 42, 0.5); }
.ch-hint { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.has-challenge .about { opacity: 0.7; }

/* dossier de presse (presse.html, press.html) */
main.press { max-width: 1080px; }
.press header { flex-wrap: wrap; margin-bottom: 20px; }
.press header img { width: 88px; height: 88px; border-radius: 20px; }
.press .lang { margin-inline-start: auto; font-size: 14px; }
.press h2 { font-size: 21px; margin-top: 40px; }
.press h3 { font-size: 16px; margin: 20px 0 8px; color: var(--muted); font-weight: 600; }
.press figure { margin: 0; }
.press figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 24px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 26px; font-weight: 700; text-decoration: none; }
.btn-gold { background: linear-gradient(180deg, #ffe596, #f5b93a 55%, #d8901a); color: #4f2e00; }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(240, 174, 42, 0.6); }
.btn small { font-weight: 400; opacity: 0.85; }
.banner img { display: block; width: 100%; height: auto; border-radius: 16px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.copy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-head h3 { margin: 0; }
.copy { font: inherit; font-size: 14px; color: var(--gold); background: none; border: 1px solid rgba(240, 174, 42, 0.6); border-radius: 14px; padding: 4px 12px; cursor: pointer; }
.copy[hidden] { display: none; }
.text p { margin: 8px 0; }
.feats li { margin: 4px 0; }
.shots { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.shots.ipad { grid-template-columns: repeat(3, 1fr); }
.shots a { display: block; color: var(--muted); font-size: 13px; text-decoration: none; }
.shots img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--card); }
.shots a:hover span { text-decoration: underline; }
.shots span { display: block; margin-top: 4px; }
.clips { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 280px)); }
.clips video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; }
.media { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.media img { display: block; border-radius: 22%; }
.media .wide img { border-radius: 12px; width: 100%; max-width: 480px; height: auto; }
.media .wide { flex: 1 1 300px; }
.press footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid rgba(201, 187, 149, 0.25); }
.site-foot { margin-top: 40px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
  .shots.ipad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 8px; }
  .press .lang { margin-inline-start: 0; }
}
.home { display: block; line-height: 0; border-radius: 15px; }
