/* Feuille complémentaire du fond existant des Écuries, après les styles du thème. */
body.lcv-fond-ecuries-global.lcv-boutique,
body.lcv-fond-ecuries-global.lcv-royal:not(.lcv-boutique) {
  --lcv-ecuries-voile: rgb(9 27 46 / 62%);
}
body.lcv-fond-ecuries-global.lcv-boutique :is(#savoir-faire, #zones, #boutique) {
  background: transparent !important;
  color: #fff;
}
body.lcv-fond-ecuries-global.lcv-boutique :is(#savoir-faire, #zones, #boutique) :is(h2,h3,p,address,li,label) {
  color: #fff;
  text-shadow: 0 1px 3px rgb(5 18 32 / 90%);
}
body.lcv-fond-ecuries-global.lcv-boutique :is(#savoir-faire, #zones, #boutique) :is(address, p) a:not(.button) {
  color: #ffe5ac;
}
@layer lcv-fond-ecuries {
body.lcv-fond-ecuries-global #main #contenu-principal :is(.local-section,.expertise-grid > a,.lcv-info-grid > *) {
  background: rgb(13 37 62 / 69%) !important;
}
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    body.lcv-fond-ecuries-global :is(#savoir-faire,#zones,#boutique,.local-section,.lcv-city-guide) h2 {
      animation: lcv-entree-titre 1s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}
@keyframes lcv-entree-titre {
  from { opacity: .55; translate: 0 .35rem; }
  to { opacity: 1; translate: 0 0; }
}

/* Recadrage mobile de la photo d’origine autour du toit et des baies. */
@media (max-width: 600px) and (orientation: portrait) {
  body.lcv-fond-ecuries-global {
    --lcv-ecuries-image: url("https://les-couvreurs-versaillais.fr/wp-content/plugins/lcv-fond-ecuries/assets/ecuries-12s-bureau.jpg");
  }
  body.lcv-fond-ecuries-global::before {
    background-size: cover, auto 290% !important;
    background-position: center, 46% 41% !important;
  }
}

/* Apparition limitée à l'entrée dans la fenêtre, commandes immédiatement utilisables. */
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0px entry 64px) {
    .lcv-fond-ecuries-global :is(#accueil,#zones,#boutique) .lead,
    .lcv-fond-ecuries-global .sectionhead > p,
    .lcv-fond-ecuries-global .lcv-city-guide .lcv-info-grid > article,
    .lcv-fond-ecuries-global .services > article[data-service],
    .lcv-fond-ecuries-global .expertise-grid > a,
    .lcv-fond-ecuries-global .lcv-media-grid > .lcv-media-card {
      animation: lcv-entree-contenu 1s ease-out both;
      animation-timeline: view(block);
      animation-range: entry var(--lcv-entree-debut, 0px) entry calc(var(--lcv-entree-debut, 0px) + 64px);
    }
    :where(.lcv-fond-ecuries-global :is(#accueil,#zones,#boutique) .lead,
    .lcv-fond-ecuries-global .sectionhead > p,
    .lcv-fond-ecuries-global .lcv-city-guide .lcv-info-grid > article,
    .lcv-fond-ecuries-global .services > article[data-service],
    .lcv-fond-ecuries-global .expertise-grid > a,
    .lcv-fond-ecuries-global .lcv-media-grid > .lcv-media-card):is(:focus,:focus-within,:target,:has(video:playing)) {
      animation: none !important;
    }
  }
}
@keyframes lcv-entree-contenu {
  from { opacity: .78; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}

/* Les trois cartes d'une ligne se lisent de gauche à droite. */
@media screen and (min-width: 64rem) {
  #savoir-faire .services > article:nth-child(3n + 2) { --lcv-entree-debut: 12px; }
  #savoir-faire .services > article:nth-child(3n) { --lcv-entree-debut: 24px; }
}
.lcv-fond-ecuries-global :is(#accueil, #zones, #boutique) .lead,
.lcv-fond-ecuries-global .sectionhead > p { --lcv-entree-debut: 12px; }
