@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #050505;
    --bg-alt: #0d0d10;
    --surface: rgba(20, 20, 23, 0.9);
    --surface-strong: #141418;
    --text: #f5f1ea;
    --muted: #a3a0a8;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #f1d9c8;
    --accent-2: #86a58e;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(241, 217, 200, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(134, 165, 142, 0.08), transparent 26%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

h1,
h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    line-height: 0.95;
    font-weight: 600;
}

h1 {
    font-size: clamp(3.6rem, 8vw, 6.8rem);
    max-width: 8.2ch;
    letter-spacing: -0.04em;
}

.section {
    padding: 2rem 0 4rem;
}

.tag {
    padding: 0.45rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    font-weight: 700;
}

.project-page {
    padding-top: 4rem;
}

.project-caption {
    color: var(--muted);
    margin: 0;
}

.contact-link {
    display: inline-flex;
    width: fit-content;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid currentColor;
    font-weight: 700;
}

.page-intro {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.page-intro h1 {
    max-width: none;
}

.page-intro p {
    margin: 0;
    color: var(--muted);
}

.page-intro .eyebrow {
    margin-bottom: 0;
}

.page-intro .eyebrow::before {
    width: 1.8rem;
}

.small-intro {
    font-size: 0.95rem;
}

.project-list {
    display: grid;
    gap: 1rem;
}

.project-entry {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0.72rem;
    align-items: start;
    padding: 0.75rem;
    border-radius: 0.68rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.project-entry h3 {
    font-size: 1.5rem;
    margin: 0.2rem 0 0.65rem;
}

.project-entry .project-thumb {
    min-height: 100%;
    border-radius: 0.55rem;
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--line);
}

.project-fields {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
}

.project-style-row {
    display: grid;
    gap: 0.45rem;
}

.project-style-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-link-empty {
    display: inline-flex;
    width: fit-content;
    color: var(--muted);
    font-weight: 700;
}

.project-fields strong {
    color: var(--text);
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.2rem 0 1.2rem;
}

.project-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.55rem 3rem;
    margin: 0.35rem 0 1rem;
}

.project-style-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0;
    color: var(--text);
}

.project-style-item.is-include {
    color: #7ddf4f;
}

.project-style-item.is-exclude {
    color: #ff6d66;
}

.project-style-name {
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center; /* ajouté */
}

.project-style-item.is-include .project-style-name {
    color: #7ddf4f;
}

.project-style-item.is-exclude .project-style-name {
    color: #ff6d66;
}

.project-style-sign {
    border: 0;
    background: transparent;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 0;
    line-height: 1;
    width: 1rem; /* ajouté */
    text-align: center; /* ajouté */
}

.project-style-sign-include {
    color: #7ddf4f;
}

.project-style-sign-exclude {
    color: #ff6d66;
}

.project-style-item:not(.is-include) .project-style-sign-include,
.project-style-item:not(.is-exclude) .project-style-sign-exclude {
    opacity: 0.9;
}

.project-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.project-apply-button {
    padding: 0.82rem 1rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(87, 117, 185, 0.45);
    background: #2b4c92;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.project-apply-button ::hover {
    background: #121d36;
}

.project-clear-button {
    padding: 0.82rem 0;
    border: 0;
    background: transparent;
    color: #8ba9ff;
    font-size: 0.95rem;
}

.project-selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    min-height: 2.4rem;
    margin-bottom: 1rem;
}

.project-selected-filters.is-empty {
    color: var(--muted);
}

.project-selected-placeholder {
    color: var(--muted);
    font-size: 0.95rem;
}

.selected-style-chip {
    display: grid;
    grid-template-columns: 1rem 1fr 1rem; /* colonnes latérales fixes et égales */
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(241, 217, 200, 0.7);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 700;
}

.selected-style-chip-action {
    font-weight: 900;
    text-align: center;
}

.selected-style-chip span:last-child {
    color: var(--muted);
    text-align: center;
}

.selected-style-chip-text {
    text-align: center;
}

.selected-style-chip[data-mode="include"] .selected-style-chip-action,
.selected-style-chip[data-mode="include"] .selected-style-chip-text {
    color: #7ddf4f;
}

.selected-style-chip[data-mode="exclude"] .selected-style-chip-action,
.selected-style-chip[data-mode="exclude"] .selected-style-chip-text {
    color: #ff6d66;
}

.project-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 0.9rem;
    border-radius: 0.7rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 700;
}

.project-filter-chip:hover,
.project-filter-chip:focus-visible {
    background: rgba(255, 255, 255, 0.06);
}

.project-filter-chip.is-active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.project-filter-label {
    margin: 1rem 0 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-list.is-filtered .project-entry.is-hidden {
    display: none;
}

.project-empty-state {
    display: none;
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: 0.7rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 1rem;
}

.project-empty-state.is-visible {
    display: block;
}

.project-entry.is-hidden {
    display: none;
}

@media (max-width: 980px) {
    h1 {
        max-width: 10ch;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .project-entry {
        grid-template-columns: 1fr;
    }
}