/* Polices auto-hébergées (SIL Open Font License), sous-ensemble latin, graisses statiques */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/sora-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/sora-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jakarta-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jakarta-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/jakarta-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/jakarta-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0b11;
  --bg-2: #13111a;
  --surface: #1a1722;
  --surface-2: #231f2e;
  --line: #2e2a3b;
  --text: #f4f2f7;
  --muted: #b3afc0;
  --accent: #ff5a36;
  --accent-ink: #0c0b11;
  --accent-soft: rgba(255, 90, 54, 0.14);
  --radius: 16px;
  --font-h: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-b: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(16px, 0.9rem + 0.25vw, 19px)/1.6 var(--font-b); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }
@media (min-width: 2200px) { .wrap { max-width: 1560px; } html { font-size: 118%; } }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(12, 11, 17, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem var(--font-h); letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }
.nav { display: none; margin-left: auto; gap: 2px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 11px; border-radius: 10px; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--surface); }
.top .btn-sm { margin-left: auto; }
@media (min-width: 1000px) { .nav { display: flex; } .top .btn-sm { margin-left: 8px; } }
/* Sélecteur de langue */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.lang a { text-decoration: none; color: var(--muted); padding: 4px 9px; border-radius: 999px; font: 700 0.74rem/1.2 var(--font-b); letter-spacing: 0.06em; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.brand, .top .btn-sm, .lang { flex: none; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .top-in { gap: 12px; }
  .nav a { font-size: 0.9rem; padding: 8px 7px; white-space: nowrap; }
}
/* Lien « Guides » ajouté : sous 1080 px, la barre serrait trop (débordement de 26 px à 1000 px) */
@media (min-width: 1000px) and (max-width: 1079px) {
  .top-in { gap: 8px; }
  .nav a { font-size: 0.86rem; padding: 8px 6px; }
  .top .btn-sm { margin-left: 4px; }
}
@media (max-width: 420px) {
  .top-in { gap: 8px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .top .btn-sm { padding: 0 12px; font-size: 0.85rem; }
  .lang a { padding: 4px 7px; font-size: 0.72rem; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 14px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 700 1rem var(--font-b); text-decoration: none; cursor: pointer; transition: transform 0.15s, filter 0.15s, background 0.15s, box-shadow 0.15s; text-align: center; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 90, 54, 0.28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: #4a4560; filter: none; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; }

/* Héro */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.glow { position: absolute; inset: -10% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(255, 90, 54, 0.26), rgba(255, 90, 54, 0) 70%); pointer-events: none; animation: breathe 9s ease-in-out infinite alternate; }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero-in { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border: 1px solid rgba(255, 90, 54, 0.55); border-radius: 999px; color: #ff8a6e; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 1.5rem + 5vw, 5rem); font-weight: 800; }
.accent { color: var(--accent); }
.lead { margin: 22px 0 0; max-width: 34em; color: var(--muted); font-size: 1.12em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 18px 0 0; max-width: 36em; color: var(--muted); font-size: 0.92rem; }

/* Héro : captures réelles de l'app. Accueil dans un cadre fenêtre, mobile dans un cadre téléphone superposé */
.hero-visual { position: relative; padding-bottom: 56px; }
.hero-window { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--bg-2); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.45); }
.hero-window img { display: block; width: 100%; height: auto; }
.hero-phone { position: absolute; right: 2%; bottom: 0; width: 34%; min-width: 112px; max-width: 200px; margin: 0; padding: 7px; border-radius: 30px; background: #08070c; border: 1px solid #3a3449; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7); }
.hero-phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
@media (min-width: 960px) {
  .hero-visual { padding-bottom: 40px; }
  .hero-window { transform: perspective(1600px) rotateX(3deg) rotateY(-6deg); transform-origin: 30% 50%; }
  .hero-phone { right: 0; width: 30%; max-width: none; }
}
@keyframes breathe { from { opacity: 0.7; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Maquette CSS : « Mes invitations » (section Invitation) */
.mock { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); overflow: hidden; }

/* Bandeau */
.band { border-block: 1px solid rgba(255, 255, 255, 0.06); background: var(--bg-2); }
.band-in { list-style: none; margin: 0; padding: 22px 0; display: grid; gap: 16px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); color: var(--muted); font-size: 0.93rem; }
.band-in strong { display: block; color: var(--text); font: 700 1.02rem var(--font-h); }

/* Sections */
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, 0.05); }
@media (min-width: 900px) { .sec { padding: 104px 0; } }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; }
.kicker { margin: 0 0 12px; color: var(--accent); font: 700 0.82rem var(--font-b); letter-spacing: 0.1em; text-transform: uppercase; }
.sec-lead { margin: 14px 0 0; color: var(--muted); max-width: 40em; }

.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color 0.2s, transform 0.2s, opacity 0.7s; }
.card:hover { border-color: rgba(255, 90, 54, 0.6); transform: translateY(-2px); }
.card svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.soon { position: absolute; top: 20px; right: 20px; padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(255, 90, 54, 0.6); color: #ff8a6e; background: rgba(255, 90, 54, 0.1); font: 700 0.7rem var(--font-b); letter-spacing: 0.06em; text-transform: uppercase; }
.cards.trio { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* Étapes */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 84px; }
.step-n { position: absolute; left: 22px; top: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 800 1.2rem var(--font-h); }
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { padding: 84px 24px 28px; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 43px; left: 82px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 90, 54, 0.6) 0 8px, transparent 8px 16px); }
}

/* Aperçus : captures réelles de l'app. Clic = grande version dans le lightbox */
.shots { display: grid; gap: 32px 28px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.shot { margin: 0; }
.shot-frame { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); transition: transform 0.3s, border-color 0.2s; }
.shot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
a.shot-frame:hover { transform: translateY(-4px); border-color: rgba(255, 90, 54, 0.6); }
.split-visual .shot-frame, .party-demo .shot-frame { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.shot figcaption strong { display: block; color: var(--text); font-family: var(--font-h); font-size: 1.05rem; }
/* Lightbox des captures (app.js) */
.lb { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 64px 16px 16px; background: rgba(6, 5, 9, 0.9); }
.lb[hidden] { display: none; }
.lb img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }
.lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 1.6rem/1 var(--font-b); cursor: pointer; }
.lb-close:hover { background: var(--surface-2); }

/* Sections à deux colonnes */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.rev .split-visual { order: -1; } }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ff5a36' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ticks strong { color: var(--text); }
.split-visual .mock { padding: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
/* Pastilles de statut (invitations) */
.inv-row em { text-decoration: none; font: 700 0.7rem var(--font-b); padding: 3px 10px; border-radius: 99px; font-style: normal; white-space: nowrap; }
/* Invitations */
.inv { display: grid; gap: 8px; }
.inv-h { font: 700 1.05rem var(--font-h); margin-bottom: 6px; }
.inv-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.82rem; }
.inv-n { font-weight: 700; flex: none; }
.inv-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 0.75rem; }
.inv-link.used { background: transparent; font-style: italic; }
.inv-row em.free { background: rgba(25, 195, 155, 0.16); color: #4be0bd; }
.inv-row em.sent { background: rgba(245, 185, 66, 0.16); color: #f5b942; }
.inv-row em.used { background: var(--surface-2); color: var(--muted); }
.party-demo { margin: 40px auto 0; max-width: 520px; }

/* Téléchargements */
.notice { margin: 28px 0 0; padding: 16px 20px; border: 1px solid rgba(255, 90, 54, 0.5); background: rgba(255, 90, 54, 0.08); border-radius: var(--radius); color: var(--text); font-size: 0.97rem; }
.dl-grid { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.dl { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.dl h3 { font-size: 1.3rem; }
.dl p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.dl .meta { color: var(--text); font-weight: 600; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.dl .meta span { color: var(--muted); font-weight: 500; }
.dl .btn { margin-top: auto; }
.dl .hint { font-size: 0.85rem; }
.dl.is-main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(255, 90, 54, 0.12); }
html[lang="en"] .dl.is-main::before { content: "Recommended for your device"; }
.dl.is-main::before { content: "Recommandé pour ton appareil"; align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 10px; border-radius: 99px; }
.how { border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.93rem; color: var(--muted); }
.how summary, .faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.how ol, .how ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.how li strong { display: block; color: var(--text); }

.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq:first-of-type { margin-top: 28px; border-top: 1px solid var(--line); }
.faq summary { font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); font: 700 1.2rem var(--font-b); transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); }

.foot { padding: 40px 0 48px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.foot-in { display: grid; gap: 14px; }
.foot p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 46em; }
@media (min-width: 760px) { .foot-in { grid-template-columns: auto 1fr; align-items: center; gap: 32px; } }

/* Compatibilité Stremio (badge du héro, pied de page) */
.compat-pill { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 0.9rem/1.3 var(--font-b); }
.compat-pill::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4be0bd; box-shadow: 0 0 0 3px rgba(75, 224, 189, 0.18); }
.foot-txt { display: grid; gap: 6px; }
.foot-txt .legal { font-size: 0.8rem; opacity: 0.85; }

/* Apparition au défilement (activée par app.js uniquement) */
.js-rv .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-rv .rv.in { opacity: 1; transform: none; }
.js-rv .cards .rv:nth-child(3n+2) { transition-delay: 0.08s; }
.js-rv .cards .rv:nth-child(3n+3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js-rv .rv { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .btn { border: 2px solid ButtonText; } }
@media (min-width: 760px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 2200px) { .dl-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) {
  .btn-lg { width: 100%; }
  .step { padding-left: 76px; }
  .soon { top: 16px; right: 16px; }
}
