/* Pyratz Intelligence — carrousel de cartes « Choisissez votre outil » : une carte par outil, au dégradé de sa plaque de l'atelier. */
.fp-hub-contact .fp-contact-card { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.hc { display: grid; justify-items: center; gap: 14px; min-width: 0; width: 100%; overflow-x: clip; }  /* the side cards stay inside the screen on a phone */
.hc-stage { position: relative; width: 100%; height: clamp(380px, 31vw, 440px); perspective: 1500px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hc-track { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; pointer-events: none; }   /* in 3D the track would sit in front of the cards and catch the pointer */
.hc-card { pointer-events: auto; }
/* The card is drawn as sandblasted aluminium: a very fine, even grain over its colour, no lines */
.hc {
  --hc-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='400' preserveAspectRatio='none'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.2' numOctaves='1'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .42 0 0 0 -.15'/%3E%3C/filter%3E%3Crect width='300' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hc-card {
  --x: 0%; --z: 0px; --ry: 0deg; --s: 1; --o: 1; --tx: 0deg; --ty: 0deg; --mx: 50%; --my: 30%;
  position: absolute; left: 50%; top: 50%;
  width: clamp(236px, 19vw, 276px); aspect-ratio: 3 / 4; margin: calc(clamp(236px, 19vw, 276px) * -2 / 3) 0 0 calc(clamp(236px, 19vw, 276px) / -2);
  border-radius: 22px; overflow: hidden; isolation: isolate;
  background: var(--hc-grain), var(--hc-bg);
  background-size: 100% 100%, auto;   /* one piece: no seams */
  background-repeat: no-repeat;
  background-blend-mode: overlay, normal;
  box-shadow: 0 34px 48px -30px rgb(30 14 10 / .6), 0 2px 6px rgb(0 0 0 / .1), inset 0 0 0 1px rgb(255 255 255 / .16), inset 0 1px 0 rgb(255 255 255 / .28);
  transform: translateX(var(--x)) translateZ(var(--z)) rotateY(calc(var(--ry) + var(--ty))) rotateX(var(--tx)) scale(var(--s));
  opacity: var(--o);
  transition: transform .75s cubic-bezier(.22, 1, .36, 1), opacity .55s ease, filter .55s ease;
  cursor: pointer;
}
.hc-card:not(.is-active) { filter: saturate(.85) brightness(.94); }
.hc-card.is-active { cursor: default; transition: transform .75s cubic-bezier(.22, 1, .36, 1), opacity .55s ease, filter .55s ease, box-shadow .5s ease; }
.hc-card.is-tilting { transition: transform .18s ease-out, opacity .55s ease; }
.hc-card[data-far] { pointer-events: none; }
/* no halo on the cards (removed at the owner's request) */
.hc-card::after {    /* a discreet reflection of ambient light that slides across the card with the pointer */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(115deg, transparent calc(var(--mx) - 45%), rgb(255 255 255 / .09) calc(var(--mx) - 8%), rgb(255 255 255 / .14) var(--mx), rgb(255 255 255 / .06) calc(var(--mx) + 12%), transparent calc(var(--mx) + 40%)),
    radial-gradient(90% 70% at var(--mx) var(--my), rgb(255 255 255 / .07), transparent 70%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .6s ease;
}
.hc-card.hc-next::after { mix-blend-mode: normal; }
/* The Pi mark, engraved in the middle of each application card (owner's request, 01/12/2026): about 6 % white,
   brushed like metal, with a shade along its top inner edge and a light along the bottom one (assets/pi-engrave.svg) */
.hc-card:not(.hc-next)::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url(/assets/pi-engrave.svg) 50% 50% / 31% auto no-repeat; pointer-events: none; }
.hc-card.is-tilting::after { opacity: 1; }
.hc-card > a:not(.hc-card-sub) { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; height: 100%; box-sizing: border-box; padding: 20px 20px 18px; color: #fff; text-decoration: none; }
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hc-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); backdrop-filter: blur(6px); }
.hc-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hc-role { font-size: 13px; font-weight: 560; letter-spacing: -.01em; opacity: .86; text-align: right; }
.hc-name { align-self: center; justify-self: center; max-width: 9ch; text-align: center; font: 760 clamp(27px, 2.3vw, 33px)/1.02 Inter, system-ui, sans-serif; letter-spacing: -.05em; text-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 0 28px rgb(0 0 0 / .18); text-wrap: balance; }
.hc-meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; font-size: 13px; font-weight: 560; letter-spacing: -.01em; }
.hc-meta > span:last-child { text-align: right; }
.hc-meta small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 450; opacity: .72; }
.hc-card[data-suite="pr"] { --hc-bg: radial-gradient(ellipse at 87% 22%, #35156d, transparent 54%), linear-gradient(158deg, #271058 5%, #552597 43%, #8653c2 72%, #f5c2ef); --hc-ring: #c79bf5; }
.hc-card[data-suite="cv"] { --hc-bg: radial-gradient(ellipse at 30% 8%, #0a326c 9%, transparent 55%), linear-gradient(150deg, #121230 4%, #143b8a 54%, #216bd8 77%, #77d8fb); --hc-ring: #7ee8f3; }
.hc-card[data-suite="rm"] { --hc-bg: radial-gradient(ellipse at 12% 0%, #79302f, transparent 50%), linear-gradient(150deg, #b73042, #a83945 38%, #ef744e 72%, #ffc87c); --hc-ring: #ffb15e; }
.hc-card[data-suite="ec"] { --hc-bg: radial-gradient(ellipse at 94% 120%, #c3f377, transparent 64%), linear-gradient(150deg, #073c33, #286846 76%, #67a86d); --hc-ring: #c3f377; }
.hc-card[data-suite="ag"] { --hc-bg: linear-gradient(150deg, #083448, #12657a 67%, #8cd9cf); --hc-ring: #8cd9cf; }
.hc-card[data-suite="mc"] { --hc-bg: radial-gradient(ellipse at 120% 110%, #ffca7d 8%, transparent 61%), linear-gradient(150deg, #59220f, #ac481f 60%, #e68440); --hc-ring: #ffca7d; }
.hc-card[data-suite="pg"] { --hc-bg: radial-gradient(ellipse at 89% 0%, #712746, transparent 65%), linear-gradient(150deg, #4d203a, #a4445b 65%, #f9a18d); --hc-ring: #f9a18d; }
.hc-card.hc-next { --hc-bg: #fbfaf8; background-blend-mode: soft-light, normal; box-shadow: 0 30px 44px -32px rgb(30 14 10 / .35), inset 0 0 0 1.5px #d4cec7; }
.hc-card.hc-next > a:not(.hc-card-sub) { color: var(--pz-ink, #141414); outline: 1.5px dashed #cbc4bc; outline-offset: -10px; border-radius: 22px; }
.hc-card.hc-next .hc-icon { background: #efebe6; box-shadow: none; }
.hc-card.hc-next .hc-name { text-shadow: none; }
.hc-arrow { position: absolute; top: 50%; z-index: 30; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--pz-ink, #141414); box-shadow: 0 6px 16px -6px rgb(0 0 0 / .3), inset 0 0 0 1px rgb(0 0 0 / .06); cursor: pointer; transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease; }
.hc-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-prev { left: 0; } .hc-next-btn { right: 0; }
.hc-arrow:hover { transform: scale(1.06); box-shadow: 0 8px 20px -6px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(0 0 0 / .08); }
.hc-arrow:active { transform: scale(.96); }
.hc-arrow:focus-visible, .hc-cta:focus-visible { outline: 3px solid var(--pz-red, #c40000); outline-offset: 3px; }
.hc-line { max-width: min(36ch, 100%); min-height: 2.9em; margin: 0; text-align: center; color: var(--pz-muted, #6b6b6b); font-size: var(--pz-fs-small, .9375rem); line-height: 1.45; transition: opacity .3s ease; }
.hc-line.is-swapping { opacity: 0; }
.hc-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--pz-ink, #141414); font-size: var(--pz-fs-small, .9375rem); font-weight: 600; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 4px 12px -6px rgb(0 0 0 / .25), inset 0 0 0 1px rgb(0 0 0 / .08); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.hc-cta::after { content: "→"; transition: translate .25s cubic-bezier(.22, 1, .36, 1); }
.hc-cta:hover::after { translate: 3px 0; }
@media (max-width: 899px) {
  .fp-hub-contact .fp-contact-card { grid-template-columns: minmax(0, 1fr); }
  .hc-stage { height: 390px; }
}
@media (max-width: 480px) {
  .hc-card { width: 226px; margin: -151px 0 0 -113px; }
  .hc-stage { height: 360px; }
  .hc-arrow { width: 36px; height: 36px; margin-top: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-card, .hc-card::before, .hc-line { transition: none; }
}
.hc-card > a:not(.hc-card-sub) { transition: opacity .5s ease; }
.hc-card:not(.is-active) > a:not(.hc-card-sub) { opacity: .38; }

/* Version sous le titre, façon Apple : texte centré, carrousel large en dessous, beaucoup d'air */
.fp-hub-contact:has([data-hc-wide]) .fp-contact-card { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(48px, 6vw, 88px); padding-block: clamp(56px, 7vw, 112px); text-align: center; }
.fp-hub-contact:has([data-hc-wide]) .fp-contact-copy { display: grid; justify-items: center; max-width: 44rem; }
.fp-hub-contact:has([data-hc-wide]) .fp-contact-copy h2 { max-width: 18ch; text-wrap: balance; }
.fp-hub-contact:has([data-hc-wide]) .fp-contact-copy > p { margin-inline: auto; }
.fp-hub-contact:has([data-hc-wide]) .pz-actions { justify-content: center; }
.hc[data-hc-wide] { width: min(100%, 1040px); gap: 18px; }
@media (min-width: 900px) {
  .hc[data-hc-wide] .hc-stage { height: clamp(430px, 34vw, 480px); }
  .hc[data-hc-wide] .hc-card { width: 300px; margin: -200px 0 0 -150px; }
  .hc[data-hc-wide] .hc-prev { left: 2%; } .hc[data-hc-wide] .hc-next-btn { right: 2%; }
  .hc[data-hc-wide] .hc-name { font-size: 34px; }
}

/* Pause control beside the call to action, in the round style of the arrows */
.hc-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; max-width: 100%; }
.hc-pause { position: static; margin: 0; }
.hc-pause .hc-play-icon { display: none; }
.hc-pause[aria-pressed="true"] .hc-pause-icon { display: none; }
.hc-pause[aria-pressed="true"] .hc-play-icon { display: inline; fill: currentColor; stroke: none; }
.hc-pause:focus-visible { outline: 3px solid var(--pz-red, #c40000); outline-offset: 3px; }
/* Without script the cards cannot turn: they line up in a row the reader can scroll, every tool reachable */
@media (scripting: none) {
  .hc .hc-stage, .hc[data-hc-wide] .hc-stage { height: auto; perspective: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 8px 16px; }
  .hc-track { position: static; display: flex; gap: 16px; width: max-content; padding-inline: 16px; transform-style: flat; }
  .hc .hc-card, .hc[data-hc-wide] .hc-card { position: relative; left: auto; top: auto; flex: none; margin: 0; transform: none; scroll-snap-align: center; }
  .hc-card:not(.is-active) { filter: none; }
  .hc-card:not(.is-active) > a:not(.hc-card-sub) { opacity: 1; }
  .hc-arrow, .hc-line, .hc-foot { display: none; }
}

/* The button under the cards carries a round badge: the colour and icon of the tool at the centre.
   On « Votre prochain outil » it grows into a large call to action, and the tools already made
   turn in its badge one after the other (hub-cards.js). */
.hc-cta-orb { position: relative; display: none; flex: none; width: 26px; height: 26px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgb(0 0 0 / .18); }
.hc-cta:has(.hc-cta-orb i) .hc-cta-orb { display: block; }
.hc-cta:has(.hc-cta-orb i) { padding-left: 8px; }
.hc-cta-orb i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; scale: .7; transition: opacity .45s ease, scale .55s cubic-bezier(.34, 1.56, .64, 1); }
.hc-cta-orb i.is-on { opacity: 1; scale: 1; }
.hc-cta-orb svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-cta { transition: min-height .4s cubic-bezier(.22, 1, .36, 1), padding .4s cubic-bezier(.22, 1, .36, 1), font-size .3s ease, box-shadow .4s ease, transform .25s cubic-bezier(.22, 1, .36, 1); }
.hc-cta.is-big { gap: 16px; min-height: 76px; padding: 0 34px 0 12px; font-size: 1.375rem; letter-spacing: -.03em;
  box-shadow: 0 18px 40px -16px rgb(30 14 10 / .45), 0 2px 6px rgb(0 0 0 / .08), inset 0 0 0 1px rgb(0 0 0 / .06); }
.hc-cta.is-big .hc-cta-orb { width: 52px; height: 52px; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgb(0 0 0 / .22); }
.hc-cta.is-big::after { font-size: 1.5rem; }
.hc-cta.is-big:hover { transform: translateY(-2px); }
.hc-cta.is-big:hover::after { translate: 5px 0; }
.hc-cta { white-space: nowrap; }
@media (max-width: 480px) {
  .hc-cta.is-big { min-height: 60px; padding: 0 20px 0 9px; font-size: 1.0625rem; gap: 10px; }
  .hc-cta.is-big .hc-cta-orb { width: 42px; height: 42px; }
}
@media (max-width: 360px) {
  .hc > * { max-width: 100%; }
  .hc-cta.is-big { min-height: 54px; padding: 0 14px 0 7px; font-size: .9375rem; gap: 8px; }
  .hc-cta.is-big .hc-cta-orb { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-cta, .hc-cta-orb i { transition: none; }
}

