/* Le mouvement accompagne la lecture. Les contenus restent visibles sans JS. */
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 30; background: #b3c1cc; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hero-bottom { gap: 18px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff66; border-radius: 30px; color: #ffffff; background: #0c10144d; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.motion-toggle:hover { background: #0c101499; }
.hero-content h1, .hero-content > p, .hero-actions { animation: entrance .2s cubic-bezier(.2,.65,.25,1) both; }
@keyframes entrance { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .22s cubic-bezier(.2,.65,.25,1); }
.motion-ready [data-reveal].is-revealed { opacity: 1; transform: none; }
.company-card { position: relative; overflow: hidden; transition: background .18s ease; }
.company-card::after { content: ''; position: absolute; top: -90px; right: -90px; width: 250px; height: 250px; border: 1px solid currentColor; border-radius: 50%; opacity: .07; transform: scale(.85); transition: transform .22s ease; pointer-events: none; }
.company-card:hover::after, .company-card:focus-within::after { transform: scale(1.25); }
.reference-logo img { transition: transform .18s cubic-bezier(.2,.65,.25,1); }
.references-grid article:hover .reference-logo img { transform: translateY(-3px); }
.relationship-section { padding-block: 12px 88px; }
.relationship-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr); gap: 0 8%; align-items: center; }
.relationship-copy { grid-column: 1; grid-row: 1; align-self: end; }
.relationship-followup { grid-column: 1; grid-row: 2; align-self: start; }
.relationship-copy h2 { margin-top: 23px; font-size: clamp(34px, 3.2vw, 45px); line-height: 1.18; }
.relationship-intro { max-width: 410px; color: var(--muted); font-size: 17px; line-height: 1.7; margin-top: 24px; }
.story-invitation { color: #647889; font-size: 12px; margin-top: 27px; }
.story-controls { margin-top: 12px; border-top: 1px solid var(--line); }
.story-step { position: relative; width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 12px; min-height: 58px; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: #55616b; font-size: 19px; font-weight: 400; transition: color .15s ease, background .15s ease; }
.story-number { font-size: 11px; font-weight: 400; color: #71818e; width: 23px; }
.story-step::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: #71818e; transform: scaleX(0); transform-origin: left; transition: transform .18s cubic-bezier(.2,.65,.25,1); }
.story-step.is-active, .story-step:hover { color: var(--ink); background: #eef1f3; }
.story-step.is-active { font-weight: 700; }
.story-step.is-active::after { transform: scaleX(1); }
.story-description { min-height: 83px; max-width: 410px; padding-top: 20px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.relationship-followup .text-link { margin-top: 17px; }
.relationship-figure { grid-column: 2; grid-row: 1 / span 2; min-width: 0; margin: 0; }
.relationship-scene { position: relative; overflow: hidden; aspect-ratio: 1.06; isolation: isolate; background: #d8dfe3; }
.relationship-scene::after { content: ''; position: absolute; inset: 50% 0 0; z-index: 1; background: linear-gradient(transparent, #0c1014b3); pointer-events: none; }
.story-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .18s ease, transform .24s cubic-bezier(.2,.65,.25,1); }
.story-image.is-active { opacity: 1; transform: scale(1); }
.story-image:first-child { object-position: 52% center; }
.story-image:nth-child(2) { object-position: 60% center; }
.story-image:nth-child(3) { object-position: 68% center; }
.scene-index { position: absolute; top: 25px; left: 28px; z-index: 2; color: #fff; font-size: 11px; letter-spacing: 1px; text-shadow: 0 1px 9px #0c10147a; }
.scene-caption { position: absolute; bottom: 31px; left: 28px; right: 28px; z-index: 2; font-size: 22px; font-weight: 400; color: #fff; }
.relationship-thread { position: absolute; bottom: 82px; left: 28px; right: 28px; width: calc(100% - 56px); height: auto; z-index: 2; opacity: .8; }
.relationship-thread path { stroke: #e1e8ee; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .22s cubic-bezier(.2,.65,.25,1); }
.relationship-thread circle { fill: #e1e8ee; }
.is-revealed .relationship-thread path { stroke-dashoffset: 0; }
.relationship-figure figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.relationship-figure figcaption span { font-size: 11px; white-space: nowrap; }
.motion-paused [data-reveal] { opacity: 1; transform: none; transition: none; }
.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; transition: none !important; }
.motion-paused .hero-content h1, .motion-paused .hero-content > p, .motion-paused .hero-actions { animation: none; opacity: 1; transform: none; }
@media (min-width: 801px) { .hero-bottom > span { flex: 1; } .hero-bottom > a { margin-left: 6px; } }
@media (max-width: 1100px) { .relationship-layout { gap: 6%; } .relationship-copy h2 { font-size: 39px; } .relationship-scene { aspect-ratio: .9; } }
@media (max-width: 800px) {
  .relationship-section { padding-block: 0 76px; }
  .relationship-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .relationship-copy, .relationship-followup, .relationship-figure { grid-column: 1; grid-row: auto; }
  .relationship-copy { max-width: 540px; }
  .relationship-copy h2 { font-size: 36px; }
  .relationship-intro { max-width: none; }
  .relationship-scene { aspect-ratio: 1.12; }
  .story-controls { display: flex; }
  .story-step { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 12px 9px; min-height: 72px; font-size: 17px; }
  .story-step + .story-step { padding-left: 10px; }
  .story-description { min-height: 0; max-width: none; padding-top: 0; }
  .hero-bottom > span { display: none; }
  .hero-bottom > a { margin-left: auto; }
}
@media (max-width: 500px) {
  .relationship-section { padding-bottom: 66px; }
  .relationship-copy h2 { font-size: 31px; }
  .relationship-intro { font-size: 17px; margin-top: 22px; }
  .story-invitation { font-size: 12px; margin-top: 25px; }
  .story-step { font-size: 16px; }
  .relationship-layout { gap: 31px; }
  .relationship-scene { aspect-ratio: 1.04; }
  .scene-index { left: 22px; top: 21px; }
  .scene-caption { left: 22px; bottom: 25px; font-size: 20px; }
  .relationship-thread { left: 22px; right: 22px; width: calc(100% - 44px); bottom: 65px; }
  .relationship-figure figcaption { font-size: 11px; flex-wrap: wrap; gap: 4px; }
  .relationship-figure figcaption span { flex-basis: 100%; }
  .motion-toggle { font-size: 11px; padding-inline: 12px; min-height: 44px; }
}
@media (max-width: 350px) {
  .story-step { flex: 1; min-width: 0; font-size: 13px; }
  .story-step + .story-step { padding-left: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
  .hero-content h1, .hero-content > p, .hero-actions { animation: none; }
  .relationship-thread path { stroke-dashoffset: 0; }
  .story-image { transition: none; transform: none; }
}
