/* Le plan décalé : volet, fragment, filet. Tout le contenu est visible au repos. */
:root {
  --motion-out: cubic-bezier(.2,.72,.18,1);
  --motion-cut: cubic-bezier(.65,0,.18,1);
  --motion-fast: 210ms;
  --motion-mid: 560ms;
  --motion-slow: 840ms;
}
.hero-crop { display:block; overflow:clip; overflow-clip-margin:.09em; }
.hero-segment { display:block; }
.hero h1 .shift .hero-segment { display:inline; }
.hero h1 .shift em { display:inline-block; position:relative; }
.hero-depth { position:absolute; inset:0; z-index:-1; pointer-events:none; }
.hero-depth .hero-mark { z-index:auto; }
.project-window { position:relative; overflow:hidden; }
.project-window::before, .project-window::after {
  content:""; position:absolute; pointer-events:none; z-index:1;
}
.project-window::before { inset:0; background:var(--ink); transform:scaleX(0); transform-origin:right; }
.project-window::after { top:12px; left:12px; width:40px; height:12px; border:solid var(--lime); border-width:2px 0 0 2px; opacity:0; }
.project-image::before { transform-origin:left; }
.project:focus-within .project-window::after { opacity:1; }
.project details summary, .packs a { width:fit-content; max-width:100%; }
.faq summary { list-style:none; display:flex; align-items:baseline; gap:12px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::before { content:""; flex:0 0 7px; height:7px; border:solid var(--lime); border-width:0 1px 1px 0; transform:rotate(-45deg); }
.faq details[open] summary::before { transform:rotate(45deg); }
.faq details[open] summary { color:var(--lime); }
.motion-title { overflow:clip; overflow-clip-margin:.12em; }
.motion-title > span { display:block; }
#prestations .row, .packs article, .about > div, .steps { position:relative; }
#prestations .row::before, .packs article::before, .about > div::before, .steps::before {
  content:""; position:absolute; pointer-events:none;
}
#prestations .row::before, .packs article::before {
  top:0; left:0; right:0; height:2px; transform-origin:left; transform:scaleX(0);
}
#prestations .row::before { background:#40551a; }
.packs article::before { background:var(--lime); }
.about > div::before { left:0; top:0; bottom:0; width:2px; background:#40551a; transform-origin:top; }
.about > div { padding-left:21px; }
.steps { padding-left:18px; }
.steps::before { left:0; top:0; bottom:0; width:1px; background:var(--lime); transform-origin:top; }
.steps .row > span { position:relative; }
.steps .row > span::before { content:""; position:absolute; left:-20px; top:.5em; width:5px; height:5px; background:var(--lime); }
@media (prefers-reduced-motion:no-preference) {
  .hero-depth { transform:translate3d(var(--depth-x,0px),var(--depth-y,0px),0); transition:transform 480ms var(--motion-out); }
  .motion-opening > header { animation:arrival 460ms var(--motion-out) both; }
  .motion-opening .hero .eyebrow { animation:arrival 570ms 100ms var(--motion-out) both; }
  .motion-opening .hero-crop:first-child .hero-segment { animation:title-cut 790ms 150ms var(--motion-out) both; }
  .motion-opening .hero .shift { animation:line-cut 730ms 390ms var(--motion-out) both; }
  .motion-opening .hero .shift em { animation:word-cut 690ms 600ms var(--motion-cut) both; }
  .motion-opening .hero h1 .shift::before { animation:accent 520ms 820ms var(--motion-out) both; }
  .motion-opening .hero-bottom p { animation:arrival 540ms 1000ms var(--motion-out) both; }
  .motion-opening .hero-bottom .button { animation:arrival 510ms 1100ms var(--motion-out) both; animation-fill-mode:none; }
  .motion-opening .hero-mark { animation:mark-cut 1020ms 890ms var(--motion-out) both; }
  .motion-opening :is(header,.hero-bottom):focus-within,
  .motion-opening :is(header,.hero-bottom):focus-within .button { animation:none; }
  .motion-title.is-entering > span { animation:title-cut var(--motion-mid) var(--motion-out) both; }
  .project.is-entering .project-window::before { animation:shutter var(--motion-slow) var(--motion-cut) both; }
  .project.is-entering img { animation:image-settle var(--motion-slow) var(--motion-out) both; }
  .project.is-entering .caption h3 { animation:arrival 400ms 210ms var(--motion-out) both; }
  .project.is-entering .caption span { animation:arrival 400ms 300ms var(--motion-out) both; }
  .project.is-entering .project-image::before { animation:fragment 650ms 140ms var(--motion-out) both; }
  .project.is-entering .project-window::after { animation:frame-flash 950ms 100ms var(--motion-out) both; }
  .project:focus-within .project-window::before { animation:none; }
  .project.is-filtered .project-image { animation:filter-arrival 360ms var(--motion-out) both; }
  #prestations .row.is-entering > *, .packs article.is-entering > *, .steps .row.is-entering > * { animation:arrival var(--motion-mid) var(--motion-out) both; }
  #prestations .row.is-entering::before, .packs article.is-entering::before { animation:draw-rule 650ms var(--motion-out) both; }
  .about.is-entering > div::before, .steps.is-entering::before { animation:draw-vertical 780ms var(--motion-out) both; }
  .about.is-entering > p { animation:arrival 610ms 100ms var(--motion-out) both; }
  .steps .row.is-entering > span::before { animation:accent 460ms 120ms var(--motion-out) both; }
  .packs article:focus-within > * { animation:none; }
  .faq summary, .faq summary::before, .button, .packs a, header nav a, .contact :is(input,textarea,select) {
    transition:color var(--motion-fast),background-color var(--motion-fast),border-color var(--motion-fast),transform var(--motion-fast) var(--motion-out),box-shadow var(--motion-fast);
  }
  .faq details[open] > p { animation:arrival 260ms var(--motion-out) both; }
  .contact :is(input,textarea,select):focus-visible { border-color:#40551a; box-shadow:0 0 0 2px #c3ff45; }
}
@media (hover:hover) and (pointer:fine) {
  .project:hover .project-window::after { opacity:1; }
  #prestations .row:hover::before, .packs article:hover::before, .packs article:focus-within::before { transform:scaleX(1); }
  .packs article:hover, .packs article:focus-within { background:#2b342d; }
  #prestations .row:hover { background:#e8ede3; }
  @media (prefers-reduced-motion:no-preference) {
    .project-window img, .project-window::after, #prestations .row, #prestations .row::before, .packs article, .packs article::before {
      transition:transform 350ms var(--motion-out), opacity var(--motion-fast),background-color var(--motion-fast);
    }
    .project:hover .project-window img { transform:scale(1.025); }
    .project:hover .project-window::after { transform:translate(5px,4px); }
    .packs a:hover, header nav a:hover { transform:translateY(-2px); }
    .button:hover:not(:disabled) { transform:translateY(-2px); }
  }
}
@keyframes arrival { from { opacity:0; transform:translateY(11px); } to { opacity:1; transform:translateY(0); } }
@keyframes title-cut { from { transform:translateY(105%); } to { transform:translateY(0); } }
@keyframes line-cut { from { clip-path:inset(100% 0 0 0); transform:translateY(14px); } to { clip-path:inset(-15% -4% -15% 0); transform:translateY(0); } }
@keyframes word-cut { from { clip-path:inset(0 100% 0 0); transform:translateX(-.17em); } to { clip-path:inset(-10% -4% -10% -4%); transform:translateX(0); } }
@keyframes accent { from { opacity:0; scale:0 1; } to { opacity:1; scale:1 1; } }
@keyframes mark-cut { from { opacity:0; transform:translate(28px,18px); } to { opacity:.13; transform:translate(0,0); } }
@keyframes shutter { from { transform:scaleX(1); } to { transform:scaleX(0); } }
@keyframes image-settle { from { transform:translateX(-2%) scale(1.045); } to { transform:translateX(0) scale(1); } }
@keyframes fragment { from { opacity:0; transform:translateX(0) scaleX(.87); } to { opacity:1; transform:translateX(4%) scaleX(1); } }
@keyframes frame-flash { 0% { opacity:0; transform:translate(-6px,-6px); } 55% { opacity:1; } 100% { opacity:0; transform:translate(0,0); } }
@keyframes filter-arrival { from { opacity:.62; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes draw-rule { from { transform:scaleX(0); } 70% { transform:scaleX(1); } to { transform:scaleX(0); } }
@keyframes draw-vertical { from { transform:scaleY(0); } to { transform:scaleY(1); } }

@media (prefers-reduced-motion:no-preference) {
  #prestations .row.is-entering > *, .packs article.is-entering > *, .steps .row.is-entering > *,
  #prestations .row.is-entering::before, .packs article.is-entering::before {
    animation-delay:var(--reveal-delay,0ms);
  }
  .steps .row.is-entering > span::before { animation-delay:calc(var(--reveal-delay,0ms) + 120ms); }
  .motion-opening .hero-bottom .button { animation-name:cta-settle; }
  .motion-opening .hero h1 .shift::before { transform-origin:left; }
}
@keyframes cta-settle { from { transform:translateX(-9px); } to { transform:translateX(0); } }

.project details summary::after { content:""; display:inline-block; width:10px; height:2px; margin-left:9px; vertical-align:middle; background:var(--lime); transform:skewX(-26deg) scaleX(0); transform-origin:left; }
.project details summary:focus-visible::after { transform:skewX(-26deg) scaleX(1); }
@media (hover:hover) and (pointer:fine) {
  .project:hover details summary::after { transform:skewX(-26deg) scaleX(1); }
  .contact :is(input,textarea,select):hover { border-color:#40551a; }
}
@media (prefers-reduced-motion:no-preference) {
  .project details summary::after { transition:transform var(--motion-fast) var(--motion-out); }
}
