/*
Theme Name: Epic Ideas (redesign)
Theme URI: https://epicideas.io/
Author: Epic Ideas
Description: Static-fidelity WordPress port of the Epic Ideas redesign - eight page templates, self-hosted variable fonts, EN/FR switch and the local AI cost estimator. Generated from the approved HTML build.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epicideas
*/

/* ============================================================
   Epic Ideas — redesigned site
   Design system + components
   ============================================================ */

/* ---------- Self-hosted variable fonts (site makes no external requests) ---------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url("assets/fonts/sora-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #05070d;
  --bg-2: #080b14;
  --surface: rgba(255, 255, 255, 0.038);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e9edf6;
  --muted: #9aa6bf;
  --muted-2: #6f7c96;

  --accent-1: #6d5df6;
  --accent-2: #22d3ee;
  --accent-3: #f5b84a;
  --accent-1-soft: rgba(109, 93, 246, 0.16);
  --accent-2-soft: rgba(34, 211, 238, 0.14);
  --accent-3-soft: rgba(245, 184, 74, 0.14);

  --grad: linear-gradient(115deg, var(--accent-1) 0%, var(--accent-2) 52%, var(--accent-3) 100%);
  --grad-text: linear-gradient(100deg, #b9b0ff 0%, #7fe6f6 48%, #ffd48a 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 50px -22px rgba(0, 0, 0, 0.9);
  --shadow-2: 0 30px 80px -30px rgba(4, 6, 14, 0.95);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eceff7;
  --surface: rgba(9, 14, 30, 0.035);
  --surface-2: rgba(9, 14, 30, 0.06);
  --border: rgba(9, 14, 30, 0.12);
  --border-strong: rgba(9, 14, 30, 0.22);
  --text: #0b1020;
  --muted: #4d5a75;
  --muted-2: #6f7c96;
  --accent-1-soft: rgba(109, 93, 246, 0.1);
  --accent-2-soft: rgba(34, 211, 238, 0.16);
  --accent-3-soft: rgba(245, 184, 74, 0.2);
  --grad-text: linear-gradient(100deg, #5a49e8 0%, #0b9fbf 50%, #c98a16 100%);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 34px -20px rgba(11, 16, 32, 0.35);
  --shadow-2: 0 26px 60px -28px rgba(11, 16, 32, 0.3);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(109, 93, 246, 0.4); color: #fff; }

/* Page ambience: aurora wash + fine grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 46% at 12% -6%, rgba(109, 93, 246, 0.3), transparent 62%),
    radial-gradient(46% 40% at 92% 4%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(50% 44% at 70% 100%, rgba(245, 184, 74, 0.1), transparent 62%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}
html[data-theme="light"] body::after {
  background-image:
    linear-gradient(to right, rgba(79, 70, 229, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 70, 229, 0.13) 1px, transparent 1px);
}

/* Pointer spotlight (JS-driven) */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 20%), rgba(109, 93, 246, 0.16), transparent 70%);
}
body.has-spotlight .spotlight { opacity: 1; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { position: relative; padding: clamp(72px, 9vw, 132px) 0; }
.section--tight { padding-block: clamp(52px, 6vw, 88px); }
.stack-lg > * + * { margin-top: clamp(40px, 5vw, 72px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.95rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -0.02em; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.06rem, 1.35vw, 1.24rem); color: var(--muted); line-height: 1.7; max-width: 68ch; }
.small { font-size: 0.9rem; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--grad); flex: none;
}
.section-head { max-width: 74ch; }
.section-head h2 { margin-bottom: 0.35em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--btn-bg); color: var(--text); cursor: pointer;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s, background 0.25s;
  will-change: transform; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.34); box-shadow: var(--shadow-1); }
html[data-theme="light"] .btn:hover { border-color: rgba(11, 16, 32, 0.35); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { color: #fff; border-color: transparent; background: linear-gradient(115deg, var(--accent-1), #4f46e5 40%, #0891b2); background-size: 160% 100%; }
.btn--primary:hover { box-shadow: 0 16px 40px -16px rgba(109, 93, 246, 0.75); background-position: 100% 0; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 9px 16px; font-size: 0.86rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); border-bottom: 1px solid transparent; transition: gap 0.25s var(--ease), color 0.25s, border-color 0.25s; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { gap: 12px; color: #fff; border-color: currentColor; }
html[data-theme="light"] .link-arrow:hover { color: var(--accent-1); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 0.82rem; color: var(--muted);
}
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }

/* ---------- Header / nav ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: transparent; }
.progress-bar span { display: block; height: 100%; width: 0%; background: var(--grad); transition: width 0.1s linear; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }
.brand { --logo-h: 58px; display: inline-flex; align-items: center; margin-right: auto; }
.brand .mark {
  /* The official epicideas.io artwork (bulb + script wordmark) ships as white line art on a
     transparent canvas, so the dark theme uses it untouched and the light theme collapses it to
     black ink with brightness(0). One asset, both themes, strictly monochrome. */
  height: var(--logo-h); width: auto; flex: none;
  user-select: none; -webkit-user-drag: none;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
html[data-theme="light"] .brand .mark { filter: brightness(0); }
.brand:hover .mark { transform: translateY(-2px) scale(1.02); opacity: 0.88; }
.site-footer .brand { --logo-h: 76px; }
@media (max-width: 560px) {
  /* Keep the wordmark legible without crowding the menu button. */
  .brand { --logo-h: 50px; }
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--text); background: var(--surface-2); }
.nav-link svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }

.dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 306px; padding: 10px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s; }
.nav-links li:hover > .dropdown, .nav-links li:focus-within > .dropdown, .nav-links li.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-links li:hover > .nav-link svg { transform: rotate(180deg); }
.dropdown a { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: background 0.2s; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--surface-2); outline: none; }
.dropdown .d-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-1-soft); border: 1px solid var(--border); }
.dropdown .d-icon svg { width: 18px; height: 18px; color: #a5b4fc; }
.dropdown strong { display: block; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }
.dropdown span { font-size: 0.79rem; color: var(--muted); line-height: 1.45; }
.dropdown .is-new strong::after { content: "New"; margin-left: 8px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #0b1020; background: var(--accent-3); padding: 2px 6px; border-radius: 5px; }
/* Overview row. "Services" itself links to the overview, but on touch a tap on it only expands
   this panel — so the same destination is offered here explicitly. */
.dropdown .dropdown__all {
  align-items: center; justify-content: space-between; margin-top: 6px;
  padding: 12px 12px 4px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2);
}
.dropdown .dropdown__all:hover { color: var(--text); }
.dropdown .dropdown__all svg { width: 14px; height: 14px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s; }
.icon-btn:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: none; }

/* Language switch — segmented EN | FR control in the header */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-family: var(--font-mono);
}
.lang-switch button {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); padding: 7px 10px; border-radius: 999px; line-height: 1;
  transition: color 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] {
  color: #0b1020; font-weight: 700; background: var(--grad);
  box-shadow: 0 8px 20px -10px rgba(109, 93, 246, 0.9);
}
html[data-theme="light"] .lang-switch button[aria-pressed="true"] { color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.nav-toggle { display: none; }

/* Mobile drawer */
@media (max-width: 1023px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 18px 24px 30px; margin: 0; background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    transform: translateY(-104%); transition: transform 0.4s var(--ease); visibility: hidden;
  }
  body.nav-open .nav-links { transform: none; visibility: visible; }
  .nav-links > li { border-bottom: 1px solid var(--border); }
  .nav-link { padding: 15px 6px; font-size: 1.02rem; width: 100%; justify-content: space-between; border-radius: 8px; }
  .dropdown { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 0 12px 6px; display: none; }
  .nav-links li.is-open > .dropdown { display: block; }
  .nav-links li:hover > .dropdown { display: none; }
  .nav-links li.is-open:hover > .dropdown, .nav-links li.is-open:focus-within > .dropdown { display: block; }
  .nav-links li.is-open > .nav-link svg { transform: rotate(180deg); }
  .dropdown a { padding: 10px 6px; }
  /* Keep the header row on one line once the language control joins it. */
  .nav-actions { gap: 8px; }
  .lang-switch { padding: 2px; gap: 1px; }
  .lang-switch button { padding: 6px 7px; font-size: 0.62rem; letter-spacing: 0.06em; }

  .nav-toggle { display: grid; }
  .nav-toggle .icon-close { display: none; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 104px); overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero-rotator { display: inline-grid; vertical-align: bottom; }
.hero-rotator .word { grid-area: 1 / 1; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-rotator .word.is-on { animation: wordIn 0.5s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px) rotateX(-35deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--border); }
.hero-meta li { font-size: 0.87rem; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; }

/* Hero side panel */
.panel { position: relative; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), transparent); box-shadow: var(--shadow-2); overflow: hidden; }
.panel::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from 210deg, transparent 40%, rgba(109, 93, 246, 0.8), rgba(34, 211, 238, 0.7), transparent 75%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55; pointer-events: none; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.term-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.term { position: relative; width: 100%; text-align: left; display: flex; align-items: baseline; gap: 12px; padding: 15px 16px; border-radius: var(--radius); background: transparent; border: 1px solid transparent; cursor: pointer; transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.term:hover { background: var(--surface-2); border-color: var(--border); }
.term.is-active { background: var(--surface-2); border-color: var(--border-strong); }
.term b { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.03em; }
.term i { font-family: var(--font-mono); font-style: normal; font-size: 0.68rem; color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase; margin-left: auto; }
.term-def { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.term-def p { padding: 0 16px 16px; font-size: 0.94rem; color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; isolation: isolate; padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(360px circle at var(--cx, 50%) var(--cy, 0%), rgba(109, 93, 246, 0.22), transparent 70%);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-2); background: var(--surface); }
.card:hover::before { opacity: 1; }
.card h3, .card h4 { margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card--link { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.card--feature { background: linear-gradient(150deg, rgba(109, 93, 246, 0.16), rgba(34, 211, 238, 0.07) 55%, transparent); border-color: rgba(109, 93, 246, 0.34); }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-1-soft); border: 1px solid var(--border); margin-bottom: 18px; }
.card__icon svg { width: 23px; height: 23px; color: #b7aeff; }
.card--feature .card__icon { background: rgba(245, 184, 74, 0.16); }
.card--feature .card__icon svg { color: var(--accent-3); }
.card__foot { margin-top: auto; padding-top: 16px; }
.card__num { position: absolute; top: 20px; right: 24px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.1em; }

/* Tilt wrapper */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt] .card__icon, [data-tilt] h3 { transform: translateZ(24px); }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 60%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 46px; width: max-content; margin: 0; padding: 0; list-style: none; animation: slide 38s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 0.79rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); opacity: 0.8; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 30px 24px; background: color-mix(in srgb, var(--bg) 86%, transparent); transition: background 0.3s; }
.stat:hover { background: var(--surface-2); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.stat span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Split / alternating feature rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .split-visual { order: -1; } }
.split-index { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; display: block; }

/* Visual mock panels (pure CSS/SVG, no stock photos) */
.visual { position: relative; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), transparent); box-shadow: var(--shadow-1); overflow: hidden; }
.visual .bar-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; font-size: 0.83rem; color: var(--muted); border-bottom: 1px dashed var(--border); }
.visual .bar-row:last-child { border-bottom: 0; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.1s var(--ease); }
.term-code { font-family: var(--font-mono); font-size: 0.78rem; color: #9fe9f6; }

/* ---------- Tabs ---------- */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); width: fit-content; max-width: 100%; }
.tab-btn { padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: color 0.25s, background 0.25s, box-shadow 0.25s; }
.tab-btn:hover { color: var(--text); }
.tab-btn[aria-selected="true"] { color: #fff; background: linear-gradient(115deg, rgba(109, 93, 246, 0.9), rgba(8, 145, 178, 0.85)); box-shadow: 0 10px 26px -14px rgba(109, 93, 246, 0.8); }
html[data-theme="light"] .tab-btn[aria-selected="true"] { color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp 0.45s var(--ease) both; }
/* Exit from each panel: the tabs read as service names, so every panel routes on to its page. */
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.panel-foot__k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--border); }
.acc__item { border-bottom: 1px solid var(--border); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 4px; background: transparent; border: 0; cursor: pointer; text-align: left; font-family: var(--font-display); font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 600; letter-spacing: -0.02em; transition: color 0.2s, padding-left 0.3s var(--ease); }
.acc__btn:hover { color: #fff; padding-left: 10px; }
html[data-theme="light"] .acc__btn:hover { color: var(--accent-1); }
.acc__btn .plus { margin-left: auto; position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform 0.35s var(--ease), background 0.3s; }
.acc__btn .plus::before, .acc__btn .plus::after { content: ""; position: absolute; inset: 50% 6px auto 6px; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.acc__btn .plus::after { transform: translateY(-50%) rotate(90deg); transition: opacity 0.3s, transform 0.35s var(--ease); }
.acc__btn[aria-expanded="true"] .plus { background: var(--accent-1); border-color: transparent; transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .plus::after { opacity: 0; }
.acc__panel { overflow: hidden; max-height: 0; transition: max-height 0.45s var(--ease); }
.acc__panel > div { padding: 0 60px 26px 4px; color: var(--muted); }

/* Same plus/minus affordance on expandable job postings */
.job__head .plus { margin-left: auto; position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s; }
.job__head .plus::before, .job__head .plus::after { content: ""; position: absolute; inset: 50% 6px auto 6px; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.job__head .plus::after { transform: translateY(-50%) rotate(90deg); transition: opacity 0.3s, transform 0.35s var(--ease); }
.job__head[aria-expanded="true"] .plus { background: var(--accent-1); border-color: transparent; transform: rotate(90deg); }
.job__head[aria-expanded="true"] .plus::after { opacity: 0; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--accent-1), var(--accent-2), transparent); opacity: 0.5; }
@media (max-width: 700px) { .timeline::before { left: 19px; } }
.timeline li { position: relative; padding-left: 76px; counter-increment: step; }
@media (max-width: 700px) { .timeline li { padding-left: 58px; } }
.timeline li::before {
  content: "0" counter(step); position: absolute; left: 0; top: 2px; width: 55px; height: 40px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.78rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-strong); color: #b7aeff;
}
@media (max-width: 700px) { .timeline li::before { width: 39px; height: 34px; font-size: 0.68rem; } }
.timeline h4 { margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Tables / matrix ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.92rem; }
.matrix th, .matrix td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.matrix thead th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
.matrix tbody tr { transition: background 0.25s; }
.matrix tbody tr:hover { background: var(--surface-2); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td b { font-family: var(--font-display); letter-spacing: -0.01em; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 34px); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: linear-gradient(180deg, var(--surface-2), transparent); box-shadow: var(--shadow-2); }
@media (max-width: 940px) { .calc { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.87rem; font-weight: 600; margin-bottom: 4px; }
.field .val { font-family: var(--font-mono); font-size: 0.85rem; color: #9fe9f6; }
.field .hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: grab; }
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent-1) var(--fill, 40%), var(--surface-2) var(--fill, 40%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--accent-1); box-shadow: 0 4px 14px rgba(109, 93, 246, 0.6); transition: transform 0.2s var(--ease); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.14); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent-1); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent-1); }
.seg { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); overflow-x: auto; }
.seg button { flex: 1 0 auto; padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 0.83rem; font-weight: 600; cursor: pointer; transition: background 0.25s, color 0.25s; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

.calc-out { display: grid; gap: 16px; align-content: start; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.kpi span { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.kpi b { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; line-height: 1; }
.kpi em { font-style: normal; font-size: 0.78rem; color: var(--muted); display: block; margin-top: 6px; }
.kpi--good b { color: #5eead4; }
.kpi--warn b { color: var(--accent-3); }

.compare { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.compare .row { margin-bottom: 14px; }
.compare .row:last-child { margin-bottom: 0; }
.compare .row > div { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 6px; color: var(--muted); }
.compare .track { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.compare .track i { display: block; height: 100%; border-radius: inherit; transition: width 0.6s var(--ease); }
.compare .api i { background: linear-gradient(90deg, #f5b84a, #ef7d55); }
.compare .self i { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); }
.verdict { font-size: 0.9rem; padding: 14px 16px; border-radius: var(--radius); border: 1px dashed var(--border-strong); color: var(--muted); background: var(--surface); }
.verdict b { color: var(--text); }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 3vw, 38px); border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: linear-gradient(180deg, var(--surface-2), transparent); box-shadow: var(--shadow-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.input-wrap { position: relative; display: block; }
.input-wrap > span.lbl { position: absolute; top: -8px; left: 12px; padding: 0 6px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); background: var(--bg); border-radius: 4px; }
.input-wrap input, .input-wrap textarea, .input-wrap select {
  width: 100%; padding: 15px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 78%, transparent); transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input-wrap textarea { min-height: 118px; resize: vertical; }
.input-wrap input:focus, .input-wrap textarea:focus, .input-wrap select:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 4px var(--accent-1-soft); }
.field-error { display: block; min-height: 1.1em; margin-top: 5px; font-size: 0.78rem; color: #fca5a5; }
.form-note { font-size: 0.82rem; color: var(--muted-2); }
.form-success { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 3vw, 38px); border-radius: var(--radius-lg); border: 1px solid rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.contact-aside { display: grid; gap: 14px; align-content: start; }
.contact-line { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s; }
.contact-line:hover { transform: translateX(4px); border-color: var(--border-strong); }
.contact-line .card__icon { width: 38px; height: 38px; margin: 0; border-radius: 11px; }
/* Office rows double as Google Maps links */
a.contact-line, a.office-link { cursor: pointer; }
.contact-line .map-go { margin-left: auto; align-self: center; flex: none; width: 18px; height: 18px; opacity: 0.4; transition: transform 0.3s var(--ease), opacity 0.3s; }
a.contact-line:hover .map-go { opacity: 1; transform: translateX(3px); }
/* Opens-externally cue, generated in CSS so it needs no translation */
a.office-link::after { content: " \2197"; font-size: 0.85em; opacity: 0.6; }
a.office-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-line strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.contact-line span, .contact-line a { font-size: 0.88rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast-zone { position: fixed; z-index: 70; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 420px); }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 94%, transparent); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); font-size: 0.88rem; animation: toastIn 0.35s var(--ease) both; }
.toast svg { width: 17px; height: 17px; color: #5eead4; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 55; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); transform: translateY(14px); }
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }

svg.icon { width: 20px; height: 20px; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding: clamp(48px, 6vw, 76px) 0 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; font-weight: 400; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 22px 0 34px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--muted-2); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lang-badge { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
/* The footer carries a second, already-French copyright line; in FR the first one is translated,
   so hide the duplicate rather than showing the same sentence twice. */
html[lang="fr"] [data-lang-alt="fr"] { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 104px)); padding-bottom: clamp(36px, 5vw, 62px); overflow: hidden; }
.crumbs { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--accent-2); }

/* ---------- Careers ---------- */
.job-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.job { padding: 0; overflow: hidden; }
.job__head { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; text-align: left; background: transparent; border: 0; cursor: pointer; padding: 24px 26px; transition: background 0.3s; }
.job__head:hover { background: var(--surface-2); }
.job__title { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -0.02em; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; margin-top: 4px; }
.job__body { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.job__inner { padding: 4px 26px 28px; border-top: 1px solid var(--border); margin-top: 0; }
.job__inner h4 { margin: 22px 0 10px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); font-weight: 400; }
.job__inner ul { margin: 0 0 8px; padding-left: 20px; color: var(--muted); font-size: 0.93rem; }
.job__inner li { margin-bottom: 7px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.tag--ft { color: #5eead4; border-color: rgba(94, 234, 212, 0.35); }
.tag--pt { color: var(--accent-3); border-color: rgba(245, 184, 74, 0.35); }

/* ---------- Scorecard checklist ---------- */
.scorecard { display: grid; gap: 18px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.check { display: flex; align-items: flex-start; gap: 13px; padding: 12px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.25s, opacity 0.25s; font-size: 0.94rem; }
.check:hover { background: var(--surface-2); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform 0.2s var(--ease); margin-top: -2px; }
.check input:checked { background: linear-gradient(115deg, var(--accent-1), #0891b2); border-color: transparent; }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.check span { color: var(--muted); transition: color 0.2s; }
.check input:checked + span { color: var(--text); }
.meter-row { display: flex; align-items: center; gap: 14px; padding-top: 6px; border-top: 1px dashed var(--border); }
.meter { position: relative; height: 10px; flex: 1 1 auto; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 0.5s var(--ease); }
.meter-row output, .meter-value { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 620px) { .meter-row { flex-wrap: wrap; } .meter-value { white-space: normal; } }

/* ---------- Misc blocks ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-lg); border: 1px solid rgba(109, 93, 246, 0.35); background: radial-gradient(80% 140% at 12% 0%, rgba(109, 93, 246, 0.28), transparent 60%), radial-gradient(70% 130% at 92% 100%, rgba(34, 211, 238, 0.18), transparent 60%), var(--surface); }
.cta-band::after { content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 74, 0.2), transparent 65%); pointer-events: none; }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: var(--surface); font-size: 0.89rem; color: var(--muted); }
.note svg { width: 18px; height: 18px; flex: none; color: var(--accent-3); margin-top: 2px; }
.def-grid { display: grid; gap: 14px; }

/* ---------- Reduced motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Contact Form 7 (only appears when EI_CF7 is defined) ---------- */
.form-card .wpcf7 { display: grid; gap: 16px; }
.form-card .wpcf7 p { margin: 0; }
.wpcf7-response-output { margin: 4px 0 0; padding: 13px 15px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: var(--surface); font-size: 0.88rem; color: var(--muted); }
.wpcf7-mail-sent-ok { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); color: var(--text); }
.wpcf7-validation-errors, .wpcf7-spam-blocked { border-color: rgba(244, 63, 94, 0.45); background: rgba(244, 63, 94, 0.08); }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 0.78rem; color: #fb7185; }
html[data-theme="light"] .wpcf7-not-valid-tip { color: #be123c; }

/* ---------- Generic page fallback (Terms, Privacy, French pages rendered by index.php) ---------- */
.prose { max-width: 74ch; color: var(--muted); line-height: 1.75; }
.prose > * + * { margin-top: 1.05em; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); color: var(--text); line-height: 1.22; letter-spacing: -0.015em; margin-top: 1.9em; }
.prose h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 0; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.45rem); }
.prose h3 { font-size: 1.1rem; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.prose a:hover { text-decoration-color: var(--accent-1); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0; display: grid; gap: 0.45em; }
.prose li::marker { color: var(--accent-2); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 0; padding-left: 18px; border-left: 2px solid var(--accent-1); color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Footer social row ---------- */
.footer-social { align-items: center; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--text); }
.footer-social svg { width: 17px; height: 17px; flex: none; }
