/* Construction — pile d’images minimaliste par projet */
.page-construction .const-gallery {
    padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
    background: #fff;
}

.page-construction .const-gallery__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-construction .const-gallery__title {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 600;
    color: var(--ink);
}

.page-construction .const-gallery__count {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.page-construction .const-gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .page-construction .const-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 1.25rem;
    }
}

@media (min-width: 992px) {
    .page-construction .const-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem 1.25rem;
    }
}

.page-construction .const-gallery__grid:has(.const-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.page-construction .const-item {
    min-width: 0;
}

/* ── Pile d’images ── */
.page-construction .const-stack {
    position: relative;
    padding: 0 12px 16px 0;
}

.page-construction .const-stack__deck {
    position: relative;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.page-construction .const-stack__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 12px);
    height: calc(100% - 16px);
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #eceef1;
    box-shadow: 0 6px 20px rgba(10, 10, 11, 0.07);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease;
    will-change: transform;
}

.page-construction .const-stack__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Image au premier plan */
.page-construction .const-stack__slide[data-pos="0"] {
    z-index: 3;
    transform: translate(0, 0) scale(1);
    opacity: 1;
    box-shadow: 0 10px 32px rgba(10, 10, 11, 0.12);
}

/* Images en arrière-plan */
.page-construction .const-stack__slide[data-pos="1"] {
    z-index: 2;
    transform: translate(10px, 10px) scale(0.97);
    opacity: 0.88;
}

.page-construction .const-stack__slide[data-pos="2"] {
    z-index: 1;
    transform: translate(20px, 20px) scale(0.94);
    opacity: 0.72;
}

.page-construction .const-stack__expand {
    position: absolute;
    top: 0.65rem;
    right: calc(12px + 0.65rem);
    z-index: 5;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(10, 10, 11, 0.4);
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.page-construction .const-stack:hover .const-stack__expand,
.page-construction .const-stack:focus-within .const-stack__expand {
    opacity: 1;
}

.page-construction .const-stack__expand:hover {
    background: rgba(10, 10, 11, 0.65);
    color: #fff;
}

.page-construction .const-stack__next {
    position: absolute;
    bottom: calc(16px + 0.5rem);
    right: calc(12px + 0.5rem);
    z-index: 5;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--ink);
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(10, 10, 11, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-construction .const-stack__next:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(10, 10, 11, 0.15);
}

.page-construction .const-stack__dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.page-construction .const-stack__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.page-construction .const-stack__dot.is-active {
    background: var(--primary);
    transform: scale(1.2);
}

.page-construction .const-item__caption {
    margin-top: 0.5rem;
    padding: 0 0.15rem;
}

.page-construction .const-item__name {
    margin: 0 0 0.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.page-construction .const-item__desc {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-construction .const-gallery__empty {
    text-align: center;
    color: #6b7280;
    font-size: 0.9375rem;
}

.page-construction .const-gallery__footer {
    margin: 2rem 0 0;
    text-align: center;
}

.page-construction .const-gallery__footer a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.page-construction .const-gallery__footer a:hover {
    color: var(--ink);
}

.page-construction .const-gallery__footer i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.25s ease;
}

.page-construction .const-gallery__footer a:hover i {
    transform: translateX(3px);
}

@media (max-width: 639.98px) {
    .page-construction .const-stack__expand {
        opacity: 1;
    }
}
