/* =============================================================
   arbusteo — image-rich variant overrides
   Loaded only by index-images.html (body.has-img).
   Full-bleed photography per the M3 imagery guidance:
   warm daylight, captions on clean surfaces below the image.
   ============================================================= */

/* ---------- HEADER over the dark hero photo ---------------------------- */
/* While the header is transparent (not yet scrolled), force a light
   treatment so the logo + nav read against the dark estate image.
   Once scrolled, the cream `.scrolled` styles take back over. */
.has-img .site-header:not(.scrolled) { border-bottom-color: transparent; }
.has-img .site-header:not(.scrolled) .brand .word { color: #fbfae8; }
.has-img .site-header:not(.scrolled) .brand .mark { filter: brightness(0) invert(1); }
.has-img .site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,.86); }
.has-img .site-header:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,.14); }
.has-img .site-header:not(.scrolled) .nav-links a.active { color: #fff; }
.has-img .site-header:not(.scrolled) .nav-links a.active::after { background: var(--ocre-light); }
.has-img .site-header:not(.scrolled) .lang,
.has-img .site-header:not(.scrolled) .lang button { color: rgba(255,255,255,.82); }
.has-img .site-header:not(.scrolled) .lang button.on { color: #fff; }
.has-img .site-header:not(.scrolled) .lang .material-symbols-outlined { color: rgba(255,255,255,.8); }
.has-img .site-header:not(.scrolled) .lang .sep { background: rgba(255,255,255,.4); }
.has-img .site-header:not(.scrolled) .nav-toggle { color: #fbfae8; }
.has-img .site-header:not(.scrolled) .login-link { color: #fbfae8; }
.has-img .site-header:not(.scrolled) .login-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.has-img .site-header:not(.scrolled) .btn-tonal {
  color: #fff; border-color: rgba(255,255,255,.55);
}
.has-img .site-header:not(.scrolled) .btn-tonal:hover { background: rgba(255,255,255,.14); }
/* a faint top scrim guarantees legibility even over lighter photo areas */
.has-img .site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,30,16,.42), transparent);
  opacity: 1; transition: opacity .35s var(--ease);
}
.has-img .site-header.scrolled::before { opacity: 0; }

/* ---------- HERO : full-bleed estate ----------------------------------- */
.has-img .hero {
  padding: 0; min-height: 92vh; display: flex; align-items: flex-end;
  background: #20301f;
}
.has-img .hero-bg { position: absolute; inset: 0; z-index: 0; }
.has-img .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.has-img .hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(22,33,20,.82) 0%, rgba(22,33,20,.55) 36%, rgba(22,33,20,.05) 66%, transparent 100%),
    linear-gradient(0deg, rgba(22,33,20,.72) 0%, rgba(22,33,20,.12) 34%, transparent 60%);
}
.has-img .hero-img-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: end;
  padding-top: 140px; padding-bottom: clamp(48px, 6vw, 88px);
}
.has-img .hero-title { color: #fdfdf3; letter-spacing: -1.2px; }
.has-img .hero-sub { color: rgba(255,255,255,.86); max-width: 32ch; }
.has-img .hero-cta .btn-tonal { color: #fff; border-color: rgba(255,255,255,.55); }
.has-img .hero-cta .btn-tonal:hover { background: rgba(255,255,255,.12); }

/* floating element fiche over the photo */
.has-img .hero-fiche-float {
  justify-self: end; align-self: end; width: min(340px, 100%);
  background: rgba(251,250,232,.92); backdrop-filter: blur(8px);
  border-radius: 22px; box-shadow: var(--shadow-3); border: 1px solid rgba(255,255,255,.5);
  padding: 16px; margin-bottom: 6px;
}
.has-img .hff-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.has-img .hff-top .material-symbols-outlined { font-size: 20px; color: var(--olive); }
.has-img .hff-top .t { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .3px; }
.has-img .hff-top .live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #2c5a32; }
.has-img .hff-top .live .d { width: 7px; height: 7px; border-radius: 50%; background: #4f9a57; }
.has-img .hff-row { display: flex; gap: 12px; align-items: center; }
.has-img .hff-thumb { width: 56px; height: 56px; border-radius: 13px; flex: none;
  background: linear-gradient(160deg, #e7efd2, #cfe2a9); display: grid; place-items: center; }
.has-img .hff-thumb .material-symbols-outlined { font-size: 30px; color: var(--olive); }
.has-img .hff-name { font-size: 16px; font-weight: 700; color: var(--green-title); }
.has-img .hff-attrs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.has-img .hff-attrs .attr { font-size: 10.5px; }

@media (max-width: 920px) {
  .has-img .hero-img-inner { grid-template-columns: 1fr; gap: 28px; }
  .has-img .hero-fiche-float { justify-self: start; }
  .has-img .hero-bg img { object-position: center 45%; }
}

/* ---------- PROBLÈME : scattered-knowledge photo ----------------------- */
.has-img .prob-head-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.has-img .prob-photo { margin: 0; }
.has-img .prob-photo img {
  width: 100%; border-radius: var(--r-card); box-shadow: var(--shadow-2);
  border: 1px solid var(--line); display: block;
}
.has-img .prob-photo figcaption {
  margin-top: 14px; font-size: 14px; font-style: italic; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.has-img .prob-photo figcaption .material-symbols-outlined { font-size: 18px; color: var(--ocre); }
.has-img .probleme-intro .h2 { text-align: left; }

@media (max-width: 860px) {
  .has-img .prob-head-grid { grid-template-columns: 1fr; }
}

/* ---------- POUR QUI : photo-topped cards ------------------------------ */
.has-img .aud-card { padding: 0; overflow: hidden; }
.has-img .aud-media { position: relative; height: 220px; }
.has-img .aud-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.has-img .aud-media .tagchip {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(251,250,232,.94); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow-1);
  font-size: 13px; font-weight: 700; color: var(--green-deep);
}
.has-img .aud-media .tagchip .material-symbols-outlined { font-size: 18px; color: var(--ocre); }
.has-img .aud-body { padding: clamp(24px, 3vw, 34px); }
.has-img .aud-body .aud-ico { display: none; }
.has-img .aud-body h3 { font-size: 24px; font-weight: 600; color: var(--green-title); }
.has-img .aud-body .recog { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.has-img .aud-body ul { margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.has-img .aud-body li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.has-img .aud-body li .material-symbols-outlined { font-size: 20px; color: var(--olive); flex: none; margin-top: 1px; }

/* ---------- CTA FINAL : golden-hour oak -------------------------------- */
.has-img .cta-final { background: #2c4a2f; }
.has-img .cta-final .cta-bg { position: absolute; inset: 0; z-index: 0; }
.has-img .cta-final .cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.has-img .cta-final .cta-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(28,52,30,.62), rgba(28,52,30,.86));
}
.has-img .cta-final .wrap { position: relative; z-index: 2; }
.has-img .cta-final .leaf { display: none; }
