/* JokyJoke — « Cinéma » : the expertise page (the card stands on the right, the reading on the left). */
.expertise .page-main { --col: min(780px, 50vw); }
.x-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 16vh var(--gutter) 10vh; }
.x-copy { width: var(--col); }
.x-copy > * { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.x-hero.in .x-copy > * { opacity: 1; transform: none; }
.x-hero.in .x-copy > :nth-child(2) { transition-delay: .08s; } .x-hero.in .x-copy > :nth-child(3) { transition-delay: .16s; }
.x-hero.in .x-copy > :nth-child(4) { transition-delay: .26s; } .x-hero.in .x-copy > :nth-child(5) { transition-delay: .34s; }
.x-hero.in .x-copy > :nth-child(6) { transition-delay: .42s; } .x-hero.in .x-copy > :nth-child(7) { transition-delay: .5s; }
.x-index { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; font-size: 13px; color: var(--pearl-3); }
.x-index b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 15px; color: var(--gold); }
.x-title { font-size: clamp(34px, 3.9vw, 72px); max-width: 14ch; }
.x-tagline { margin: 28px 0 0; font-size: 21px; line-height: 1.5; color: var(--pearl); max-width: 40ch; }
.x-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.62; color: var(--pearl-2); max-width: 52ch; }
.x-copy .chips { margin-top: 24px; }
.x-copy .ctas { margin-top: 36px; flex-wrap: wrap; }

.x-body { position: relative; z-index: 2; padding: 0 var(--gutter) 6vh; }
.x-body > * { width: var(--col); }
.x-sec { padding: 9vh 0; border-top: 1px solid rgba(238, 231, 219, 0.08); }
.x-h { display: flex; align-items: baseline; gap: 16px; margin: 0 0 5vh; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 44px); line-height: 1; }
.x-h span { font-size: 12.5px; font-weight: 700; color: var(--gold); }
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.caps b, .approach b { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 12px; color: var(--gold-2); }
.caps h3 { margin: 10px 0 0; font-size: 19px; font-weight: 500; color: var(--pearl); }
.caps p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--pearl-2); }
.approach { list-style: none; margin: 0; padding: 0; display: grid; gap: 4vh; }
.approach li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.approach h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2vw, 32px); line-height: 1.02; }
.approach p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.62; color: var(--pearl-2); max-width: 50ch; }
.x-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.deliv { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.deliv li { display: flex; gap: 14px; font-size: 16px; line-height: 1.5; color: var(--pearl-2); }
.deliv li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); }
.stack-chips { margin: 0; }
.x-cta { padding: 13vh 0 11vh; border-top: 1px solid rgba(238, 231, 219, 0.08); }
.x-cta .page-title { font-size: clamp(36px, 4.4vw, 78px); }
.x-cta p { margin: 22px 0 32px; font-size: 18px; line-height: 1.6; color: var(--pearl-2); max-width: 46ch; }
.x-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 0 7vh; }
.pn { display: grid; gap: 8px; padding: 24px 26px; border-radius: 20px; background: rgba(238, 231, 219, 0.03); box-shadow: inset 0 0 0 1px rgba(238, 231, 219, 0.08); transition: box-shadow .5s, transform .7s var(--ease); }
.pn:hover, .pn:focus-visible { box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.5); transform: translateY(-3px); }
.pn span { font-size: 13px; color: var(--gold); }
.pn b { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 17px; line-height: 1.15; }
.pn.next { text-align: right; }
.x-others { padding: 7vh 0 4vh; border-top: 1px solid rgba(238, 231, 219, 0.08); }
.mcs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; perspective: 700px; }
.mc { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mc-card { position: relative; display: block; width: 100%; max-width: 100px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.6)); transition: transform .6s var(--ease), filter .5s; }
.mc-card img { display: block; width: 100%; height: auto; }
.mc-card-old { position: relative; display: grid; place-items: center; width: 100%; max-width: 92px; aspect-ratio: 1 / 1.397; border-radius: 8px; color: var(--gold);
  background: radial-gradient(120% 90% at 30% 10%, #1d1914, #070607 62%); box-shadow: inset 0 0 0 1px rgba(216, 195, 160, 0.42), inset 0 0 0 4px #080708, inset 0 0 0 5px rgba(216, 195, 160, 0.2), 0 12px 26px -14px rgba(0, 0, 0, 0.9);
  transition: transform .6s var(--ease), box-shadow .5s; }
.mc-card i { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-style: normal; font-size: 17px; }
.mc-card b { position: absolute; left: 8px; top: 6px; font-size: 7px; }
.mc:hover .mc-card, .mc:focus-visible .mc-card { transform: translateY(-8px) rotate(-2deg); box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 4px #080708, inset 0 0 0 5px rgba(216, 195, 160, 0.4), 0 18px 34px -12px rgba(216, 195, 160, 0.4); }
.mc-name { font-size: 12px; color: var(--pearl-3); transition: color .4s; }
.mc:hover .mc-name, .mc:focus-visible .mc-name { color: var(--pearl); }
.mc:focus-visible { outline: none; }
.mc:focus-visible .mc-card { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 1100px), (max-aspect-ratio: 9/10) {
  .expertise .page-main { --col: 100%; }
  .x-hero { align-items: flex-end; min-height: 100svh; padding: 45svh 20px 5vh; }
  .x-index { margin-bottom: 12px; }
  .crumbs { margin-bottom: 14px; }
  .x-tagline { margin-top: 16px; }
  .x-lead { font-size: 15.5px; }
  .x-copy .chips { margin-top: 14px; }
  .x-copy .ctas { margin-top: 22px; }
  .x-copy { width: 100%; }
  .x-title { font-size: clamp(22px, 6.3vw, 56px); }
  .x-tagline { font-size: 18.5px; }
  .x-body { background: var(--ink); padding: 0 20px 4vh; }
  .caps, .x-two, .x-pn { grid-template-columns: 1fr; }
  .mcs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 10px; }
  .pn.next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .x-copy > * { transition: none; opacity: 1; transform: none; }
}

@media (max-height: 820px) and (min-width: 1101px) {
  .x-hero { padding: 12vh var(--gutter) 6vh; }
  .x-title { font-size: clamp(30px, 3.3vw, 60px); }
  .x-tagline { font-size: 18px; margin-top: 16px; }
  .x-lead { font-size: 15.5px; }
  .x-index { margin-bottom: 14px; }
  .crumbs { margin-bottom: 18px; }
  .x-copy .chips { margin-top: 16px; }
  .x-copy .ctas { margin-top: 24px; }
}

/* the still that stands in for the 3D card until its first image */
.x-ph { position: fixed; z-index: 1; width: auto; transform: translate(-50%, -50%); pointer-events: none; opacity: 1; transition: opacity .8s var(--ease); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)); }
.x-ph.gone { opacity: 0; }
#stage { transition: opacity .3s linear; }
.mc:hover .mc-card, .mc:focus-visible .mc-card { transform: translateY(-8px) rotate(-2deg); box-shadow: none; filter: drop-shadow(0 0 12px rgba(216, 195, 160, 0.45)) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.7)); }
/* F7: the two last headings fit their half column */
.x-two .x-h { font-size: clamp(20px, 1.7vw, 30px); }

/* =====================================================================
   Passe mobile (7 novembre) — rien ici ne touche un ordinateur à la souris
   ===================================================================== */
/* téléphone : le titre est grand, ui.js le réduit juste assez pour que le mot le plus long tienne */
@media (max-width: 760px) {
  .x-title { font-size: clamp(26px, 8vw, 44px); }
  .x-copy .ctas { gap: 14px 22px; }
  .x-copy .pill { white-space: nowrap; }
  .mcs { gap: 20px 10px; }
  .mc-name { font-size: 12.5px; line-height: 1.3; }
}
/* téléphone en paysage : la carte se tient à droite du texte (en haut, elle n'avait que 110 px de haut) */
@media (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  .x-hero { align-items: center; min-height: 100svh; padding: 72px var(--gutter) 28px; }
  .x-body { padding-left: var(--gutter); padding-right: var(--gutter); }
  .x-copy { width: 58%; }
  .x-title { font-size: clamp(26px, 5.4vw, 48px); }
  .x-tagline { font-size: 17px; }
  .x-lead { font-size: 14.5px; }
}
