/* CRO 2026-09-08 — couche isolée pour éviter toute régression du CSS historique. */
.main-nav a[href*="travailler-avec-nous"] { display: none; }

.home-proof-strip {
  border-top: 1px solid var(--color-border-subtle, rgba(255,255,255,.08));
  border-bottom: 1px solid var(--color-border-subtle, rgba(255,255,255,.08));
  background: rgba(255,255,255,.025);
}
.home-proof-strip .container {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-proof-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 0;
  color: var(--color-text, #fff);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.35;
}
.home-proof-link:hover { text-decoration: none; }
.home-proof-stars {
  color: var(--color-gold, #e5c07b);
  letter-spacing: .08em;
  white-space: nowrap;
}
.home-proof-label { font-weight: 700; }
.home-proof-copy { color: var(--color-text-muted, rgba(255,255,255,.68)); }
.home-proof-arrow { color: var(--color-gold, #e5c07b); transition: transform .18s ease; }
.home-proof-link:hover .home-proof-arrow { transform: translateX(3px); }

.product-features-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: .25rem 0 .1rem;
  padding: .4rem 0;
  border: 0;
  background: transparent;
  color: var(--color-gold, #e5c07b);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.product-features-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-features-toggle__icon {
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}
.product-feature-extra-item[hidden] { display: none !important; }

/* Contrôles secondaires de la homepage. */
:is(.home-ux, .city-product-features) .product-features-toggle,
:is(.home-ux, .city-installations) .installations-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-self: flex-start;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #c3c6d0;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
:is(.home-ux, .city-product-features) .product-features-toggle { margin: 0 0 8px; }
:is(.home-ux, .city-installations) .installations-toggle { margin-top: 12px; }
:is(.home-ux, .city-installations) .installations-toggle:hover,
:is(.home-ux, .city-product-features) .product-features-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
:is(.home-ux, .city-installations) .installations-toggle:focus-visible,
:is(.home-ux, .city-product-features) .product-features-toggle:focus-visible,
.installation-photo:focus-visible {
  outline: 2px solid #e5c07b;
  outline-offset: 4px;
}
:is(.home-ux, .city-installations) .section-installations-real {
  padding-block: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent);
}
:is(.home-ux, .city-installations) .section-installations-real .section-header { margin-bottom: 20px; }
.installations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.installation-photo {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #101019;
  cursor: zoom-in;
  transition: border-color .15s ease;
}
.installation-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.installation-photo[hidden],
:is(.home-ux, .city-installations) .installations-toggle[hidden] { display: none !important; }
body.installation-lightbox-open { overflow: hidden; }
.installation-lightbox:not([open]) { display: none; }
.installation-lightbox[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 70px max(18px, env(safe-area-inset-right)) 70px max(18px, env(safe-area-inset-left));
  background: transparent;
  color: #fff;
}
.installation-lightbox::backdrop { background: rgba(0,0,0,.9); }
.installation-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 10px;
}
.installation-lightbox__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: #111119;
  color: #fff;
  font: inherit;
  font-size: 26px;
  cursor: pointer;
}
.installation-lightbox__close:focus-visible { outline: 2px solid #e5c07b; outline-offset: 3px; }
@media (min-width: 761px) {
  .installations-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  :is(.home-ux, .city-installations) .section-installations-real { padding-block: 44px; }
}
@media (min-width: 1000px) {
  .installations-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-proof-strip .container { min-height: 50px; }
  .home-proof-link { gap: .45rem; font-size: .82rem; text-align: center; flex-wrap: wrap; }
  .home-proof-copy { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .installation-photo:hover { border-color: rgba(255,255,255,.4); }
}
@media (prefers-reduced-motion: reduce) {
  .installation-photo,
  .home-proof-arrow { transition: none; }
}

/* Galerie clients : contrôle secondaire aligné sur l'identité visuelle Elactronics. */
:is(.home-ux, .city-installations) .installations-toggle {
  width: 100%;
  min-height: 52px;
  margin: 14px 0 0;
  padding: 0 18px;
  justify-content: space-between;
  border: 1px solid rgba(14,165,233,.34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14,165,233,.085), rgba(10,14,28,.78));
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 22px rgba(0,0,0,.16);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
:is(.home-ux, .city-installations) .installations-toggle::after {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: 14px;
  border-right: 2px solid var(--color-accent, #0ea5e9);
  border-bottom: 2px solid var(--color-accent, #0ea5e9);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
:is(.home-ux, .city-installations) .installations-toggle[aria-expanded='true']::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
:is(.home-ux, .city-installations) .installations-toggle:hover {
  border-color: rgba(14,165,233,.55);
  background: linear-gradient(135deg, rgba(14,165,233,.13), rgba(10,14,28,.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(14,165,233,.07);
  text-decoration: none;
}
:is(.home-ux, .city-installations) .installations-toggle:active { transform: translateY(1px); }
:is(.home-ux, .city-installations) .installations-toggle:focus-visible {
  outline: 2px solid var(--color-accent, #0ea5e9);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  :is(.home-ux, .city-installations) .section-installations-real {
    padding-top: 32px;
    padding-bottom: 18px;
  }
  .home-ux .section-reviews { padding-top: 28px; }
}

/* Produits homepage : lecture plus rapide des fonctionnalités + contrôle de divulgation discret. */
.home-ux .product-features li {
  position: relative;
  padding-left: 24px;
}
.home-ux .product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: .13em;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid rgba(14,165,233,.72);
  border-radius: 50%;
  background: rgba(14,165,233,.08);
  color: var(--color-accent, #0ea5e9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
:is(.home-ux, .city-product-features) .product-features-toggle {
  width: fit-content;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 0;
  gap: 8px;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d9e2ec;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: color .18s ease, opacity .18s ease;
  touch-action: manipulation;
}
:is(.home-ux, .city-product-features) .product-features-toggle::before { content: none; }
:is(.home-ux, .city-product-features) .product-features-toggle::after {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-left: 2px;
  border-right: 2px solid var(--color-accent, #0ea5e9);
  border-bottom: 2px solid var(--color-accent, #0ea5e9);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .18s ease;
}
:is(.home-ux, .city-product-features) .product-features-toggle[aria-expanded='true']::after {
  transform: rotate(225deg) translate(-1px, -1px);
}
:is(.home-ux, .city-product-features) .product-features-toggle:hover {
  color: #f8fafc;
  background: transparent;
  text-decoration: none;
}
:is(.home-ux, .city-product-features) .product-features-toggle:active { opacity: .78; }
:is(.home-ux, .city-product-features) .product-features-toggle:focus-visible {
  outline: 2px solid var(--color-accent, #0ea5e9);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Product media normalization — one system for every card, no model-specific exceptions. */
@media (min-width: 1000px) {
  :is(.home-ux, .city-product-features) .product-image {
    height: 350px;
    min-height: 350px;
    padding: 18px 22px;
    overflow: hidden;
  }

  :is(.home-ux, .city-product-features) .product-image:not(.product-gallery) img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
  }

  :is(.home-ux, .city-product-features) .product-image.product-gallery {
    display: grid;
    grid-template-rows: 215px 44px minmax(30px, auto);
    align-content: center;
    align-items: center;
    justify-items: center;
    row-gap: 6px;
  }

  :is(.home-ux, .city-product-features) .product-gallery .gallery-main {
    align-self: center;
    justify-self: center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 205px;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
  }

  :is(.home-ux, .city-product-features) .product-gallery .gallery-thumbs {
    height: 44px;
    max-width: 100%;
    margin: 0;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }

  :is(.home-ux, .city-product-features) .product-gallery .gallery-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
  }

  :is(.home-ux, .city-product-features) .product-gallery .gallery-thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  :is(.home-ux, .city-product-features) .product-gallery .gallery-note {
    align-self: center;
    width: 100%;
    margin: 0;
    min-height: 30px;
    font-size: 11.5px;
    line-height: 1.3;
    text-align: center;
  }

  :is(.home-ux, .city-product-features) .product-card:hover .product-gallery img {
    transform: none;
  }
}
