/* Solutions (FR /solutions/, EN /en/solutions/), loaded after style.css and
   etude.css. The page is built from the case study's components (hero,
   navy panel, sections, device frames, steps, final call, call bar) by
   scripts/build_solutions.py; this file holds only what the case study
   has no equivalent for. Same system: five colours, Archivo, no radius,
   2px rules, no shadows, no gradients.

   The screenshot zoom (.ac-sol__shot, .ac-sol__zoom, .ac-zoom) and the
   status badge (.ac-sol__badge) stay in style.css, with js/main.js.

   Motion. Everything that moves sits inside prefers-reduced-motion:
   no-preference, and what waits for js/solutions.js also needs .js-anim.
   The markup and the rules outside those blocks are the finished state, so
   with less motion asked for, or no script, every drawing is complete and
   still. */

/* ---------- hero panel: the statuses of a request ---------- */

.so-panel { gap: 24px; }

/* Four steps joined by a line, then "cancelled" set apart as the exit.
   The markers are sky, not amber: they are states, nothing to press. */
.so-status { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; }
.so-status li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}
.so-status i {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: var(--rule) solid var(--bleu-givre);
  background: var(--bleu-givre);
}
.so-status li:not(.is-alt):not(:nth-last-child(2))::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 2px;
  height: 100%;
  background: var(--bleu-chouette);
}
.so-status .is-alt { margin-top: 6px; font-weight: 400; color: var(--bleu-givre); }
.so-status .is-alt i { background: none; }

/* On load, a request walks the track once: each square fills, its label
   lights up, the line draws down to the next one. */
@media (prefers-reduced-motion: no-preference) {
  .so-status li:not(.is-alt) { animation: so-lit 300ms var(--ease-ui) both; }
  .so-status li:not(.is-alt) i { animation: so-fill 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .so-status li:not(.is-alt):not(:nth-last-child(2))::before { transform-origin: top; animation: so-grow 500ms cubic-bezier(0.65, 0, 0.35, 1) both; }
  .so-status li:nth-child(1), .so-status li:nth-child(1) i { animation-delay: 400ms; }
  .so-status li:nth-child(2), .so-status li:nth-child(2) i { animation-delay: 1100ms; }
  .so-status li:nth-child(3), .so-status li:nth-child(3) i { animation-delay: 1800ms; }
  .so-status li:nth-child(4), .so-status li:nth-child(4) i { animation-delay: 2500ms; }
  .so-status li:not(.is-alt):not(:nth-last-child(2)):nth-child(1)::before { animation-delay: 650ms; }
  .so-status li:not(.is-alt):not(:nth-last-child(2)):nth-child(2)::before { animation-delay: 1350ms; }
  .so-status li:not(.is-alt):not(:nth-last-child(2)):nth-child(3)::before { animation-delay: 2050ms; }
  .so-status .is-alt i { animation: ec-tally 420ms var(--ease-soft) both; animation-delay: 3000ms; }
}
@keyframes so-fill { from { background-color: transparent; transform: scale(0.6); } to { background-color: var(--bleu-givre); transform: none; } }
@keyframes so-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes so-lit { from { color: var(--bleu-givre); } to { color: var(--blanc-neige); } }

/* Words, not figures, in the grid: a size that fits "Français" in a cell
   at 360px. */
.so-facts dd { font-size: clamp(1.375rem, 3vw, 1.875rem); letter-spacing: -0.02em; }

/* ---------- how it works: three drawings, one per step ---------- */

.so-steps li { margin: 0; }
.so-chip { display: inline-block; font-weight: 600; font-size: 14px; padding: 4px 10px; background: var(--ambre); color: var(--bleu-nuit); margin-bottom: 12px; }

.so-scene__art {
  position: relative;
  margin: 0 0 18px;
  background: var(--bleu-givre);
  border: var(--rule) solid var(--bleu-nuit);
  overflow: hidden;
}
.so-art { display: block; width: 100%; height: auto; }
.so-art .fn { fill: var(--bleu-nuit); }
.so-art .fc { fill: var(--bleu-chouette); }
.so-art .fg { fill: var(--bleu-givre); }
.so-art .fa { fill: var(--ambre); }
.so-art .fw { fill: var(--blanc-neige); }
.so-art .no { fill: none; }
.so-art .sn { stroke: var(--bleu-nuit); }
.so-art .sc { stroke: var(--bleu-chouette); }
.so-art .sg { stroke: var(--bleu-givre); }

/* At rest the drawing is the end of the story: what only exists in motion
   (taps, things in flight, the ring, the earlier statuses) is hidden. */
.so-art .s1-tap, .so-art .s1-fly, .so-art .s1-flyphoto,
.so-art .s2-tap1, .so-art .s2-tap2, .so-art .s2-waves, .so-art .s2-mail,
.so-art .s3-t1, .so-art .s3-t2, .so-art .s3-t3 { opacity: 0; }

/* Which drawing is playing: a bar fills along the bottom of its frame. */
.so-scene__bar {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--bleu-nuit);
}

/* One 15s cycle per scene: about 5s of action, a pause on the finished
   picture, a quick fade, again. Side by side (900px and up) the three
   take turns, 5s apart; stacked on a phone, each starts as it scrolls in.
   Paused off screen. Times below are % of 15s (1% = 0.15s). */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .so-scene { --so-d: 0s; }
  .js-anim .so-scene .a {
    animation-duration: 15s;
    animation-delay: var(--so-d);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-play-state: paused;
    transform-box: fill-box;
    transform-origin: center;
  }
  .js-anim .so-scene.is-play .a { animation-play-state: running; }
  .js-anim .so-scene .so-scene__bar { display: block; transform-origin: left center; animation-name: so-bar; }
  .js-anim .so-scene.is-play .so-dash { animation: so-march 1.2s linear infinite; }

  .js-anim .so-art .live { animation-name: so-live; }

  .js-anim .so-art .s1-type1, .js-anim .so-art .s1-type2, .js-anim .so-art .s1-type3, .js-anim .so-art .s1-type4,
  .js-anim .so-art .s3-seg1, .js-anim .so-art .s3-seg2, .js-anim .so-art .s3-seg3 { transform-origin: left center; }

  .js-anim .so-art .s1-type1 { animation-name: s1-type1; }
  .js-anim .so-art .s1-type2 { animation-name: s1-type2; }
  .js-anim .so-art .s1-type3 { animation-name: s1-type3; }
  .js-anim .so-art .s1-type4 { animation-name: s1-type4; }
  .js-anim .so-art .s1-photo { animation-name: s1-photo; }
  .js-anim .so-art .s1-tap { animation-name: s1-tap; }
  .js-anim .so-art .s1-btn { animation-name: s1-btn; }
  .js-anim .so-art .s1-fly { animation-name: s1-fly; }
  .js-anim .so-art .s1-rows { animation-name: s1-rows; }
  .js-anim .so-art .s1-row { animation-name: s1-row; }
  .js-anim .so-art .s1-flyphoto { animation-name: s1-flyphoto; }
  .js-anim .so-art .s1-inphoto { animation-name: s1-inphoto; }
  .js-anim .so-art .s1-ref { animation-name: s1-ref; }

  .js-anim .so-art .s2-tap1 { animation-name: s2-tap1; }
  .js-anim .so-art .s2-call { animation-name: s2-call; }
  .js-anim .so-art .s2-waves { animation-name: s2-waves; }
  .js-anim .so-art .s2-tap2 { animation-name: s2-tap2; }
  .js-anim .so-art .s2-reply { animation-name: s2-reply; }
  .js-anim .so-art .s2-mail { animation-name: s2-mail; }
  .js-anim .so-art .s2-check { animation-name: s2-check; }

  .js-anim .so-art .s3-seg1 { animation-name: s3-seg1; }
  .js-anim .so-art .s3-seg2 { animation-name: s3-seg2; }
  .js-anim .so-art .s3-seg3 { animation-name: s3-seg3; }
  .js-anim .so-art .s3-m2 { animation-name: s3-m2; }
  .js-anim .so-art .s3-m3 { animation-name: s3-m3; }
  .js-anim .so-art .s3-m4 { animation-name: s3-m4; }
  .js-anim .so-art .s3-t1 { animation-name: s3-t1; }
  .js-anim .so-art .s3-t2 { animation-name: s3-t2; }
  .js-anim .so-art .s3-t3 { animation-name: s3-t3; }
  .js-anim .so-art .s3-t4 { animation-name: s3-t4; }
  .js-anim .so-art .s3-done { animation-name: s3-done; }
  .js-anim .so-art .s3-tag { animation-name: s3-tag; }
  .js-anim .so-art .s3-note { animation-name: s3-note; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js-anim .so-scene:nth-child(2) { --so-d: 5s; }
  .js-anim .so-scene:nth-child(3) { --so-d: 10s; }
}

/* shared: the reset fade, the progress bar, the dashes flowing */
@keyframes so-live { 0%, 94% { opacity: 1; } 96%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes so-bar { 0% { transform: scaleX(0); } 33.3%, 94% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes so-march { to { stroke-dashoffset: -16; } }

/* 1 · the customer writes: fields fill, a photo, Send; the request flies to
   the dashboard and pushes the list down, the photo to the inbox with its code */
@keyframes s1-type1 { 0%, 3% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); } 7%, 94% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes s1-type2 { 0%, 7% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); } 9%, 94% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes s1-type3 { 0%, 9% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); } 11%, 94% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes s1-type4 { 0%, 11% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); } 13%, 94% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes s1-photo { 0%, 13% { opacity: 0; transform: scale(0.3); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 15.5%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(0.3); } }
@keyframes s1-tap { 0%, 16% { opacity: 0; transform: scale(0.3); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 16.5% { opacity: 1; } 19.5%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes s1-btn { 0%, 16% { transform: none; } 17% { transform: scale(0.94); } 18.5%, 100% { transform: none; } }
@keyframes s1-fly {
  0%, 17% { opacity: 0; transform: translate(0, 0); }
  17.5% { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  21.5% { transform: translate(80px, -14px); animation-timing-function: cubic-bezier(0.1, 0.4, 0.3, 1); }
  26% { opacity: 1; transform: translate(138px, -112px); }
  27%, 100% { opacity: 0; transform: translate(138px, -112px); }
}
@keyframes s1-rows { 0%, 25% { transform: translateY(-30px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 28.5%, 94% { transform: none; } 96%, 100% { transform: translateY(-30px); } }
@keyframes s1-row { 0%, 26% { opacity: 0; transform: translateY(-10px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 29%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes s1-flyphoto {
  0%, 18% { opacity: 0; transform: translate(0, 0); }
  18.5% { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  22.5% { transform: translate(104px, 34px); animation-timing-function: cubic-bezier(0.1, 0.4, 0.3, 1); }
  26.5% { opacity: 1; transform: translate(186px, 8px); }
  27.5%, 100% { opacity: 0; transform: translate(186px, 8px); }
}
@keyframes s1-inphoto { 0%, 26.5% { opacity: 0; transform: translateY(10px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 29%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes s1-ref { 0%, 28% { opacity: 0; transform: scale(0.4); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 31%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(0.4); } }

/* 2 · you reply: tap Call, the customer's phone rings; tap Reply, an email
   flies over; done */
@keyframes s2-tap1 { 0%, 4% { opacity: 0; transform: scale(0.3); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 4.5% { opacity: 1; } 7.5%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes s2-call { 0%, 4% { transform: none; } 5% { transform: scale(0.94); } 6.5%, 100% { transform: none; } }
@keyframes s2-waves {
  0%, 7% { opacity: 0; transform: scale(0.85); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  9% { opacity: 1; transform: none; }
  11.5% { transform: scale(1.08); }
  14% { transform: none; }
  16.5% { transform: scale(1.08); }
  19% { opacity: 1; transform: none; }
  20.5%, 100% { opacity: 0; transform: none; }
}
@keyframes s2-tap2 { 0%, 21% { opacity: 0; transform: scale(0.3); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 21.5% { opacity: 1; } 24.5%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes s2-reply { 0%, 21% { transform: none; } 22% { transform: scale(0.94); } 23.5%, 100% { transform: none; } }
@keyframes s2-mail {
  0%, 22.5% { opacity: 0; transform: translate(0, 0); }
  23% { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  26.5% { transform: translate(84px, -10px); animation-timing-function: cubic-bezier(0.1, 0.4, 0.3, 1); }
  30% { opacity: 1; transform: translate(212px, -80px); }
  31%, 100% { opacity: 0; transform: translate(212px, -80px); }
}
@keyframes s2-check { 0%, 30% { opacity: 0; transform: scale(0.3); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 32.5%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(0.3); } }

/* 3 · you keep track: the request moves Nouveau, En cours, Soumission
   envoyée, Complété; then a tag and a private note */
@keyframes s3-seg1 { 0%, 4% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); } 7%, 94% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes s3-seg2 { 0%, 12% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); } 15%, 94% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes s3-seg3 { 0%, 20% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); } 23%, 94% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes s3-m2 { 0%, 7% { transform: scale(0); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 9.5%, 94% { transform: none; } 96%, 100% { transform: scale(0); } }
@keyframes s3-m3 { 0%, 15% { transform: scale(0); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 17.5%, 94% { transform: none; } 96%, 100% { transform: scale(0); } }
@keyframes s3-m4 { 0%, 23% { transform: scale(0); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 25.5%, 94% { transform: none; } 96%, 100% { transform: scale(0); } }
@keyframes s3-t1 { 0%, 7% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 8.5%, 96% { opacity: 0; transform: translateY(-6px); } 97%, 100% { opacity: 1; transform: none; } }
@keyframes s3-t2 { 0%, 7.5% { opacity: 0; transform: translateY(6px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 9.5%, 13.5% { opacity: 1; transform: none; } 15%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes s3-t3 { 0%, 15.5% { opacity: 0; transform: translateY(6px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 17.5%, 21.5% { opacity: 1; transform: none; } 23%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes s3-t4 { 0%, 23.5% { opacity: 0; transform: translateY(6px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 25.5%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes s3-done { 0%, 25.5% { opacity: 0; transform: scale(0.3); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 28%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(0.3); } }
@keyframes s3-tag { 0%, 28% { opacity: 0; transform: scale(0.5); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); } 30.5%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(0.5); } }
@keyframes s3-note { 0%, 30% { opacity: 0; transform: translateY(14px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 33%, 94% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- screenshots: the zoomable shot inside the device frame ---------- */

/* The frame is navy, so the shot's own ink rule disappears into it until
   the pointer turns it amber. */
.so .ec-shot__frame .ac-sol__shot { background: var(--blanc-neige); }

/* The phone shots are too narrow for the word ZOOM: icon only, stated
   outright so it holds where container queries are missing. */
.so .ec-shot:not(.ec-shot--desk) .ac-sol__zoom-text { display: none; }
.so .has-zoom .ec-shot:not(.ec-shot--desk) .ac-sol__zoom { padding: 0; }

/* The three shots rise into place, left to right, the first time. */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .so-shots .ec-shot { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease-ui), transform 0.9s var(--ease-soft); }
  .js-anim .so-shots.is-play .ec-shot { opacity: 1; transform: none; }
  .js-anim .so-shots.is-play .ec-shot:nth-child(2) { transition-delay: 120ms; }
  .js-anim .so-shots.is-play .ec-shot:nth-child(3) { transition-delay: 240ms; }
}

/* ---------- what you can do ---------- */

.so-features {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  background: var(--bleu-nuit);
  border: var(--rule) solid var(--bleu-nuit);
}
@media (min-width: 640px) { .so-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .so-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.so-features li {
  margin: 0;
  background: var(--blanc-neige);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.so-features .icon { width: 30px; height: 30px; stroke: var(--bleu-chouette); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
/* One column on a phone: icon beside the text, so six cells stay short. */
@media (max-width: 639px) {
  .so-features li { flex-direction: row; align-items: flex-start; gap: 16px; padding: 18px 16px; }
  .so-features .icon { width: 26px; height: 26px; margin-top: 1px; }
}

/* Each icon draws itself, one after the other, the first time the grid
   is on screen. The symbols carry pathLength="1", so one dash pattern
   fits every shape. */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .so-features .icon { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
  .js-anim .so-features.is-play .icon { animation: so-draw 900ms cubic-bezier(0.65, 0, 0.35, 1) both; }
  .js-anim .so-features.is-play li:nth-child(2) .icon { animation-delay: 120ms; }
  .js-anim .so-features.is-play li:nth-child(3) .icon { animation-delay: 240ms; }
  .js-anim .so-features.is-play li:nth-child(4) .icon { animation-delay: 360ms; }
  .js-anim .so-features.is-play li:nth-child(5) .icon { animation-delay: 480ms; }
  .js-anim .so-features.is-play li:nth-child(6) .icon { animation-delay: 600ms; }
}
@keyframes so-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Big60: the badge above the title ---------- */

.so-head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 0; }
.so-head .ac-sol__badge { margin-bottom: 14px; }

/* The 60 is what the product is, not a result: an ink-light rule, since
   amber marks results and what can be pressed. */
.so-split .ec-big { border-top-color: var(--bleu-chouette); }
