/* Pulsion Studio : gabarit des pages cas d'usage (docs/gabarits-pages.md, 2.2).
   S'ajoute à experience.css et pages.css, sans les modifier. Pages générées par outils/source-cas.py. */

/* ---------- Héros : prix de la formule ---------- */
.cas-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cas-price-amount { font-family: var(--font-title); font-weight: var(--title-weight); font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); letter-spacing: var(--title-track); line-height: 1; color: var(--fg); }
.cas-price-note { color: var(--muted); font-size: .95rem; }

/* ---------- Vous en êtes là : constats, une carte chacun ---------- */
.cas-situations--2, .cas-situations--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cas-situations .story-item { gap: 10px; }
.cas-situations .story-item h3::before {
  content: ""; display: block; width: 28px; height: 2px; margin-bottom: 18px; border-radius: 2px; background: var(--blue);
}

/* ---------- Périmètre : compris / pas compris ---------- */
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.scope-col { display: flex; flex-direction: column; gap: 20px; padding: clamp(26px, 3vw, 36px); border-radius: 24px; }
.scope-col h3 { font-family: var(--font-title); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }
.scope-col--out { border: 1px dashed rgba(10, 10, 35, .2); background: rgba(255, 255, 255, .45); }
.scope-list { display: flex; flex-direction: column; }
.scope-list li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid var(--line); line-height: 1.45; }
.scope-list li:first-child { border-top: 0; padding-top: 0; }
.scope-list li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat;
}
.scope-list li:first-child::before { top: 2px; }
.scope-list--out li { color: var(--muted); }
.scope-list--out li::before { background: transparent; border: 1.5px solid rgba(10, 10, 35, .3); }
.scope-list--out li::after { content: ""; position: absolute; left: 6px; top: 24px; width: 8px; height: 1.5px; background: rgba(10, 10, 35, .45); }
.scope-list--out li:first-child::after { top: 11px; }
.scope-note { max-width: 760px; margin-top: 28px; color: var(--muted); text-wrap: pretty; }
.scope-note b { color: var(--fg); font-weight: 600; }
.scope-note a { color: var(--blue); text-underline-offset: 3px; }

/* ---------- Ce que nous faisons : projet sur devis, cartes numérotées ---------- */
.cas-offer--2, .cas-offer--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cas-offer .story-item { gap: 10px; }
.cas-offer-num { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--blue); margin-bottom: 8px; }

/* ---------- Comment ça se passe : étapes numérotées ---------- */
.cas-steps { display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.cas-steps--3 { --steps: 3; }
.cas-steps--4 { --steps: 4; }
.cas-steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.cas-step-num { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--blue-bright); }
.cas-steps h3 { font-family: var(--font-title); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.25; }
.cas-steps p { color: var(--muted); font-size: .95rem; text-wrap: pretty; }

/* ---------- Preuve : démonstration ou réalisation, puis un avis ---------- */
.cas-proof-lead { margin-top: 20px; }
.showcase .showcase-text .step-links { margin-top: 26px; }
.showcase .work :is(a, .work-card) { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.cas-review { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); }
.cas-review-label { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.3; color: var(--fg); text-wrap: pretty; }

/* Capture d'une réalisation dans le cadre d'écran (même rendu que les pages besoin) */
.showcase-stage { margin: 0; }
.showcase .device--shot { height: auto; aspect-ratio: 16 / 11; }
.device--shot .screen { background: #0a0d2b; }
.device--shot .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.showcase-caption { max-width: 52ch; margin-inline: auto; font-size: .875rem; color: var(--muted); text-align: center; text-wrap: pretty; }
/* Un avis à la place du visuel, ou plusieurs avis sous la preuve */
.cas-proof-review .review { height: 100%; }
.cas-review--multi { grid-template-columns: 1fr; gap: 28px; }
.cas-review--multi .cas-review-label { max-width: 34ch; }
.cas-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 1100px) {
  .cas-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 900px) {
  .cas-situations--2, .cas-situations--4, .cas-offer--2, .cas-offer--4, .scope, .cas-review, .cas-review-list { grid-template-columns: 1fr; }
  .cas-steps { grid-template-columns: 1fr; gap: 0; }
  .cas-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 0; padding-block: 20px; }
  .cas-step-num { grid-row: span 2; font-size: 1.3rem; }
  .cas-steps li:last-child { border-bottom: 1px solid var(--line); }
}
