:root {
    --ink: #101820;
    --ink-soft: #26333e;
    --blue: #0f7bbf;
    --blue-bright: #24a7eb;
    --paper: #f5f6f4;
    --white: #fff;
    --line: #d9dee1;
    --radius: 24px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    background: #fff;
    padding: .8rem 1rem;
    z-index: 20;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--max);
    margin: auto;
    padding: 0 28px;
}

.brand img {
    width: 219px;
    height: 41px;
    object-fit: cover;
}

.site-header nav {
    display: flex;
    gap: 2rem;
}

.site-header nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
}

.site-header nav a:hover {
    color: var(--blue);
}

.menu-button {
    display: none;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .65rem 1rem;
    font: inherit;
    font-weight: 700;
}

.hero {
    min-height: 680px;
    background: linear-gradient(115deg,var(--ink) 0 54%,var(--blue) 54%);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr);
    align-items: center;
    overflow: hidden;
}

.hero-copy {
    width: min(680px,100%);
    margin-left: max(28px,calc((100vw - var(--max))/2));
    padding: 88px 48px 88px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .75rem;
    font-weight: 850;
    color: var(--blue-bright);
}

.hero h1,.section h2 {
    font-size: clamp(2.8rem,6vw,5.8rem);
    letter-spacing: -.06em;
    line-height: .94;
    margin: .4em 0;
}

.hero h1 span {
    color: var(--blue-bright);
}

.intro {
    max-width: 590px;
    color: #cbd3d9;
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .9rem 1.25rem;
    text-decoration: none;
    font-weight: 800;
}

.primary {
    background: var(--blue-bright);
    color: var(--ink);
}

.ghost {
    border: 1px solid #63707a;
}

.hero-visual {
    height: 100%;
    position: relative;
    display: grid;
    place-items: center;
}

.hero-card {
    width: 280px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    background: #101820e8;
    box-shadow: 30px 30px 0 #ffffff1f;
    transform: rotate(-3deg);
}

.hero-card strong {
    font-size: 5rem;
    line-height: .9;
    letter-spacing: -.08em;
}

.hero-card>span {
    color: var(--blue-bright);
    letter-spacing: .36em;
    font-weight: 800;
}

.hero-card small {
    margin-top: 2.5rem;
    font-size: 1rem;
}

.signal {
    position: absolute;
    border: 2px solid #fff5;
    border-radius: 50%;
}

.signal-one {
    width: 420px;
    height: 420px;
}

.signal-two {
    width: 560px;
    height: 560px;
}

.section {
    max-width: var(--max);
    margin: auto;
    padding: 110px 28px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-size: clamp(2.4rem,5vw,4.6rem);
    margin: .25em 0;
}

.section-heading>p {
    color: #5b6871;
}

.project-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 410px;
    margin-bottom: 26px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
}

.project-icon {
    display: grid;
    place-items: center;
    background: #dff5ed;
}

.project-icon img {
    width: 160px;
}

.project-copy {
    padding: 58px;
}

.project-number {
    color: var(--blue);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 850;
}

.project-copy h3 {
    font-size: 3.2rem;
    line-height: 1;
    margin: .3em 0;
}

.project-copy>p:not(.project-number) {
    font-size: 1.12rem;
    color: #53616b;
    max-width: 710px;
}

.tags {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 28px 0;
}

.tags li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .8rem;
    font-weight: 700;
}

.project-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.project-links a {
    font-weight: 850;
    text-decoration: none;
    border-bottom: 2px solid var(--blue);
}

.project-links a:hover {
    color: var(--blue);
}

.wtpn-icon {
    background: #171d25;
}

.wtpn-icon img {
    width: 110px;
    filter: drop-shadow(0 0 22px #66c0f466);
}

.approach {
    border-top: 1px solid var(--line);
}

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

.principles article {
    padding: 30px;
    border-top: 4px solid var(--blue);
    background: #fff;
}

.principles span {
    font-weight: 900;
    color: var(--blue);
}

.principles h3 {
    font-size: 1.35rem;
}

.principles p {
    color: #5b6871;
}

.contact {
    max-width: none;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10vw;
}

.contact .eyebrow {
    color: #c8edff;
}

.contact h2 {
    margin: .15em 0;
}

.light {
    background: #fff;
    color: var(--ink);
}

footer {
    background: var(--ink);
    color: #aeb9c0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px max(28px,calc((100vw - var(--max))/2));
}

@media(max-width:800px) {
    .site-header {
        height: 76px;
    }

    .brand img {
        width: 175px;
        height: auto;
    }

    .menu-button {
        display: block;
    }

    .site-header nav {
        position: absolute;
        z-index: 10;
        left: 20px;
        right: 20px;
        top: 70px;
        display: none;
        flex-direction: column;
        background: #fff;
        padding: 22px;
        border-radius: 18px;
        box-shadow: 0 16px 45px #1018202b;
    }

    .site-header nav.open {
        display: flex;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        background: var(--ink);
    }

    .hero-copy {
        margin: 0;
        padding: 72px 28px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .section {
        padding: 75px 22px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-icon {
        min-height: 250px;
    }

    .project-copy {
        padding: 34px 25px;
    }

    .project-copy h3 {
        font-size: 2.6rem;
    }

    .principles {
        grid-template-columns: 1fr;
    }

    .contact {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 28px;
    }

    footer {
        flex-direction: column;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand .brand-symbol {
    width: 42px;
    height: 42px;
    margin-top: -7px;
}

.brand-words {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-words img {
    width: 195px;
    height: auto;
}

.brand-words small {
    color: var(--blue);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .48em;
    text-transform: uppercase;
}

.hero-card>img {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    padding: 7px;
    border-radius: 12px;
    background: #fff;
}

.hero-card>strong {
    font-size: 1.6rem;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.wtpn-icon {
    overflow: hidden;
}

.wtpn-icon img {
    width: 110px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 22px #66c0f466);
}

.project-icon.project-globinours {
    background: #f6efe4;
}

.project-family+.project-family {
    margin-top: 72px;
}

.family-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin: 0 0 24px;
}

.family-heading p {
    margin: 0;
}

.family-heading h3 {
    max-width: 620px;
    margin: 0;
    font-size: 1.35rem;
    text-align: right;
}

.active-projects-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 26px;
}

.active-projects-grid .project-card {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;
    margin: 0;
}

.active-projects-grid .project-icon {
    height: 240px;
    min-height: 240px;
}

.active-projects-grid .project-copy {
    padding: 40px;
}

.active-projects-grid .project-icon img {
    max-height: 175px;
    width: auto;
}

.archives {
    max-width: none;
    background: var(--ink);
    color: #fff;
}

.archives>.section-heading,.archives>.archive-grid {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.archive-heading>p {
    color: #aeb9c0;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.archive-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 22px;
    align-items: start;
    min-height: 190px;
    padding: 26px;
    border: 1px solid #ffffff1f;
    border-radius: 18px;
    background: #ffffff08;
}

.archive-card:hover {
    border-color: #24a7eb88;
    background: #ffffff0d;
}

.archive-mark {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 16px;
    background: #182935;
    color: var(--blue-bright);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.archive-card h3 {
    margin: .45rem 0 .25rem;
    font-size: 1.35rem;
}

.archive-card p {
    margin: 0;
    color: #aeb9c0;
}

.archive-status {
    display: inline-block;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.archive-status.available {
    color: #69d8a7;
}

.archive-status.closed {
    color: #aeb9c0;
}

.archive-status.paused {
    color: #f0b96a;
}

.archive-status.pending {
    color: #82909a;
}

.archive-card.placeholder {
    border-style: dashed;
    opacity: .72;
}

.active-projects-grid .project-cover img {
    display: block;
    width: 100%;
    height: 240px;
    max-height: 240px;
    object-fit: cover;
}

.archive-image {
    width: 82px;
    height: 82px;
    border-radius: 16px;
    object-fit: cover;
}

.archive-card h3 small {
    font-size: .72em;
    color: #aeb9c0;
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}

.email-obfuscated {
    user-select: all;
}

.email-obfuscated::before {
    content: "contact";
}

.email-obfuscated::after {
    content: "@nnsprod.com";
}

@media(max-width:800px) {
    .active-projects-grid,.archive-grid {
        grid-template-columns: 1fr;
    }

    .family-heading {
        display: block;
    }

    .family-heading h3 {
        margin-top: 7px;
        text-align: left;
    }

    .project-family+.project-family {
        margin-top: 58px;
    }

    .active-projects-grid .project-card {
        grid-template-rows: 210px 1fr;
    }

    .active-projects-grid .project-icon {
        height: 210px;
        min-height: 210px;
    }

    .active-projects-grid .project-cover img {
        height: 210px;
        max-height: 210px;
    }

    .active-projects-grid .project-copy {
        padding: 34px 25px;
    }

    .archive-card {
        grid-template-columns: 64px 1fr;
        min-height: 0;
        padding: 22px;
    }

    .archive-mark,.archive-image {
        width: 64px;
        height: 64px;
    }

    .archives .section-heading {
        margin-bottom: 38px;
    }
}

/* Sélecteur FR / EN ; intégré au menu existant sur mobile. */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    border-left: 1px solid var(--line);
    padding-left: 1rem;
}
.language-switch a[aria-current="true"] {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: .3em;
}
@media (min-width: 801px) and (max-width: 1000px) {
    .site-header nav { gap: 1rem; }
}
@media (max-width: 800px) {
    .language-switch { border-left: 0; padding-left: 0; }
}
@media (max-width: 400px) {
    .site-header { gap: .75rem; padding: 0 18px; }
    .brand-words img { width: 145px; }
    .brand .brand-symbol { width: 32px; height: 32px; }
}
