/* Mouvement éditorial léger, partagé par les pages et le configurateur. */
@media (prefers-reduced-motion: no-preference) {
  body.page-leaving main,
  body.page-leaving .full-footer {
    opacity: .88;
    transform: translate3d(0, -4px, 0);
    transition: opacity .18s ease, transform .18s ease;
  }
  body.page-arriving main { animation: page-arrive .28s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes page-arrive {
    from { opacity: .92; transform: translate3d(0, 4px, 0); }
    to { opacity: 1; transform: none; }
  }
  .site-header nav a:not(.button)::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
  }
  .site-header nav a:not(.button):hover::after,
  .site-header nav a:not(.button):focus-visible::after,
  .site-header nav a:not(.button)[aria-current="page"]::after,
  .site-header nav a:not(.button)[aria-current="location"]::after { transform: scaleX(1); }
  .button,
  .quote-hero-link,
  .footer-button,
  .summary-actions button,
  .portfolio-filters button,
  .testimonial-controls button {
    transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease,
      background-color .28s ease, color .28s ease, border-color .28s ease;
  }
  .button:active,
  .quote-hero-link:active,
  .footer-button:active,
  .summary-actions button:active,
  .portfolio-filters button:active,
  .testimonial-controls button:active { transform: translateY(1px) scale(.97); }
  .button .arrow,
  .button > span[aria-hidden="true"],
  .quote-hero-link > span,
  .footer-button > span { display: inline-block; transition: transform .3s ease; }
  .button:hover .arrow,
  .button:hover > span[aria-hidden="true"],
  .quote-hero-link:hover > span,
  .footer-button:hover > span { transform: translateX(4px); }
  .jump-highlight { animation: section-arrive .8s ease-out; }
  @keyframes section-arrive {
    0% { filter: brightness(1.035); }
    100% { filter: brightness(1); }
  }
  .site-header nav.open { animation: menu-arrive .28s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes menu-arrive {
    from { opacity: 0; transform: translate3d(0, -10px, 0); }
    to { opacity: 1; transform: none; }
  }
  html.motion-ready [data-motion]:not(.is-visible) {
    opacity: .95;
    transform: translate3d(0, 14px, 0);
  }
  html.motion-ready [data-motion="slide-left"]:not(.is-visible) {
    transform: translate3d(-16px, 0, 0);
  }
  html.motion-ready [data-motion="slide-right"]:not(.is-visible) {
    transform: translate3d(16px, 0, 0);
  }
  html.motion-ready [data-motion="scale"]:not(.is-visible) {
    transform: scale(.985);
  }
  html.motion-ready [data-motion="photo-reveal"] { clip-path: inset(0); }
  html.motion-ready [data-motion="photo-reveal"]:not(.is-visible) {
    clip-path: inset(0 6% 0 0);
    transform: scale(.98);
  }
  html.motion-ready [data-motion] {
    transition: opacity .48s ease, transform .55s cubic-bezier(.2,.7,.2,1), clip-path .55s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--motion-delay, 0ms);
  }
  /* Les liens du projet ont aussi une entrée au scroll : garder leurs transitions au survol. */
  html.motion-ready .project-needs .need-options > a[data-motion] {
    transition: opacity .48s ease, transform .55s cubic-bezier(.2,.7,.2,1),
      background-color .46s cubic-bezier(.22,1,.36,1),
      padding-left .46s cubic-bezier(.22,1,.36,1), box-shadow .46s ease;
    transition-delay: 0ms;
  }
  .hero > .container,
  .internal-hero-content {
    opacity: var(--hero-opacity, 1);
    transform: translate3d(0, var(--hero-shift, 0px), 0);
    transition: opacity .12s linear;
  }
  .hero-image,
  .internal-hero-image {
    transform: scale(var(--hero-image-scale, 1));
    transform-origin: center center;
    transition: transform .16s linear;
  }
  .internal-hero-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 58px;
    width: 74px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg,#f57932,#d23a83,#0964cc);
    transform-origin: left center;
    animation: internal-line-in .45s .08s both;
  }
  .internal-hero-content > :is(.section-kicker,h1,p,.button,.article-breadcrumb) {
    animation: internal-copy-in .42s cubic-bezier(.2,.7,.2,1) both;
  }
  .internal-hero-content > .section-kicker,
  .internal-hero-content > .article-breadcrumb { animation-delay: .03s; }
  .internal-hero-content > h1 { animation-delay: .06s; }
  .internal-hero-content > p { animation-delay: .09s; }
  .internal-hero-content > .button { animation-delay: .12s; }
  @keyframes internal-line-in { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
  @keyframes internal-copy-in { from { opacity: .8; transform: translate3d(0,8px,0); } to { opacity: 1; transform: none; } }
  @media (min-width: 761px) {
    .internal-hero-image { animation: internal-photo-in .55s cubic-bezier(.2,.7,.2,1) both; }
    @keyframes internal-photo-in { from { opacity: .9; transform: scale(1.01); } to { opacity: 1; transform: scale(1); } }
  }
  @media (max-width: 760px) {
    .internal-hero-content::before { top: 44px; width: 54px; }
    .internal-hero-content > :is(.section-kicker,h1,p,.button,.article-breadcrumb) { animation-duration: .48s; }
    html.motion-ready [data-motion="photo-reveal"]:not(.is-visible) { clip-path: inset(0); transform: translate3d(0,14px,0); }
  }
  .service-card img,
  .portfolio-visual img,
  .showcase-card img {
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
  }
  .service-card:hover img,
  .service-card:focus-visible img,
  .portfolio-visual:hover img,
  .portfolio-visual:focus-visible img,
  .showcase-card:hover img,
  .showcase-card:focus-visible img {
    transform: scale(1.025);
  }
  .offer-entry,
  .offer-entry .offer-card,
  .offer-entry .check,
  .category-tabs a,
  .quote-navigation .steps li,
  .quote-navigation .steps li button,
  .portfolio-filters button {
    transition: background-color .32s ease, border-color .32s ease,
      box-shadow .32s ease, color .32s ease, transform .32s cubic-bezier(.2,.7,.2,1);
  }
  /* Survols secondaires : même cadence sur les pages, le journal et le devis. */
  .site-header nav a:not(.button),
  .service-index a,
  .service-index a span,
  .need-options a,
  .service-feature-link,
  .internal-closing > a,
  .text-link,
  .article-breadcrumb a,
  .aside-card li a,
  .full-footer .footer-main a:not(.footer-logo),
  .full-footer .footer-bottom a,
  .language-menu a,
  .en-service-links a {
    transition: color .28s ease, background-color .28s ease,
      border-color .28s ease;
  }
  .journal-card,
  .principles-grid article,
  .method-grid article {
    transition: transform .32s cubic-bezier(.2,.7,.2,1),
      box-shadow .32s ease, border-color .32s ease;
  }
  .journal-card:is(:hover,:focus-within),
  .principles-grid article:hover,
  .method-grid article:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px #14346618;
  }
  .journal-card img {
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
  }
  .journal-card:is(:hover,:focus-within) img { transform: scale(1.018); }
  .faq-list summary,
  .journal-card summary,
  .aside-tag-list a,
  .journal-tools nav a,
  .aside-search-row button,
  .aside-newsletter button,
  .newsletter-field button,
  .category-scroll-actions button,
  .preview-head button {
    transition: background-color .28s ease, color .28s ease,
      border-color .28s ease, box-shadow .28s ease;
  }
  .faq-list summary:is(:hover,:focus-visible),
  .journal-card summary:is(:hover,:focus-visible) { color: #0964cc; }
  .summary-remove {
    transition: background-color .28s ease, border-color .28s ease,
      transform .28s cubic-bezier(.2,.7,.2,1);
  }
  .offer-entry .offer-card:active { transform: scale(.985); }
  .category-tabs a:active,
  .quote-navigation .steps li button:active { transform: scale(.975); }
  .offer-entry .offer-card.selected .check { animation: choice-pop .34s cubic-bezier(.2,.7,.2,1); }
  @keyframes choice-pop {
    0% { transform: scale(.55); }
    70% { transform: scale(1.16); }
    100% { transform: scale(1); }
  }
  .summary-row,
  .summary-totals .grand-total strong { animation: summary-arrive .3s ease both; }
  @keyframes summary-arrive {
    from { opacity: .45; transform: translate3d(0, 7px, 0); }
    to { opacity: 1; transform: none; }
  }
  .offer-detail[open] > :not(summary) { animation: detail-arrive .3s ease both; }
  @keyframes detail-arrive {
    from { opacity: 0; transform: translate3d(0, -7px, 0); }
    to { opacity: 1; transform: none; }
  }
  .preview-dialog[open] { animation: dialog-arrive .3s cubic-bezier(.2,.7,.2,1) both; }
  .preview-dialog[open]::backdrop { animation: backdrop-arrive .3s ease both; }
  @keyframes dialog-arrive {
    from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.97); }
    to { opacity: 1; transform: none; }
  }
  @keyframes backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: no-preference) {
  .service-index a,
  .portfolio-filters button,
  .journal-tools nav a,
  .aside-tag-list a {
    transition: background-color .42s cubic-bezier(.22,1,.36,1),
      color .42s cubic-bezier(.22,1,.36,1),
      border-color .42s cubic-bezier(.22,1,.36,1),
      box-shadow .42s cubic-bezier(.22,1,.36,1),
      transform .42s cubic-bezier(.22,1,.36,1);
  }
  .service-index a:is(:hover,:focus-visible){transform:translateY(-2px);box-shadow:0 10px 25px #102c551b}
  .agency-portrait img{transition:transform .7s cubic-bezier(.22,1,.36,1)}
  .agency-portrait:hover img{transform:scale(1.015)}
}
@media (prefers-reduced-motion: reduce) {
  .site-header nav a:not(.button),
  .service-index a, .service-index a span, .need-options a,
  .service-feature-link, .internal-closing > a, .text-link,
  .article-breadcrumb a, .aside-card li a,
  .full-footer .footer-main a:not(.footer-logo),
  .full-footer .footer-bottom a, .language-menu a, .en-service-links a,
  .journal-card, .journal-card img, .principles-grid article,
  .method-grid article, .faq-list summary, .journal-card summary,
  .aside-tag-list a, .journal-tools nav a, .aside-search-row button,
  .aside-newsletter button, .newsletter-field button,
  .category-scroll-actions button, .preview-head button,
  .summary-remove {
    transition: none !important;
  }
  .journal-card:is(:hover,:focus-within),
  .principles-grid article:hover, .method-grid article:hover,
  .journal-card:is(:hover,:focus-within) img { transform: none !important; }
  html.motion-ready [data-motion],
  .hero > .container,
  .internal-hero-content,
  .hero-image,
  .internal-hero-image,
  .service-card img,
  .portfolio-visual img,
  .showcase-card img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
