/* ─── HERO ─── */
  .hero {
    position: relative;
    min-height: 100vh;
    background: #0a1f14;
    color: var(--paper);
    overflow: hidden;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(40px, 6vw, 80px);
    /* reserves room for .qai-floating (absolute, top:100px, ~140px tall) */
    padding-top: 280px;
  }
  .hero-bg { position: absolute; inset: 0; z-index: 0; }
  .hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
      linear-gradient(100deg, rgba(10,31,20,0.82) 0%, rgba(10,31,20,0.55) 50%, rgba(10,31,20,0.18) 100%),
      linear-gradient(180deg, rgba(10,31,20,0.45) 0%, rgba(10,31,20,0.15) 40%, rgba(10,31,20,0.88) 100%),
      radial-gradient(ellipse 800px 600px at 75% 60%, rgba(132,212,154,0.12), transparent 60%);
    pointer-events: none;
  }
  .hero-product {
    position: absolute;
    right: clamp(-40px, 6vw, 80px);
    bottom: 0;
    height: 92vh;
    max-height: 1100px;
    z-index: 2;
    pointer-events: none;
  }
  .hero-product img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 60px 80px rgba(0,0,0,0.5)) drop-shadow(0 0 120px rgba(132,212,154,0.18));
  }
  .hero-product::before {
    content:'';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 30%;
    background: radial-gradient(ellipse at center bottom, rgba(132,212,154,0.35), transparent 70%);
    filter: blur(40px);
    z-index: -1;
  }
  .hero-grid {
    position: relative; z-index: 3;
    width: 100%;
    padding: 0 var(--gutter);
  }
  .hero-grid > div {
    max-width: min(700px, 58vw);
  }
  .qai-floating {
    position: absolute; top: 100px;
    left: var(--gutter); right: var(--gutter);
    z-index: 4; max-width: min(760px, 58vw);
  }
  .hero-title {
    font-size: clamp(44px, 6.8vw, 112px);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 0.96;
  }
  .hero-title em { font-style: normal; font-weight: 300; color: var(--algae); }
  .hero-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }

  /* ─── QAI LIVE BAR ─── */
  .qai-live {
    background: rgba(10,31,20,0.55);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px; padding: 16px 20px;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: grid; grid-template-columns: auto auto 1fr auto auto auto auto;
    align-items: center; gap: 24px;
  }
  .qai-live > .qai-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.1); }
  .qai-h-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .qai-h-head .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; display: flex; align-items: center; gap: 8px; }
  .qai-h-head .score { display: flex; align-items: baseline; gap: 6px; }
  .qai-h-head .score .v { font-size: 32px; font-weight: 300; letter-spacing: -0.03em; color: var(--algae); line-height: 1; }
  .qai-h-head .score .u { font-size: 11px; opacity: 0.6; }
  .qai-h-graph { height: 44px; min-width: 120px; }
  .qai-h-graph svg { width:100%; height:100%; overflow: visible; }
  .qai-h-metric { display: flex; flex-direction: column; gap: 4px; min-width: 80px; }
  .qai-h-metric .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
  .qai-h-metric .val { font-size: 20px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; color: var(--paper); }
  .qai-h-metric .val .u { font-size: 10px; opacity: 0.5; margin-left: 4px; }
  .qai-h-metric .val.good { color: var(--algae); }

  /* ─── STATS STRIP ─── */
  .stats-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .stats-strip .stat { padding: 32px var(--gutter) 32px 0; border-right: 1px solid var(--line); }
  .stats-strip .stat:last-child { border-right: none; }
  .stats-strip .stat:first-child { padding-left: var(--gutter); }

  /* ─── METHOD STRIP ─── */
  .method-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; border-bottom: 1px solid var(--line);
  }
  .method-step {
    padding: 48px 36px;
    border-right: 1px solid var(--line);
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .method-step:last-child { border-right: none; }
  .method-num {
    font-size: clamp(40px, 4.5vw, 64px);
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--algae);
    margin-bottom: 28px;
    display: block;
    font-family: var(--font-sans);
  }
  .method-icon {
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--leaf); margin-bottom: 20px;
  }
  .method-step h3 { font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 12px; }
  .method-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

  /* ─── PRODUCT FEATURE ─── */
  .product-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .product-feature .visual {
    aspect-ratio: 4/5; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--mist), var(--cream));
    position: relative; overflow: hidden;
  }
  .product-feature .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8% 12%; }
  .product-feature .visual::after {
    content:''; position:absolute; inset:0;
    background: radial-gradient(ellipse at 50% 90%, rgba(132,212,154,0.5), transparent 60%);
    mix-blend-mode: multiply; opacity: 0.3;
  }

  /* ─── RESULTS (stats large) ─── */
  .results-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
    background: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 56px;
  }
  .result-card {
    background: var(--cream);
    padding: 48px 40px;
    transition: background 200ms;
  }
  .result-card:hover { background: #edf0e9; }
  .result-card.featured {
    grid-row: span 2;
    background: var(--ink);
    padding: 56px 48px;
  }
  .result-card.featured:hover { background: #0f2a1a; }
  .result-card.featured .result-num { color: var(--algae); font-size: clamp(64px, 7vw, 104px); }
  .result-card.featured .result-label { color: rgba(255,255,255,0.65); max-width: 28ch; font-size: 15px; }
  .result-num {
    font-size: clamp(40px, 4vw, 64px);
    font-weight: 300; letter-spacing: -0.04em; line-height: 1;
    color: var(--leaf);
  }
  .result-label { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 12px; max-width: 22ch; }

  /* ─── CAPABILITIES ─── */
  .cap-list { display: flex; flex-direction: column; }
  .cap-list .cap {
    display: grid; grid-template-columns: 60px 1fr auto;
    gap: 24px; align-items: start;
    padding: 28px 0; border-top: 1px solid var(--line);
  }
  .cap-list .cap:last-child { border-bottom: 1px solid var(--line); }
  .cap .idx { padding-top: 6px; }
  .cap h4 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
  .cap p { color: var(--muted); max-width: 56ch; font-size: 15px; line-height: 1.55; }
  .cap .arrow { padding-top: 10px; opacity: 0.4; transition: opacity 200ms, transform 200ms; }
  .cap:hover .arrow { opacity: 1; transform: translateX(6px); }

  /* ─── WHY BIOTEOS ─── */
  .why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 56px;
  }
  .why-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 36px; transition: border-color 200ms, transform 220ms;
  }
  .why-card:hover { border-color: var(--leaf); transform: translateY(-3px); }
  .why-card .icon-wrap {
    width: 48px; height: 48px;
    background: var(--mist); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--leaf); margin-bottom: 24px;
  }
  .why-card h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 10px; }
  .why-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

  /* ─── LOGOS ─── */
  .logo-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  }
  .logo-grid .cell {
    min-height: 120px;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
    color: var(--muted); transition: background 200ms, color 200ms;
    text-align: center; padding: 24px 32px;
    overflow: hidden;
  }
  .logo-grid .cell img {
    height: 96px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter 200ms;
  }
  .logo-grid .cell img[alt="Ayming"] {
    height: 130px;
  }
  .logo-grid .cell img[alt="EuraTechnologies"] {
    height: 96px;
    width: auto;
    max-width: none;
    transform: scale(2.8);
  }
  .logo-grid .cell img[alt="Bouygues Construction"] {
    filter: grayscale(1) opacity(0.45);
  }
  .logo-grid .cell:hover img { filter: brightness(0) invert(1) opacity(0.9); }
  .logo-grid .cell:hover img[alt="Bouygues Construction"] { filter: brightness(0) invert(1) opacity(0.9); }
  .logo-grid .cell:hover { background: var(--ink); color: var(--paper); }

  /* ─── POLLUTANTS ─── */
  .pollutants-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pollutant-card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 32px;
    transition: border-color 200ms;
  }
  .pollutant-card:hover { border-color: rgba(132,212,154,0.4); }
  .pollutant-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--algae); margin-bottom: 16px; display: block; }
  .pollutant-card h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; }
  .pollutant-card p { font-size: 13px; opacity: 0.65; line-height: 1.6; }

  /* ─── 4 ÉTAPES ─── */
  .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
  .steps-grid::before {
    content:''; position:absolute;
    top: 27px; left: 5%; right: 5%; height: 1px;
    background: var(--line); z-index: 0;
  }
  .step-item { padding: 0 24px 0 0; text-align: left; position: relative; }
  .step-item:first-child { padding-left: 0; }
  .step-dot {
    width: 56px; height: 56px;
    border: 1px solid var(--line); border-radius: 50%;
    background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 13px; color: var(--leaf);
    margin-bottom: 28px; position: relative; z-index: 1;
  }
  .step-item h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
  .step-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

  /* ─── TESTIMONIAL ─── */
  .quote-block { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
  .quote-block blockquote { font-size: clamp(28px, 3vw, 44px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
  .quote-block cite { display: block; margin-top: 32px; font-style: normal; font-size: 14px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.06em; }
  .quote-thumb { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); }

  /* ─── FAQ ─── */
  .faq-list { display: flex; flex-direction: column; margin-top: 24px; }
  .faq-item { border-top: 1px solid rgba(255,255,255,0.12); }
  .faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .faq-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 80px 1fr 40px; gap: 32px; align-items: start; padding: 36px 0; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--muted-2); opacity: 0.5; padding-top: 8px; }
  .faq-q { font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; color: var(--paper); }
  .faq-icon { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; position: relative; margin-top: 8px; transition: transform 240ms ease, border-color 240ms; justify-self: end; }
  .faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: rgba(255,255,255,0.8); transition: transform 240ms ease, opacity 240ms; }
  .faq-icon::before { left: 4px; right: 4px; top: 50%; height: 1px; transform: translateY(-50%); }
  .faq-icon::after { top: 4px; bottom: 4px; left: 50%; width: 1px; transform: translateX(-50%); }
  .faq-item[open] .faq-icon { border-color: var(--algae); }
  .faq-item[open] .faq-icon::before { background: var(--algae); }
  .faq-item[open] .faq-icon::after { opacity: 0; }
  .faq-a { display: grid; grid-template-columns: 80px 1fr 40px; gap: 32px; padding-bottom: 36px; }
  .faq-a > p { grid-column: 2; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.65); max-width: 72ch; }

  /* ─── CTA FINAL ─── */
  /* ─── RESPONSIVE ─── */
  @media (max-width: 880px) {
    .hero-grid > div { max-width: 100%; }
    .product-feature, .quote-block { grid-template-columns: 1fr; gap: 32px; }
    .qai-floating { position: relative; top: auto; left: auto; right: auto; width: 100%; max-width: 100%; margin-bottom: 24px; }
    .qai-live { grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
    .qai-live > .qai-divider { display: none; }
    .stats-strip, .steps-grid { grid-template-columns: 1fr 1fr; }
    .results-grid { grid-template-columns: 1fr 1fr; }
    .result-card.featured { grid-row: span 1; grid-column: span 2; }
    .method-strip { grid-template-columns: 1fr 1fr; }
    .method-step { padding: 36px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .method-step:nth-child(2n) { border-right: none; }
    .result-card { padding: 32px 24px; }
    .step-item { padding: 32px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .why-grid { grid-template-columns: 1fr; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .pollutants-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .cta-final-inner { grid-template-columns: 1fr; }
    .hero-product { right: -20%; height: 70vh; opacity: 0.4; }
    .hero { padding-top: 100px; }
    .faq-item summary, .faq-a { grid-template-columns: 60px 1fr 28px; gap: 16px; }
  }

.hp-qai-tab {
  background: none; border: none;
  color: rgba(251,250,246,0.38);
  font-size: 12px; font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 13px 18px; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.hp-qai-tab:hover { color: rgba(251,250,246,0.7); }
.hp-qai-tab.active { color: #84d49a; border-bottom-color: #84d49a; }
.hp-qai-metric-card {
  background: #0a1510; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.hp-qai-metric-label {
  color: rgba(251,250,246,0.35); font-size: 11px;
  font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.hp-qai-metric-value {
  color: #fbfaf6; font-size: 36px; font-weight: 700;
  font-family: var(--font-mono); line-height: 1; transition: color 0.5s;
}
.hp-qai-metric-unit { color: rgba(251,250,246,0.3); font-size: 11px; font-family: var(--font-mono); }
.hp-qai-metric-badge {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.06em;
  padding: 2px 9px; border-radius: 20px; width: fit-content;
}
.hp-qai-metric-badge.good { background: rgba(132,212,154,0.15); color: #84d49a; }
.hp-qai-metric-badge.warn { background: rgba(255,200,80,0.15);  color: #ffc850; }
.hp-qai-metric-badge.bad  { background: rgba(255,90,90,0.15);   color: #ff7070; }
@media (max-width: 700px) {
  .hp-qai-metric-card { padding: 18px 16px; }
  .hp-qai-metric-value { font-size: 28px; }
  #hp-qai-dashboard [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
}
