/* ==========================================================================
   TED Energy Pilot — feuille de style du site
   Thème sombre « cockpit énergie ». Aucune police externe : polices système,
   pour un site léger et sans appel à un service tiers.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #070c18;
  --bg-2: #0a1122;
  --surface: #0f182c;
  --surface-2: #131e36;
  --surface-3: #1a2846;
  --field: #0a1222;
  --line: #1e2b46;
  --line-2: #2b3c60;
  --text: #eef3fb;
  --text-2: #c5d0e3;
  --muted: #8e9dba;
  --solar: #ffb547;
  --solar-2: #ff9636;
  --solar-ink: #1b1204;
  --green: #3ddc8e;
  --blue: #5aa9ff;
  --violet: #a996ff;
  --danger: #ff7a7a;
  --amber-soft: rgba(255, 181, 71, 0.12);
  --green-soft: rgba(61, 220, 142, 0.12);
  --blue-soft: rgba(90, 169, 255, 0.12);
  --violet-soft: rgba(169, 150, 255, 0.12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --glow: 0 12px 36px -12px rgba(255, 158, 58, 0.6);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* --- Base ---------------------------------------------------------------- */

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--solar);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ffd08a;
}

h1,
h2,
h3,
.h3 {
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
}

h3,
.h3 {
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: #ffd9a0;
  overflow-wrap: anywhere;
}

::selection {
  background: rgba(255, 181, 71, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--solar);
  outline-offset: 3px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--solar);
  color: var(--solar-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(880px + var(--gutter) * 2);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--solar);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Boutons ------------------------------------------------------------- */

.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn small {
  font-size: 0.8em;
  font-weight: 600;
  opacity: 0.75;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, #ffc85c 0%, #ff9f3a 100%);
  color: var(--solar-ink);
  box-shadow: var(--glow);
}

.btn--primary:hover {
  color: var(--solar-ink);
  transform: translateY(-1px);
  box-shadow: 0 16px 44px -12px rgba(255, 158, 58, 0.8);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
  color: var(--text);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #3f5586;
  color: var(--text);
}

.btn--discord {
  background: #5865f2;
  color: #fff;
}

.btn--discord:hover {
  background: #4a55d6;
  color: #fff;
}

.btn--sm {
  --btn-h: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.93rem;
}

.btn--sm .icon {
  width: 18px;
  height: 18px;
}

.btn--lg {
  --btn-h: 56px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

.btn.is-done {
  background: var(--green-soft);
  border-color: rgba(61, 220, 142, 0.4);
  color: var(--green);
  box-shadow: none;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading .icon {
  animation: spin 0.9s linear infinite;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text);
}

.center-link {
  margin: 32px 0 0;
  text-align: center;
  color: var(--muted);
}

/* --- En-tête et navigation ----------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 12, 24, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 12, 24, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffc85c, #ff9636);
  color: var(--solar-ink);
  box-shadow: 0 6px 18px -6px rgba(255, 150, 54, 0.75);
}

.brand-mark .icon {
  width: 20px;
  height: 20px;
}

.brand-sub {
  color: var(--muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a[aria-current="page"]:not(.btn) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --- Sections ------------------------------------------------------------ */

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 64px);
}

.section--flush {
  padding-top: 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 85%);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

.section-head .lead {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Cartes -------------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.card > :last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card--hover {
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card-body {
  padding: 20px 22px 22px;
}

.card-body > :last-child {
  margin-bottom: 0;
}

.card-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line-2);
  font-size: 0.92rem;
}

.card-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--solar);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--amber-soft);
  border: 1px solid rgba(255, 181, 71, 0.22);
  color: var(--solar);
}

.icon-tile .icon {
  width: 23px;
  height: 23px;
}

.icon-tile--green {
  background: var(--green-soft);
  border-color: rgba(61, 220, 142, 0.22);
  color: var(--green);
}

.icon-tile--blue {
  background: var(--blue-soft);
  border-color: rgba(90, 169, 255, 0.22);
  color: var(--blue);
}

.icon-tile--violet {
  background: var(--violet-soft);
  border-color: rgba(169, 150, 255, 0.22);
  color: var(--violet);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--ok {
  background: var(--green-soft);
  color: var(--green);
}

.badge--dev {
  background: var(--amber-soft);
  color: var(--solar);
}

.badge--req {
  background: var(--blue-soft);
  color: var(--blue);
}

h2 .badge {
  margin-left: 8px;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.meta-list,
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.meta-list li,
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.meta-list {
  margin: 18px 0 24px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.meta-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--green);
}

.check-list {
  gap: 14px;
}

.check-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--green);
}

.check-list strong {
  color: var(--text);
}

.check-list--compact {
  gap: 10px;
  font-size: 0.95rem;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--blue-soft);
  border: 1px solid rgba(90, 169, 255, 0.28);
  color: var(--text-2);
}

.callout .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}

.callout p {
  margin: 0;
}

.callout strong {
  color: var(--text);
}

.callout--warn {
  background: var(--amber-soft);
  border-color: rgba(255, 181, 71, 0.32);
}

.callout--warn .icon {
  color: var(--solar);
}

.callout--ok {
  background: var(--green-soft);
  border-color: rgba(61, 220, 142, 0.3);
}

.callout--ok .icon {
  color: var(--green);
}

.form-card > .callout:first-child {
  margin: 0 0 22px;
}

/* --- Hero de l'accueil ---------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(44px, 7vw, 92px) clamp(40px, 6vw, 72px);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(620px 420px at 10% 0%, rgba(255, 181, 71, 0.16), transparent 65%),
    radial-gradient(720px 520px at 92% 18%, rgba(90, 169, 255, 0.14), transparent 62%),
    radial-gradient(520px 420px at 60% 100%, rgba(61, 220, 142, 0.08), transparent 60%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(90deg, #ffc85c, #ff9636 45%, #3ddc8e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-badge:hover {
  color: var(--text);
  border-color: #3f5586;
}

.hero-badge b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge .icon {
  width: 16px;
  height: 16px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.95rem;
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checks .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  stroke-width: 2.4;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
}

.platform-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--solar);
}

.hero-visual {
  position: relative;
  margin: 0;
}

.hero-caption {
  margin-top: 12px;
  color: #66769a;
  font-size: 0.78rem;
  text-align: right;
}

/* Tableau de bord illustratif */

.cockpit {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(21, 33, 58, 0.95), rgba(11, 19, 36, 0.98));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.cockpit::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.16), transparent);
  filter: blur(8px);
}

.cockpit-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cockpit-title {
  color: var(--text);
  font-weight: 700;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}

.mode-pill {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 142, 0.3);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.kpi-label .icon {
  width: 15px;
  height: 15px;
}

.kpi--solar .kpi-label .icon {
  color: var(--solar);
}

.kpi--grid .kpi-label .icon {
  color: var(--blue);
}

.kpi--home .kpi-label .icon {
  color: var(--violet);
}

.kpi-value {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.kpi-value small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.kpi--grid .kpi-value {
  color: var(--green);
}

.inverters {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.inv-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.inv-row:first-child {
  border-top: 0;
}

.inv-head {
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inv-head span:last-child {
  text-align: right;
}

.inv-name {
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soc {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.soc-bar {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.soc-bar i {
  display: block;
  width: var(--soc, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1fbf73, #4be39c);
  transition: width 1.2s ease;
}

.inv-power {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.inv-total {
  background: rgba(61, 220, 142, 0.05);
}

.mini-chart {
  margin-top: 12px;
  padding: 12px 12px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.mini-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
}

.legend {
  display: flex;
  gap: 12px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: middle;
}

.l-green {
  background: var(--green);
}

.l-blue {
  background: var(--blue);
}

.mini-chart svg {
  width: 100%;
  height: 76px;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-ted {
  stroke: var(--green);
}

.chart-grid {
  stroke: var(--blue);
}

.chart-zero {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  fill: url(#gradTed);
}

.draw {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 2.2s ease forwards 0.3s;
}

.cockpit-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.cockpit-foot .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* --- Chiffres clés ------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}

.stat {
  padding: 24px 22px;
  background: var(--surface);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* --- Problème / solution ------------------------------------------------- */

.pain {
  display: flex;
  flex-direction: column;
}

.pain-problem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--text) !important;
  font-size: 1.1rem !important;
  font-weight: 700;
  line-height: 1.35;
}

.pain-problem .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--danger);
}

.pain-answer {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}

.pain-answer strong {
  color: var(--green);
}

/* --- Comment ça marche --------------------------------------------------- */

.pipeline {
  display: flex;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.pipe-node {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 16px 10px;
  border-radius: 16px;
  text-align: center;
}

.pipe-node > .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  color: var(--blue);
}

.pipe-node strong {
  color: var(--text);
  font-size: 0.98rem;
}

.pipe-node span:not(.brand-mark) {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.pipe-node--ted {
  border: 1px solid rgba(255, 181, 71, 0.35);
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.1), rgba(255, 181, 71, 0.02));
}

.pipe-node--ted .brand-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}

.pipe-link {
  position: relative;
  flex: 0 1 64px;
  align-self: center;
  min-width: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--solar) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  opacity: 0.75;
  animation: flow 1s linear infinite;
}

.pipe-link::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border-left: 7px solid var(--solar);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.pipe-link--both::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -4px;
  border-right: 7px solid var(--solar);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.flow-step h3 {
  margin: 10px 0 8px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.flow-num {
  color: var(--solar);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Modes --------------------------------------------------------------- */

.mode-card {
  display: flex;
  flex-direction: column;
}

.mode-card .meta-list {
  margin-bottom: 0;
}

.mode-card--featured {
  border-color: rgba(61, 220, 142, 0.35);
  background: linear-gradient(180deg, rgba(61, 220, 142, 0.07), var(--surface) 45%);
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.mode-tag .icon {
  width: 16px;
  height: 16px;
}

.mode-tag--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.mode-tag--green {
  background: var(--green-soft);
  color: var(--green);
}

.mode-tag--amber {
  background: var(--amber-soft);
  color: var(--solar);
}

/* --- Démonstration vidéo ------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.browser-frame {
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: #0b1324;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #111b30;
}

.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3a5c;
}

.browser-url {
  overflow: hidden;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050a16;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0b1324;
  cursor: pointer;
  overflow: hidden;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 22, 0.05), rgba(5, 10, 22, 0.45));
  transition: background-color 0.3s ease;
}

.video-facade:hover img {
  transform: scale(1.02);
  filter: brightness(0.9);
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc85c, #ff9636);
  color: var(--solar-ink);
  box-shadow: 0 0 0 10px rgba(255, 181, 71, 0.18), var(--glow);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.play-btn .icon {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.video-facade:hover .play-btn,
.video-facade:focus-visible .play-btn {
  transform: translate(-50%, -50%) scale(1.07);
}

.video-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-card h3 {
  margin-bottom: 6px;
}

.video-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--solar) !important;
  font-family: var(--font-mono);
  font-size: 0.82rem !important;
  font-weight: 700;
}

.video-meta .icon {
  width: 15px;
  height: 15px;
}

/* --- Compatibilité ------------------------------------------------------- */

.compat-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.compat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.compat-item > .icon {
  width: 26px;
  height: 26px;
  color: var(--text-2);
}

.compat-item strong {
  color: var(--text);
}

.checker {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.checker-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--field);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.check-row:hover {
  border-color: var(--line-2);
}

.check-row input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}

.check-row:has(input:checked) {
  border-color: rgba(61, 220, 142, 0.45);
  background: rgba(61, 220, 142, 0.06);
}

.check-row strong {
  color: var(--text);
}

.checker-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.checker-result p {
  margin: 0;
}

.checker-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.checker-score strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 2.4rem;
  line-height: 1;
}

.checker-score span {
  color: var(--muted);
}

.checker-result.is-ready {
  border-color: rgba(61, 220, 142, 0.45);
}

.checker-result.is-ready .checker-score strong {
  color: var(--green);
}

.checker-missing {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody th {
  color: var(--text);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* --- Plateformes et communauté ------------------------------------------- */

.platform-card {
  display: flex;
  flex-direction: column;
}

.platform-card .meta-list {
  margin-top: 4px;
}

.platform-card .btn {
  margin-top: auto;
}

.platform-card--featured {
  border-color: rgba(255, 181, 71, 0.45);
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.08), var(--surface) 45%);
}

.ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--solar);
  color: var(--solar-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.illustration {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.illustration img {
  width: 100%;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.faq-item summary {
  position: relative;
  padding: 19px 56px 19px 22px;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--solar);
  border-bottom: 2px solid var(--solar);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--text-2);
}

.faq-group + .faq-group {
  margin-top: 44px;
}

.faq-group > .h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  border-color: #3f5586;
  color: var(--text);
}

/* --- Bandeau d'appel à l'action ------------------------------------------ */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(255, 181, 71, 0.22), transparent 70%),
    radial-gradient(600px 300px at 85% 100%, rgba(61, 220, 142, 0.16), transparent 70%),
    linear-gradient(180deg, #111c33, #0b1428);
  text-align: center;
}

.cta-band h2 {
  max-width: 760px;
  margin-inline: auto;
}

.cta-band .lead {
  margin: 0 auto;
}

.cta-band .cta-actions {
  justify-content: center;
}

/* --- Pages intérieures --------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 60px);
}

.page-hero--compact {
  padding-bottom: clamp(28px, 4vw, 44px);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-hero .hero-actions {
  margin-top: 28px;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

.prereq {
  border-color: rgba(61, 220, 142, 0.3);
}

.prereq .h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.prereq .h3 .icon {
  color: var(--green);
}

.prereq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
}

.prereq-list strong {
  color: var(--text);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 36px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tab {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab .icon {
  width: 20px;
  height: 20px;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tab[aria-selected="true"] {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text);
}

.tab[aria-selected="true"] .icon {
  color: var(--solar);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel > .install-grid > div > h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.install-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.install-aside .card h3 {
  margin-bottom: 12px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(255, 181, 71, 0.28);
  background: var(--amber-soft);
  color: var(--solar);
  font-family: var(--font-mono);
  font-weight: 800;
}

.step h3 {
  margin: 8px 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step p + p {
  margin-top: 10px;
}

.code {
  margin: 18px 0 0;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #050a16;
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--line);
  background: #0c1426;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--text);
  border-color: #3f5586;
}

.copy-btn .icon {
  width: 15px;
  height: 15px;
}

.copy-btn.is-copied {
  border-color: rgba(61, 220, 142, 0.45);
  color: var(--green);
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #d7e3f7;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  tab-size: 2;
}

.code pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.var-list {
  display: grid;
  gap: 4px;
  margin: 0;
}

.var-list dt {
  margin-top: 10px;
}

.var-list dt:first-child {
  margin-top: 0;
}

.var-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  max-width: 76ch;
}

.prose h2 {
  margin-top: 44px;
  font-size: 1.45rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 20px;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--text);
}

.error-page {
  min-height: 60vh;
}

.error-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--solar);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
}

.error-code .icon {
  width: 30px;
  height: 30px;
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

/* --- Téléchargement ------------------------------------------------------ */

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.form-card {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.progress {
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.progress-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.progress-step i {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  font-style: normal;
}

.progress-step.is-active {
  border-bottom-color: var(--solar);
  color: var(--text);
}

.progress-step.is-active i {
  border-color: transparent;
  background: var(--solar);
  color: var(--solar-ink);
}

.progress-step.is-done {
  border-bottom-color: var(--green);
  color: var(--text-2);
}

.progress-step.is-done i {
  border-color: transparent;
  background: var(--green);
  color: #04150c;
}

.lead-form {
  position: relative;
}

fieldset.field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  align-content: start;
}

.field label,
.field-label {
  padding: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

legend.field-label {
  margin-bottom: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.field-row .field {
  margin-bottom: 8px;
}

.hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.field .hint {
  margin: 0;
}

.hint--suggest {
  color: var(--solar);
  font-weight: 600;
}

.hint--suggest button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #5d6d8e;
}

.input:focus {
  outline: none;
  border-color: var(--solar);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.16);
}

textarea.input {
  min-height: 100px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e9dba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.input--sm {
  min-height: 42px;
  font-size: 0.93rem;
}

.field.has-error .input {
  border-color: var(--danger);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 600;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: block;
}

.choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--field);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.choice-body .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  color: var(--muted);
}

.choice-body strong {
  color: var(--text);
  font-size: 0.97rem;
}

.choice-body span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.choice:hover .choice-body {
  border-color: #3f5586;
}

.choice input:checked + .choice-body {
  border-color: var(--solar);
  background: rgba(255, 181, 71, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.12);
}

.choice input:checked + .choice-body .icon {
  color: var(--solar);
}

.choice input:focus-visible + .choice-body {
  outline: 2px solid var(--solar);
  outline-offset: 2px;
}

.more-details {
  margin: 0 0 22px;
}

.more-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.more-details summary::-webkit-details-marker,
.alt-downloads summary::-webkit-details-marker {
  display: none;
}

.more-details summary .icon,
.alt-downloads summary .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.more-details[open] summary .icon,
.alt-downloads[open] summary .icon {
  transform: rotate(180deg);
}

.more-details-body {
  margin-top: 16px;
}

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--text-2);
  font-weight: 600;
}

.form-status.is-error {
  color: var(--danger);
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.download-success:focus {
  outline: none;
}

.success-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.success-head h2 {
  margin-bottom: 4px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.success-head p {
  margin: 0;
}

.success-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(61, 220, 142, 0.35);
  background: var(--green-soft);
  color: var(--green);
}

.success-icon .icon {
  width: 28px;
  height: 28px;
}

.download-success .callout {
  margin: 0 0 18px;
}

.dl-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--field);
}

.dl-step .num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--amber-soft);
  color: var(--solar);
  font-family: var(--font-mono);
  font-weight: 800;
}

.dl-step h3 {
  margin: 5px 0 4px;
  font-size: 1.05rem;
}

.dl-step p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.version-row select {
  width: auto;
  min-width: 220px;
}

.alt-downloads {
  margin-top: 14px;
}

.alt-downloads summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.alt-downloads ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 22px;
  font-size: 0.92rem;
}

.alt-downloads a[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
  text-decoration: line-through;
}

.success-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.download-aside {
  display: grid;
  gap: 16px;
}

.aside-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.aside-card h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.aside-card--muted {
  background: transparent;
}

.aside-card .link-arrow {
  margin-top: 16px;
  font-size: 0.95rem;
}

.version-card {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.version-card strong {
  color: var(--text);
  font-size: 1.3rem;
}

/* --- Pied de page et barre mobile ---------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #060a14;
  padding-block: 56px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #6d7c99;
  font-size: 0.85rem;
}

.mobile-cta {
  display: none;
}

/* --- Animations ---------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Filet de sécurité : si le script ne se charge pas, le contenu s'affiche. */
.js:not(.reveal-ready) .reveal {
  animation: reveal-fallback 0.01s linear 2.5s forwards;
}

@keyframes reveal-fallback {
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 142, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 142, 0); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes flow {
  to { background-position: 24px 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@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;
  }
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
  .compat-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - var(--header-h));
    padding: 12px var(--gutter) 20px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 1.02rem;
  }

  .nav-cta {
    margin: 10px 0 0;
    min-height: 52px;
  }

  .hero-grid,
  .showcase,
  .community,
  .download-layout,
  .install-grid,
  .checker {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    max-width: 620px;
  }

  .install-aside {
    position: static;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .pipe-node {
    width: 100%;
    max-width: 360px;
  }

  .pipe-link {
    flex: none;
    width: 2px;
    height: 34px;
    min-width: 0;
    background: repeating-linear-gradient(180deg, var(--solar) 0 6px, transparent 6px 12px);
    background-size: 2px 24px;
    animation-name: flow-vertical;
  }

  .pipe-link::after {
    right: auto;
    left: -4px;
    top: auto;
    bottom: -2px;
    border-top: 7px solid var(--solar);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 0;
  }

  .pipe-link--both::before {
    left: -4px;
    top: -2px;
    border-bottom: 7px solid var(--solar);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 0;
  }

  .download-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-aside .aside-card:first-child {
    grid-column: 1 / -1;
  }
}

@keyframes flow-vertical {
  to { background-position: 0 24px; }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: block;
    transform: translateY(160%);
    transition: transform 0.3s ease;
  }

  .mobile-cta.is-visible {
    transform: none;
  }

  .mobile-cta .btn {
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.9), var(--glow);
  }

  .site-footer {
    padding-bottom: 100px;
  }

  .grid-2,
  .grid-3,
  .flow,
  .prereq-list,
  .field-row,
  .download-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .compat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .choice-body {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
  }

  .choice-body .icon {
    grid-row: span 2;
    margin: 0;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .success-foot {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .cockpit {
    padding: 14px;
  }

  .kpis {
    gap: 6px;
  }

  .kpi {
    padding: 10px 8px 8px;
  }

  .kpi-value {
    font-size: 1.05rem;
  }

  .inv-row {
    grid-template-columns: minmax(0, 1fr) 58px 76px;
    gap: 8px;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .inv-head {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .soc-bar {
    display: none;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .compat-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step,
  .dl-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-step span {
    display: none;
  }

  .progress-step {
    justify-content: center;
  }

  .btn-row .btn {
    width: 100%;
  }

  .version-row select {
    min-width: 0;
    width: 100%;
  }
}
