
:root {
    --bg: #090b10;
    --surface: rgba(16, 20, 29, .82);
    --surface-strong: #111621;
    --surface-soft: rgba(255,255,255,.035);
    --text: #f5f7fb;
    --muted: #939cac;
    --line: rgba(255,255,255,.09);
    --cyan: #6df4db;
    --violet: #9b8cff;
    --pink: #ff79c6;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(ellipse at 14% 0%, rgba(75, 95, 255, .16), transparent 34rem),
        radial-gradient(ellipse at 88% 16%, rgba(109, 244, 219, .10), transparent 30rem),
        radial-gradient(ellipse at 52% 58%, rgba(255, 121, 198, .055), transparent 34rem),
        #090b10;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 80%);
}

.page-orb {
    position: fixed;
    z-index: -2;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: .16;
}
.page-orb--one { top: 10rem; left: -12rem; background: #6575ff; }
.page-orb--two { right: -12rem; top: 45vh; background: #59ffd5; }

.noise-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

a { color: inherit; }

.skip-link {
    position: fixed;
    top: .8rem;
    left: .8rem;
    z-index: 9999;
    transform: translateY(-180%);
    padding: .65rem .9rem;
    border-radius: .65rem;
    background: #fff;
    color: #000;
}
.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.065);
    background: rgba(9, 11, 16, .78);
    backdrop-filter: blur(18px);
}

.navbar { min-height: 76px; }

.brand {
    display: inline-flex;
    align-items: center;
}
.brand img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 180px;
    object-fit: contain;
}

.nav-link {
    padding: .55rem .85rem !important;
    border-radius: 999px;
    color: #a5adba !important;
    font-size: .89rem;
    transition: .2s ease;
}
.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.055);
}

.header-social {
    display: flex;
    gap: .45rem;
}
.header-social a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #b7c0cc;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}
.header-social a:hover {
    border-color: rgba(109,244,219,.4);
    color: var(--cyan);
}

.hero {
    padding: 7.5rem 0 5.5rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .5fr);
    gap: 5rem;
    align-items: end;
}
.eyebrow {
    color: var(--cyan);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 850px;
    margin: .85rem 0 1.4rem;
    font-size: clamp(2.55rem, 5.3vw, 5rem);
    line-height: .98;
    font-weight: 790;
    letter-spacing: -.065em;
}
.hero h1 span {
    background: linear-gradient(90deg, var(--cyan), #93bbff 55%, var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-copy {
    max-width: 720px;
    margin: 0;
    color: #a4adbb;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.75;
}
.hero-note {
    padding: 1.3rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 19, 28, .58);
}
.hero-note__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: .45rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 20px rgba(109,244,219,.65);
}
.hero-note p {
    display: inline;
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}
.hero-note strong {
    display: block;
    margin-top: .85rem;
    font-size: 2rem;
    letter-spacing: -.05em;
}
.hero-note small { color: var(--muted); }

.featured-section {
    padding: 0 0 4.2rem;
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.6rem;
}
.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -.045em;
}
.section-heading--compact h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.featured-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}
.featured-mini {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(16, 20, 29, .72);
}
.featured-mini__image {
    display: block;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
}
.featured-mini__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .3s ease;
}
.featured-mini:hover img { transform: scale(1.025); }
.featured-mini__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem .95rem .95rem;
}
.featured-mini__body span {
    color: var(--muted);
    font-size: .68rem;
}
.featured-mini__body h3 {
    margin: .12rem 0 0;
    font-size: .93rem;
    line-height: 1.25;
}
.featured-mini__body > a {
    color: var(--cyan);
    text-decoration: none;
}

.portfolio-section { padding: 2rem 0 7rem; }
.project-count {
    margin: 0 0 .2rem;
    color: var(--muted);
    font-size: .83rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(145px, .65fr)) auto;
    gap: .65rem;
    align-items: stretch;
    margin-bottom: 2rem;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 19, 28, .72);
    box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

.filter-search,
.filter-select-wrap {
    min-height: 52px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.filter-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 0 .85rem;
}
.filter-search span { color: #768191; }
.filter-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
}
.filter-search input::placeholder { color: #707a88; }

.filter-select-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0 .7rem;
}
.filter-select-wrap label {
    margin-right: .45rem;
    color: #6f7988;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.filter-select-wrap select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #d8dee7;
    font-size: .8rem;
}
.filter-select-wrap option {
    background: #111621;
    color: #fff;
}

.reset-filters {
    border: 0;
    border-radius: 12px;
    padding: 0 1rem;
    background: rgba(109,244,219,.1);
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 700;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(18,23,34,.84), rgba(11,14,21,.9));
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109,244,219,.24);
    box-shadow: var(--shadow);
}
.project-card[hidden] { display: none !important; }

.project-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111621;
}
.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .35s ease;
}
.project-card:hover .project-card__media img {
    transform: scale(1.025);
}
.project-number,
.archive-badge {
    position: absolute;
    top: .75rem;
    padding: .28rem .48rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(7,9,14,.7);
    backdrop-filter: blur(10px);
    color: #c5ccd7;
    font-size: .62rem;
}
.project-number { right: .75rem; }
.archive-badge { left: .75rem; }

.project-card__content {
    display: flex;
    min-height: 176px;
    flex-direction: column;
    padding: 1rem 1.05rem 1.05rem;
}
.project-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}
.project-context {
    color: #717c8c;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.project-card h3 {
    margin: .25rem 0 0;
    font-size: 1.02rem;
    line-height: 1.28;
    letter-spacing: -.022em;
}
.project-year {
    flex: none;
    color: #788394;
    font-size: .68rem;
}
.project-work {
    margin: .7rem 0 1rem;
    color: #9ba5b3;
    font-size: .79rem;
    line-height: 1.5;
}
.project-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid rgba(255,255,255,.065);
    color: #7f8998;
    font-size: .69rem;
}
.project-card__footer a {
    flex: none;
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
}
.link-muted { color: #616b79; }

.empty-state {
    padding: 5rem 1rem;
    text-align: center;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    background: rgba(7,9,13,.55);
}
.footer-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}
.footer-logo {
    max-width: 135px;
    height: auto;
    margin-bottom: .85rem;
    opacity: .9;
}
.footer-inner p {
    margin: 0;
    color: #778190;
    font-size: .78rem;
}
.footer-links {
    display: flex;
    gap: 1rem;
    font-size: .78rem;
}
.footer-links a {
    color: #9ca6b4;
    text-decoration: none;
}
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #5f6875;
    font-size: .68rem;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-search { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .navbar-collapse { padding: .8rem 0 1rem; }
    .header-social { margin-top: .7rem; }
    .hero { padding-top: 5.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-note { max-width: 280px; }
}

@media (max-width: 700px) {
    .hero { padding: 4.5rem 0 3.5rem; }
    .hero h1 { font-size: 2.65rem; }
    .featured-strip,
    .project-grid { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr; }
    .filter-search { grid-column: auto; }
    .section-heading { align-items: start; }
    .footer-inner,
    .footer-bottom { align-items: start; flex-direction: column; }
    .footer-links { flex-direction: column; gap: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* V5.1 — séparation actifs / obsolètes */
.realisation-group + .realisation-group {
    margin-top: 4rem;
}

.subsection-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.subsection-heading h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    letter-spacing: -.035em;
}

.subsection-count {
    margin: 0 0 .1rem;
    color: var(--muted);
    font-size: .75rem;
}

.realisation-group--obsolete {
    padding-top: 2.2rem;
    border-top: 1px solid rgba(255,255,255,.07);
}

.project-card--obsolete {
    border-color: rgba(255,255,255,.065);
    background: linear-gradient(145deg, rgba(16,18,23,.72), rgba(10,11,15,.86));
}

.project-card--obsolete:hover {
    transform: none;
    border-color: rgba(255,255,255,.09);
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.project-card__media--obsolete {
    position: relative;
    cursor: default;
}

.project-card__media--obsolete img {
    filter: grayscale(1) saturate(.25) contrast(.88) brightness(.7);
    transform: none !important;
}

.obsolete-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10,12,16,.12), rgba(10,12,16,.38)),
        rgba(110,116,126,.16);
    pointer-events: none;
}

.obsolete-badge {
    position: absolute;
    z-index: 2;
    left: .75rem;
    top: .75rem;
    padding: .34rem .58rem;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(10,12,16,.72);
    color: #c7ccd3;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.project-card--obsolete .project-number {
    z-index: 2;
    color: #aeb4be;
}

.project-card--obsolete .project-context,
.project-card--obsolete .project-year,
.project-card--obsolete .project-work,
.project-card--obsolete .project-card__footer {
    color: #777f8a;
}

.project-card--obsolete h3 {
    color: #c9ced6;
}

.obsolete-label {
    color: #8c949e;
    font-weight: 700;
}

@media (max-width: 700px) {
    .subsection-heading {
        align-items: start;
        flex-direction: column;
        gap: .35rem;
    }

    .realisation-group + .realisation-group {
        margin-top: 3rem;
    }
}


/* V5.2 — flèche projet */
.project-number {
    display: none !important;
}

.project-arrow {
    position: absolute;
    z-index: 3;
    top: .75rem;
    right: .75rem;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(109, 244, 219, .32);
    border-radius: 50%;
    background: rgba(8, 13, 17, .74);
    color: var(--cyan);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(10px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.project-card:hover .project-arrow {
    transform: translate(2px, -2px);
    border-color: rgba(109, 244, 219, .6);
    background: rgba(109, 244, 219, .12);
}
