:root {
    --noir: #141414;
    --blanc: #f5f5f5;
    --accent: #f04a4a;
    --gris: #e5e5e5;
    --menu-h: 70px;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--blanc);
    color: var(--noir);
    font-family: 'Space Grotesk', 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

header {
    width: 100%;
    max-width: 100vw;
    background: var(--blanc);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px #0002;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2vw 3vw 1vw 3vw;
    box-sizing: border-box;
}

.logo {
    font-size: 2.2em;
    font-family: 'Space Grotesk', monospace;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
    user-select: none;
    transform: rotate(-2deg);
    margin: 0;
    white-space: pre-line;
}

nav {
    display: flex;
    gap: 1.5em;
    align-items: center;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.15em;
    flex-wrap: wrap;
    background: var(--blanc);
    box-sizing: border-box;
}

nav a {
    color: var(--noir);
    text-decoration: none;
    padding: 0.35em 0.8em;
    border-radius: 8px;
    transition: color .2s, background .2s;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: block;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    background: var(--accent);
    color: var(--blanc);
}

/* Hero */
.hero {
    width: 100vw;
    min-height: 75vh;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    margin-bottom: 2vw;
    box-sizing: border-box;
    position: relative;
    overflow-x: visible;
}

.hero-text {
    flex: 2;
    padding: 8vw 4vw 3vw 10vw;
    display: flex;
    flex-direction: column;
    justify-content: start;
    z-index: 4;
    min-width: 250px;
    box-sizing: border-box;
}

.hero-title {
    font-size: 8em;
    font-family: 'Space Grotesk', monospace;
    font-weight: bolder;
    color: var(--noir);
    line-height: .97;
    letter-spacing: -0.015em;
    margin: 0 0 0.25em 0;
    word-break: break-all;
}

.hero-desc {
    font-size: 2em;
    font-family: 'Roboto', sans-serif;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1em;
    word-break: normal;
}



@media (max-width:1100px) {
    .hero-title {
        font-size: 6em;
    }

    .hero-desc {
        font-size: 1.5em;

    }
}



@media (max-width:900px) {
    .hero {
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 5em;
    }

    .hero-text {
        padding: 7vw 4vw 2vw 4vw;
    }

}

@media (max-width:700px) {
    nav {
        display: none;
    }

    header {
        position: absolute;
        box-shadow: none;

    }

    .hero-text {
        padding: 20vw 4vw 2vw 4vw;
    }
}

@media (max-width:600px) {


    .hero-title {
        font-size: 4em;
    }

    .hero-text {
        padding: 25vw 4vw 2vw 4vw;
    }

    .hero-desc {
        font-size: 1.2em;

    }
}



/* Section Title */
section {
    scroll-margin-top: calc(var(--menu-h) + 15px);
}

.section-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 2.3em;
    color: var(--accent);
    margin: 8vw 0 8vw 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 8px solid var(--accent);
    padding-left: 0.5em;
    font-weight: 900;
    line-height: 1.05;
    background: var(--blanc);
}

@media (max-width:500px) {
    .hero-text {
        padding: 30vw 4vw 2vw 4vw;
    }

    .section-title {
        margin: 8vw 0 10vw 0;
        font-size: 1.8em;

    }
}


/* Services, Portfolio, Clients wall, Contact ... (identique à v11) */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 3vw;
    margin-bottom: 5vw;
    padding: 0 5vw;
    justify-content: center;
    align-items: stretch;
}

.service {

    background: var(--blanc);
    border-radius: 1.7em;
    box-shadow: 0 8px 32px #0001, 0 2px 12px #f04a4a22;
    border: none;
    min-width: 260px;
    max-width: 320px;
    flex: 1 1 260px;
    margin-bottom: 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5em 1.5em 1.7em 1.5em;
    position: relative;
    transition: box-shadow .18s, transform .18s, background .18s;
    overflow: visible;
    z-index: 5;
}

.service:hover {
    transform: translateY(-8px) scale(1.03) rotate(-1deg)!important;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 18px #f04a4a22;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--accent);
    z-index: 2;
}

.service-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: invert(0.8) grayscale(0) drop-shadow(0 2px 8px var(--blanc));
}


.service-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.25em;
    color: var(--accent);
    margin: 2.7em 0 0.5em 0;
    font-weight: 900;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-align: center;
}

.service-points {
    font-family: 'Roboto', sans-serif;
    color: var(--noir);
    font-size: 1em;
    margin: 0.2em 0 0 0;
    padding-left: 0;
    text-align: center;
    list-style: none;
}

.service-points li {
    margin-bottom: 0.4em;
    font-weight: 500;
    position: relative;
    padding-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-points li::before {
    content: '';
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 0.7em;
}

.portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2vw;
    padding: 0 8vw;
    margin-bottom: 3vw;
    box-sizing: border-box;
}

.work {
    background: #191919;
    color: var(--blanc);
    border-radius: 2vw 1vw 2vw 1vw;
    overflow: hidden;
    position: relative;
    min-height: 280px;
    box-shadow: 0 2px 28px rgba(0, 0, 0, 0.089);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .16s, box-shadow .18s;

    transition: all 0.2s;
}

.work img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    background: #191919;
    filter: grayscale(1);
    transition: all 0.2s;
}

.work:hover img {

    filter: grayscale(0);
}

.work:hover {
    scale: 0.99;
    transition: all 0.2s;
    box-shadow: 0 2px 28px rgba(0, 0, 0, 0.356);
}



.work-caption {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.18em;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 1.4em 1.2em;
    color: var(--accent);
    background: #191919;
    border-top: 3px solid var(--accent);
    min-height: 30px;
    display: flex;
    align-items: center;
}

/* ...existing code... */
.clients-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4vw 4vw;
    padding: 0 15vw;
    /* Augmente le padding latéral pour centrer le contenu */
    margin: 7vw 0 7vw 0;
    background: none;
    border-radius: 0;
    box-sizing: border-box;
    min-height: 260px;
    max-width: 100vw;
}

/* Limite à 4 logos par ligne sur desktop */
.client-item {
    flex: 1 1 180px;
    max-width: 22%;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform .18s;
}

/* Responsive : 2 par ligne sur tablette, 1 par ligne sur mobile */

.client-item img {
    width: 110%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(1);
    transition: filter .15s, transform .18s;
    margin: auto;
}

.client-item:hover img {
    filter: grayscale(0) !important;
    transform: scale(1.12);
}

.spe:hover img {
    filter: invert(1) hue-rotate(180deg) !important;
}

.client-item:not(:has(img)) {
    display: none;
}

@media (max-width: 1100px) {
    .client-item {
        max-width: 45%;
        width: 120px;
        height: 90px;
    }
}

@media (max-width: 900px) {
    .clients-wall {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 90px;
        padding: 0 2vw;
    }

    .client-item {
        width: 120px;
        height: 90px;
    }

    .client-item img {
        width: 90%;
        height: 90%;
    }
}

@media (max-width: 700px) {
    .clients-wall {
        flex-direction: row;
        align-items: stretch;
    }

    .client-item {
        max-width: 100%;
        width: 100%;
        height: 60px;
        margin: 0.7em auto;
    }
}

.contact {
    padding: 7vw 0 5vw 0;
    background: var(--noir);
    color: var(--blanc);
    text-align: center;
    border-top-left-radius: 40vw 5vw;
}

.contact-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 2.5em;
    color: var(--accent);
    margin-bottom: 2vh;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 900;
}

.contact-form {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    max-width: 420px;
    padding: 2vw 2vw;
    align-items: center;
}

.contact-form input,
.contact-form textarea {
    border: none;
    background: #222;
    color: var(--blanc);
    padding: 1em;
    border-radius: 0.7em;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1em;
    outline: none;
    width: 90%;
    transition: background .2s, color .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: var(--accent);
    color: var(--noir);
}

.contact-form button {
    background: var(--accent);
    color: var(--blanc);
    border: none;
    border-radius: 1.5em;
    padding: 1em 2.5em;
    font-size: 1.1em;
    font-family: 'Space Grotesk', monospace;
    font-weight: bold;
    letter-spacing: 0.07em;
    cursor: pointer;
    box-shadow: 0 2px 14px #f04a4a44;
    transition: background .2s, color .2s, box-shadow .2s;
}

.contact-form button:hover {
    background: var(--noir);
    color: var(--accent);
    box-shadow: 0 8px 36px #f04a4a33;
}

.notif-contact {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px) scale(0.98);
    opacity: 0;
    background: #2ecc40;
    color: #fff;
    padding: 1em 2em;
    border-radius: 1em;
    box-shadow: 0 4px 24px #0002;
    z-index: 9999;
    font-weight: 700;
    min-width: 220px;
    text-align: center;
    transition: opacity .35s cubic-bezier(.4, 1.4, .6, 1), transform .35s cubic-bezier(.4, 1.4, .6, 1);
}

.notif-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    position: absolute;
    top: 8px;
    right: 18px;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
}

@media (max-width: 1400px) {
    .portfolio {
        grid-template-columns: 1fr 1fr;

    }

    .work {
        min-height: 220px;
    }

    .work img {
        height: 220px;


    }

}


@media (max-width:1100px) {
    .work img {
        height: 190px;
    }
}

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

    .work img {
        height: 190px;
    }


}

.appear {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity .7s cubic-bezier(.4, 1.4, .6, 1), transform .7s cubic-bezier(.4, 1.4, .6, 1);
    will-change: opacity, transform;
}

.appear.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-title.appear {
    transform: translateX(-40px) scale(0.98);
    transition-delay: 0.1s;
}

.hero-title.appear.visible {
    transform: translateX(0) scale(1);
}

.hero-desc.appear {
    transform: translateX(40px) scale(0.98);
    transition-delay: 0.25s;
}

.hero-desc.appear.visible {
    transform: translateX(0) scale(1);
}

.hidden-work {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.portfolio-toggle {
    display: flex;
    justify-content: center;
    /* centre le bouton */
    width: 100%;
    margin: 0em 0 1em 0;
}

.toggle-btn {
    background: #fff;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 2em;
    padding: 0.5em 1.5em;
    font-size: 1em;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px #f04a4a22;
    transition: background .18s, color .18s, border-color .18s;
    opacity: 0.85;
}

.toggle-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    opacity: 1;
}