/* CPTS Paris 13 — archive Projets / concept 05 : accordéon vertical interactif */
.cpts-project-archive,
.cpts-project-archive * { box-sizing: border-box; }

.cpts-project-archive {
  --pa-purple: #5d2ac7;
  --pa-purple-dark: #211463;
  --pa-lilac: #8c6bf2;
  --pa-orange: #ff7b2f;
  --pa-ink: #22186c;
  --pa-muted: #6e688b;
  --pa-line: rgba(74, 48, 145, .10);
  color: var(--pa-ink);
  background: #fff;
  padding-bottom: 88px;
}

.cpts-project-archive__hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #fffaf6 0%, #fdf9ff 54%, #f7f4ff 100%);
  border-bottom: 1px solid rgba(64, 41, 128, .06);
}

.cpts-project-archive__hero-inner,
.cpts-project-archive__content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.cpts-project-archive__hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 48px;
}

.cpts-project-archive__breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: #766f91;
  text-decoration: none !important;
  font-size: 14px;
}

.cpts-project-archive__hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 48px;
  align-items: end;
}

.cpts-project-archive__eyebrow {
  margin: 0 0 11px;
  color: #7550e6;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
}

.cpts-project-archive__hero h1 {
  max-width: 760px;
  margin: 0;
  color: #1d1468;
  font-size: clamp(42px, 5vw, 66px);
  line-height: .99;
  letter-spacing: -.05em;
}

.cpts-project-archive__lead {
  max-width: 520px;
  margin: 0 0 4px;
  color: var(--pa-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.58;
}

.cpts-project-archive__count {
  display: inline-flex;
  gap: 6px;
  margin: 24px 0 0;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(83, 47, 174, .08);
  color: #625b80;
  box-shadow: 0 8px 22px rgba(59, 38, 117, .05);
  font-size: 13px;
}

.cpts-project-archive__count strong { color: var(--pa-purple); }

.cpts-project-archive__blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 48% 52% 43% 57% / 55% 43% 57% 45%;
}

.cpts-project-archive__blob--one {
  width: 540px;
  height: 315px;
  right: 6%;
  top: 8px;
  background: linear-gradient(135deg, rgba(255, 191, 151, .57), rgba(239, 199, 247, .39));
  transform: rotate(-8deg);
}

.cpts-project-archive__blob--two {
  width: 380px;
  height: 250px;
  right: -85px;
  bottom: -92px;
  background: linear-gradient(135deg, rgba(140, 107, 242, .31), rgba(255, 216, 192, .45));
  transform: rotate(14deg);
}

.cpts-project-archive__content { padding-top: 30px; }

.cpts-project-archive__toolbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  margin-bottom: 26px;
}

.cpts-project-archive__filters {
  display: flex;
  gap: 9px;
  align-items: center;
  overflow-x: auto;
  padding: 9px;
  border: 1px solid rgba(72, 46, 150, .07);
  border-radius: 22px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 38px rgba(58, 35, 120, .07);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.cpts-project-archive__filters::-webkit-scrollbar { display: none; }

.cpts-project-archive__filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: 1px solid rgba(80, 48, 163, .08);
  border-radius: 999px;
  background: #fff;
  color: #2e2476;
  padding: 10px 13px 10px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.cpts-project-archive__filter small {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: #f2edff;
  color: #6946c9;
  font-size: 10px;
  font-weight: 800;
}

.cpts-project-archive__filter:hover,
.cpts-project-archive__filter:focus-visible { transform: translateY(-1px); }

.cpts-project-archive__filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, #7c56f6, #6631d9);
  box-shadow: 0 8px 20px rgba(95, 45, 207, .23);
}

.cpts-project-archive__filter.is-active small {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.cpts-project-explorer {
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(0, 1.45fr);
  gap: 26px;
  align-items: stretch;
}

.cpts-project-explorer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 660px;
  overflow-y: auto;
  padding: 5px 8px 5px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 68, 206, .28) transparent;
}

.cpts-project-explorer__list::-webkit-scrollbar { width: 7px; }
.cpts-project-explorer__list::-webkit-scrollbar-track { background: transparent; }
.cpts-project-explorer__list::-webkit-scrollbar-thumb {
  background: rgba(108, 68, 206, .25);
  border-radius: 999px;
}

.cpts-project-row {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  gap: 13px;
  align-items: center;
  appearance: none;
  border: 1px solid var(--pa-line);
  border-radius: 18px;
  background: #fff;
  padding: 10px 11px;
  text-align: left;
  color: var(--pa-ink);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(53, 33, 107, .035);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.cpts-project-row[hidden] { display: none !important; }

.cpts-project-row:hover,
.cpts-project-row:focus-visible {
  transform: translateX(3px);
  border-color: rgba(103, 58, 214, .22);
  box-shadow: 0 11px 24px rgba(53, 33, 107, .075);
}

.cpts-project-row.is-active {
  border-color: #7549e7;
  background: linear-gradient(105deg, #ffffff 0%, #fbf8ff 100%);
  box-shadow: 0 15px 30px rgba(77, 40, 169, .12), inset 3px 0 0 #7145df;
}

.cpts-project-row__thumb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7f3ff, #fff8f2);
}

.cpts-project-row__thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 5px;
  object-fit: contain !important;
  object-position: center;
}

.cpts-project-row__fallback {
  color: #6843cb;
  font-size: 25px;
  font-weight: 850;
}

.cpts-project-row__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cpts-project-row__copy strong {
  display: block;
  color: #25186f;
  font-size: 15px;
  line-height: 1.17;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.cpts-project-row__copy small {
  display: block;
  color: #7b7495;
  font-size: 11px;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpts-project-row__arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6942d2;
  background: #f5f0ff;
  font-size: 23px;
  line-height: 1;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

.cpts-project-row.is-active .cpts-project-row__arrow {
  color: #fff;
  background: linear-gradient(135deg, #815af5, #6630d9);
  transform: translateX(2px);
}

.cpts-project-explorer__preview {
  position: relative;
  min-width: 0;
  min-height: 590px;
}

.cpts-project-panel {
  position: relative;
  height: 100%;
  min-height: 590px;
  display: grid;
  grid-template-rows: minmax(280px, 1.02fr) auto;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(68, 43, 136, .075);
  box-shadow: 0 24px 58px rgba(53, 33, 107, .11);
  animation: cptsProjectPanelIn .36s cubic-bezier(.22,.75,.18,1) both;
}

.cpts-project-panel[hidden] { display: none !important; }

@keyframes cptsProjectPanelIn {
  from { opacity: 0; transform: translateY(8px) scale(.992); }
  to { opacity: 1; transform: none; }
}

.cpts-project-panel__visual {
  position: relative;
  min-height: 290px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 50px);
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 192, 151, .32), transparent 34%),
    radial-gradient(circle at 80% 72%, rgba(137, 104, 241, .20), transparent 38%),
    linear-gradient(135deg, #fbf8ff 0%, #fffaf6 100%);
}

.cpts-project-panel__visual img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 620px !important;
  max-height: 340px !important;
  object-fit: contain !important;
  object-position: center;
  filter: drop-shadow(0 16px 26px rgba(67, 43, 125, .08));
}

.cpts-project-panel__placeholder {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(360px, 80%);
  aspect-ratio: 1.6 / 1;
  border-radius: 28px;
  background: linear-gradient(135deg, #ede5ff, #fff0e5);
  color: rgba(76, 43, 164, .72);
  font-size: 86px;
  font-weight: 850;
}

.cpts-project-panel__wash {
  position: absolute;
  width: 62%;
  height: 58%;
  right: -12%;
  bottom: -22%;
  border: 22px solid rgba(255, 143, 72, .12);
  border-left-color: rgba(110, 67, 218, .12);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.cpts-project-panel__body {
  position: relative;
  z-index: 3;
  padding: 28px 32px 32px;
}

.cpts-project-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.cpts-project-panel__tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3efff;
  color: #6642c8;
  font-size: 11px;
  line-height: 1;
  font-weight: 780;
}

.cpts-project-panel h2 {
  max-width: 760px;
  margin: 0;
  color: #21166d;
  font-size: clamp(31px, 3.1vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.cpts-project-panel p {
  max-width: 760px;
  margin: 17px 0 0;
  color: #6e688a;
  font-size: 16px;
  line-height: 1.58;
}

.cpts-project-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 23px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7650ef, #642cd8);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 10px 24px rgba(93, 42, 199, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cpts-project-panel__cta:hover,
.cpts-project-panel__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(93, 42, 199, .29);
}

.cpts-project-archive__empty {
  margin: 36px 0;
  padding: 28px;
  border-radius: 20px;
  background: #faf7ff;
  color: #655e80;
  text-align: center;
}

@media (max-width: 980px) {
  .cpts-project-archive__hero-copy {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .cpts-project-archive__lead { max-width: 720px; }
  .cpts-project-explorer { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 18px; }
  .cpts-project-explorer__list { max-height: 620px; }
  .cpts-project-panel,
  .cpts-project-explorer__preview { min-height: 560px; }
  .cpts-project-panel__body { padding: 24px 26px 28px; }
  .cpts-project-panel__visual { padding: 28px; }
  .cpts-project-archive__blob--one { right: -130px; opacity: .72; }
}

@media (max-width: 760px) {
  .cpts-project-archive { padding-bottom: 54px; }
  .cpts-project-archive__hero-inner,
  .cpts-project-archive__content { width: min(100% - 28px, 1180px); }
  .cpts-project-archive__hero-inner { padding: 28px 0 36px; }
  .cpts-project-archive__breadcrumb { margin-bottom: 23px; font-size: 13px; }
  .cpts-project-archive__hero h1 { font-size: clamp(36px, 11vw, 50px); }
  .cpts-project-archive__lead { font-size: 16px; }
  .cpts-project-archive__count { margin-top: 18px; }
  .cpts-project-archive__content { padding-top: 22px; }
  .cpts-project-archive__toolbar { top: 6px; margin-bottom: 18px; }
  .cpts-project-archive__filters { border-radius: 18px; padding: 7px; }
  .cpts-project-archive__filter { padding: 9px 11px 9px 13px; font-size: 12px; }

  .cpts-project-explorer { grid-template-columns: 1fr; gap: 16px; }
  .cpts-project-explorer__list {
    max-height: 305px;
    padding-right: 4px;
  }
  .cpts-project-row {
    min-height: 72px;
    grid-template-columns: 50px minmax(0, 1fr) 30px;
    gap: 10px;
    border-radius: 16px;
    padding: 9px;
  }
  .cpts-project-row__thumb { width: 50px; height: 50px; border-radius: 12px; }
  .cpts-project-row__copy strong { font-size: 14px; }
  .cpts-project-row__copy small { font-size: 10px; }

  .cpts-project-explorer__preview,
  .cpts-project-panel { min-height: 0; }
  .cpts-project-panel {
    grid-template-rows: auto auto;
    border-radius: 24px;
  }
  .cpts-project-panel__visual { min-height: 235px; padding: 22px; }
  .cpts-project-panel__visual img { max-height: 250px !important; }
  .cpts-project-panel__body { padding: 22px 20px 24px; }
  .cpts-project-panel h2 { font-size: clamp(29px, 9vw, 39px); }
  .cpts-project-panel p { font-size: 15px; margin-top: 14px; }
  .cpts-project-panel__cta { width: 100%; justify-content: space-between; margin-top: 20px; }
  .cpts-project-archive__blob--one { width: 330px; height: 220px; right: -175px; top: 55px; }
  .cpts-project-archive__blob--two { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cpts-project-archive *,
  .cpts-project-archive *::before,
  .cpts-project-archive *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
