/* V11 — héros boutique et carrousel validés. Règles limitées à l’accueil. */
.hero-v11 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(480px, 49vw, 620px);
  background: #f2f0eb;
}
.hero-v11 .hero-copy {
  width: 53%;
  padding: 40px 0 0 var(--gutter);
  text-align: left;
}
.hero-v11 .hero-copy h1 {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: initial;
}
.hero-v11 .hero-copy h1 span { white-space: normal; }
.hero-v11 .hero-copy h1 span:last-child { color: #780bca; max-width: 9.5ch; }
.hero-v11 .hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  height: 100%;
  margin: 0;
  opacity: 1;
  mask-image: linear-gradient(to right, transparent, #000 15%);
}
.hero-v11 .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-v11 .hero-actions { padding: 28px 0 40px var(--gutter); margin: 0; }
.hero-v11 .hero-actions .button { width: auto; min-width: 0; padding: 16px 22px; font-size: 16px; gap: 20px; }

#services .services-eyebrow { display: block; margin: 0 0 12px; color: var(--violet); font-size: 12px; font-weight: 500; letter-spacing: .16em; line-height: 1.4; }
#services .section-heading { margin: 0 0 22px; }
#services h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.08; }
#services .service-caption { min-height: 0; }
#services .service-navigation { display: none; }
#services .service-pagination { display: flex; align-items: center; gap: 2px; flex: none; }
#services .service-counter { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; color: #f3f0ea; }
#services .service-pagination button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3f0ea;
  cursor: pointer;
  border-radius: 6px;
}
#services .service-pagination button:disabled { visibility: hidden; pointer-events: none; }
#services .service-prev .icon { transform: rotate(180deg); }
#services .service-progress { display: block; flex: 1; min-width: 0; height: 3px; margin: 0; overflow: hidden; border-radius: 2px; background: #302a37; }
#services .service-progress span { display: block; height: 100%; width: 16.6667%; background: var(--violet); border-radius: 2px; transform-origin: left; }

@media (max-width: 1024px) {
  #services .service-navigation { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
  #services .service-caption { align-items: flex-start; justify-content: flex-end; padding: 65px 20px 24px; gap: 0; }
  #services .service-caption h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; white-space: normal; text-align: left; }
  #services .service-grid { padding-bottom: 10px; }
}
@media (max-width: 760px) {
  .hero-v11 { display: block; min-height: 0; aspect-ratio: 4 / 5; }
  .hero-v11 .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; mask-image: none; }
  .hero-v11 .hero-media img { object-fit: cover; object-position: center; }
  .hero-v11 .hero-copy { width: 100%; padding: 6% 6% 0; }
  .hero-v11 .hero-copy h1 { font-size: clamp(25px, 8vw, 60px); line-height: 1.04; letter-spacing: -.045em; }
  .hero-v11 .hero-copy h1 span:first-child { white-space: nowrap; }
  .hero-v11 .hero-copy h1 span:last-child { max-width: 9.5ch; }
  .hero-v11 .hero-actions { padding: 5% 6% 0; }
  .hero-v11 .hero-actions .button { display: inline-flex; min-height: 44px; width: auto; padding: 12px 14px; font-size: clamp(12px, 3.45vw, 21px); gap: 10px; border-radius: 9px; }
  .hero-v11 .hero-actions .icon { width: 19px; height: 19px; }
}
@media (max-width: 480px) {
  #services { padding: 30px 20px 24px; }
  #services h2 { font-size: clamp(29px, 8vw, 36px); max-width: 17ch; }
  /* Dimensions du carrousel d’origine : une grande carte et un aperçu de la suivante. */
  #services .service-card { flex-basis: clamp(238px, 81vw, 350px); width: clamp(238px, 81vw, 350px); min-height: 370px; }
  #services .service-caption h3 { font-size: clamp(17px, 4.9vw, 20px); }
}
@media (prefers-reduced-motion: reduce) {
  #serviceTrack { scroll-behavior: auto; }
}

/* Adaptation à la base deploy-admin : positions des photos validées. */
#services .service-card[href*="eclairage"] img { object-position: 39% 48%; }
#services .service-card[href*="categorie=ciel"] img { object-position: 50% 40%; }
#services .service-card[href*="categorie=ecran"] img { object-position: 62% 44%; }
#services .service-card[href*="configurateur"] img { object-position: 50% 44%; }
#services .service-card[href*="categorie=covering"] img { object-position: 54% 50%; }
#services .service-card[href*="categorie=son"] img { object-position: 40% 50%; }
