/* Bob59 — design premium. Thème sombre unique, sans dépendance externe. */

:root {
  --bg: #07080c;
  --bg2: #0c0e15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface2: rgba(255, 255, 255, 0.065);
  --ink: #f1f3f9;
  --muted: #99a2b4;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ochre: #e9b949;
  --gold: #e9b949;
  --gold-2: #f8dc92;
  --teal: #5fd4c4;
  --glow: rgba(233, 185, 73, 0.22);
  --max-width: 760px;
  --wide: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 36rem at 12% -8%, rgba(233, 185, 73, 0.10), transparent 60%),
    radial-gradient(50rem 32rem at 100% 4%, rgba(95, 212, 196, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }

::selection { background: rgba(233, 185, 73, 0.35); color: #fff; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-2); }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: 0.9em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--surface2); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 99px; background: rgba(255, 255, 255, 0.16) padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--gold) padding-box; }

.mono { font-family: var(--mono); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-200%);
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: #17110a; font-weight: 700;
}
.skip-link:focus { transform: none; color: #17110a; }

/* ---------- Navigation ---------- */
.fn-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 12, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.fn-nav.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 8, 12, 0.82); }
.fn-nav-inner {
  max-width: var(--wide); margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.fn-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
}
.fn-brand::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #b9822a);
  box-shadow: 0 6px 18px rgba(233, 185, 73, 0.35), inset 0 1px rgba(255, 255, 255, 0.5);
}
.fn-brand b { font-weight: inherit; }
.fn-brand span { color: var(--gold); }
.fn-brand:hover { color: var(--ink); }
.fn-menu { display: flex; gap: 4px; flex-wrap: wrap; font-size: 0.9rem; font-weight: 500; }
.fn-menu a {
  position: relative; padding: 8px 14px; border-radius: 999px; color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.fn-menu a:hover { color: var(--ink); background: var(--surface2); }
.fn-menu a.is-active { color: var(--gold-2); background: rgba(233, 185, 73, 0.12); }
.fn-nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center;
}
.fn-nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .js .fn-nav-toggle { display: inline-flex; }
  .js .fn-menu {
    display: none; width: 100%; flex-direction: column; gap: 2px; padding: 8px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(12, 14, 21, 0.96);
  }
  .js .fn-menu.is-open { display: flex; animation: rise 0.28s var(--ease) both; }
  .js .fn-menu a { padding: 12px 14px; border-radius: 10px; }
}

/* ---------- Pied de page ---------- */
.fn-footer { margin-top: 96px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02)); }
.fn-footer-inner {
  max-width: var(--wide); margin: 0 auto; padding: 44px 24px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; color: var(--muted); font-size: 0.92rem;
}
.fn-footer-brand { display: grid; gap: 10px; align-content: start; }
.fn-footer-brand strong { color: var(--ink); font-size: 1.15rem; letter-spacing: -0.02em; }
.fn-footer-brand strong span { color: var(--gold); }
.fn-footer-brand p { margin: 0; max-width: 34ch; }
.fn-footer h4 { margin: 0 0 12px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); }
.fn-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fn-footer ul a { color: var(--muted); }
.fn-footer ul a:hover { color: var(--gold-2); }
.fn-footer-bottom {
  max-width: var(--wide); margin: 0 auto; padding: 18px 24px 30px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem;
}
@media (max-width: 720px) { .fn-footer-inner { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Boutons ---------- */
.fn-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 0.92rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.fn-btn:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(233, 185, 73, 0.1); color: var(--gold-2); }
.fn-btn-solid {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #17110a;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55), 0 10px 28px rgba(233, 185, 73, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.fn-btn-solid:hover { color: #17110a; transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 1px rgba(255, 255, 255, 0.6), 0 16px 38px rgba(233, 185, 73, 0.4); }
.fn-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.fn-btn-ghost:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--gold); background: var(--surface2); }
.fn-link-button { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; cursor: pointer; }
.fn-link-button:hover { color: var(--gold-2); }
.fn-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Héros ---------- */
.fn-hero { max-width: var(--wide); margin: 0 auto; padding: 104px 24px 56px; position: relative; }
.fn-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
}
.fn-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.fn-hero h1 {
  margin: 0 0 24px; max-width: 17ch; text-wrap: balance;
  font-size: clamp(2.5rem, 6.4vw, 4.7rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 30%, #b9c0d1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fn-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold-2), var(--gold) 60%, #d98e2c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fn-hero > p { color: var(--muted); font-size: 1.15rem; max-width: 58ch; margin: 0 0 34px; }

.fn-stats { max-width: var(--wide); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.fn-stats-inner {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--line);
}
.fn-stat { padding: 22px 26px; background: var(--bg2); display: grid; gap: 2px; }
.fn-stat strong { font-size: 1.9rem; letter-spacing: -0.04em; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.fn-stat span { color: var(--muted); font-size: 0.86rem; }
@media (max-width: 640px) { .fn-stats-inner { grid-template-columns: 1fr; } .fn-hero { padding-top: 64px; } }

/* ---------- Sections ---------- */
.fn-section { max-width: var(--wide); margin: 0 auto; padding: 72px 24px 8px; }
.fn-section-title {
  margin: 0 0 28px; padding: 0; border: 0;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold);
}
.fn-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.fn-section-head h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.15; }
.fn-section-head a { font-weight: 600; font-size: 0.92rem; }

/* ---------- Cartes projets (accueil) ---------- */
.fn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fn-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface2), var(--surface));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.fn-card:hover {
  color: inherit; transform: translateY(-6px); border-color: rgba(233, 185, 73, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(233, 185, 73, 0.12), 0 0 60px -12px var(--glow);
}
.fn-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.fn-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 12, 0.7)); pointer-events: none; }
.fn-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.fn-card:hover .fn-card-media img { transform: scale(1.06); }
.fn-card-body { padding: 20px 22px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.fn-card-title { margin: 0; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
.fn-card-excerpt { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fn-card-more { margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: var(--gold); }
.fn-card:hover .fn-card-more { color: var(--gold-2); }
.fn-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fn-chip, .fn-badge {
  display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px;
  border: 1px solid rgba(95, 212, 196, 0.4); background: rgba(95, 212, 196, 0.08); color: var(--teal);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.fn-chip.is-gold { border-color: rgba(233, 185, 73, 0.4); background: rgba(233, 185, 73, 0.08); color: var(--gold-2); }
@media (max-width: 980px) { .fn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fn-grid { grid-template-columns: 1fr; } }

/* ---------- Journal ---------- */
.fn-entries { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fn-entry {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 28px;
  border-top: 1px solid var(--line); transition: background-color 0.25s var(--ease);
}
.fn-entry:first-child { border-top: none; }
.fn-entry:hover { background: var(--surface2); }
.fn-entry .date { font-size: 0.8rem; color: var(--teal); padding-top: 5px; font-variant-numeric: tabular-nums; }
.fn-entry h3 { margin: 0 0 6px; font-size: 1.12rem; letter-spacing: -0.015em; }
.fn-entry h3 a { color: var(--ink); }
.fn-entry h3 a:hover { color: var(--gold-2); }
.fn-entry-excerpt { color: var(--muted); font-size: 0.95rem; margin: 0 0 8px; }
@media (max-width: 720px) { .fn-entry { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; } }

/* ---------- Pages simples ---------- */
.fn-single-header { max-width: var(--wide); margin: 0 auto; padding: 72px 24px 28px; }
.fn-single-header .fn-kicker { margin-bottom: 18px; }
.fn-single-header h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.04em; margin: 0 0 14px; text-wrap: balance; max-width: 22ch; }
.fn-single-meta { font-size: 0.84rem; color: var(--muted); display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.fn-single-content { max-width: var(--wide); margin: 0 auto; padding: 0 24px 56px; font-size: 1.06rem; line-height: 1.85; }
.fn-single-content > p, .fn-single-content > h2, .fn-single-content > h3, .fn-single-content > ul, .fn-single-content > ol, .fn-single-content > blockquote { max-width: var(--max-width); }
.fn-single-content p { margin: 0 0 22px; color: #d2d7e3; }
.fn-single-content h2, .fn-single-content h3 { letter-spacing: -0.025em; margin: 40px 0 14px; }
.fn-single-content img { border-radius: var(--radius-sm); margin: 12px 0; border: 1px solid var(--line); }
.fn-single-content blockquote { margin: 24px 0; padding: 4px 22px; border-left: 3px solid var(--gold); color: var(--muted); }

.fn-about { display: flex; gap: 56px; align-items: flex-start; }
.fn-about.no-photo { display: block; }
.fn-about-photo { flex: 0 0 280px; position: relative; }
.fn-about-photo::before { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 32px; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px); }
.fn-about-photo img { border-radius: 26px; border: 1px solid var(--line-strong); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.fn-about-text { flex: 1; min-width: 0; }
@media (max-width: 760px) { .fn-about { flex-direction: column; gap: 32px; } .fn-about-photo { flex: 0 0 auto; width: 200px; } }

.fn-project-hero { max-width: var(--wide); margin: 0 auto; padding: 24px 24px 8px; }
.fn-project-hero img { border-radius: var(--radius); border: 1px solid var(--line); }
.fn-feature-row { max-width: var(--wide); margin: 0 auto; padding: 40px 24px; display: flex; align-items: center; gap: 48px; }
.fn-feature-row.reverse { flex-direction: row-reverse; }
.fn-feature-media { flex: 1 1 46%; min-width: 0; }
.fn-feature-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.fn-feature-text { flex: 1 1 54%; min-width: 0; }
.fn-feature-text h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -0.02em; }
.fn-feature-text p { color: var(--muted); margin: 0; }
.fn-download-box {
  max-width: var(--wide); margin: 40px auto; padding: 40px 24px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(40rem 14rem at 50% 0%, var(--glow), transparent 70%), var(--surface);
}
.fn-download-box h3 { margin: 0 0 10px; font-size: 1.5rem; letter-spacing: -0.03em; }
.fn-download-box p { color: var(--muted); margin: 0 0 22px; }

/* ---------- Fiche produit ---------- */
.prod-top { position: relative; max-width: 800px; margin: 0 auto; padding: 72px 24px 0; text-align: center; }
.prod-top::before {
  content: ""; position: absolute; left: 50%; top: 0; z-index: -1; width: min(760px, 100vw); height: 340px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px);
}
.prod-top .kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; margin-bottom: 22px; border-radius: 999px;
  border: 1px solid rgba(95, 212, 196, 0.4); background: rgba(95, 212, 196, 0.08); color: var(--teal);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
}
.prod-top h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.8rem); line-height: 1.06; letter-spacing: -0.045em; margin: 0 0 16px; text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, #b9c0d1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prod-top p { color: var(--muted); font-size: 1.12rem; max-width: 54ch; margin: 0 auto 30px; }
.prod-dl-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; margin-bottom: 52px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #17110a !important;
  font-weight: 700; font-size: 1rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55), 0 12px 34px rgba(233, 185, 73, 0.32);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.prod-dl-btn::before { content: "↓"; font-size: 1.1em; }
.prod-dl-btn:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: inset 0 1px rgba(255, 255, 255, 0.6), 0 20px 46px rgba(233, 185, 73, 0.45); }

.prod-gallery {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 24px 44px; max-width: var(--wide); margin: 0 auto;
  scroll-snap-type: x proximity; scroll-padding-left: 24px;
}
.prod-gallery-item { flex: 0 0 auto; display: block; padding: 0; margin: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: var(--radius-sm); scroll-snap-align: start; }
.prod-gallery-item img {
  display: block; height: 260px; width: auto; max-width: none; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.prod-gallery-item:hover img, .prod-gallery-item:focus-visible img { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5), 0 0 40px -10px var(--glow); }

.prod-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.prod-feature {
  padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface2), var(--surface));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.prod-feature:hover { border-color: rgba(233, 185, 73, 0.35); transform: translateY(-3px); }
.prod-feature h4 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.prod-feature h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); flex-shrink: 0; }
.prod-feature p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.prod-bottom { text-align: center; padding: 48px 24px 24px; }
@media (max-width: 720px) { .prod-features { grid-template-columns: 1fr; } .prod-gallery-item img { height: 190px; } }

/* ---------- Lightbox ---------- */
.lightbox-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out;
  background: rgba(4, 5, 8, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lightbox-backdrop.is-open { display: flex; animation: fade 0.25s var(--ease) both; }
.lightbox-backdrop[hidden] { display: none !important; }
.lightbox-backdrop img {
  max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7); cursor: default;
  animation: pop 0.35s var(--ease) both;
}
.lightbox-close, .lightbox-arrow {
  position: absolute; display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1;
  border: 1px solid var(--line-strong); background: rgba(20, 22, 30, 0.8); color: var(--ink); border-radius: 50%;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lightbox-close { top: 24px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; font-size: 1.5rem; }
.lightbox-close:hover { border-color: var(--gold); transform: translateX(-50%) scale(1.08); }
.lightbox-arrow { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.9rem; }
.lightbox-arrow:hover { border-color: var(--gold); background: rgba(233, 185, 73, 0.15); }
.lightbox-prev { left: 24px; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next { right: 24px; }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 640px) { .lightbox-arrow { width: 42px; height: 42px; font-size: 1.5rem; } .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; } }

/* ---------- Galerie photo ---------- */
.fn-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.fn-gallery-grid img {
  border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.fn-gallery-grid img:hover { transform: translateY(-4px) scale(1.015); border-color: rgba(233, 185, 73, 0.5); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5); }
.fn-empty { color: var(--muted); font-style: italic; }

/* ---------- Filtres de catégories ---------- */
.fn-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.fn-cat-pill {
  font-size: 0.84rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.fn-cat-pill:hover { color: var(--ink); border-color: var(--line-strong); }
.fn-cat-pill.is-active { color: var(--gold-2); border-color: rgba(233, 185, 73, 0.5); background: rgba(233, 185, 73, 0.1); }

/* ---------- Réseaux ---------- */
.tiktok-section, .youtube-section { max-width: var(--wide); margin: 32px auto 48px; padding: 56px 32px; border-radius: 24px; }
.tiktok-section { background: linear-gradient(135deg, rgba(37, 244, 238, 0.07), rgba(254, 44, 85, 0.08)); border: 1px solid rgba(254, 44, 85, 0.3); }
.youtube-section { margin-top: 0; background: linear-gradient(135deg, rgba(255, 0, 0, 0.09), rgba(20, 20, 20, 0.2)); border: 1px solid rgba(255, 60, 60, 0.3); }
.tiktok-heading, .youtube-heading { text-align: center; max-width: 560px; margin: 0 auto 38px; }
.tiktok-heading h3, .youtube-heading h3 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); letter-spacing: -0.035em; margin: 0 0 10px; color: var(--ink); }
.tiktok-heading p, .youtube-heading p { color: var(--muted); margin: 0; }
.tiktok-accent { background: linear-gradient(90deg, #25f4ee, #fe2c55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.youtube-accent { color: #ff4242; }
.tiktok-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; justify-items: center; }
.youtube-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tiktok-card, .youtube-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.tiktok-card { width: 100%; max-width: 340px; }
.youtube-embed-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.youtube-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.tiktok-cta-wrap, .youtube-cta-wrap { text-align: center; margin-top: 40px; }
.tiktok-cta, .youtube-cta {
  display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 700; color: #fff !important;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.tiktok-cta { background: linear-gradient(90deg, #25f4ee, #fe2c55); }
.youtube-cta { background: #ff0000; }
.tiktok-cta:hover, .youtube-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.fn-social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.fn-social-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink); font-weight: 600; background: var(--surface);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.fn-social-link:hover { color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.fn-social-link .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.fn-cta-band {
  max-width: var(--wide); margin: 72px auto 0; padding: 48px 32px; text-align: center; border-radius: 24px;
  border: 1px solid var(--line); background: radial-gradient(34rem 12rem at 50% 0%, var(--glow), transparent 70%), var(--surface);
}
.fn-cta-band h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.035em; }
.fn-cta-band p { color: var(--muted); max-width: 50ch; margin: 0 auto 26px; }
.fn-cta-band .fn-actions { justify-content: center; }
@media (max-width: 640px) { .fn-cta-band { margin-left: 16px; margin-right: 16px; padding: 36px 20px; } }

/* ---------- Statistiques privées ---------- */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stats-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stats-card-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats-card-label { color: var(--muted); font-size: 0.82rem; }
.stats-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 12px 0 0; border-bottom: 1px solid var(--line); }
.stats-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.stats-bar { width: 100%; max-width: 28px; background: linear-gradient(180deg, var(--teal), rgba(95, 212, 196, 0.4)); border-radius: 6px 6px 0 0; }
.stats-bar-label { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); }
.stats-platform { display: flex; flex-direction: column; gap: 12px; }
.stats-platform-row { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 12px; }
.stats-platform-label { font-size: 0.85rem; color: var(--muted); }
.stats-platform-track { height: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stats-platform-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
.stats-platform-count { text-align: right; font-family: var(--mono); font-size: 0.85rem; color: var(--ink); }
.stats-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table tr { border-bottom: 1px solid var(--line); }
.stats-table td { padding: 9px 4px; font-size: 0.9rem; }
.stats-table-num { text-align: right; font-family: var(--mono); color: var(--gold); }
@media (max-width: 720px) { .stats-grid-2 { grid-template-columns: 1fr; gap: 24px; } .fn-feature-row, .fn-feature-row.reverse { flex-direction: column; } }

/* ---------- Page « Projets » ---------- */
.projects-page { max-width: var(--wide); margin: 0 auto; padding: 72px 24px 8px; }
.projects-head { margin: 0 0 40px; padding: 0; }
.projects-kicker { display: inline-flex; margin: 0 0 16px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.projects-head h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.045em; }
.projects-head p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.projects-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-tile {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--surface2), var(--surface));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-tile:hover {
  color: inherit; transform: translateY(-6px); border-color: rgba(233, 185, 73, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px -12px var(--glow);
}
.project-tile-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.project-tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 12, 0.7)); pointer-events: none; }
.project-tile-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-tile:hover .project-tile-media img { transform: scale(1.06); }
.project-tile-body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; flex: 1; }
.project-tile-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: var(--teal); font-variant-numeric: tabular-nums; }
.project-tile-meta span:first-child { padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(95, 212, 196, 0.4); background: rgba(95, 212, 196, 0.08); }
.project-tile-meta span + span { color: var(--muted); padding-top: 2px; font-weight: 500; }
.project-tile-title { margin: 0; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
.project-tile-excerpt { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .projects-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects-board { grid-template-columns: 1fr; } .projects-page { padding-top: 44px; } }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.fn-hero > *, .prod-top > *, .projects-head > *, .fn-single-header > * { animation: rise 0.7s var(--ease) both; }
.fn-hero > *:nth-child(2), .prod-top > *:nth-child(2) { animation-delay: 0.06s; }
.fn-hero > *:nth-child(3), .prod-top > *:nth-child(3) { animation-delay: 0.12s; }
.fn-hero > *:nth-child(4), .prod-top > *:nth-child(4) { animation-delay: 0.18s; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Veille automatique du Journal ---------- */
.fn-source { display: inline-block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.fn-update-note { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 0.86rem; color: var(--muted); }
.fn-update-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* ---------- Page Réseaux : cartes TikTok et lecteur YouTube au clic ---------- */
.tt-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; max-width: 340px; width: 100%;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tt-card:hover { color: inherit; transform: translateY(-6px); border-color: rgba(254, 44, 85, 0.55); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px -12px rgba(254, 44, 85, 0.4); }
.tt-thumb {
  position: relative; display: block; aspect-ratio: 9 / 14; background-color: #0a0b10; background-size: cover; background-position: center;
  background-image: linear-gradient(160deg, rgba(37, 244, 238, 0.18), rgba(254, 44, 85, 0.22)), linear-gradient(#0c0e15, #0c0e15);
}
.tt-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 8, 12, 0.75)); }
.tt-play, .yt-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: rgba(8, 9, 14, 0.62); border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.tt-play svg, .yt-play svg { width: 26px; height: 26px; margin-left: 3px; }
.tt-card:hover .tt-play { transform: scale(1.12); background: rgba(254, 44, 85, 0.85); }
.tt-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.tt-title { font-size: 0.9rem; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-link { font-size: 0.8rem; font-weight: 600; color: #ff5a7a; }

.yt-facade { background: #000; }
.yt-facade .yt-open { position: absolute; inset: 0; display: block; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
.yt-facade:hover img { transform: scale(1.05); opacity: 0.9; }
.yt-facade:hover .yt-play { transform: scale(1.12); background: #ff0000; border-color: #ff0000; }
.yt-caption { margin: 10px 6px 4px; font-size: 0.86rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
