/* Kraft GDA — slider promotionnel des modèles (partials/promo_slider.php + promo.js). Charte GDA : navy, bleu, violet,
   accent menthe. Sans JS : défilement horizontal natif (scroll-snap). Avec JS (.is-ready) : diaporama par translation. */
.pr-slider {
  --pr-ink: #0b1020; --pr-ink-2: #141a3a; --pr-blue: #2f5fd6; --pr-blue-2: #5b8cff; --pr-violet: #8b6cff; --pr-violet-2: #c7b7ff;
  --pr-mint: #5fe3c0; --pr-muted: #b9c1e3; --pr-radius: 22px;
  position: relative; padding: 1.6rem 0; font-family: inherit;
}
.pr-frame {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem;
}
.pr-viewport {
  position: relative; overflow: hidden; border-radius: var(--pr-radius); color: #fff;
  background:
    radial-gradient(70% 120% at 92% -20%, rgba(139, 108, 255, .45), transparent 60%),
    radial-gradient(60% 110% at -10% 120%, rgba(47, 95, 214, .5), transparent 60%),
    linear-gradient(160deg, var(--pr-ink) 0%, var(--pr-ink-2) 100%);
  box-shadow: 0 30px 60px -28px rgba(11, 16, 32, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.pr-viewport::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 80% at 50% 40%, #000 20%, transparent 80%);
}
.pr-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pr-track::-webkit-scrollbar { display: none; }
.pr-slide {
  position: relative; z-index: 1; flex: 0 0 100%; min-width: 0; scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.2rem; align-items: center;
  padding: 2.6rem 3rem 3.4rem; min-height: 360px; box-sizing: border-box;
}
.pr-slider.is-ready .pr-track { overflow: visible; scroll-snap-type: none; transition: transform .7s cubic-bezier(.22, .8, .24, 1); will-change: transform; }
.pr-slider.is-dragging .pr-track { transition: none; }
.pr-slider.is-ready .pr-viewport { touch-action: pan-y; }

/* ---------- Texte ---------- */
.pr-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pr-violet-2); }
.pr-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--pr-blue-2), var(--pr-violet)); }
.pr-title { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.35rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.pr-badge {
  display: inline-block; vertical-align: .18em; margin-left: .3rem; padding: .28em .7em; border-radius: 999px; font-size: .5em; font-weight: 800; letter-spacing: .02em;
  background: var(--pr-mint); color: #05291c; box-shadow: 0 0 0 4px rgba(95, 227, 192, .2); white-space: nowrap;
}
.pr-body { margin: .9rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--pr-muted); max-width: 34rem; }
.pr-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }
.pr-cta {
  display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .94rem; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, var(--pr-blue), var(--pr-violet)); box-shadow: 0 14px 30px -12px rgba(91, 140, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s ease, box-shadow .2s ease;
}
.pr-cta:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(91, 140, 255, .85); }
.pr-cta:focus-visible, .pr-btn:focus-visible, .pr-dot:focus-visible { outline: 3px solid var(--pr-mint); outline-offset: 3px; }
.pr-cta--ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.pr-cta--ghost:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.pr-builders { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.pr-builders li { padding: .42rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); }
.pr-builders li.is-soon { color: var(--pr-muted); border-style: dashed; }
.pr-builders em { font-style: normal; font-weight: 600; font-size: .75rem; color: var(--pr-mint); }

/* ---------- Vignettes (captures réelles des accueils) ---------- */
.pr-thumbs { position: relative; margin: 0; padding: 0; list-style: none; height: 290px; }
.pr-thumbs li { position: absolute; width: 62%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
.pr-thumbs li::before { content: ""; display: block; height: 14px; background: linear-gradient(#232a52, #1b2147); }
.pr-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pr-thumbs--3 li:nth-child(1) { left: 0; top: 34px; z-index: 1; transform: rotate(-3deg); }
.pr-thumbs--3 li:nth-child(2) { left: 19%; top: 0; z-index: 3; }
.pr-thumbs--3 li:nth-child(3) { right: 0; top: 60px; z-index: 2; transform: rotate(3deg); }
.pr-thumbs--4 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: auto; }
.pr-thumbs--4 li { position: relative; width: auto; }
.pr-thumbs--4 li:nth-child(odd) { transform: translateY(10px); }
.pr-cap { position: absolute; left: 10px; bottom: 10px; padding: .3rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800; color: #0b1020; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }

/* ---------- Commandes ---------- */
.pr-controls { display: none; }
.pr-slider.is-ready .pr-controls { display: flex; gap: .45rem; position: absolute; right: 2.2rem; bottom: 1.1rem; z-index: 4; }
.pr-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); transition: background .2s ease;
}
.pr-btn:hover { background: rgba(255, 255, 255, .22); }
.pr-ico { display: block; width: 12px; height: 12px; }
.pr-ico--prev, .pr-ico--next { border: solid currentColor; border-width: 0 0 2.5px 2.5px; width: 10px; height: 10px; }
.pr-ico--prev { transform: translateX(2px) rotate(45deg); }
.pr-ico--next { transform: translateX(-2px) rotate(-135deg); }
.pr-ico--pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.pr-ico--play { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; transform: translateX(2px); }
.pr-dots { display: none; }
.pr-slider.is-ready .pr-dots { display: flex; gap: .4rem; position: absolute; left: 2.6rem; bottom: 1.25rem; z-index: 4; }
.pr-slider.is-ready .pr-dots { gap: 0; }
.pr-dot { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 2px; border: 0; border-radius: 999px; cursor: pointer; background: none; } /* cible 24 px (WCAG 2.5.8) */
.pr-dot::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .4); transition: width .3s ease, background .3s ease; }
.pr-dot[aria-current="true"]::before { width: 26px; background: var(--pr-mint); }
.pr-preview { position: absolute; top: .55rem; right: 2.2rem; z-index: 5; margin: 0; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #6b4500; background: #fdf4e3; }

/* ---------- Intégration ---------- */
.pr-slider--templates { padding: 1.4rem 0 .4rem; background: #f6f8fb; }
.mk-hero + .pr-slider--templates, .pr-slider--templates + .mk-hero { margin-top: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .pr-frame { padding: 0 .75rem; }
  .pr-slide { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.7rem 1.35rem 4.2rem; min-height: 0; align-content: start; }
  .pr-title { font-size: 1.5rem; }
  .pr-body { font-size: .95rem; }
  .pr-thumbs { height: 190px; }
  .pr-thumbs li { width: 64%; }
  .pr-thumbs--4 { height: auto; gap: 10px; }
  .pr-thumbs--4 li { width: auto; }
    .pr-slider.is-ready .pr-controls { right: 1.1rem; bottom: .9rem; }
  .pr-slider.is-ready .pr-dots { left: .9rem; bottom: 1.05rem; }
  .pr-preview { right: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-slider.is-ready .pr-track, .pr-cta, .pr-dot::before { transition: none; }
}
