/* ================================
   PROJECTS PAGE (bandeau + grille)
   ================================ */

.projects-hero {
    position: relative;
    height: clamp(220px, 26vw, 360px);
    overflow: hidden;
    background: #ddd;
    margin-top: 0;
}

.projects-hero-media {
    position: absolute;
    inset: 0;
}

.projects-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
}

.projects-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, .18),
        rgba(0, 0, 0, .22));
}

.projects-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 22px 0;
}

.projects-hero-kicker {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    opacity: .95;
}

.projects-hero-title {
    margin: 0;
    font-family: var(--font-head, "Urbanist", system-ui);
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ---------------------------------------------------------
   Project grid
--------------------------------------------------------- */
.projects-list {
    padding: 34px 0 70px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 36px;
}

.project-tile {
    text-decoration: none;
    display: block;
}

.project-thumb {
    background: rgba(255, 255, 255, .35);
    border: 0;
}

.project-thumb img {
    aspect-ratio: 4/3;
    object-fit: contain;
}

.project-title {
    margin: 14px 0 0;
    font-family: var(--font-head, "Urbanist", system-ui);
    font-size: 18px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--navy, #000827);
}

/* ================================
   TRUST — Carrousel horizontal
   ================================ */

.trust {
    background: var(--pink, #F5ADA8);
    padding: clamp(46px, 6vw, 88px) 0 34px;
}

.trust-inner {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
    text-align: center;
    position: relative;
}

.trust-title {
    margin: 0 0 34px;
    font-family: var(--font-head, "Urbanist", system-ui);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: clamp(28px, 3.2vw, 46px);
    color: var(--navy, #000827);
}

.trust-anchor {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.trust-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.trust-carousel::-webkit-scrollbar {
    display: none;
}

.trust-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 240px);
    gap: 22px;
    justify-content: start;
    padding: 0 6px;
}

.trust-card {
    scroll-snap-align: start;
    background: rgba(248, 245, 239, .85);
    border: 1px solid rgba(0, 0, 0, .06);
    padding: 22px 18px 18px;
    min-height: 280px;
}

.trust-avatar {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.trust-name {
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--font-head, "Urbanist", system-ui);
    color: var(--navy, #000827);
}

.trust-quote {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: color-mix(in srgb, var(--navy) 85%, #fff);
}

.trust-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

.trust-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--orange, #E25B21) 70%, #fff);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    text-decoration: none;
    user-select: none;
    border: 2px solid transparent;
    transition: transform .12s ease, filter .12s ease;
}

.trust-nav-btn:hover {
    filter: brightness(1.04);
}

.trust-nav-btn:active {
    transform: translateY(1px);
}

.trust-card .timeline-img {
    border-radius: 999px;
}

#avis-1 { scroll-margin-left: 0px; }
#avis-3 { scroll-margin-left: 0px; }

:target ~ .trust-carousel {
    scroll-behavior: smooth;
}

@media (min-width: 1100px) {
    .trust-track {
        grid-auto-columns: 260px;
    }
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-hero {
        height: clamp(220px, 34vw, 340px);
    }
}

@media (max-width: 560px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-hero-kicker {
        font-size: 14px;
    }

    .trust-card {
        min-height: auto;
    }
}
