/* Accueil, version pro (15/11/2026) : couverture lumineuse, recherche juste sous la photo. */
.hero-v2 { min-height: clamp(580px, 88vh, 820px); padding: 96px 0 150px; align-items: center; }
.hero-v2 .hero-fond img { object-position: 50% 55%; animation: hero-zoom 2.4s var(--courbe) both; }
.hero-v2::after { background:
  linear-gradient(90deg, rgba(20, 33, 43, .86) 0%, rgba(20, 33, 43, .62) 34%, rgba(20, 33, 43, .14) 64%, rgba(20, 33, 43, 0) 100%),
  linear-gradient(0deg, rgba(20, 33, 43, .55) 0%, rgba(20, 33, 43, 0) 32%),
  linear-gradient(180deg, rgba(20, 33, 43, .35) 0%, rgba(20, 33, 43, 0) 22%); }
.hero-v2 h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.6rem); max-width: 14ch; letter-spacing: -.04em; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-v2 .hero-titre-suite { color: #FF9A33; }
.hero-v2 .hero-chapo { max-width: 46ch; color: rgba(255, 255, 255, .88); font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); }
.hero-v2 .hero-actions { margin-bottom: 0; }
.btn-contour-clair { background: rgba(255, 255, 255, .06); color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-contour-clair:hover { background: #fff; color: var(--nuit); border-color: #fff; }
.hero-credit { position: absolute; right: 20px; bottom: 112px; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .6); }

.bande-recherche { position: relative; z-index: 3; margin-top: -96px; }
.bande-recherche-carte { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 10px 36px; align-items: center; background: #fff; border-radius: var(--r-xl); box-shadow: 0 24px 60px -24px rgba(20, 33, 43, .35), 0 2px 6px rgba(20, 33, 43, .06); border: 1px solid var(--ligne); padding: 28px 32px; }
.bande-recherche-tete h2 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); letter-spacing: -.02em; margin: 0 0 4px; }
.bande-recherche-tete p { margin: 0; color: var(--gris); font-size: .92rem; line-height: 1.45; }
.bande-recherche-form { max-width: none; margin: 0; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
.bande-recherche-form .hd-recherche { height: 56px; background: var(--fond, #F5F8FF); border: 1.5px solid var(--ligne); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.bande-recherche-form .hd-recherche:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 127, 0, .14); background: #fff; }
.bande-recherche-form .btn { min-height: 56px; padding-inline: 28px; }
.bande-populaires { grid-column: 2; margin: 2px 0 0; color: var(--gris); }
.bande-populaires a { color: var(--nuit); border-color: var(--ligne); background: #fff; }
.bande-populaires a:hover { background: var(--fond, #F5F8FF); color: var(--nuit); border-color: var(--orange); }
.page-accueil .chiffres { margin-top: 28px; }
.page-accueil .chiffres-liste { box-shadow: none; }

@media (max-width: 980px) {
  .bande-recherche-carte { grid-template-columns: 1fr; padding: 24px; }
  .bande-populaires { grid-column: 1; }
}
@media (max-width: 760px) {
  .hero-v2 { min-height: 560px; padding: 64px 0 132px; align-items: flex-end; }
  .hero-v2 .hero-fond img { object-position: 50% 50%; }
  .hero-v2::after { background: linear-gradient(180deg, rgba(20, 33, 43, .25) 0%, rgba(20, 33, 43, .55) 45%, rgba(20, 33, 43, .9) 100%); }
  .hero-credit { right: 12px; bottom: 100px; font-size: .68rem; }
  .bande-recherche { margin-top: -80px; }
  .bande-recherche-carte { padding: 20px 18px; border-radius: 18px; }
  .bande-recherche-form { flex-direction: column; }
  .bande-recherche-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hero-v2 .hero-fond img { animation: none; } }

/* Familles avec photo */
.famille-avec-photo { padding: 0; overflow: hidden; gap: 0; }
.famille-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--nuit); }
.famille-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--courbe), filter .4s; }
.famille-avec-photo:hover .famille-photo img { transform: scale(1.06); }
.famille-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 33, 43, .35), transparent 45%); pointer-events: none; }
.famille-statut { position: absolute; left: 10px; bottom: 10px; z-index: 1; font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(20, 33, 43, .72); color: #fff; }
.famille-statut-hdelec { background: var(--orange); color: var(--nuit); }
.famille-texte { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 18px; flex: 1; }
@media (prefers-reduced-motion: reduce) { .famille-photo img { transition: none; } .famille-avec-photo:hover .famille-photo img { transform: none; } }

/* Diaporama de la couverture */
.hero-diaporama { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-v2 .hero-diaporama .diapo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 7.5s linear; animation: none; }
.hero-v2 .hero-diaporama .diapo.actif { opacity: 1; transform: scale(1); }
.hero-points { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 1; }
.hero-points span { width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: background-color .4s, width .4s; }
.hero-points span.actif { width: 36px; background: var(--orange); }
@media (max-width: 760px) { .hero-points { bottom: 100px; left: 20px; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-v2 .hero-diaporama .diapo { transition: none; transform: none; } .hero-points { display: none; } }

/* Produits : 6 cartes, toutes avec une vraie photo HD ELEC */
@media (min-width: 981px) { .hd-produits-grille.hd-grille-catalogue.grille-accueil-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Bande « Un projet d'éclairage public ? » avec photo */
.conversion-photo { background: var(--nuit); }
.conversion-photo::before { display: none; }
.conversion-fond { position: absolute; inset: 0; z-index: -2; }
.conversion-fond img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.conversion-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 33, 43, .9) 0%, rgba(20, 33, 43, .62) 45%, rgba(20, 33, 43, .1) 100%); }
.conversion-photo .conversion-in { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.conversion-photo h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); letter-spacing: -.03em; }
.conversion-photo p { color: rgba(255, 255, 255, .85); }
@media (max-width: 760px) { .conversion-photo::after { background: linear-gradient(180deg, rgba(20, 33, 43, .45), rgba(20, 33, 43, .88) 60%); } }

/* Présentation : une seule grande photo, sans pastilles */
.presentation-photo { margin: 0; }
.presentation-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); box-shadow: 0 30px 60px -30px rgba(20, 33, 43, .45); }
.presentation-photo figcaption { margin-top: 10px; font-size: .75rem; color: var(--gris); }
@media (min-width: 981px) { .presentation-photo { max-width: 520px; } }

/* V2 (16/11/2026) : premier écran (contact direct) et section « Pour qui travaille HD ELEC » */
.hero-v2 .hero-appel { margin: 18px 0 0; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.hero-v2 .hero-appel a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 154, 51, .8); text-underline-offset: 3px; }
.hero-v2 .hero-appel a:hover { color: #FFB366; }
.hero-v2 .hero-chapo { max-width: 54ch; }
.section-marches { padding-top: 24px; }
.marches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.marche { display: flex; flex-direction: column; min-width: 0; }
.marche-lien { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; flex: 1; }
.marche-photo { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--r-l); overflow: hidden; background: var(--nuit); }
.marche-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--courbe); }
.marche-lien:hover .marche-photo img { transform: scale(1.04); }
.marche-photo .statut-image { left: 10px; top: auto; bottom: 10px; }
.marche-texte { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--orange); padding-top: 12px; }
.marche-nom { font-weight: 700; font-size: 1.08rem; color: var(--nuit); letter-spacing: -.01em; }
.marche-desc { color: var(--gris); font-size: .92rem; line-height: 1.5; }
.marche-texte .hd-lien-fleche { margin-top: 4px; }
.marche-lien:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: var(--r-l); }
.marche-credit { margin: 8px 0 0; font-size: .72rem; color: var(--gris-doux); }
@media (max-width: 1100px) { .marches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .marches { grid-template-columns: minmax(0, 1fr); } .marche-photo { aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) { .marche-photo img { transition: none; } }
/* téléphone : crédit de la photo sous la ligne de contact, à gauche, sans chevaucher les repères du diaporama */
@media (max-width: 760px) {
  .hero-v2 { padding-bottom: 150px; }
  .hero-credit { left: 20px; right: auto; bottom: 116px; }
  .hero-points { bottom: 98px; }
}
.hero-v2 .hero-appel a { white-space: nowrap; }

/* V2 (retour du gérant) : alignement des cartes de l'accueil */
/* « Pour qui » : cartes de même hauteur, photo en haut (3:2 pour les 4), crédit en pastille sur la photo, liens d'action sur la même ligne */
.marches { align-items: stretch; }
.marche { display: flex; }
.marche-lien { flex: 1; height: 100%; }
.marche-photo { flex: none; aspect-ratio: 3 / 2; }
.marche-photo img { display: block; position: absolute; inset: 0; }
.marche-photo .marche-statut { max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.marche-texte { flex: 1; }
.marche-texte .marche-action { margin-top: auto; padding-top: 8px; }
@media (max-width: 560px) { .marche-photo { aspect-ratio: 3 / 2; } }
/* « Que devez-vous équiper ? » : cartes de hauteur égale par rangée, pictogramme et flèche centrés verticalement */
.orientation-liste { align-items: stretch; }
.orientation-liste li { display: flex; }
.orientation-liste a { flex: 1; min-height: 88px; grid-template-rows: 1fr auto auto 1fr; row-gap: 2px; }
.orientation-liste a > b { grid-column: 2; grid-row: 2; }
.orientation-liste a > span:not(.orientation-picto) { grid-row: 3; }
.orientation-picto { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.orientation-liste a > .ico { grid-row: 1 / -1; align-self: center; }
@media (hover: none) { .orientation-liste a:hover { border-color: var(--ligne); box-shadow: none; transform: none; } }
