/**
 * Page Albums — profils particulier et particulierpro.
 *
 * Le composant est volontairement borne a #profile-albums et aux modales
 * profile-album-modal afin de ne pas modifier les albums historiques.
 */

.profile-albums-page-column {
  min-width: 0;
  padding: 0 0 52px;
}

#profile-albums,
.profile-album-modal {
  --profile-albums-accent: var(--fl-profile-entity-action, var(--fl-color-entity-particulier-clair, #00a2b7));
  --profile-albums-accent-alt: var(--fl-profile-entity-light, color-mix(in srgb, var(--profile-albums-accent) 66%, #fff));
  --profile-albums-accent-hover: color-mix(in srgb, var(--profile-albums-accent) 84%, #00343c);
  --profile-albums-accent-soft: color-mix(in srgb, var(--profile-albums-accent) 10%, #fff);
  --profile-albums-accent-softer: color-mix(in srgb, var(--profile-albums-accent) 5%, #fff);
  --profile-albums-danger: var(--fl-color-profile-action-delete, #be2828);
  --profile-albums-danger-hover: color-mix(in srgb, var(--profile-albums-danger) 84%, #2a0000);
  --profile-albums-ink: #17212b;
  --profile-albums-muted: #65788a;
  --profile-albums-border: #dbe7eb;
  --profile-albums-surface: var(--fl-color-surface, #fff);
  --profile-albums-canvas: #f6fafb;
  --profile-albums-shadow: 0 12px 34px rgba(27, 66, 76, .075);
  color: var(--profile-albums-ink);
  font-family: var(--fl-font-family-body, Poppins, Helvetica, sans-serif);
}

#profile-albums {
  margin: 0 auto;
  max-width: 1480px;
  min-width: 0;
  width: 100%;
}

.profile-album-modal[data-profile-category="particulierpro"] {
  --profile-albums-accent: var(--fl-color-entity-particulierpro-clair, #198fd8);
  --profile-albums-accent-alt: var(--fl-color-entity-particulierpro-fonce, #7acbff);
}

#profile-albums *,
#profile-albums *::before,
#profile-albums *::after,
.profile-album-modal *,
.profile-album-modal *::before,
.profile-album-modal *::after {
  box-sizing: border-box;
}

#profile-albums button,
.profile-album-modal button,
.profile-album-modal input,
.profile-album-modal textarea {
  font-family: inherit;
}

.profile-albums-hero {
  align-items: flex-end;
  background:
    radial-gradient(circle at 91% 5%, rgba(255, 255, 255, .92) 0 7%, transparent 7.4%),
    linear-gradient(135deg, color-mix(in srgb, var(--profile-albums-accent) 10%, #fff) 0%, #fff 56%, color-mix(in srgb, var(--profile-albums-accent) 5%, #fff) 100%);
  border: 1px solid var(--profile-albums-border);
  border-radius: 24px;
  box-shadow: var(--profile-albums-shadow);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px 30px;
  position: relative;
}

.profile-albums-hero::before {
  background: linear-gradient(90deg, var(--profile-albums-accent), var(--profile-albums-accent-alt));
  border-radius: 0 0 999px 0;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 0;
  width: 146px;
}

.profile-albums-hero__content {
  min-width: 0;
}

.profile-albums-eyebrow {
  color: var(--profile-albums-accent);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.3;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.profile-albums-hero h1 {
  color: var(--profile-albums-ink);
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.12;
  margin: 0;
}

.profile-albums-hero p {
  color: var(--profile-albums-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 10px 0 0;
  max-width: 760px;
}

.profile-albums-hero__actions,
.profile-album-detail__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.profile-albums-button {
  align-items: center;
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  height: 40px;
  justify-content: flex-start;
  line-height: 1;
  max-width: 100%;
  min-width: 0;
  padding: 2px 15px 2px 2px;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
  white-space: nowrap;
  width: max-content;
}

.profile-albums-button--entity,
.profile-albums-button--secondary {
  background: var(--profile-albums-accent);
  box-shadow: 0 7px 17px color-mix(in srgb, var(--profile-albums-accent) 18%, transparent);
  color: #fff;
}

.profile-albums-button--entity:hover,
.profile-albums-button--secondary:hover {
  background: var(--profile-albums-accent-hover);
  box-shadow: 0 9px 21px color-mix(in srgb, var(--profile-albums-accent-hover) 23%, transparent);
  color: #fff;
  transform: translateY(-1px);
}

.profile-albums-button--danger {
  background: var(--profile-albums-danger);
  box-shadow: 0 7px 17px color-mix(in srgb, var(--profile-albums-danger) 17%, transparent);
  color: #fff;
}

.profile-albums-button--danger:hover {
  background: var(--profile-albums-danger-hover);
  box-shadow: 0 9px 21px rgba(165, 31, 31, .22);
  color: #fff;
  transform: translateY(-1px);
}

.profile-albums-button:active {
  box-shadow: 0 3px 9px color-mix(in srgb, var(--profile-albums-accent-hover) 18%, transparent);
  transform: translateY(0);
}

.profile-albums-button .icon-circle {
  align-items: center;
  align-self: center;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  width: 36px;
}

.profile-albums-button .icon-circle .svg-container,
.profile-albums-button .icon-circle svg {
  align-items: center;
  display: inline-flex;
  height: 22px !important;
  justify-content: center;
  max-height: 22px;
  max-width: 22px;
  width: 22px !important;
}

.profile-albums-button--entity .icon-circle,
.profile-albums-button--entity .icon-circle *,
.profile-albums-button--secondary .icon-circle,
.profile-albums-button--secondary .icon-circle * {
  color: var(--profile-albums-accent) !important;
  fill: var(--profile-albums-accent) !important;
}

.profile-albums-button--danger .icon-circle,
.profile-albums-button--danger .icon-circle * {
  color: var(--profile-albums-danger) !important;
  fill: var(--profile-albums-danger) !important;
}

.profile-albums-button .btn-text {
  color: #fff;
  display: block;
  min-width: 0;
  padding: 0 1px;
}

.profile-albums-tabs {
  align-items: center;
  background: var(--profile-albums-surface);
  border: 1px solid var(--profile-albums-border);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(29, 66, 77, .045);
  display: inline-flex;
  gap: 4px;
  margin: 14px 0 20px;
  padding: 5px;
}

.profile-albums-tab {
  align-items: center;
  border-radius: 11px;
  color: var(--profile-albums-muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.profile-albums-tab:hover {
  background: var(--profile-albums-accent-softer);
  color: var(--profile-albums-accent);
}

.profile-albums-tab.is-active {
  background: var(--profile-albums-accent);
  color: #fff;
}

.profile-albums-button:focus-visible,
.profile-albums-tab:focus-visible,
.profile-albums-text-link:focus-visible,
.profile-albums-load-more:focus-visible,
.profile-album-card a:focus-visible,
.profile-albums-back:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--profile-albums-accent) 30%, transparent);
  outline-offset: 3px;
}

.profile-albums-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
}

.profile-albums-main,
.profile-albums-aside {
  min-width: 0;
}

.profile-albums-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.profile-albums-panel {
  background: var(--profile-albums-surface);
  border: 1px solid var(--profile-albums-border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(29, 66, 77, .05);
  min-width: 0;
  padding: 22px;
}

.profile-albums-panel__header {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-albums-panel__header h2,
.profile-albums-guide h2,
.profile-albums-privacy h2 {
  color: var(--profile-albums-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.3;
  margin: 0;
}

.profile-albums-panel__header p,
.profile-albums-guide p,
.profile-albums-privacy p {
  color: var(--profile-albums-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 7px 0 0;
}

.profile-albums-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-album-card {
  min-width: 0;
}

.profile-album-card__surface {
  background: #fff;
  border: 1px solid var(--profile-albums-border);
  border-radius: 16px;
  height: 100%;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.profile-album-card:hover .profile-album-card__surface,
.profile-album-card:focus-within .profile-album-card__surface {
  border-color: color-mix(in srgb, var(--profile-albums-accent) 36%, transparent);
  box-shadow: 0 13px 28px rgba(25, 75, 87, .12);
  transform: translateY(-2px);
}

.profile-album-card__cover {
  background: var(--profile-albums-canvas);
  display: block;
  height: 0;
  overflow: hidden;
  padding-bottom: 69%;
  position: relative;
}

.profile-album-card__cover::after {
  background: linear-gradient(180deg, transparent 54%, rgba(11, 31, 36, .64));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.profile-album-card__cover img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .3s ease;
  width: 100%;
}

.profile-album-card:hover .profile-album-card__cover img {
  transform: scale(1.025);
}

.profile-album-card__count {
  align-items: center;
  background: rgba(17, 38, 43, .76);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  bottom: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
  left: 10px;
  padding: 6px 9px;
  position: absolute;
  z-index: 1;
}

.profile-album-card__body {
  padding: 14px;
}

.profile-album-card__heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.profile-album-card__heading h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  min-width: 0;
}

.profile-album-card__heading a {
  color: var(--profile-albums-ink);
  display: block;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-album-card__heading > i {
  color: var(--profile-albums-accent);
  flex: 0 0 auto;
  font-size: 11px;
}

.profile-album-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.profile-album-card__tag,
.profile-album-card__privacy {
  align-items: center;
  background: var(--profile-albums-accent-softer);
  border-radius: 999px;
  color: var(--profile-albums-muted);
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  gap: 5px;
  line-height: 1;
  padding: 6px 8px;
}

.profile-album-card__privacy {
  background: #f2f5f6;
}

.profile-albums-guide,
.profile-albums-privacy {
  padding: 20px;
}

.profile-albums-guide__icon,
.profile-albums-privacy__icon,
.profile-albums-state__icon {
  align-items: center;
  background: var(--profile-albums-accent-soft);
  border-radius: 14px;
  color: var(--profile-albums-accent);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  margin-bottom: 14px;
  width: 46px;
}

.profile-albums-guide__icon *,
.profile-albums-privacy__icon *,
.profile-albums-state__icon * {
  color: var(--profile-albums-accent) !important;
  fill: var(--profile-albums-accent) !important;
}

.profile-albums-privacy {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.profile-albums-privacy__icon {
  flex: 0 0 46px;
  margin: 0;
}

.profile-albums-text-link,
.profile-albums-back {
  align-items: center;
  color: var(--profile-albums-accent);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  margin-top: 13px;
  text-decoration: none;
}

.profile-albums-text-link:hover,
.profile-albums-back:hover {
  color: var(--profile-albums-accent-hover);
}

.profile-albums-load-more {
  align-items: center;
  appearance: none;
  background: var(--profile-albums-accent-softer);
  border: 1px solid color-mix(in srgb, var(--profile-albums-accent) 20%, transparent);
  border-radius: 13px;
  color: var(--profile-albums-accent);
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 10px 16px;
  width: 100%;
}

.profile-albums-load-more:hover {
  background: var(--profile-albums-accent-soft);
  border-color: color-mix(in srgb, var(--profile-albums-accent) 35%, transparent);
}

.profile-albums-load-more.loading {
  pointer-events: none;
}

.profile-albums-state {
  align-items: center;
  background: var(--profile-albums-canvas);
  border: 1px dashed color-mix(in srgb, var(--profile-albums-accent) 26%, transparent);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  padding: 42px 24px;
  text-align: center;
}

.profile-albums-state h2,
.profile-albums-state h3 {
  color: var(--profile-albums-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.profile-albums-state p {
  color: var(--profile-albums-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 8px auto 0;
  max-width: 620px;
}

.profile-albums-state .profile-albums-button {
  margin-top: 18px;
}

.profile-albums-state--private {
  margin-top: 4px;
  min-height: 330px;
  justify-content: center;
}

.profile-albums-back {
  margin: 0 0 12px 4px;
}

.profile-album-detail__hero {
  align-items: center;
}

.profile-album-detail__privacy {
  color: var(--profile-albums-accent);
  font-weight: 600;
}

.profile-album-detail__protected {
  align-items: center;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--profile-albums-border);
  border-radius: 13px;
  color: var(--profile-albums-muted);
  display: inline-flex;
  flex: 0 1 300px;
  font-size: 11px;
  font-weight: 600;
  gap: 9px;
  line-height: 1.5;
  padding: 11px 13px;
}

.profile-album-detail__protected i {
  color: var(--profile-albums-accent);
}

.profile-album-detail__content {
  padding: 22px;
}

.profile-album-detail__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-album-modal .modal-header {
  align-items: flex-start;
  border-bottom-color: var(--profile-albums-border);
  padding: 20px 22px 16px;
}

.profile-album-modal .modal-title {
  color: var(--profile-albums-ink);
  font-size: 18px;
  font-weight: 700;
}

.profile-album-modal .modal-body {
  padding: 20px 22px;
}

.profile-album-modal .modal-footer {
  border-top-color: var(--profile-albums-border);
  padding: 14px 22px;
}

.profile-album-modal .form-control {
  border-color: var(--profile-albums-border);
  border-radius: 12px;
  min-height: 46px;
}

.profile-album-modal .form-control:focus {
  border-color: var(--profile-albums-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--profile-albums-accent) 13%, transparent);
}

.profile-album-modal__publisher .publisher-message {
  border: 1px solid var(--profile-albums-border);
  border-radius: 14px;
  margin-bottom: 14px;
}

.profile-album-modal__upload {
  background: var(--profile-albums-accent-softer);
  border: 1px dashed color-mix(in srgb, var(--profile-albums-accent) 36%, transparent);
  border-radius: 15px;
  margin-top: 14px;
  padding: 4px;
}

.profile-album-modal__upload .js_x-uploader {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 18px;
  text-align: center;
}

.profile-album-modal__upload-icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--profile-albums-accent);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 9px;
  width: 48px;
}

.profile-album-modal__upload-icon * {
  color: var(--profile-albums-accent) !important;
  fill: var(--profile-albums-accent) !important;
}

.profile-album-modal__upload strong {
  color: var(--profile-albums-ink);
  font-size: 13px;
}

.profile-album-modal__upload small {
  color: var(--profile-albums-muted);
  font-size: 10px;
  margin-top: 4px;
}

.profile-album-modal__footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}

@media (max-width: 1199px) {
  .profile-albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-album-detail__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .profile-albums-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-albums-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .profile-album-detail__hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-album-detail__actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .profile-albums-page-column {
    padding-bottom: 30px;
  }

  .profile-albums-hero {
    align-items: flex-start;
    border-radius: 19px;
    flex-direction: column;
    padding: 24px 20px 20px;
  }

  .profile-albums-hero__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .profile-albums-tabs {
    display: flex;
    width: 100%;
  }

  .profile-albums-tab {
    flex: 1 1 50%;
  }

  .profile-albums-panel {
    border-radius: 17px;
    padding: 17px;
  }

  .profile-albums-grid,
  .profile-album-detail__grid,
  .profile-albums-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-album-card__cover {
    padding-bottom: 60%;
  }

  .profile-albums-button {
    height: 44px;
    max-width: 100%;
  }

  .profile-albums-button .icon-circle {
    flex-basis: 40px;
    height: 40px;
    width: 40px;
  }

  .profile-album-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-album-modal__footer .btn-group,
  .profile-album-modal__footer .profile-albums-button {
    width: 100%;
  }

  .profile-album-modal__footer .profile-albums-button {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #profile-albums *,
  #profile-albums *::before,
  #profile-albums *::after,
  .profile-album-modal * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
