/* ===== JustUp — pages produit (/fonctionnalites/…) =====
   Pages statiques comme le blog (pas de bundle JS, CSP script-src 'self').
   Jetons repris de DESIGN.md : néon = action, #077A3F = texte vert, violet = Justy uniquement. */
:root {
  --bg: #f3f7f8;
  --surface: #ffffff;
  --text: #1d252c;
  --text-2: #476373;
  --muted: #55707f;
  --neon: #05FFAD;
  --green-text: #077A3F;
  --green-pale: #E8FFF4;
  --ink: #0A0E13;
  --violet: #C535FF;
  --violet-text: #7A1FC2;
  --violet-pale: #F0E6FF;
  --border: rgba(157, 184, 195, 0.35);
  --shadow: 0 4px 24px rgba(29, 37, 44, 0.06);
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.65;
}
a { color: var(--green-text); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--green-text); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 14px; border-radius: 999px; }

/* En-tête (même gabarit que le blog) */
.fx-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.fx-header-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fx-logo { height: 26px; width: auto; }
.fx-logo .logo-text { fill: var(--text); }
.fx-nav { display: flex; align-items: center; gap: 4px; }
.fx-nav a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.fx-nav a:hover { background: var(--bg); color: var(--text); }
.fx-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.fx-nav .fx-cta-nav { background: var(--neon); color: var(--ink); font-weight: 600; }
.fx-nav .fx-cta-nav:hover { background: var(--neon); color: var(--ink); filter: brightness(1.06); }

.fx-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Fil d'Ariane */
.fx-crumbs { font-size: 13px; color: var(--muted); padding-top: 28px; }
.fx-crumbs a { color: var(--muted); text-decoration: none; }
.fx-crumbs a:hover { color: var(--text); }

/* Héros */
.fx-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center; padding: 36px 0 72px;
}
.fx-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-text); margin-bottom: 16px;
}
.fx-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); }
.fx-hero h1 {
  font-size: clamp(34px, 4.2vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em;
}
.fx-lede { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 560px; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none;
}
.fx-btn--primary { background: var(--neon); color: var(--ink); box-shadow: 0 0 20px rgba(5, 255, 173, 0.35); }
.fx-btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.fx-btn--ghost { color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.fx-btn--ghost:hover { border-color: var(--text-2); }
.fx-trust { margin-top: 18px; font-size: 13px; color: var(--muted); }

.fx-visual {
  border-radius: var(--radius-md); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(29, 37, 44, 0.10);
}
.fx-visual--dark { background: #080c12; border-color: rgba(255, 255, 255, 0.08); }
.fx-visual figcaption { font-size: 13px; color: var(--muted); padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.fx-visual--dark figcaption { color: #8aa6b4; background: #0d131b; border-top-color: rgba(255, 255, 255, 0.08); }

/* Sections */
.fx-section { padding: 72px 0; border-top: 1px solid var(--border); }
.fx-section h2 {
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  max-width: 760px;
}
.fx-section > .fx-wrap > p, .fx-intro { margin-top: 14px; color: var(--text-2); max-width: 720px; }

.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.fx-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow);
}
.fx-card h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.fx-card p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.fx-card .fx-justy-line {
  display: flex; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--violet-text);
}
.fx-card .fx-justy-line::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--violet); }

/* Deux colonnes texte + visuel */
.fx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 36px; }
.fx-split ul { list-style: none; display: grid; gap: 14px; }
.fx-split li { padding-left: 22px; position: relative; color: var(--text-2); }
.fx-split li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); }
.fx-split li strong { color: var(--text); }

/* Bloc Justy (violet = Justy) */
.fx-justy {
  margin-top: 36px; border-radius: var(--radius-md); padding: 28px;
  background: var(--violet-pale); border: 1px solid rgba(197, 53, 255, 0.25);
}
.fx-justy-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet-text); }
.fx-justy-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.fx-justy p { margin-top: 8px; color: var(--text); }
.fx-justy ul { margin: 12px 0 0 20px; color: var(--text); }
.fx-justy li { margin: 6px 0; }

/* Tableau */
.fx-table { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; font-size: 15px; box-shadow: var(--shadow); }
.fx-table th, .fx-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.fx-table th { background: var(--green-pale); color: var(--green-text); font-weight: 700; }

/* FAQ */
.fx-faq { margin-top: 28px; display: grid; gap: 14px; max-width: 860px; }
.fx-faq h3 { font-size: 18px; font-weight: 600; }
.fx-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 22px; }
.fx-faq-item p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* Lire aussi / autres fonctionnalités */
.fx-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.fx-link {
  display: block; text-decoration: none; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px;
}
.fx-link:hover { border-color: var(--green-text); }
.fx-link strong { display: block; font-size: 16px; }
.fx-link span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-2); }

/* Appel à l'action final */
.fx-cta {
  margin: 0 auto 88px; max-width: 1112px; border-radius: var(--radius-lg); padding: 48px 36px;
  background: #0A0E13; color: #f3f7f8; text-align: center;
}
.fx-cta h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.fx-cta p { margin: 12px auto 26px; color: #9db8c3; max-width: 560px; }

.fx-footer { text-align: center; font-size: 13px; color: var(--muted); padding: 0 24px 48px; }
.fx-footer a { color: var(--muted); }

@media (max-width: 960px) {
  .fx-hero, .fx-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .fx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fx-header-inner, .fx-wrap { padding-left: 16px; padding-right: 16px; }
  .fx-nav a:not(.fx-cta-nav) { display: none; }
  .fx-hero { padding: 24px 0 48px; }
  .fx-section { padding: 48px 0; }
  .fx-grid { grid-template-columns: minmax(0, 1fr); }
  .fx-card { padding: 22px; }
  .fx-cta { margin: 0 16px 64px; padding: 36px 20px; }
  .fx-table, .fx-table tbody, .fx-table tr, .fx-table td { display: block; width: 100%; }
  .fx-table { background: none; box-shadow: none; }
  .fx-table tr:first-child { display: none; }
  .fx-table tr { background: var(--surface); border-radius: var(--radius-sm); padding: 8px 0; margin-bottom: 10px; box-shadow: var(--shadow); }
  .fx-table td { border-bottom: 0; padding: 6px 16px; }
  .fx-table td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--green-text); }
}
@media (prefers-reduced-motion: reduce) { .fx-btn--primary:hover { transform: none; } }

/* Étiquette de section Justy : violet = Justy */
.fx-label--ai { color: var(--violet-text); }
.fx-label--ai::before { background: var(--violet); }
.fx-split--solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; }

/* Maquette HTML : fiche technique calculée */
.fx-mock { font-size: 14px; }
.fx-mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.fx-mock-head strong { font-size: 16px; }
.fx-mock-head span { font-size: 12px; color: var(--muted); }
.fx-mock-body { padding: 16px 22px 20px; }
.fx-mock-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text); margin: 14px 0 6px; }
.fx-mock-label:first-child { margin-top: 0; }
.fx-mock-ing { color: var(--text); line-height: 1.55; }
.fx-mock-ing b, .fx-mock-traces b { font-weight: 700; }
.fx-mock-traces { margin-top: 4px; color: var(--text-2); }
.fx-mock-allergens { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fx-mock-allergens li { display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--bg); font-size: 13px; }
.fx-mock-allergens li span { color: var(--muted); font-size: 12px; }
.fx-mock-allergens li.is-on { background: #FFF0EB; }
.fx-mock-allergens li.is-on span { color: #B04C00; font-weight: 600; }
.fx-mock-allergens li.is-trace { background: #FFF4D6; }
.fx-mock-allergens li.is-trace span { color: #7A5A00; font-weight: 600; }
.fx-mock-nutri { width: 100%; border-collapse: collapse; }
.fx-mock-nutri td { padding: 5px 0; border-bottom: 1px solid var(--border); }
.fx-mock-nutri td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fx-mock-nutri td.sub { padding-left: 14px; color: var(--text-2); }
@media (max-width: 640px) { .fx-mock-allergens { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
