/* Forge Audio : feuille de style commune à toutes les pages du site. */

/* Inter (SIL OFL 1.1, voir fonts/OFL.txt) servie par le site : aucun appel à un service de polices. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/inter-latin.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: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b0908; --bg-2: #120e0c; --surface: #17120f; --line: rgba(255, 236, 220, .09); --line-2: rgba(255, 236, 220, .22);
  --text: #f6f1ec; --body: #d9cfc6; --muted: #a89d94; --ember: #ff6a1a; --gold: #ffb347; --red: #d7263d;
  --grad: linear-gradient(100deg, var(--gold), var(--ember) 50%, var(--red));
  --radius: 18px;
  --gutter: clamp(16px, 3.2vw, 72px);
  --wrap: 1480px;   /* sections de contenu */
  --prose: 1120px;  /* tutoriels et textes longs */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(var(--prose), 100% - 2 * var(--gutter)); }
.full { width: 100%; padding-inline: var(--gutter); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ember); color: #160a03; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- En-tête et navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(11, 9, 8, .8); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.01em; flex: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); font-size: 15px; }
.nav ul { display: flex; align-items: center; gap: inherit; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); padding: 6px 0; position: relative; }
.nav a:not(.btn):hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); }
.menu-btn { display: none; align-items: center; gap: 8px; background: transparent; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 650; font-size: 14.5px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu-btn[aria-expanded="true"] .burger { display: none; }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.25; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-2); }
.btn-fire { background: var(--ember); color: #160a03; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(255, 106, 26, .7); }
.btn-fire:hover { background: #ff7d36; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--ember); opacity: 0; pointer-events: none; }
.btn:hover::after, .btn:focus-visible::after { animation: pulse 1.15s ease-out infinite; }
@keyframes pulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.1, 1.4); } }
.btn small { font-weight: 500; opacity: .75; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- En-tête de page et fil d'Ariane ---------- */
.page-head { position: relative; padding: 46px 0 8px; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: -64px 0 auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 60% at 15% 30%, rgba(255, 106, 26, .14), transparent 70%), radial-gradient(30% 50% at 85% 10%, rgba(215, 38, 61, .1), transparent 70%); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }
h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0; font-weight: 850; overflow-wrap: break-word; }
.lead { color: var(--muted); font-size: clamp(16.5px, 1.4vw, 19px); margin: 16px 0 0; max-width: 44em; }
main { display: block; }
section { padding: 72px 0 0; }
h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; font-weight: 820; scroll-margin-top: 84px; }
h3 { font-size: 19px; margin: 30px 0 6px; letter-spacing: -.01em; scroll-margin-top: 84px; }
.sub { color: var(--muted); font-size: 17px; max-width: 44em; margin: 0 0 36px; }
.prose p, .prose li { color: var(--body); }
.prose a:not(.btn) { color: var(--gold); overflow-wrap: anywhere; }
.prose h2 { margin-top: 64px; }
.meta { color: var(--muted); margin: 0 0 8px; }
.ui { display: inline-block; padding: 0 7px; border-radius: 6px; background: rgba(255, 236, 220, .08); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
code, kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: rgba(255, 236, 220, .07); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
pre { margin: 12px 0 0; background: #070605; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; color: #f3e7dc; }
pre code { background: none; padding: 0; font-size: 14.5px; overflow-wrap: normal; white-space: pre; }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 300px), calc((100% - 33px) / 3)), 1fr)); /* 3 colonnes au plus : 6 cartes remplissent les lignes */ gap: 16px; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.card h3 svg, .ico { width: 24px; height: 24px; flex: none; color: var(--gold); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 6px; color: var(--gold); font-weight: 650; font-size: 14.5px; }
.card.hot { background: linear-gradient(160deg, rgba(255, 106, 26, .16), rgba(215, 38, 61, .08) 60%, var(--surface)); border-color: rgba(255, 106, 26, .35); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid rgba(255, 179, 71, .3); border-radius: 999px; padding: 2px 10px; }
.card small { color: var(--muted); font-size: 13px; }

/* ---------- Tutoriels : étapes illustrées ---------- */
ol.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; display: grid; gap: 18px; }
ol.steps > li { counter-increment: s; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 14px 32px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
ol.steps > li.text { grid-template-columns: minmax(0, 1fr); }
ol.steps > li > div::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ember); color: #160a03; font-weight: 800; margin-bottom: 10px; }
ol.steps p { margin: 8px 0 0; color: var(--body); }
ol.steps b, .box b { color: var(--text); }
figure { margin: 0; min-width: 0; }
figure svg { display: block; width: 100%; max-width: 360px; height: auto; margin-inline: auto; }
figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 6px; }
.box { border-left: 3px solid var(--gold); background: rgba(255, 179, 71, .06); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 22px 0 0; }
.box.warn { border-left-color: var(--red); background: rgba(215, 38, 61, .07); }
.box.ok { border-left-color: #3ddc84; background: rgba(61, 220, 132, .06); }
.box p { margin: 6px 0 0; color: var(--body); }
.box p:first-child { margin-top: 0; }
.box ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--body); }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 28px 0 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.platforms a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.platforms a:hover { color: var(--text); border-color: var(--line-2); }
.platforms a[aria-current] { color: #160a03; background: var(--gold); border-color: transparent; }
.sources-list { font-size: 14px; color: var(--muted); }
.sources-list li { margin: 4px 0; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-size: 14.5px; }
.toc b { color: var(--text); width: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.toc a { color: var(--gold); }

/* ---------- Questions (details) ---------- */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--ember); font-size: 22px; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details p, details ul, details ol { color: var(--body); margin: 10px 0 0; max-width: 60em; }
details a { color: var(--gold); }

/* ---------- Nouveautés ---------- */
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.release h3 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
.release time { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.release ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: var(--body); }
.release .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.release .tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 40px 0 44px; color: var(--muted); font-size: 14.5px; background: var(--bg-2); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot p { margin: 10px 0 0; max-width: 28em; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin: 0 0 10px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ---------- Accueil ---------- */
.hero { position: relative; padding: 80px 0 110px; isolation: isolate; overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background: radial-gradient(40% 50% at 25% 35%, rgba(255, 106, 26, .22), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgba(215, 38, 61, .16), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gold); border: 1px solid rgba(255, 179, 71, .25); background: rgba(255, 179, 71, .06); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 92px); line-height: 1; margin: 20px 0 22px; }
.hero .lead { margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.spectrum { position: absolute; left: 0; bottom: 0; width: 100%; height: 280px; z-index: -1; pointer-events: none; opacity: .6; }
.wave { display: block; width: min(420px, 100%); height: 60px; margin-top: 30px; overflow: visible; }
.wave path { fill: none; stroke: url(#wg); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.wave path.glow { stroke-width: 10; opacity: .16; }
.stage { position: relative; min-width: 0; }
.stage .desk { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
.stage .phone { position: absolute; width: 27%; right: -3%; bottom: -16%; border-radius: 26px; border: 6px solid #231c18; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .95); }
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 34px; padding: 22px 0; color: var(--muted); font-weight: 700; font-size: 15px; }
.strip span:first-child { font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 90px); align-items: center; }
.phones { display: flex; gap: 18px; justify-content: center; }
.phones img { width: 46%; max-width: 300px; border-radius: 26px; border: 6px solid #231c18; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9); }
.phones img:last-child { transform: translateY(40px); }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
.ticks b { color: var(--text); font-weight: 650; }

/* ---------- Fonctionnalités ---------- */
.feature-block { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px 48px; padding: 44px 0; border-top: 1px solid var(--line); }
.feature-block h2 { font-size: clamp(24px, 2.6vw, 32px); }
.feature-block > div > p { color: var(--muted); margin: 0; }
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 260px), calc((100% - 2px) / 3)), 1fr)); /* 1, 2 ou 3 colonnes, jamais 4 : 6 cartes par grille remplissent toujours les lignes */ gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { background: var(--bg); padding: 22px 22px 24px; min-width: 0; }
.feat h3 { margin: 0 0 6px; font-size: 16.5px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }
.soon { display: inline-block; font-size: 11.5px; font-weight: 700; color: #160a03; background: var(--gold); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }

/* ---------- Téléchargement : plateforme détectée ---------- */
.card.is-you { border-color: rgba(255, 106, 26, .6); box-shadow: 0 0 0 1px rgba(255, 106, 26, .4), 0 20px 50px -30px rgba(255, 106, 26, .8); }
.you { display: none; }
.is-you .you { display: inline-block; }
.detected { min-height: 1.6em; }

/* ---------- Choix de méthode (guide iPhone) ---------- */
.pick { display: block; min-width: 0; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.pick:hover { border-color: var(--line-2); }
.pick.best { background: linear-gradient(160deg, rgba(255, 106, 26, .16), rgba(215, 38, 61, .08) 60%, var(--surface)); border-color: rgba(255, 106, 26, .35); }
.pick b { display: block; font-size: 18px; color: var(--text); }
.pick span { color: var(--muted); font-size: 14.5px; }
.pick .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid rgba(255, 179, 71, .3); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* ---------- Page 404 ---------- */
.lost { text-align: center; padding: 90px 0 0; }
.lost .big { font-size: clamp(90px, 18vw, 200px); font-weight: 900; line-height: 1; margin: 0; letter-spacing: -.06em; }
.lost .links { justify-content: center; }

/* ---------- Adaptation à l'écran ---------- */
@media (max-width: 1060px) {
  .js .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 22px; background: var(--bg); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .8); border-bottom: 1px solid var(--line); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) { display: block; padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .nav .btn { margin-top: 16px; }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero { padding-top: 52px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .stage { margin-bottom: 40px; }
  .spectrum { height: 170px; }
  .stage .desk { transform: none; }
  .stage .phone { width: 24%; right: 2%; bottom: -16%; border-width: 4px; border-radius: 18px; }
  .phones img:last-child { transform: translateY(24px); }
  .feature-block { grid-template-columns: minmax(0, 1fr); padding: 34px 0; }
  ol.steps > li { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .release { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  section { padding-top: 56px; }
  .cta .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-head { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover::after, .btn:focus-visible::after { animation: none; }
  .btn, a.card { transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}

/* Pages légales : titres de section plus discrets */
.legal h2 { font-size: 22px; margin: 38px 0 8px; letter-spacing: -.01em; }
.foot .brand { color: var(--text); }
.grid.wide-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
