/* BeFunnyStudio portal — design tokens from the studio logo. */
:root {
  --navy: #101A4C;
  --bg: #fdfdfb;
  --tile: #f2efe8;
  --ink-82: rgba(16,26,76,.82);
  --ink-72: rgba(16,26,76,.72);
  --ink-55: rgba(16,26,76,.55);
  --ink-50: rgba(16,26,76,.50);
  --ink-45: rgba(16,26,76,.45);
  --ink-40: rgba(16,26,76,.40);
  --line: rgba(16,26,76,.10);
  --line-soft: rgba(16,26,76,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--navy);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #8F5CC0; }
.mono { font-family: ui-monospace, Menlo, monospace; }

/* language visibility */
html[data-lang="en"] .t-fr { display: none; }
html[data-lang="fr"] .t-en { display: none; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(253,253,251,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .bar {
  max-width: 820px; margin: 0 auto; padding: 16px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.brand span { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand img { display: block; height: 34px; width: auto; }

.langtoggle { display: flex; gap: 2px; font-size: 12px; background: rgba(16,26,76,.06); border-radius: 6px; padding: 2px; }
.langtoggle button { border: none; background: none; color: var(--ink-50); font: inherit; padding: 3px 9px; border-radius: 5px; cursor: pointer; }
html[data-lang="en"] .langtoggle .lang-en,
html[data-lang="fr"] .langtoggle .lang-fr {
  background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 1px 2px rgba(16,26,76,.1);
}

/* ── Layout ─────────────────────────────────────────── */
.wrap { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 0 28px; }
.article-page .wrap { max-width: 680px; }

.hero { padding: 48px 12px 8px; }
.hero h1 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
.lead { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-55); line-height: 1.55; }

.back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-55); text-decoration: none; }

/* ── App cards (portal) ─────────────────────────────── */
.app-list { padding: 30px 12px 48px; display: flex; flex-direction: column; gap: 14px; }
.app-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap;
}
.tile {
  width: 46px; height: 46px; border-radius: 12px; background: var(--tile); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 23px;
}
.tile.dashed { background: none; border: 1.5px dashed rgba(16,26,76,.18); font-size: 19px; color: var(--ink-40); }
.tile.big { width: 68px; height: 68px; border-radius: 18px; font-size: 34px; }

.app-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.app-id { display: flex; flex-direction: column; gap: 2px; }
.app-name { font-weight: 700; font-size: 15.5px; color: var(--navy); text-decoration: none; }
.app-name:hover { opacity: .7; }
.app-tag { font-size: 12.5px; color: var(--ink-50); }
.app-tag.lg { font-size: 15px; }

.next { color: var(--ink-40); border-style: dashed; border-width: 1.5px; border-color: rgba(16,26,76,.18); }
.next .app-name { color: var(--ink-40); }
.next .app-tag { color: var(--ink-40); }

/* store badges — keep both side by side, never split a badge across lines */
.badges { display: flex; gap: 8px; flex-wrap: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: var(--navy); color: #fff; border-radius: 9px; padding: 6px 12px; text-decoration: none;
}
.badge-txt { display: flex; flex-direction: column; line-height: 1.05; }
.badge-top { font-size: 7.5px; opacity: .85; letter-spacing: .02em; white-space: nowrap; }
.badge-main { font-size: 12px; font-weight: 700; }

/* legal links */
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; font-size: 12.5px; font-weight: 700; }
.legal-links a { text-decoration: none; }
.legal-links a:hover { opacity: .75; }

/* ── App landing (fiche) ────────────────────────────── */
.app-hero { padding: 34px 12px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.app-hero .back { margin-bottom: 4px; }
.app-hero h1 { margin: 6px 0 0; font-size: 30px; letter-spacing: -.02em; }
.app-hero .app-tag.lg { margin: 0; }
.app .back { margin: 26px 0 0; }
.legal-block { padding: 8px 12px 48px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-40); text-transform: uppercase; margin: 24px 0 12px; }
.legal-block .legal-links { justify-content: flex-start; gap: 12px 22px; font-size: 14px; }

/* ── Article (legal) ────────────────────────────────── */
.article { padding: 32px 12px 64px; }
.article .back { margin-bottom: 26px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.article-meta .emoji { font-size: 20px; }
.app-name-sm { font-weight: 700; font-size: 13px; letter-spacing: .01em; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.article h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.updated { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-45); }
.intro { margin: 22px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-82); }
.article h2 { margin: 32px 0 0; font-size: 16.5px; letter-spacing: -.01em; }
.article p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-72); }
.mailto {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  padding: 12px 20px; border-radius: 10px; background: var(--navy); color: var(--bg);
  text-decoration: none; font-size: 14px; font-weight: 700;
}
.article-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-45); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .bar {
  max-width: 820px; margin: 0 auto; padding: 18px 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-45);
}
.site-footer a { color: var(--ink-45); text-decoration: none; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 560px) {
  .badges { flex-wrap: wrap; }
  .legal-links { justify-content: flex-start; width: 100%; }
}
