/* Le composant de fond IDF existe sur les quatre gabarits, en huit langues. */
@media screen {
  body[data-lcv-castle="off"] {
    --panneau-lecture: rgb(17 44 74 / 44%);
  }
  body[data-lcv-castle="off"]::before {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 1;
    filter: none;
    background: linear-gradient(rgb(11 31 52 / 54%), rgb(11 31 52 / 54%)),
                url("./ecuries-12s.jpg") 50% 40% / cover no-repeat;
    background-image: linear-gradient(rgb(11 31 52 / 54%), rgb(11 31 52 / 54%)),
                      image-set(url("./ecuries-12s.webp") type("image/webp"), url("./ecuries-12s.jpg") type("image/jpeg"));
  }
  body[data-lcv-castle="off"] #contenu :is(.cinema-card,.guide-card,.insurance-card,.project-choice,.local-area-links a) {
    background-color: rgb(20 48 79 / 76%);
  }
}
@media screen and (max-width:600px) and (orientation:portrait) {
  body[data-lcv-castle="off"]::before {
    background-size: cover, auto 290%;
    background-position: center, 46% 41%;
  }
}

/* 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) {
    body[data-lcv-castle="off"] #contenu :is(.cinema-help,.section-intro,.hero-copy > .lead,.section-heading > p,.section-heading h2),
    body[data-lcv-castle="off"] #methode .steps > li,
    body[data-lcv-castle="off"] #metiers .services > .service,
    body[data-lcv-castle="off"] #temoignages-clients .cinema-grid > .cinema-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(body[data-lcv-castle="off"] #contenu :is(.cinema-help,.section-intro,.hero-copy > .lead,.section-heading > p,.section-heading h2),
    body[data-lcv-castle="off"] #methode .steps > li,
    body[data-lcv-castle="off"] #metiers .services > .service,
    body[data-lcv-castle="off"] #temoignages-clients .cinema-grid > .cinema-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; }
}

/* Le thème possède déjà un observateur. Une seule animation régit chaque groupe. */
@supports (animation-timeline: view()) and (animation-range: entry 0px entry 64px) {
  body[data-lcv-castle="off"] #contenu :is(
    .section-heading, .service, #methode .steps > li, #temoignages-clients .cinema-card,
    .lcv-reveal-pending:has(.section-heading, .cinema-help, .section-intro),
    .lcv-revealed:has(.section-heading, .cinema-help, .section-intro)
  ):is(.lcv-reveal-pending,.lcv-revealed) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media screen and (max-width: 48rem) {
  body[data-lcv-castle="off"] .header {
    --verre-entete: #172f4b;
  }
}

/* Sur ordinateur, l'introduction suit le titre et les quatre métiers se succèdent. */
body[data-lcv-castle="off"] #contenu .section-heading > p { --lcv-entree-debut: 14px; }
@media screen and (min-width: 64rem) {
  #metiers .services > .service:nth-child(4n + 2) { --lcv-entree-debut: 10px; }
  #metiers .services > .service:nth-child(4n + 3) { --lcv-entree-debut: 20px; }
  #metiers .services > .service:nth-child(4n) { --lcv-entree-debut: 30px; }
}
@media screen and (max-width: 48rem) {
  body[data-lcv-castle="off"] #contenu .hero-copy h1 { text-wrap: balance; }
}

.client-voices { margin-block: 2rem 3rem; }
.client-voices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.client-voices figure { margin: 0; padding: 1.25rem; background: rgb(17 44 74 / 86%); }
.client-quote { margin: 0; border-inline-start: 3px solid #dfc38a; padding-inline-start: 1rem; color: #fff2dc; }
.client-quote p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.client-voices figcaption { margin-block-start: 1rem; }
.client-voices figcaption a { color: #ffe1a5; text-decoration: underline; }
.cinema-card > .client-quote { margin: 0 1rem 1rem; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .client-voices figure {
      animation: lcv-entree-contenu 1s ease-out both;
      animation-timeline: view(block);
      animation-range: entry 0px entry 64px;
    }
    .client-voices figure:focus-within { animation: none; }
  }
}
