/* =====================================================================
   NETA-NKÁB — Page Projets
   Style sobre : fond gris clair, cartes blanches à bordure fine,
   libellés courts en majuscules, chiffres en gras, aucun dégradé.
   ===================================================================== */
.pj-page {
  --pj-bg: #f1f5f9;
  --pj-line: #e2e8f0;
  --pj-ink: #0f172a;
  --pj-text: #334155;
  --pj-muted: #64748b;
  --pj-radius: 10px;
  margin: 0;
  background: var(--pj-bg);
  color: var(--pj-ink);
  font-size: 14px;
  line-height: 1.5;
}
.pj-page *, .pj-page *::before, .pj-page *::after { box-sizing: border-box; }
.pj-noscroll { overflow: hidden; }

.pj-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---------- Libellés et valeurs ---------- */
.pj-eyebrow {
  margin: 0 0 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--nk-orange-dark, #e68a00);
}
.pj-label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pj-muted);
}
.pj-value { display: block; font-size: 14px; font-weight: 700; color: var(--pj-ink); white-space: nowrap; }
.pj-value-lg { font-size: 26px; line-height: 1.1; }
.pj-value-lg small { font-size: 13px; font-weight: 600; color: var(--pj-muted); margin-left: 2px; }
.pj-hint { display: block; font-size: 12px; color: var(--pj-muted); margin-top: 2px; }
.pj-muted { color: var(--pj-muted); }

/* ---------- En-tête de page ---------- */
.pj-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pj-head-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--pj-line); border-radius: var(--pj-radius);
  color: var(--nk-orange-dark, #e68a00); font-size: 18px;
}
.pj-title {
  margin: 0;
  font-family: var(--nk-font-text, 'Open Sans', Arial, sans-serif) !important;
  font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--pj-ink);
}
.pj-sub { margin: 0; font-size: 13px; color: var(--pj-muted); }
.pj-head-count { margin-left: auto; font-size: 13px; color: var(--pj-muted); }
.pj-head-count strong { color: var(--pj-ink); font-size: 15px; }

/* ---------- Panneaux ---------- */
.pj-panel { background: #fff; border: 1px solid var(--pj-line); border-radius: var(--pj-radius); }

.pj-filters { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 20px; }
.pj-field { display: flex; flex-direction: column; gap: 5px; min-width: 190px; }
.pj-field label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pj-muted); }
.pj-field select {
  height: 36px; padding: 0 32px 0 12px;
  border: 1px solid var(--pj-line); border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; -webkit-appearance: none;
  font-size: 13px; color: var(--pj-ink); cursor: pointer;
}

/* ---------- Boutons ---------- */
.pj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 8px; border: 1px solid transparent;
  font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pj-btn i { font-size: 12px; }
.pj-btn-primary { background: var(--nk-orange, #ffa000); color: #fff; }
.pj-btn-primary:hover { background: var(--nk-orange-dark, #e68a00); color: #fff; }
.pj-btn-ghost { background: #fff; border-color: var(--pj-line); color: var(--pj-ink); }
.pj-btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; }
.pj-filters .pj-btn { height: 36px; }

/* ---------- Pastilles ---------- */
.pj-badge {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  border: 1px solid;
}
.pj-badge-ok   { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.pj-badge-warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.pj-badge-bad  { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.pj-status { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.pj-status-muted { color: var(--pj-muted); background: #f1f5f9; }

/* ---------- Grille de cartes ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.pj-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--pj-line); border-radius: var(--pj-radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.pj-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }

.pj-card-img { position: relative; height: 150px; background: #e2e8f0; }
.pj-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-chip {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .94); color: var(--pj-ink);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

.pj-card-body { padding: 14px 16px 12px; flex: 1; }
.pj-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pj-card-title {
  margin: 0;
  font-family: var(--nk-font-text, 'Open Sans', Arial, sans-serif) !important;
  font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.35; color: var(--pj-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pj-owner { margin: 4px 0 14px; font-size: 12.5px; color: var(--pj-muted); }
.pj-owner i { margin-right: 4px; }

.pj-progress { height: 6px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.pj-progress-bar { height: 100%; background: var(--nk-orange, #ffa000); border-radius: 99px; }

.pj-kpis { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.pj-kpis .pj-value { font-size: 13px; }
.pj-kpi-pct { text-align: right; }

.pj-card-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--pj-line); background: #fcfdfe;
}
.pj-spacer { flex: 1; }

/* ---------- État vide ---------- */
.pj-empty { padding: 48px 20px; text-align: center; color: var(--pj-muted); }
.pj-empty i { font-size: 28px; color: #cbd5e1; }
.pj-empty p { margin: 12px 0 16px; }

/* ---------- Fenêtres ---------- */
.pj-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto;
  background: rgba(15, 23, 42, .45);
}
.pj-modal.open { display: flex; }
.pj-dialog {
  width: 100%; max-width: 720px;
  background: #fff; border-radius: 12px; border: 1px solid var(--pj-line);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
  animation: pjIn .18s ease-out;
}
.pj-dialog-sm { max-width: 560px; }
@keyframes pjIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pj-dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--pj-line);
}
.pj-dialog-head h3 {
  margin: 0;
  font-family: var(--nk-font-text, 'Open Sans', Arial, sans-serif) !important;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--pj-ink);
}
.pj-close {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1px solid var(--pj-line); border-radius: 8px; background: #fff;
  color: var(--pj-muted); cursor: pointer;
}
.pj-close:hover { color: var(--pj-ink); background: #f8fafc; }

.pj-dialog-body { padding: 18px 20px 6px; }
.pj-dialog-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--pj-line); background: #fcfdfe;
  border-radius: 0 0 12px 12px;
}

.pj-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pj-tile { padding: 12px 14px; border: 1px solid var(--pj-line); border-radius: var(--pj-radius); }
.pj-tile .pj-value { margin-top: 6px; }
.pj-tile .pj-badge { margin-top: 6px; }

.pj-person {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 16px; border-bottom: 1px solid var(--pj-line); margin-bottom: 16px;
}
.pj-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e2e8f0; }
.pj-person strong { display: block; font-size: 14px; color: var(--pj-ink); }
.pj-person .pj-muted { font-size: 12.5px; }

.pj-block { margin-bottom: 16px; }
.pj-block p { margin: 6px 0 0; font-size: 13.5px; color: var(--pj-text); }
.pj-doc .pj-btn { margin-top: 8px; }
.pj-doc a:not(.pj-btn) { color: var(--nk-orange-dark, #e68a00); font-weight: 600; }

/* Liste de valeurs (parts) */
.pj-dl { margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--pj-line); border-radius: var(--pj-radius); overflow: hidden; }
.pj-dl div { padding: 10px 12px; border-right: 1px solid var(--pj-line); border-bottom: 1px solid var(--pj-line); }
.pj-dl div:nth-child(3n) { border-right: 0; }
.pj-dl div:nth-last-child(-n+3) { border-bottom: 0; }
.pj-dl dt { font-size: 11px; color: var(--pj-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pj-dl dd { margin: 4px 0 0; font-size: 13px; font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .pj-wrap { padding-top: 20px; }
  .pj-head-count { display: none; }
  .pj-field { min-width: 0; flex: 1; }
  .pj-grid { grid-template-columns: 1fr; }
  .pj-modal { padding: 0; align-items: flex-end; }
  .pj-dialog { border-radius: 12px 12px 0 0; max-height: 92vh; overflow-y: auto; }
  .pj-dl { grid-template-columns: repeat(2, 1fr); }
  .pj-dl div:nth-child(3n) { border-right: 1px solid var(--pj-line); }
  .pj-dl div:nth-child(2n) { border-right: 0; }
}

/* ---------- Carte : un seul bouton ---------- */
.pj-card { cursor: pointer; }
.pj-btn-block { width: 100%; }
.pj-btn-block i { margin-left: 2px; font-size: 11px; }

/* ---------- Onglets de la fenêtre ---------- */
.pj-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--pj-line); }
.pj-tab {
  position: relative; padding: 12px 12px 11px;
  border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--pj-muted);
}
.pj-tab:hover { color: var(--pj-ink); }
.pj-tab.active { color: var(--pj-ink); }
.pj-tab.active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--nk-orange, #ffa000); }
.pj-pane { display: none; }
.pj-pane.active { display: block; }
.pj-dialog-body { min-height: 300px; }
.pj-tile .pj-value .pj-badge { margin: 0 0 0 6px; vertical-align: 1px; }
.pj-progress-sm { height: 4px; margin-top: 8px; }

/* ---------- Courbe d'évaluation ---------- */
.pj-chart-card { border: 1px solid var(--pj-line); border-radius: var(--pj-radius); margin-bottom: 16px; }
.pj-chart-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--pj-line);
}
.pj-chart-head strong { display: block; font-size: 13px; color: var(--pj-ink); }
.pj-chart-head .pj-muted { font-size: 12px; }
.pj-chart { position: relative; height: 240px; padding: 10px 12px 8px; }
.pj-legend { display: flex; gap: 14px; font-size: 12px; color: var(--pj-muted); white-space: nowrap; }
.pj-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pj-key { display: inline-block; width: 16px; height: 0; border-top: 2px solid; }
.pj-key-line { border-color: var(--nk-navy, #00274d); }
.pj-key-dash { border-color: var(--nk-orange, #ffa000); border-top-style: dashed; }

/* ---------- Répartition des parts ---------- */
.pj-stack { display: flex; height: 10px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.pj-stack-sold { background: var(--nk-navy, #00274d); }
.pj-stack-res { background: var(--nk-orange, #ffa000); }
.pj-legend-stack { margin: 10px 0 16px; flex-wrap: wrap; }
.pj-key-sold, .pj-key-res, .pj-key-free { width: 10px; height: 10px; border: 0; border-radius: 3px; }
.pj-key-sold { background: var(--nk-navy, #00274d); }
.pj-key-res { background: var(--nk-orange, #ffa000); }
.pj-key-free { background: #e2e8f0; }

@media (max-width: 640px) {
  .pj-chart { height: 210px; }
  .pj-chart-head { flex-direction: column; }
}

/* =====================================================================
   Fenêtres de don et d'achat de parts
   ===================================================================== */
.pj-dialog-sm { max-width: 520px; }
.pj-pay-body { min-height: 0; }
.pj-step { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; }
.pj-step + .pj-step, .pj-secure + .pj-step { margin-top: 20px; }
.pj-step-num {
  width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--nk-navy, #00274d); color: #fff; font-size: 12px; font-weight: 700;
}
.pj-step strong { display: block; font-size: 14px; color: var(--pj-ink); }
.pj-step span { font-size: 12.5px; color: var(--pj-muted); }

.pj-methods { display: grid; gap: 8px; }
.pj-method {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border: 1px solid var(--pj-line); border-radius: var(--pj-radius); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pj-method:hover { border-color: #cbd5e1; }
.pj-method:has(input:checked) { border-color: var(--nk-orange, #ffa000); background: #fffaf0; }
.pj-method input { accent-color: var(--nk-orange, #ffa000); }
.pj-method-icon { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: #f1f5f9; color: var(--nk-navy, #00274d); }
.pj-method-text { display: flex; flex-direction: column; min-width: 0; }
.pj-method-text strong { font-size: 13.5px; color: var(--pj-ink); }
.pj-method-text small { font-size: 12px; color: var(--pj-muted); overflow-wrap: anywhere; }

.pj-secure { display: flex; gap: 8px; margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--pj-line); font-size: 12px; color: var(--pj-text); }
.pj-secure i { margin-top: 2px; color: var(--nk-navy, #00274d); }

.pj-field-label { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--pj-text); }
.pj-input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--pj-line); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 14px; color: var(--pj-ink);
}
.pj-input:focus { outline: none; border-color: var(--nk-orange, #ffa000); box-shadow: 0 0 0 3px rgba(255, 160, 0, .15); }
.pj-amounts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pj-amount { height: 28px; padding: 0 10px; border: 1px solid var(--pj-line); border-radius: 99px; background: #fff; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--pj-text); cursor: pointer; }
.pj-amount:hover, .pj-amount.active { border-color: var(--nk-orange, #ffa000); color: var(--nk-orange-dark, #e68a00); background: #fffaf0; }
.pj-seg { display: inline-flex; padding: 3px; border: 1px solid var(--pj-line); border-radius: 9px; background: #fff; }
.pj-seg label { cursor: pointer; }
.pj-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pj-seg span { display: block; padding: 6px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--pj-muted); }
.pj-seg input:checked + span { background: var(--nk-navy, #00274d); color: #fff; }
.pj-seg input:focus-visible + span { outline: 2px solid var(--nk-orange, #ffa000); }

.pj-stepper { display: flex; align-items: center; gap: 6px; max-width: 220px; }
.pj-stepper button { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--pj-line); border-radius: 8px; background: #fff; color: var(--pj-ink); cursor: pointer; }
.pj-stepper button:hover { background: #f8fafc; }
.pj-stepper .pj-input { text-align: center; font-weight: 700; -moz-appearance: textfield; }
.pj-stepper .pj-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pj-total { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; padding: 12px 14px; border-radius: var(--pj-radius); background: #f8fafc; border: 1px solid var(--pj-line); font-size: 13px; color: var(--pj-muted); }
.pj-total strong { font-size: 18px; color: var(--pj-ink); }
.pj-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--pj-text); }
.pj-checklist i { width: 16px; color: #15803d; font-size: 11px; }
.pj-form-error { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: #b91c1c; }
.pj-form-error:empty { display: none; }

.pj-pay-done { padding: 34px 24px 26px; text-align: center; }
.pj-done-icon { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #f0fdf4; color: #15803d; font-size: 22px; border: 1px solid #bbf7d0; }
.pj-pay-done h4 { margin: 0 0 6px; font-family: var(--nk-font-text, 'Open Sans', Arial, sans-serif) !important; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.pj-pay-done p { margin: 0; font-size: 13.5px; color: var(--pj-text); }

/* =====================================================================
   Mobile : fenêtres en plein écran, en-tête et boutons toujours visibles
   ===================================================================== */
@media (max-width: 640px) {
  .pj-modal { padding: 0; align-items: stretch; }
  .pj-dialog, .pj-dialog-sm {
    max-width: none; min-height: 100%; max-height: none; border: 0; border-radius: 0;
    display: flex; flex-direction: column; overflow: visible; animation: none;
  }
  .pj-dialog-head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 14px 16px; }
  .pj-dialog-head h3 { font-size: 16px; }
  .pj-tabs { position: sticky; top: 61px; z-index: 2; background: #fff; padding: 0 10px; overflow-x: auto; }
  .pj-dialog-body { flex: 1; padding: 14px 16px 6px; min-height: 0; }
  .pj-dialog-foot { position: sticky; bottom: 0; z-index: 2; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-radius: 0; }
  .pj-dialog-foot .pj-btn { flex: 1; height: 40px; }
  .pj-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pj-tile { padding: 10px 11px; }
  .pj-value-lg { font-size: 21px; }
  .pj-chart { height: 200px; padding: 6px 4px 4px; }
  .pj-chart-head { padding: 10px 12px; }
  .pj-legend { gap: 10px; }
  .pj-dl { grid-template-columns: 1fr 1fr; }
}

.pj-page [hidden] { display: none !important; }

/* =====================================================================
   Projets récents : bandeau défilant en 3D (même esprit que l'accueil)
   ===================================================================== */
.pj-spot { position: relative; overflow: hidden; background: var(--nk-navy, #00274d); color: #fff; min-height: 520px; display: flex; flex-direction: column; justify-content: center; }
.pj-spot-stage { position: absolute; inset: 0; perspective: 1600px; overflow: hidden; }
.pj-spot-bg {
  position: absolute; inset: -30px; opacity: 0; backface-visibility: hidden;
  transform: translate3d(8%, 0, -320px) rotateY(-14deg);
  transition: opacity 1.2s ease, transform 1.5s cubic-bezier(.2, .7, .2, 1);
}
.pj-spot-bg img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.pj-spot-bg.is-active { opacity: 1; transform: none; }
.pj-spot-bg.is-active img { animation: pjKen 7.5s ease-out forwards; }
.pj-spot-bg.is-leaving { opacity: 0; transform: translate3d(-10%, 0, -380px) rotateY(16deg); }
.pj-spot-bg.is-back { transform: translate3d(-8%, 0, -320px) rotateY(14deg); }
.pj-spot-bg.is-back.is-leaving { transform: translate3d(10%, 0, -380px) rotateY(-16deg); }
@keyframes pjKen { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.pj-spot-overlay { position: absolute; inset: 0; background: rgba(8, 18, 32, .7); }

.pj-spot-inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 56px 20px 96px; display: grid; }
.pj-spot-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease, visibility 0s .6s;
}
.pj-spot-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .6s ease .25s, visibility 0s; }
.pj-spot-slide.is-active .pj-spot-text > * { animation: pjRise .8s cubic-bezier(.2, .7, .2, 1) both; }
.pj-spot-slide.is-active .pj-spot-text > *:nth-child(2) { animation-delay: .08s; }
.pj-spot-slide.is-active .pj-spot-text > *:nth-child(3) { animation-delay: .16s; }
.pj-spot-slide.is-active .pj-spot-text > *:nth-child(4) { animation-delay: .24s; }
.pj-spot-slide.is-active .pj-spot-text > *:nth-child(5) { animation-delay: .32s; }
@keyframes pjRise { from { opacity: 0; transform: perspective(600px) rotateX(-35deg) translateY(22px); } to { opacity: 1; transform: none; } }
.pj-spot-k { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--nk-orange, #ffa000); }
.pj-page .pj-spot-title {
  margin: 0; font-family: var(--nk-font-title, 'Oswald', sans-serif) !important;
  font-size: clamp(32px, 4.6vw, 54px); font-weight: 500; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; color: #fff;
}
.pj-spot-desc { margin: 18px 0 0; max-width: 580px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .86); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pj-spot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.pj-spot-meta i { color: var(--nk-orange, #ffa000); margin-right: 4px; }
.pj-spot-fin { display: inline-flex; align-items: center; gap: 10px; }
.pj-spot-fin b { color: #fff; }
.pj-spot-bar { width: 120px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; display: inline-block; }
.pj-spot-bar i { display: block; height: 100%; background: var(--nk-orange, #ffa000); border-radius: 3px; }
.pj-spot-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; height: 50px; padding: 0 28px;
  border: 0; border-radius: 25px; background: var(--nk-orange, #ffa000); color: #fff; cursor: pointer;
  font-family: var(--nk-font-title, 'Oswald', sans-serif); font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(255, 160, 0, .32); transition: background .2s, transform .2s, box-shadow .2s;
}
.pj-spot-btn i { font-size: 13px; transition: transform .2s; }
.pj-spot-btn:hover { background: var(--nk-orange-dark, #e68a00); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255, 160, 0, .4); }
.pj-spot-btn:hover i { transform: translateX(4px); }

/* Image du projet dans un cadre 3D */
.pj-spot-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .08);
  border: 6px solid rgba(255, 255, 255, .92); box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transform: perspective(1200px) rotateY(-14deg) rotateX(4deg);
}
.pj-spot-slide.is-active .pj-spot-frame { animation: pjFrame 1.1s cubic-bezier(.2, .7, .2, 1) both, pjFloat 7s ease-in-out 1.1s infinite; }
@keyframes pjFrame { from { opacity: 0; transform: perspective(1200px) rotateY(-50deg) translate3d(80px, 0, -120px); } to { opacity: 1; transform: perspective(1200px) rotateY(-14deg) rotateX(4deg); } }
@keyframes pjFloat { 0%, 100% { transform: perspective(1200px) rotateY(-14deg) rotateX(4deg) translateY(0); } 50% { transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) translateY(-8px); } }
.pj-spot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Navigation */
.pj-spot-nav { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: 1200px; margin: 0 auto; padding: 0 20px 24px; display: flex; align-items: center; gap: 14px; }
.pj-spot-count { font-size: 13px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.pj-spot-count b { color: #fff; font-weight: 600; }
.pj-spot-bars { display: flex; gap: 6px; margin-right: auto; }
.pj-spot-dot { width: 34px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.pj-spot-dot i { position: relative; display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.pj-spot-dot i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--nk-orange, #ffa000); }
.pj-spot-dot.is-done i::after { width: 100%; }
.pj-spot-dot.is-active i::after { animation: pjBar var(--pj-delay, 6.5s) linear forwards; }
.pj-spot.is-paused .pj-spot-dot.is-active i::after { animation-play-state: paused; }
@keyframes pjBar { to { width: 100%; } }
.pj-spot-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 18, 32, .35); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.pj-spot-arrow:hover { background: var(--nk-orange, #ffa000); border-color: var(--nk-orange, #ffa000); }

@media (max-width: 900px) {
  .pj-spot { min-height: 0; }
  .pj-spot-slide { grid-template-columns: 1fr; gap: 26px; }
  .pj-spot-frame { order: -1; max-width: 420px; width: 100%; aspect-ratio: 16 / 9; transform: none; }
  .pj-spot-slide.is-active .pj-spot-frame { animation: pjFrameM .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes pjFrameM { from { opacity: 0; transform: perspective(900px) rotateX(30deg) translateY(30px); } to { opacity: 1; transform: none; } }
  .pj-spot-inner { padding: 30px 16px 84px; }
  .pj-spot-desc { font-size: 14.5px; }
  .pj-spot-btn { width: 100%; justify-content: center; }
  .pj-spot-arrow { display: none; }
  .pj-spot-bars { flex: 1; margin-right: 0; }
  .pj-spot-dot { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-spot-bg, .pj-spot-bg.is-leaving, .pj-spot-bg.is-back { transform: none !important; transition: opacity 1s ease; }
  .pj-spot-bg.is-active img, .pj-spot-slide.is-active .pj-spot-text > *, .pj-spot-slide.is-active .pj-spot-frame { animation: none !important; }
}
