.detail-page-actions {
  position: sticky;
  top: 10px;
  z-index: 120;
  display: grid;
  gap: 14px;
  margin: 0 -10px 28px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: rgba(5, 10, 17, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.30);
}

.detail-with-site-nav .page,
.detail-with-site-nav .flow-page {
  padding-top: 118px;
}

.detail-page-links {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 28px;
}

.detail-actions-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-actions-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.detail-action,
.detail-icon-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(85, 230, 238, 0.46);
  background: rgba(85, 230, 238, 0.12);
  color: #eaffff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.detail-action {
  padding: 12px 18px;
  border-radius: 999px;
}

.detail-icon-action {
  width: 48px;
  padding: 0;
  border-radius: 50%;
}

.detail-action:hover,
.detail-icon-action:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 230, 238, 0.78);
  background: rgba(85, 230, 238, 0.18);
  box-shadow: 0 18px 45px rgba(85, 230, 238, 0.18);
}

.detail-download-row {
  display: flex;
  justify-content: flex-end;
}

.detail-download {
  min-width: 220px;
  background: #ffffff;
  color: #06111a;
  border-color: rgba(255, 255, 255, 0.26);
}

section[aria-label="Retour page précédente"],
nav[aria-label="Retour page précédente"] {
  display: flex;
  justify-content: center;
  align-items: center;
}

section[aria-label="Retour page précédente"] .project-nav,
section[aria-label="Retour page précédente"] .p2p-final-nav,
section[aria-label="Retour page précédente"] .case-final-nav,
section[aria-label="Retour page précédente"] .case-actions,
section[aria-label="Retour page précédente"] .case-bottom-nav,
nav[aria-label="Retour page précédente"].p2p-bottom-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

a[data-back-previous] {
  width: auto !important;
  min-width: 260px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 22px !important;
  border: 1px solid rgba(85, 230, 238, 0.56) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #eaffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

a[data-back-previous]:hover,
a[data-back-previous]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(85, 230, 238, 0.84) !important;
  background: rgba(85, 230, 238, 0.08) !important;
  color: #eaffff !important;
  box-shadow: 0 18px 45px rgba(85, 230, 238, 0.14) !important;
  outline: none;
}

.detail-share-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .detail-with-site-nav .page,
  .detail-with-site-nav .flow-page {
    padding-top: 104px;
  }

  .detail-page-links {
    margin-bottom: 18px;
  }

  .detail-page-actions {
    width: calc(100% + 4px);
    margin: 0 -2px 22px;
    padding: 12px;
    border-radius: 18px;
  }

  .detail-actions-main {
    gap: 10px;
  }

  .detail-action {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 11px;
  }

  .detail-icon-action {
    width: 40px;
    min-height: 40px;
  }

  .detail-actions-right {
    gap: 8px;
  }

  .detail-download-row {
    justify-content: stretch;
  }

  .detail-download {
    width: 100%;
    min-width: 0;
  }

  a[data-back-previous] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
  }
}
