/* Recoupe — section « Exemples de cas d'usage »
   Sur le modèle de Rogo : panneau d'illustration fixe à gauche, textes qui défilent normalement à droite.
   Le panneau garde le même fond ; c'est le fond de la section qui change de teinte, en fondu, d'un cas à l'autre. */

#cas.cx { position: relative; isolation: isolate; padding: 130px 0 150px; background: #fff; overflow: clip; }

/* fonds de section : une teinte par cas, fondus en haut et en bas pour se raccorder au blanc */
.cx-bgs { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 220px, #000 calc(100% - 220px), transparent);
          mask-image: linear-gradient(transparent, #000 220px, #000 calc(100% - 220px), transparent); }
.cx-bgs span { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.cx-bgs span:nth-child(1) { background: radial-gradient(60% 50% at 8% 35%, rgba(246,201,180,.55), transparent 70%), radial-gradient(50% 45% at 95% 80%, rgba(233,150,122,.18), transparent 70%), #FBF7F3; }
.cx-bgs span:nth-child(2) { background: radial-gradient(60% 50% at 92% 40%, rgba(196,210,232,.6), transparent 70%), radial-gradient(45% 40% at 5% 85%, rgba(220,226,238,.7), transparent 70%), #F6F8FB; }
.cx-bgs span:nth-child(3) { background: radial-gradient(60% 50% at 50% 30%, rgba(214,206,236,.55), transparent 70%), radial-gradient(45% 40% at 90% 90%, rgba(246,201,180,.3), transparent 70%), #F8F7FB; }
.cx-bgs span:nth-child(4) { background: radial-gradient(60% 50% at 15% 85%, rgba(242,196,170,.55), transparent 70%), radial-gradient(50% 45% at 90% 15%, rgba(207,224,212,.45), transparent 70%), #FBF6F1; }
#cas[data-case="0"] .cx-bgs span:nth-child(1),
#cas[data-case="1"] .cx-bgs span:nth-child(2),
#cas[data-case="2"] .cx-bgs span:nth-child(3),
#cas[data-case="3"] .cx-bgs span:nth-child(4) { opacity: 1; }
.cx-bgs::after { content: ""; position: absolute; inset: 0; opacity: .28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.cx-in { width: min(1520px, 100% - 64px); margin-inline: auto; }

.cx-head { max-width: 820px; margin-bottom: 80px; }
.cx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 Inter, sans-serif; color: var(--sun-4); }
.cx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(160deg, var(--sun-2), var(--sun-4)); }
.cx-head h2 { margin: 18px 0 0; font: 500 clamp(36px, 4vw, 56px)/1.06 Manrope, sans-serif; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.cx-head p { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 56ch; }

.cx-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: start; }

/* panneau fixe, centré verticalement dans l'écran ; même fond pour tous les cas */
.cx-panel { position: sticky; top: max(90px, calc(50vh - var(--ph, 560px) / 2 + 30px)); border-radius: 28px; overflow: hidden; padding: clamp(20px, 2.2vw, 32px);
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(244,241,238,.85)); box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 30px 60px -36px rgba(60,30,15,.28); backdrop-filter: blur(6px); }
.cx-tint { display: none; }
.cx-panel cas-demos { display: block; position: relative; filter: drop-shadow(0 22px 34px rgba(40, 18, 8, .16)); }

/* textes : chaque bloc a la hauteur du panneau, contenu centré, donc aligné sur le milieu de l'animation */
.cx-list { display: flex; flex-direction: column; }
.cx-item { min-height: max(var(--ph, 560px), 62vh); display: flex; flex-direction: column; justify-content: center; padding: 32px 0; cursor: pointer; opacity: .3; transition: opacity .5s ease; }
.cx-item:first-child, .cx-item:last-child { min-height: var(--ph, 560px); }
.cx-item.on { opacity: 1; cursor: default; }
.cx-item .cx-name { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 Inter, sans-serif; color: var(--sun-4); }
.cx-item .cx-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(160deg, var(--sun-2), var(--sun-4)); }
.cx-item h3 { margin: 16px 0 0; font: 500 clamp(28px, 2.5vw, 38px)/1.1 Manrope, sans-serif; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.cx-item p { margin: 16px 0 0; font-size: 16.5px; line-height: 1.62; color: var(--text); max-width: 44ch; text-wrap: pretty; }
.cx-item ul { list-style: none; margin: 22px 0 0; padding: 0; max-width: 44ch; }
.cx-item li { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid rgba(0,0,0,.08); font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.cx-item li:last-child { border-bottom: 1px solid rgba(0,0,0,.08); }
.cx-item li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%;
  background: var(--sun-4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.3 9 4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }

/* bouton pause : discret, visible au survol du panneau (ou tant que la pause est active) */
.cx-pause { position: absolute; right: clamp(28px, 3vw, 44px); bottom: clamp(28px, 3vw, 44px); z-index: 3; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 999px;
  background: rgba(29,29,31,.72); color: #fff; cursor: pointer; opacity: 0; transform: scale(.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); transition: opacity .25s, transform .25s, background .2s; }
.cx-pause svg { width: 14px; height: 14px; }
.cx-pause .i-play { display: none; }
.cx-panel:hover .cx-pause, .cx-pause:focus-visible, .cx-panel.is-paused .cx-pause { opacity: 1; transform: none; }
.cx-panel.is-paused .cx-pause .i-pause { display: none; }
.cx-panel.is-paused .cx-pause .i-play { display: block; }
.cx-pause:hover { background: var(--ink); }

.cx-item ul.cx-two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; max-width: 52ch; }
.cx-item ul.cx-two li { font-size: 14px; }
.cx-item ul.cx-two li:nth-last-child(2) { border-bottom: 1px solid rgba(0,0,0,.08); }

/* lignes « Documents concernés / Export / Outils concernés » à la place des puces */
.cx-meta { margin: 24px 0 0; max-width: 46ch; border-top: 1px solid rgba(0,0,0,.09); }
.cx-meta > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.09); }
.cx-meta > div.col { grid-template-columns: 1fr; gap: 10px; }
.cx-meta dt { font-size: 13px; line-height: 1.5; color: var(--grey); }
.cx-meta dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.cx-auto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.cx-auto li { padding: 7px 0; font-size: 14px; line-height: 1.4; font-weight: 400; border-top: 1px solid rgba(0,0,0,.06); }
.cx-auto li:nth-child(-n+2) { border-top: 0; }
.cx-item .cx-auto { margin: 0; max-width: none; }
.cx-item .cx-auto li { display: block; color: var(--ink); }
.cx-item .cx-auto li::before { display: none; }
.cx-item .cx-auto li:last-child { border-bottom: 0; }

/* étude de cas — v3 : titre, outils sur une ligne façon frise (sans dates), citation illustrée, 3 chiffres à droite */
#etude .ec-title { margin-top: 16px; max-width: 24ch; }
.ec-grid { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(48px, 7vw, 112px); align-items: center; }
.ec-sub { margin: 0; font: 600 15px/1.3 Inter, sans-serif; color: var(--grey); }
.ec-line { list-style: none; margin: 30px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ec-line::before { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--sun-1), var(--sun-3)); }
.ec-line li { position: relative; padding-top: 32px; }
.ec-line li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--sun-3); }
.ec-line b { display: block; font: 500 18px/1.25 Manrope, sans-serif; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.ec-quote { margin: 64px 0 0; display: flex; align-items: center; gap: 20px; }
.ec-av { flex: none; width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 10px 24px -12px rgba(0,0,0,.3); }
.ec-quote blockquote { margin: 0; font: 500 clamp(22px, 2vw, 28px)/1.3 Manrope, sans-serif; letter-spacing: -.025em; color: var(--ink); }
.ec-quote figcaption { margin-top: 8px; font-size: 14px; color: var(--grey); }
.ec-figs { display: flex; flex-direction: column; gap: 12px; }
.ec-fig { background: #fff; border-radius: 24px; padding: 24px 28px; box-shadow: 0 0 0 1px var(--line); }
.ec-fig b { display: block; font: 600 clamp(40px, 3.6vw, 52px)/1 Manrope, sans-serif; letter-spacing: -.04em; color: var(--ink); }
.ec-fig span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--text); }
.ec-fig.main { background: linear-gradient(160deg, #FBE3D6, #FDF4EF); box-shadow: 0 0 0 1px rgba(194,69,42,.28); }
.ec-fig.main b { font-size: clamp(56px, 5.2vw, 76px); color: var(--sun-4); }

/* équipe — sur le modèle de Klayer : grandes photos légèrement arrondies, nom, rôle en gras en tête de paragraphe */
.tm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; margin-bottom: 56px; }
.tm-head .h2 { margin-top: 16px; }
.tm-story { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); max-width: 56ch; }
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
.tm-card { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: clamp(22px, 2.4vw, 32px); align-items: end; }
.tm-ph { position: relative; align-self: stretch; width: 100%; min-height: 440px; border-radius: 20px; overflow: hidden; background: #E6E6E9; }
.tm-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tm-card:hover .tm-ph img { transform: scale(1.03); }
.tm-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,12,10,.7)); pointer-events: none; }
.tm-cap { position: absolute; left: 18px; right: 16px; bottom: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; color: #fff; }
.tm-cap h3 { margin: 0; font: 500 21px/1.15 Manrope, sans-serif; letter-spacing: -.02em; }
.tm-cap small { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,.8); }
.tm-in { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.tm-in:hover { background: rgba(255,255,255,.3); }
.tm-in svg { width: 14px; height: 14px; }
.tm-card { align-items: stretch; }
.tm-card .tx { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.tm-card .lead { margin: 0; font: 500 clamp(20px, 1.7vw, 23px)/1.28 Manrope, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.tm-card .det { text-align: justify; hyphens: auto; -webkit-hyphens: auto; margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.tm-card .chips-h { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--grey); }
.tm-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-card .chips span { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--mist); display: inline-flex; align-items: center; font: 500 12.5px/1 Inter, sans-serif; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .cx-bgs span, .cx-item { transition: none; }
}

/* ---------- petits écrans ---------- */
@media (max-width: 1180px) {
  .tm-grid { grid-template-columns: 1fr; max-width: 760px; }
}
@media (max-width: 900px) {
  .cx-grid { grid-template-columns: minmax(0, 1fr); }
  .cx-panel { position: relative; top: 0; }
  .cx-item, .cx-item:first-child, .cx-item:last-child { min-height: 0; padding: 32px 0; opacity: 1; }
  .cx-meta > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cx-auto { grid-template-columns: minmax(0, 1fr); }
  .cx-auto li:nth-child(2) { border-top: 1px solid rgba(0,0,0,.06); }
  .cx-meta dd, .cx-meta dt { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .tm-card { grid-template-columns: minmax(0, 1fr); }
  .tm-ph { min-height: 0; aspect-ratio: 4 / 5; max-width: 340px; }
}

/* ---------- mouvement (16/11) : même courbe et même amplitude que le reste du site ---------- */
:root { --rv-ease: cubic-bezier(.2,.7,.2,1); }
/* cas d'usage : le texte du cas qui arrive monte et se précise, celui qui part remonte en s'estompant */
.cx-item { transition: opacity .9s var(--rv-ease); }
.cx-pin > * { transition: transform .9s var(--rv-ease), filter .9s var(--rv-ease); }
.cx-item:not(.on) .cx-pin > * { transform: translateY(22px); filter: blur(3px); }
.cx-item.past:not(.on) .cx-pin > * { transform: translateY(-16px); }
.cx-item.on .cx-pin > :nth-child(2) { transition-delay: 90ms; }
.cx-item.on .cx-pin > :nth-child(3) { transition-delay: 180ms; }
.cx-item.on .cx-pin > :nth-child(4) { transition-delay: 270ms; }
/* équipe : titre puis cartes en décalé, léger zoom arrière des photos */
.eq-rv #equipe .kick, .eq-rv #equipe .h2, .eq-rv #equipe .tm-card { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .9s var(--rv-ease), transform .9s var(--rv-ease), filter .9s var(--rv-ease); }
.eq-rv #equipe .tm-ph img { transform: scale(1.06); transition: transform 1.4s var(--rv-ease); }
.eq-rv #equipe.in .kick, .eq-rv #equipe.in .h2, .eq-rv #equipe.in .tm-card { opacity: 1; transform: none; filter: none; }
.eq-rv #equipe.in .h2 { transition-delay: 90ms; }
.eq-rv #equipe.in .tm-card:nth-child(1) { transition-delay: 180ms; }
.eq-rv #equipe.in .tm-card:nth-child(2) { transition-delay: 270ms; }
.eq-rv #equipe.in .tm-ph img { transform: scale(1); }
.eq-rv #equipe.in .tm-card:hover .tm-ph img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .cx-pin > *, .cx-item:not(.on) .cx-pin > * { transform: none !important; filter: none !important; transition: none !important; }
  .eq-rv #equipe .kick, .eq-rv #equipe .h2, .eq-rv #equipe .tm-card, .eq-rv #equipe .tm-ph img { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ---------- pause douce à chaque cas (16/11) : pas d'aimantation, le défilement reste libre ----------
   Chaque cas a plus de hauteur de défilement ; son texte reste épinglé au centre du panneau pendant ce trajet. */
.cx-item, .cx-item:first-child, .cx-item:last-child { min-height: calc(var(--ph, 560px) + 50vh); padding: 0; display: block; }
.cx-item:last-child { min-height: calc(var(--ph, 560px) + 25vh); }
.cx-pin { position: sticky; top: max(90px, calc(50vh - var(--ph, 560px) / 2 + 30px)); min-height: var(--ph, 560px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
@media (max-width: 900px) {
  .cx-item, .cx-item:first-child, .cx-item:last-child { min-height: 0; }
  .cx-pin { position: static; min-height: 0; }
}

/* ---------- apparition du titre de section ---------- */
.cx-rv .cx-head > * { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .9s var(--rv-ease), transform .9s var(--rv-ease), filter .9s var(--rv-ease); }
.cx-rv .cx-head.in > * { opacity: 1; transform: none; filter: none; }
.cx-rv .cx-head.in > :nth-child(2) { transition-delay: 90ms; }
.cx-rv .cx-head.in > :nth-child(3) { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  .cx-rv .cx-head > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
