/* ============================================================
   HYDREAULYS — Environnement et innovation (page-specific)
   Variables & classes partagées : styles.css
   ============================================================ */

/* ---------- Hero pulse badges as real anchor links ---------- */
.env-hero-mini { cursor: pointer; text-decoration: none; transition: all .25s ease; }
.env-hero-mini:hover { background: var(--hy-blue); color: #fff; border-color: var(--hy-blue); transform: scale(1.06); }

/* ---------- Chapter marker (01 / 02 / 03) ---------- */
.env-chapter-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.env-chapter__num { display: block; font-family: var(--font-sans); font-style: normal; font-weight: 400; font-size: 88px; line-height: 1; color: var(--hy-blue); }
.env-chapter__label { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hy-muted); }

/* ---------- Bloc 1 — Moderniser ---------- */
.env-mod { background: #fff; padding: 110px 0; }

/* ---------- Bloc 2 — Valoriser (intro + cartes) ---------- */
.env-val { background: var(--hy-paper); padding: 110px 0; }

.env-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.env-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--hy-line); border-radius: 24px;
  padding: 32px 28px; text-decoration: none; color: inherit;
  transition: all .3s cubic-bezier(.2,.7,.2,1);
}
.env-card:hover { transform: translateY(-5px); border-color: var(--hy-blue); box-shadow: 0 30px 60px -30px rgba(0,80,152,.35); }
.env-card__ico {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: var(--hy-green-tint); color: var(--hy-blue);
  display: grid; place-items: center; margin-bottom: 26px;
  transition: all .3s ease;
}
.env-card:hover .env-card__ico { background: var(--hy-blue); color: #fff; }
.env-card__val { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--hy-blue-ink); font-variant-numeric: tabular-nums; }
.env-card__val small { font-size: 16px; font-weight: 700; color: var(--hy-blue); margin-left: 5px; }
.env-card__label { margin-top: 10px; font-size: 14.5px; color: var(--hy-muted); line-height: 1.4; }
.env-card__q {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hy-line);
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--hy-blue); line-height: 1.4;
  transition: color .2s ease;
}
.env-card__q svg { flex: none; transition: transform .25s ease; }
.env-card:hover .env-card__q { color: var(--hy-blue-ink); }
.env-card:hover .env-card__q svg { transform: translateX(4px); }

/* ---------- Photo figure (real photos, cover-fit) ---------- */
.env-figure { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/3.2; background: var(--hy-paper); }
.env-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.env-figure__tag {
  position: absolute; top: 20px; left: 20px;
  background: #fff; border: 1px solid var(--hy-line); border-radius: var(--radius-pill);
  padding: 8px 14px 8px 10px; font-size: 12px; font-weight: 700; color: var(--hy-blue-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.env-figure__tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hy-cyan); flex: none; }
.env-figure__credit {
  position: absolute; bottom: 14px; right: 16px;
  font-size: 10.5px; color: #fff; background: rgba(0,42,86,.5); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: var(--radius-pill);
}

/* ---------- Stat callout (méthaniseur) ---------- */
.env-callout {
  background: var(--hy-blue-ink); color: #fff; border-radius: 24px;
  padding: 32px 30px; margin-top: 8px; position: relative; overflow: hidden;
}
.env-callout::before {
  content: ""; position: absolute; inset: -1px;
  background: radial-gradient(circle at 100% 0%, rgba(105,187,187,.28), transparent 55%);
  pointer-events: none;
}
.env-callout > * { position: relative; z-index: 2; }
.env-callout__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hy-cyan); margin-bottom: 12px; }
.env-callout__val { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.env-callout__val small { font-size: 19px; font-weight: 700; color: var(--hy-cyan); margin-left: 5px; }
.env-callout__desc { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.85); max-width: 46ch; }
.env-callout__desc strong { color: #fff; }
.env-callout__note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); font-size: 11.5px; line-height: 1.55; color: rgba(255,255,255,.58); }

/* ---------- Split bar (réutilisation des eaux) ---------- */
.env-splitbar { margin-top: 22px; }
.env-splitbar__track { display: flex; height: 14px; border-radius: var(--radius-pill); overflow: hidden; background: var(--hy-paper); }
.env-splitbar__seg--a { background: var(--hy-blue); }
.env-splitbar__seg--b { background: var(--hy-cyan); }
.env-splitbar__legend { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.env-splitbar__legend-item { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; color: var(--hy-muted); }
.env-splitbar__legend-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; position: relative; top: 1px; }
.env-splitbar__legend-item strong { color: var(--hy-blue-ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Bloc 3 — Innover ---------- */
.env-innover { background: var(--hy-paper); padding: 110px 0; }
.env-innover__lead { font-size: 17px; font-weight: 600; color: var(--hy-blue-ink); margin: 0 0 24px; }

.env-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.env-tool { background: #fff; border: 1px solid var(--hy-line); border-radius: 20px; padding: 24px 22px; transition: all .25s ease; }
.env-tool:hover { transform: translateY(-3px); border-color: var(--hy-blue); box-shadow: 0 22px 44px -26px rgba(0,80,152,.3); }
.env-tool__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--hy-green-tint); color: var(--hy-blue); display: grid; place-items: center; margin-bottom: 18px; transition: all .25s ease; }
.env-tool:hover .env-tool__ico { background: var(--hy-blue); color: #fff; }
.env-tool__label { display: block; font-size: 14.5px; font-weight: 700; color: var(--hy-blue-ink); line-height: 1.35; }

.env-tip { margin-top: 8px; background: var(--hy-green-tint); border-radius: 22px; padding: 28px 30px; position: relative; overflow: hidden; }
.env-tip::before { content: ""; position: absolute; right: -40px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: rgba(105,187,187,.2); }
.env-tip__chip {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--hy-blue-ink);
  background: #fff; padding: 7px 16px 7px 12px; border-radius: var(--radius-pill);
}
.env-tip__text { position: relative; z-index: 1; margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--hy-ink); max-width: 72ch; }

@media (max-width: 1100px) {
  .env-chapter-grid { grid-template-columns: 1fr; gap: 16px; }
  .env-chapter__num { font-size: 56px; }
  .env-cards { grid-template-columns: 1fr; }
  .env-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .env-mod, .env-val, .env-innover { padding: 72px 0; }
  .env-tools { grid-template-columns: 1fr; }
  .env-callout__val { font-size: 42px; }
}

/* ---------- Corrections revue ---------- */
.env-hero-mini { width: 78px; height: 78px; font-size: 10.5px; letter-spacing: .05em; padding: 0 6px; hyphens: none; }
.env-callout--masked::after { content:""; position:absolute; inset:0; background-image:url("../../../hydreaulys-core/assets/img/env-methaniseur.jpg"); background-size:cover; background-position:center; opacity:.22; mix-blend-mode:luminosity; -webkit-mask-image:linear-gradient(255deg, #000 0%, rgba(0,0,0,.55) 38%, transparent 68%); mask-image:linear-gradient(255deg, #000 0%, rgba(0,0,0,.55) 38%, transparent 68%); pointer-events:none; z-index:1; }
.env-tip--toggle { padding: 0; }
.env-tip--toggle > summary { list-style:none; cursor:pointer; margin:0; display:inline-flex; }
.env-tip--toggle > summary::-webkit-details-marker { display:none; }
.env-tip--toggle > summary { position:relative; z-index:2; margin:28px 30px 0; }
.env-tip--toggle .env-tip__chev { transition: transform .25s ease; margin-left: 2px; }
.env-tip--toggle[open] .env-tip__chev { transform: rotate(180deg); }
.env-tip--toggle > .env-tip__text { margin: 14px 30px 28px !important; }
.env-tip--toggle:not([open]) { padding-bottom: 28px; }
