/* ═══════════════════════════════════════════════════════════════
   Jamodio — Fonctionnalités (/fonctionnalites et /en/fonctionnalites)
   Refonte du 23/09/2026 : une section par univers, sommaire ancré collant,
   fonds alternés, visuels rendus par tools/visuals/site/showcase.mjs (showcase.css).
   ═══════════════════════════════════════════════════════════════ */
:root { --mono: 'JetBrains Mono', monospace; --disp: 'Bebas Neue', sans-serif; --wide: 1360px; }
h1, h2, h3 { text-wrap: balance; }

/* ───────── Hero ───────── */
.fn-hero {
  text-align: center; padding: var(--page-top) clamp(16px, 3vw, 40px) 32px;
  max-width: var(--maxw); margin: 0 auto; position: relative;
}
.fn-hero::before { content: ''; position: absolute; inset: -40px 0 0; background: radial-gradient(ellipse at 50% 0%, rgba(232,255,58,.09), transparent 58%); pointer-events: none; }
.fn-hero > * { position: relative; }
/* .fn-hero h1 : règle partagée dans shared.css (référence Tarifs) */
.fn-hero .sub { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); line-height: 1.65; max-width: 720px; margin: 0 auto; }

/* Badges d'état : icône implicite par la forme (coin arrondi vs carré) + texte */
.tag {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; line-height: 1.3;
}
.tag.live { color: var(--green); background: rgba(58,255,140,.08); border-color: rgba(58,255,140,.3); }
.tag.soon { color: var(--orange); background: rgba(255,179,71,.08); border-color: rgba(255,179,71,.3); border-radius: 6px; }
.fn-hero .tag { margin: 0 2px; }

/* ───────── Sommaire ancré (collant sous le header) ───────── */
.fn-toc {
  position: sticky; top: var(--hdr-h); z-index: 50;
  background: rgba(10,10,11,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 32px;
}
.fn-toc-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px);
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.fn-toc-inner::-webkit-scrollbar { display: none; }
.fn-toc a {
  padding: 14px 14px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.fn-toc a:hover { color: var(--text); border-bottom-color: var(--accent); }
section[id] { scroll-margin-top: 58px; } /* le sommaire collant (56 px), en plus du header (shared.css) */

/* ───────── Sections ───────── */
.fn-sec { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.fn-sec.alt { background: var(--surface); }
.fn-inner { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.fn-head { max-width: var(--maxw); margin: 0 auto 36px; }
.fn-head h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(38px, 5vw, 64px); letter-spacing: 2px; line-height: 1.02; }
.fn-head h2 .accent { color: var(--accent); }
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); line-height: 1.65; max-width: 680px; margin-top: 16px; }
.fn-sub { max-width: var(--maxw); margin: 48px auto 18px; }
.fn-sub h3 { font-family: var(--disp); font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: 2px; }
.fn-sub p { font-size: 16.5px; color: var(--muted); margin-top: 8px; max-width: 680px; }
.fn-note { max-width: var(--maxw); margin: 24px auto 0; font-size: 15.5px; color: var(--muted); font-style: italic; }

/* Visuels */
.fn-shot { margin: 0 auto 36px; }
.fn-shot-mixer .jm-showcase-mixer { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 10px; }
.fn-shot-mixer .gr-mixer { justify-content: safe center; }
.fn-shot-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.fn-shot-bubble { max-width: 520px; }
.fn-shot-bubble .jm-showcase-bubble .gr-lt { width: 100%; max-width: 520px; margin: 0 auto; }
.fn-shot .jm-showcase-avatars { max-width: 1000px; margin: 0 auto; }
.fn-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px; align-items: start; margin-bottom: 36px; }
.fn-two .fn-shot { margin: 0; }
.fn-two .jm-musician-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fn-sec .jm-showcase-jams .js-grid { grid-template-columns: repeat(3, 1fr); }

/* Grille de fonctionnalités */
.fn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fcard {
  padding: 24px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s;
}
.fcard:hover { border-color: rgba(232,255,58,.35); transform: translateY(-2px); }
.fn-sec.alt .fcard { background: var(--bg); }
.fcard-ico { font-size: 24px; color: var(--text); }
.fcard h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; }
.fcard p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }

/* Vignette Sécurité et confidentialité : trois faits, rien de plus */
.fn-secu { max-width: var(--maxw); margin: 40px auto 0; padding: 28px 30px; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-lg); }
.fn-secu h3 { font-family: var(--disp); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: 2px; margin-bottom: 18px; }
.fn-secu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fn-secu li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 4px; align-items: start; }
.sv-ico { grid-row: 1 / 3; font-size: 22px; color: var(--text); margin-top: 1px; }
.fn-secu b { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); }
.fn-secu p { font-size: 15px; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .fn-secu ul { grid-template-columns: 1fr; } }

/* CTA */
.fn-cta { padding: var(--section-y) clamp(16px, 3vw, 40px); text-align: center; }
.fn-cta-inner { max-width: 720px; margin: 0 auto; }
.fn-cta h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(40px, 6vw, 72px); letter-spacing: 2px; line-height: 1; margin-bottom: 14px; }
.fn-cta h2 .accent { color: var(--accent); }
.fn-cta p { font-size: 17px; color: var(--muted); line-height: 1.65; margin-bottom: 26px; }
.fn-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fn-cta-row .cta { padding: 14px 28px; font-size: 16px; }

@media (max-width: 1000px) {
  .fn-grid { grid-template-columns: repeat(2, 1fr); }
  .fn-two { grid-template-columns: 1fr; }
  .fn-sec .jm-showcase-jams .js-grid { grid-template-columns: 1fr; }
}
/* Téléphone : les cartes de chaque univers en rangée qui défile au doigt (une carte, le bord
   de la suivante visible) au lieu d'être empilées (la seule grille du studio faisait 2 800 px). */
@media (max-width: 640px) {
  .fn-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .fn-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .fn-grid::-webkit-scrollbar { height: 8px; }
  .fn-grid::-webkit-scrollbar-track { background: transparent; }
  .fn-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
}
.fn-grid:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
