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

:root {
  --black: #080a08;
  --white: #f4f5f0;
  --green: #00D47E;
  --green-dark: #009958;
  --green-pale: #d4f5e5;
  --accent: #E8FF5A;
  --muted: #a8b5a2;
  --card: #0f120e;
  --border: #1e241c;
  --border-light: #2c3529;
}

html { scroll-behavior: smooth; }
section[id], div[id] { scroll-margin-top: 80px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,10,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color .2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--green);
  color: var(--black) !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background .2s, transform .15s !important;
}

.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-left {
  position: relative;
  z-index: 2;
}

.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ender-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0,212,126,0.08));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0,212,126,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(232,255,90,0.04) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,126,0.12);
  border: 1px solid rgba(0,212,126,0.3);
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: fadeUp .6s ease both;
}

.hero-tag::before { content: '♻'; font-size: 14px; }

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  word-break: break-word;
  animation: fadeUp .7s .1s ease both;
}

h1 .accent { color: var(--green); }
h1 .sub-accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-top: 24px;
  max-width: 520px;
  line-height: 1.7;
  animation: fadeUp .7s .2s ease both;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  animation: fadeUp .7s .3s ease both;
}

.pill {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
  animation: fadeUp .7s .4s ease both;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ── STATS BAND ── */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-item {
  background: var(--black);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 200px;
}

/* ── SECTIONS ── */
section {
  padding: 120px 48px;
}

.section-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.section-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── PROBLÈME ── */
.problem-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

.problem-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.problem-text p strong { color: var(--white); font-weight: 500; }

.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-card {
  background: var(--black);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.problem-card-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--green);
  line-height: 1;
  flex-shrink: 0;
}

.problem-card-txt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.problem-card-txt strong { color: var(--white); display: block; font-size: 15px; font-weight: 500; }

/* ── PROCESSUS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 64px;
}

.process-step {
  background: var(--card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .2s;
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}

.process-step:hover { background: #141a13; }
.process-step:hover::before { transform: scaleX(1); }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.05em;
}

.step-icon { font-size: 32px; }

.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── KITS ── */
.kits-section { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.kits-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.kits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kit-card {
  background: var(--black);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, transform .2s;
}

.kit-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.kit-icon { font-size: 36px; }

.kit-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}

.kit-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.kit-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--green);
}

.kit-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kit-items li {
  font-size: 12px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.kit-items li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--green);
}

/* ── MODÈLE ÉCONOMIQUE ── */
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.rev-card {
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rev-card:nth-child(1) { background: rgba(0,212,126,.08); border: 1px solid rgba(0,212,126,.2); }
.rev-card:nth-child(2) { background: rgba(232,255,90,.06); border: 1px solid rgba(232,255,90,.2); }
.rev-card:nth-child(3) { background: rgba(91,142,247,.06); border: 1px solid rgba(91,142,247,.2); }

.rev-pct {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.rev-card:nth-child(1) .rev-pct { color: var(--green); }
.rev-card:nth-child(2) .rev-pct { color: var(--accent); }
.rev-card:nth-child(3) .rev-pct { color: #5b8ef7; }

.rev-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.rev-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.rev-panier {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  display: inline-block;
}

/* ── ROADMAP ── */
.roadmap-section { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 64px;
}

.phase {
  background: var(--black);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.phase-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--white);
}

.phase-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.phase-items li::before {
  content: '→';
  color: var(--green);
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  margin-top: 2px;
}

.phase-etp {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--green);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.phase-etp span {
  display: block;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

/* ── PARTENAIRES ── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.partner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .2s;
}

.partner-card:hover { border-color: var(--border-light); }

.partner-icon { font-size: 28px; flex-shrink: 0; }

.partner-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 8px;
}

.partner-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── CONTACT ── */
.contact-section {
  padding: 120px 48px;
  text-align: center;
}

.contact-inner {
  max-width: 780px;
  margin: 0 auto;
}

.contact-inner h2 { margin-bottom: 16px; }
.contact-inner > p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.contact-item a { color: var(--green); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-link:hover { color: var(--green); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── FORMULAIRE ── */
.form-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.profil-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.profil-btn {
  background: var(--black);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}

.profil-btn:hover { border-color: var(--green); color: var(--white); }
.profil-btn.active { background: var(--green); border-color: var(--green); color: var(--black); }

.form-body { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.req { color: var(--green); }

.form-input {
  background: var(--black);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.form-input:focus { border-color: var(--green); }
.form-input::placeholder { color: #3a3f38; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6356' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }

.profil-fields { display: none; flex-direction: column; gap: 20px; }
.profil-fields.active { display: flex; }

.form-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-rgpd input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; width: 16px; height: 16px; }
.form-rgpd span { font-size: 12px; color: var(--muted); line-height: 1.5; }

.form-submit { width: 100%; justify-content: center; padding: 16px; font-size: 16px; border-radius: 12px; }
.form-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.form-error {
  font-size: 13px;
  color: #f43f5e;
  background: rgba(244,63,94,.08);
  border: 1px solid rgba(244,63,94,.2);
  border-radius: 10px;
  padding: 12px 16px;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-icon { font-size: 48px; }
.success-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 24px; color: var(--white); }
.form-success p { font-size: 15px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .hero { padding: 100px 24px 60px; }
  .stats-band { padding: 0; grid-template-columns: 1fr; }
  .stat-item { padding: 32px 24px; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .kits-header { grid-template-columns: 1fr; gap: 24px; }
  .kits-grid { grid-template-columns: 1fr; }
  .revenue-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 80px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   SECTION ÉCOSYSTÈME ANIMÉ
═══════════════════════════════════════ */

#ecosysteme {
  scroll-margin-top: 80px;
}

.eco-wrapper {
  margin-top: 48px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  padding: 32px 24px 24px;
}

.eco-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.eco-leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}

.eco-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Variables SVG inline via CSS */
#eco-svg {
  --eco-card: #0f120e;
  --eco-benef: #1a1f19;
  --eco-border: #2c3529;
}

/* Nœuds cliquables */
.eco-node {
  cursor: pointer;
  transition: opacity .2s;
}
.eco-node:hover {
  opacity: .82;
  filter: brightness(1.1);
}
.eco-node-center {
  cursor: pointer;
}
.eco-node-center:hover rect {
  stroke-width: 2.5;
}

/* Typographie SVG */
.eco-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: #f4f5f0;
}
.eco-title-green { fill: #00D47E; }
.eco-title-yellow { fill: #d4c000; }
.eco-title-blue { fill: #85B7EB; }

.eco-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  fill: #a8b5a2;
}

.eco-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  fill: #00D47E;
  opacity: .75;
}
.eco-lbl-blue { fill: #378ADD; }

/* Animations flux */
@keyframes eco-flow-anim {
  from { stroke-dashoffset: 60; }
  to   { stroke-dashoffset: 0; }
}
@keyframes eco-pulse-anim {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

.eco-pulse {
  animation: eco-pulse-anim 2.8s ease-in-out infinite;
}

.eco-flow {
  stroke-dasharray: 8 4;
  animation: eco-flow-anim 1.8s linear infinite;
}
.eco-flow-slow {
  animation-duration: 2.6s;
}
.eco-flow-rev {
  animation-direction: reverse;
}
.eco-flow-yellow {
  animation-duration: 2.0s;
}
.eco-flow-blue {
  animation-duration: 2.4s;
}
.eco-flow-dim {
  animation-duration: 3s;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .eco-flow, .eco-pulse {
    animation: none;
  }
}

@media (max-width: 900px) {
  .eco-wrapper { padding: 20px 12px 16px; }
}

/* ═══════════════════════════════════════
   ANIMATION ENDER 3 EXPLOSION
═══════════════════════════════════════ */

.ep-label {
  font-family: 'DM Mono', monospace;
  pointer-events: none;
}

/* Pièces — transition CSS pour l'explosion */
.ep {
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1s ease;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* Labels explosion */
.ep-labels-exploded {
  transition: opacity 0.8s ease 1s;
}

/* Ventilo qui tourne */
@keyframes fan-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
#p-fan circle, #p-fan line {
  transform-origin: 166px 156px;
}

/* Glow plateau chauffant */
@keyframes bed-pulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}
.ep-bed { animation: bed-pulse 2s ease-in-out infinite; }

/* Responsive hero */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right {
    order: -1;
  }
  #ender-svg {
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  #ender-svg { max-width: 240px; }
}

/* ═══════════════════════════════════════
   PANIER MACHINES (don)
═══════════════════════════════════════ */

.machines-bloc {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.machine-inputs {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(0,212,126,0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

.btn-add-machine {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s, color .15s;
  align-self: flex-start;
}
.btn-add-machine:hover {
  background: var(--green);
  color: var(--black);
}

.machine-error {
  margin-top: 8px;
  font-size: 13px;
  color: #e05252;
}

.machine-list {
  margin-top: 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.machine-list-header {
  background: var(--card);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.machine-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.machine-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  animation: fadeUp .3s ease both;
}
.machine-item:last-child { border-bottom: none; }

.machine-item-info {
  font-size: 14px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.machine-item-info strong {
  color: var(--green);
  font-weight: 600;
}

.machine-item-etat {
  font-size: 11px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 2px 10px;
}

.machine-item-del {
  background: transparent;
  border: 1px solid #3a2020;
  color: #e05252;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.machine-item-del:hover {
  background: rgba(224,82,82,0.15);
  border-color: #e05252;
}

/* ── Footer légal ── */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.footer-legal a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: .6;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-legal a:hover { opacity: 1; }
.footer-legal span { color: var(--text-muted); opacity: .3; font-size: 0.8rem; }
