* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'PT Sans', sans-serif;
    color: var(--font_2);
}

a {
    text-decoration: none;
}

/* ── HEADER ─────────────────────────────── */

.setup-header {
    display: block;
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 280px;
    max-height: 420px;
    background: var(--font);
    overflow: hidden;
    border-bottom: 3px solid var(--bleu);
}

.setup-header .drap {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,6,6,.92) 0%, rgba(69,140,255,.18) 100%);
}

.setup-header::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(69,140,255,.12);
    border-radius: 50%;
    right: -120px;
    top: -160px;
}

.setup-header::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(69,140,255,.08);
    border-radius: 50%;
    right: -40px;
    top: -80px;
}

.header-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    z-index: 2;
    max-width: 1080px;
    margin: auto;
}

.header-content h4 {
    text-transform: uppercase;
    color: var(--bleu);
    font-size: 15px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.header-content h4 i {
    margin-right: 8px;
    animation: piston_solid 1.2s ease-in-out infinite;
}

.header-content h1 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(28px, 5vw, 54px);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.header-content p {
    color: var(--grey_7);
    font-size: clamp(14px, 1.8vw, 18px);
    max-width: 480px;
}

/* ── FILTERS ────────────────────────────── */

.filters {
    display: block;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 5px var(--box_shadow);
    z-index: 3;
}

.filter-bar {
    display: flex;
    max-width: 1080px;
    margin: auto;
    padding: 0 20px;
    gap: 0;
}

.filter-btn {
    display: block;
    padding: 18px 28px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--grey_2);
    position: relative;
    transition: color .25s ease-out;
}

.filter-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--bleu);
    transition: all .25s ease-out;
    transform: translateX(-50%);
}

.filter-btn:hover {
    color: var(--font);
}

.filter-btn.active {
    color: var(--bleu);
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 100%;
}

/* ── PORTFOLIO GRID ─────────────────────── */

.portfolio {
    display: block;
    position: relative;
    max-width: 1080px;
    margin: auto;
    padding: 50px 20px 60px;
}

.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── CARD ────────────────────────────────── */

.project-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    box-shadow: 0 1px 6px var(--box_shadow);
    overflow: hidden;
    transition: transform .3s ease-out, box-shadow .3s ease-out;
    cursor: pointer;
    animation: fadeUp .5s ease-out both;
}

.project-card:nth-child(2) { animation-delay: .08s; }
.project-card:nth-child(3) { animation-delay: .16s; }
.project-card:nth-child(4) { animation-delay: .24s; }
.project-card:nth-child(5) { animation-delay: .32s; }
.project-card:nth-child(6) { animation-delay: .40s; }

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

/* visual */
.card-visual {
    display: block;
    position: relative;
    width: 100%;
    padding-top:62%;
    background: var(--font);
    background-size: cover;
    background-position: top left ;
    background-repeat: no-repeat;
    overflow: hidden;
}

.card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bleu);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    z-index: 2;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,6,6,.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    opacity: 0;
    transition: opacity .3s ease-out;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.card-techs {
    display: flex;
    gap: 8px;
}

.card-techs span {
    display: block;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-action {
    width: 46px;
    height: 46px;
    border: 2px solid var(--bleu);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bleu);
    font-size: 16px;
    transition: background .2s ease-out, color .2s ease-out;
}

.card-action:hover {
    background: var(--bleu);
    color: #fff;
}

/* info */
.card-info {
    padding: 20px 18px 14px;
    flex: 1;
}

.card-info h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--font);
}

.card-info p {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--grey_2);
}

/* bottom */
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid var(--grey_5);
}

.cat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bleu);
    font-weight: bold;
}

.card-arrow {
    color: var(--grey_6);
    transition: color .2s ease-out, transform .2s ease-out;
}

.project-card:hover .card-arrow {
    color: var(--bleu);
    transform: translateX(4px);
}

/* Lot B4 : bandeau « Un projet en tête ? » déplacé dans assets/css/techno.css (composant commun assets/cta_band.php) */

/* ── ANIMATIONS ─────────────────────────── */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ─────────────────────────── */

@media only screen and (max-width: 900px) {
    .grid-portfolio {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .header-content {
        padding: 0 30px;
    }
}

@media only screen and (max-width: 560px) {
    .grid-portfolio {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .setup-header {
        height: 32vh;
        min-height: 220px;
    }

    .header-content {
        padding: 0 20px;
    }

    .filter-bar {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 12px 18px;
        font-size: 12px;
    }

    .portfolio {
        padding: 30px 15px 40px;
    }
}
