/* =====================================================================
   Études de cas (realisations/*.html) — complète service-page.css
   ===================================================================== */
.cs-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* Captures de l'application */
.cs-screens { scroll-margin-top: 120px; padding-top: 40px; }
.cs-screens figure { margin: 0; }
.cs-screens figcaption, .cs-caption { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-dim); text-align: center; }

/* Cadre de navigateur commun */
.cs-browser {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 90px -30px rgba(var(--haze-rgb), 0.45);
}
.cs-browser-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(var(--fg-rgb), 0.03); }
.cs-browser-dots { display: flex; gap: 6px; }
.cs-browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--fg-rgb), 0.18); }
.cs-browser-url { flex: 0 1 260px; margin: 0 auto; transform: translateX(-24px); height: 20px; border-radius: 99px; background: rgba(var(--fg-rgb), 0.05); font-family: "Geist Mono", monospace; font-size: 11px; line-height: 20px; text-align: center; color: var(--ink-dim); }
.cs-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #05040A; }

/* Écran à la une : légère perspective, lumière de la teinte du logo */
.cs-hero-shot { position: relative; perspective: 2000px; margin-bottom: 72px !important; }
.cs-hero-shot::before { content: ""; position: absolute; inset: 8% 6% 4%; z-index: -1; border-radius: 40px; filter: blur(60px);
  background: radial-gradient(60% 60% at 30% 40%, rgba(var(--haze-rgb), 0.35), transparent 70%), radial-gradient(50% 60% at 75% 60%, rgba(var(--haze-2-rgb), 0.22), transparent 70%); }
.cs-hero-shot .cs-browser { transform: rotateX(5deg) scale(0.985); transform-origin: 50% 100%; transition: transform 900ms cubic-bezier(.2,.7,.2,1); border-radius: 16px; }
.cs-hero-shot:hover .cs-browser { transform: none; }

/* Sélecteur à onglets */
.cs-tabs { max-width: 1000px; margin: 0 auto 80px; }
.cs-tablist { display: flex; justify-content: center; gap: 6px; margin: 0 auto 22px; padding: 5px; width: max-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 99px; background: rgba(var(--fg-rgb), 0.03);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.cs-tablist::-webkit-scrollbar { display: none; }
.cs-tab { flex: none; scroll-snap-align: center; border: 0; cursor: pointer; padding: 10px 20px; border-radius: 99px; background: none; color: var(--ink-dim);
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; transition: color 220ms, background 220ms; }
.cs-tab:hover { color: var(--ink); }
.cs-tab[aria-selected="true"] { color: #FFFFFF; background: var(--btn-prim-bg); }
.cs-tab:focus-visible { outline: 2px solid var(--brand-magenta); outline-offset: 2px; }
.cs-panels { display: grid; touch-action: pan-y; }
.cs-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 420ms ease, visibility 0s linear 420ms; }
.cs-panel.is-active { opacity: 1; visibility: visible; transition: opacity 420ms ease, visibility 0s; }

/* Contenus générés */
.cs-produced { text-align: center; }
.cs-produced-title { margin: 0 0 24px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.cs-visuals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-visuals img {
  display: block; width: 100%; height: auto; aspect-ratio: 6 / 7; object-fit: cover; object-position: top;
  border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .cs-panel, .cs-panel.is-active, .cs-hero-shot .cs-browser { transition: none; }
}

/* Choix techniques */
.cs-tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs-tech-item {
  padding: 24px 22px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(145deg, rgba(var(--fg-rgb), 0.04), rgba(var(--fg-rgb), 0.01));
  display: flex; flex-direction: column; gap: 6px;
}
.cs-tech-item .k { font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.cs-tech-item b { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.cs-tech-item p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-dim); }

@media (max-width: 900px) {
  .cs-hero-shot { margin-bottom: 52px !important; }
  .cs-hero-shot .cs-browser { transform: none; }
  .cs-tabs { margin-bottom: 56px; }
  .cs-tech { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cs-visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cs-tablist { justify-content: flex-start; width: auto; }
  .cs-tab { padding: 9px 16px; font-size: 13.5px; }
  .cs-browser-bar { height: 26px; padding: 0 10px; }
  .cs-browser-dots i { width: 7px; height: 7px; }
  .cs-browser-url { font-size: 10px; height: 16px; line-height: 16px; transform: none; }
  .cs-tech { grid-template-columns: 1fr; }
  .cs-browser { border-radius: 10px; }
}
