/* ============================================================
   DETAILS PAGE — Maquette v2
============================================================ */

/* ── Topbar ── */
.d-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.0rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.d-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.d-back-link:hover { color: var(--color-primary); }
.d-topbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.d-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-btn);
  transition: all 0.2s;
}
.d-topbar-btn:hover { background: var(--color-bg-light); color: var(--color-primary); }
.d-topbar-btn--dots {
  width: 32px; height: 32px;
  border-radius: 50%;
  justify-content: center;
  padding: 0;
}

/* ── Page title ── */
.d-page-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.d-page-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-gray);
  margin-bottom: 1.25rem;
}

/* ── Main layout ── */
.d-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}
.d-left-column {
  min-width: 0;
}

/* ── Hero image slider ── */
.project-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
  background: #111;
  width: 100%;
  height: 550px;
  user-select: none;
}
.project-card.hero-project-card:hover {
  transform: none !important;
}
.project-card__half {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}
.project-card__half--before {
  width: 100%;
}
.project-card__half--after {
  width: 50%;
  left: auto;
  right: 0;
  border-left: 3px solid #fff;
  z-index: 2;
}
.project-card__half img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
.project-card__half--after img {
  position: absolute;
  top: 0;
  left: auto;
  right: 0;
  max-width: none;
}
.project-card__label {
  position: absolute;
  top: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  z-index: 5;
}
.project-card__label--avant {
  left: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.project-card__label--apres {
  right: 12px;
  background: var(--color-primary);
  color: #fff;
}
.project-card__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: #fff;
  z-index: 10;
  cursor: ew-resize;
}
.project-card__divider-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  z-index: 9;
}

/* ── Thumbnail strip ── */
.d-thumbs {
  display: flex;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  align-items: center;
  justify-content: space-between;
}
.d-thumb {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: #eee;
}
.d-thumb.active, .d-thumb:hover { border-color: var(--color-primary); }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-thumb--couple { display: flex; }
.d-thumb--couple img { width: 50%; height: 100%; object-fit: cover; }
.d-thumb--more {
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.d-thumb--more span { font-size: 0.6rem; font-weight: 500; opacity: 0.8; }
.lightbox-caption {
  position: absolute;
  bottom: 0;
  z-index: 99999;
}
/* ── Like/Save/Share bar ── */
.d-action-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.d-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  cursor: pointer;
  padding: 0.65rem 1rem;
  transition: color 0.2s;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.d-action-btn:hover { color: var(--color-primary); }
.d-action-btn--like.liked { color: #e84e1b; }
.d-action-btn--like.liked i { color: #e84e1b; }
.d-action-btn i { font-size: 1.15rem; }

/* ── Section box ── */
.d-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.d-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.1rem;
}

/* ── Project info grid ── */
.d-info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .d-info-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .d-info-grid { grid-template-columns: repeat(2, 1fr); } }

.d-info-cell {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.25rem 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--color-border);
}
.d-info-cell:last-child {
  border-right: none;
}
@media (max-width: 900px) {
  .d-info-cell { border-right: none; }
}

.d-info-cell__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    /* font-weight: 800; */
    flex-shrink: 0;
}
.d-info-cell__content {
  display: flex;
  flex-direction: column;
}
.d-info-cell__label { font-size: 0.7rem; color: var(--color-gray); font-weight: 500; }
.d-info-cell__value { font-size: 0.85rem; font-weight: 700; color: var(--color-dark); }

/* Custom colored icon boxes */
.icon-box--green { background: #eaf4f0; color: #1b5e4b; }
.icon-box--orange { background: #fff3e0; color: #e65100; }
.icon-box--purple { background: #f3e5f5; color: #6a1b9a; }
.icon-box--blue { background: #e3f2fd; color: #1565c0; }
.icon-box--yellow { background: #fffbcc; color: #f57f17; }
.icon-box--red { background: #ffebee; color: #c62828; }

/* ── About section ── */
.d-about-text {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ── 3-col checklist ── */
.d-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ── Product List ── */
.d-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.d-product-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: transparent;
  transition: all 0.2s ease;
}
.d-product-card:hover {
  border-color: #d1d5db;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.d-product-card__num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.d-product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.d-product-card__name {
  font-size: 0.88rem;
  color: var(--color-text);
  margin: 0;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.d-product-card:hover .d-product-card__name {
  color: var(--color-primary);
  font-weight: bold;
}
.d-product-card__price {
  font-size: 0.82rem;
}

/* ── Comments ── */
.d-comment-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.d-comment-input {
  flex: 1;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  outline: none;
  font-family: var(--font-family);
  transition: border-color 0.2s;
}
.d-comment-input:focus { border-color: var(--color-primary); }
.d-comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.d-comment-submit:hover { background: var(--color-primary-light); }

.d-comment {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.d-comment:last-child { border-bottom: none; }
.d-comment__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.d-comment__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
}
.d-comment__time {
  font-size: 0.72rem;
  color: var(--color-gray);
  margin-left: 0.5rem;
}
.d-comment__text {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0.25rem 0 0.35rem;
}
/* Tronqué à 4 lignes */
.d-comment__text--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Bouton voir plus / voir moins */
.d-comment__read-more {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.d-comment__read-more:hover { color: var(--color-primary-dark); text-decoration: underline; }
.d-comment__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.d-comment__reply-btn, .d-comment__like-btn {
  font-size: 0.75rem;
  color: var(--color-gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}
.d-comment__reply-btn:hover, .d-comment__like-btn:hover { color: var(--color-primary); }
.d-comment__dots {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--color-gray);
  cursor: pointer;
  font-size: 0.9rem;
}

/* ── Sidebar ── */
.d-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;              /* allow grid cell to shrink */
  position: sticky;
  top: 5rem;                 /* stick below the fixed navbar */
  align-self: start;
  -ms-overflow-style: none;
}
.d-sidebar::-webkit-scrollbar { display: none; }

/* Author card */
.d-author-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.d-author-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.d-author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}
.d-author-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}
.d-author-verified { color: #1877f2; font-size: 0.85rem; }
.d-author-rating {
  font-size: 0.8rem;
  color: var(--color-text);
}
.d-author-rating strong { color: var(--color-dark); }
.d-author-stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.d-author-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.d-author-stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.d-author-stat-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex: 1;
}
.d-author-stat-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-dark);
}
.d-author-stat-label {
  font-size: 0.8rem;
  color: var(--color-gray);
}
.d-author-since {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.d-author-since strong { color: var(--color-dark); font-weight: 700; display: inline; font-size: 1rem; }
.d-author-since span { color: var(--color-gray); }
.d-author-since .text-muted { font-size: 0.75rem; margin-top: 0.2rem; }

.d-author-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.d-author-actions button {
  border-radius: var(--radius-btn);
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
}
.d-btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
  border: none;
      padding: 0.75rem;
    border-radius: var(--radius-btn);
    gap: 0.5rem;
    font-size: 0.88rem;
} 
.d-btn-contact:hover { background: var(--color-primary-light); transform: translateY(-1px); }
.d-btn-follow, .d-btn-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}
.d-btn-follow:hover, .d-btn-profile:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

/* Trust card */
.d-trust-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.d-trust-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.85rem;
}
.d-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.d-trust-item i { color: var(--color-primary); font-size: 0.85rem; flex-shrink: 0; }
.d-report-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc3545;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.d-report-link:hover { text-decoration: underline; color: #b02a37; }

/* Map card */
.d-map-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.d-map-card__header {
  padding: 0.85rem 1.25rem 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.d-map-card__header i { color: var(--color-primary); }
.d-map-location {
  padding: 0 1.25rem 0.85rem;
  font-size: 0.8rem;
  color: var(--color-gray);
  display: flex;
  align-items: center;
}
.d-map-frame { width: 100%; height: 180px; border: none; display: block; border-top: 1px solid var(--color-border); }
.d-map-card__footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
}
.d-map-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.5rem;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.d-map-card__btn:hover { background: var(--color-primary-pale); }

/* ── Similar section ── */
.d-similar { margin: 3rem 0; }
.d-similar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.d-similar__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0;
}
.d-similar__nav { display: flex; gap: 0.4rem; }
.d-similar__nav-buttons {     
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
} 
.d-similar__nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.d-similar__nav-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(27,94,75,0.15);
}
.d-similar__nav-btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* Link to view all similar transformations */
.d-similar__view-all {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.d-similar__view-all:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

.d-similar-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;    /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  cursor: grab;
}
.d-similar-carousel::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.d-similar-carousel.is-dragging { cursor: grabbing; }
.d-similar-track {
  display: flex;
  gap: 1rem;
  /* No transform-based scroll — use native scroll */
  padding-bottom: 0.5rem;
}
.d-similar-track .new-card {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 280px;
}

/* ── Report modal ── */
.d-report-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.d-report-overlay.open { display: flex; }

/* ── Lightbox ── */
#lightboxImage {
  transition: opacity 0.15s ease;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-nav {
  background: rgba(255,255,255,0.1) !important;
  border: 1.5px solid rgba(255,255,255,0.25) !important;
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s, transform 0.2s !important;
  cursor: pointer;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.25) !important;
  transform: translateY(-50%) scale(1.1) !important;
}
.d-report-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.d-report-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.d-report-modal__header h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-dark);
}
.d-report-modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-light);
  color: var(--color-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.d-report-modal__close:hover { background: #fee2e2; color: #dc3545; }
.d-report-modal__body { padding: 1.25rem 1.5rem; }
.d-report-types { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.d-report-type {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
}
.d-report-type:hover, .d-report-type.selected {
  border-color: #dc3545;
  background: #fff5f5;
  color: #dc3545;
}
.d-report-type input { display: none; }
.d-report-modal__textarea {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  resize: none;
  outline: none;
  font-family: var(--font-family);
}
.d-report-modal__textarea:focus { border-color: #dc3545; }
.d-report-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-light);
}
.d-report-modal__btn-cancel {
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-gray);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.d-report-modal__btn-send {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.d-report-modal__btn-send:hover { background: #b02a37; }


/* ════════════════════════════════════════════════════
   RESPONSIVE — All breakpoints
   1200 | 992 | 768 | 480
═══════════════════════════════════════════════════════ */

/* ─── ≤ 1400px : Écran intermédiaire ─── */
@media (max-width: 1400px) {
  .d-layout {
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
  }
}

/* ─── ≤ 1200px : Tablette paysage ─── */
@media (max-width: 1200px) {
  .d-layout {
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
  }
  .project-card { height: 480px; }
  .d-info-grid { grid-template-columns: repeat(3, 1fr); }
  .d-info-cell { border-right: none; }
}

/* ─── ≤ 992px : Tablette portrait ─── */
@media (max-width: 992px) {
  /* Layout → 1 colonne, sidebar sous le contenu */
  .d-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Hero */
  .project-card { height: 420px; }

  /* Sidebar passe en ligne (2 cards côte à côte) + désactiver sticky */
  .d-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
    position: static;   /* désactiver sticky */
    top: auto;
  }
  /* Map card : pleine largeur */
  .d-map-card { grid-column: 1 / -1; }

  /* Thumbs */
  .d-thumbs { justify-content: flex-start; gap: 0.5rem; }
  .d-thumb { width: 110px; height: 72px; }

  /* Action bar — flex: 1 already handles this */

  /* Similar carousel — card min-width handles sizing */

  /* Info grid */
  .d-info-grid { grid-template-columns: repeat(3, 1fr); }

  /* Checklist */
  .d-checklist-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── ≤ 768px : Mobile large ─── */
@media (max-width: 768px) {
  /* Hero */
  .project-card { height: 340px; }

  /* Thumbs : scroll horizontal */
  .d-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .d-thumbs::-webkit-scrollbar { display: none; }
  .d-thumb { width: 90px; height: 60px; flex-shrink: 0; }

  /* Action bar — keep as row, flex:1 handles equal width */
  .d-action-bar { gap: 0.5rem; }

  /* Sidebar : retour en colonne unique, plus de sticky */
  .d-sidebar {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }
  .d-map-card { grid-column: unset; }

  /* Section title */
  .d-page-title { font-size: clamp(1.2rem, 4vw, 1.6rem); }

  /* Info grid → 2 cols */
  .d-info-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Checklist → 1 col */
  .d-checklist-grid { grid-template-columns: 1fr; }

  /* Product cards */
  .d-product-card { padding: 0.6rem 0.75rem; gap: 0.75rem; }
  .d-product-card__num { width: 28px; height: 28px; font-size: 0.78rem; }

  /* Comments input */
  /* Comment row : toujours inline, bouton icône seule */
  .d-comment-input-row { flex-direction: row; align-items: center; }
  .d-comment-submit {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
  }
  .d-comment-submit__label { display: none; }

  /* Author card : stats en grille 3 cols */
  .d-author-stats-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .d-author-stat-item { flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
  .d-author-stat-info { align-items: center; }

  /* Author actions : 2 cols */
  .d-author-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .d-btn-contact {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .d-btn-follow, .d-btn-profile { margin-bottom: 0; }

  /* Similar */
  .d-similar-track .new-card { flex: 0 0 calc(70% - 0.5rem); }

  /* Similar header */
  .d-similar__title { font-size: 1.1rem; }

  /* Topbar */
  .d-topbar { flex-direction: row; flex-wrap: wrap; }

  /* Report modal */
  .d-report-types { grid-template-columns: 1fr; }

  /* Lightbox nav buttons: more visible on mobile */
  .lightbox-nav {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }
  .lightbox-nav.prev { left: 8px !important; }
  .lightbox-nav.next { right: 8px !important; }
}

/* ─── ≤ 480px : Mobile ─── */
@media (max-width: 480px) {
  /* Container padding */
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Hero */
  .project-card { height: 260px; border-radius: var(--radius-lg); }

  /* Thumbs plus petites */
  .d-thumb { width: 70px; height: 48px; }

  /* Page title */
  .d-page-title { font-size: 1.1rem; }

  /* Info grid → 2 cols mais moins de padding */
  .d-info-grid { gap: 0.5rem; }
  .d-info-cell__icon { width: 34px; height: 34px; font-size: 1rem; }
  .d-info-cell__value { font-size: 0.8rem; }
  .d-info-cell__label { font-size: 0.65rem; }

  /* Section boxes */
  .d-section { padding: 1rem; }

  /* Author stats → 1 col */
  .d-author-stats-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .d-author-stat-item { flex-direction: row; align-items: center; text-align: left; }
  .d-author-stat-info { align-items: flex-start; }

  /* Author actions → 1 col */
  .d-author-actions { grid-template-columns: 1fr; }

  /* Similar → presque pleine largeur */
  .d-similar-track .new-card { flex: 0 0 calc(88% - 0.5rem); }

  /* Exception : garder le texte du back-link */
  .d-back-link span { display: inline; }
  .d-topbar-actions { gap: 1rem; }
  /* Lightbox plein écran sur mobile */
  #lightboxImage { border-radius: 6px; max-height: 70vh; }
  #lightboxCaption { font-size: 0.78rem; }
  @media screen and (max-width: 465px) {
    .d-similar .d-similar__header {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
    }
    .d-similar .d-similar__nav {
      justify-content: space-between;
      width: 100%;
    }
    .d-action-btn span {
      display: none;
    }
  }
}
