/*
Theme Name: Attrape Couleurs 2026
Author: Pierre Lemmel
*/

@font-face {
    font-display: swap;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    src: url("/wp-content/themes/attrape-couleurs-2026/assets/fonts/montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
}

@font-face {
    font-display: swap;
    font-family: "Montserrat";
    font-style: italic;
    font-weight: 100 900;
    src: url("/wp-content/themes/attrape-couleurs-2026/assets/fonts/montserrat/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
}

html {
    font-size: 16px;
}

body {
    background: #ffffff;
    color: #242424;
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

.site-main--grow {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.site-header {
    display: block;
    position: relative;
    z-index: 10;
    background: #ffffff;
}

.site-header__inner {
    margin: 0 auto;
    max-width: 70rem;
    padding: 1.0rem 3.0rem;
}

.site-header__bar {
    align-items: center;
    display: flex;
    gap: 2rem;
    width: 100%;
}

.site-branding {
    display: block;
    flex: 0 0 auto;
    margin-right: auto;
    text-decoration: none;
}

.site-branding__logo {
    display: block;
    height: 5rem;
    width: auto;
}

.site-branding__logo--horizontal {
    display: none;
}

.site-header__nav-group {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 1.5rem;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.site-menu-toggle {
    align-items: center;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: none;
    font: inherit;
    font-weight: 700;
    gap: 0.55rem;
    padding: 0;
}

.site-menu-toggle__icon,
.site-menu-toggle__icon::before,
.site-menu-toggle__icon::after {
    background: currentColor;
    display: block;
    height: 0.125rem;
    width: 1.25rem;
}

.site-menu-toggle__icon {
    position: relative;
}

.site-menu-toggle__icon::before,
.site-menu-toggle__icon::after {
    content: "";
    left: 0;
    position: absolute;
}

.site-menu-toggle__icon::before {
    top: -0.4rem;
}

.site-menu-toggle__icon::after {
    top: 0.4rem;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon {
    background: transparent;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.site-nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.site-nav a {
    color: inherit;
    text-decoration: none;
}

.site-nav a:hover {
    color: #4b5563;
}

.site-nav .current_page_item a {
    font-weight: 700;
}

.site-main--column {
    flex: 1;
    margin: 0 auto;
    max-width: 32rem;
    padding: 3.25rem 0 6rem;
    width: calc(100% - 4rem);
}

.site-page {
    width: 100%;
}

.page-title {
    color: #222222;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0 0 2.25rem;
    text-transform: uppercase;
}

.entry-content {
    color: #333333;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.entry-content > * {
    margin-block-start: 0;
}

.entry-content > * + * {
    margin-block-start: 1.35rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #222222;
    font-weight: 700;
    line-height: 1.25;
    margin-block-start: 2.5rem;
}

.entry-content h1 {
    font-size: 2rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.entry-content h2 {
    font-size: 1.5rem;
    letter-spacing: -0.005em;
}

.entry-content h3 {
    font-size: 1.1875rem;
}

.entry-content h4 {
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.entry-content h5,
.entry-content h6 {
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.25rem;
}

.entry-content li + li {
    margin-block-start: 0.45rem;
}

.entry-content img,
.entry-content figure,
.entry-content iframe,
.entry-content video {
    height: auto;
    max-width: 100%;
}

.entry-content figure {
    margin-inline: 0;
}

.entry-content .aligncenter {
    display: block;
    margin-inline: auto;
}

.entry-content .alignleft {
    float: left;
    margin: 0.25rem 1.25rem 1rem 0;
}

.entry-content .alignright {
    float: right;
    margin: 0.25rem 0 1rem 1.25rem;
}

.entry-content figcaption {
    color: #666666;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.error-404 {
    text-align: center;
}

.error-404 p {
    color: #555555;
    font-size: 1rem;
    line-height: 1.5;
}

.error-code {
    color: #d6d6d6;
    font-size: clamp(3.5rem, 14vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 1rem;
}

.button-link {
    background: #242424;
    color: #ffffff;
    display: inline-block;
    font-weight: 700;
    margin-top: 2rem;
    padding: 0.8rem 1.25rem;
    text-decoration: none;
}

.button-link:hover {
    background: #4a4a4a;
}

.site-footer {
    color: #797979;
    margin-top: auto;
}

.site-footer__inner {
    margin: 0 auto;
    max-width: 68rem;
    padding: 2.25rem 2rem 1.75rem;
}

.site-footer__main {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

.site-footer__column {
    flex: 1 1 33.333%;
    min-width: 0;
}

.site-footer__title {
    color: #aa265f;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.site-footer__column p {
    margin: 0 0 1rem;
}

.site-footer__column p:last-child {
    margin-bottom: 0;
}

.site-footer a {
    color: #797979;
    text-decoration: none;
}

.site-footer a:hover {
    color: #5b5b5b;
}

.site-footer__social {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__social a {
    display: block;
    line-height: 0;
}

.site-footer__social img {
    display: block;
    filter: grayscale(1);
    height: 1.75rem;
    transition: filter 160ms ease, opacity 160ms ease;
    width: auto;
}

.site-footer__social a:hover img,
.site-footer__social a:focus-visible img {
    filter: grayscale(0);
}

.site-footer__partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__partners-list li {
    align-items: center;
    display: flex;
}

.site-footer__partners-list img {
    display: block;
    filter: grayscale(1);
    height: auto;
    max-height: 3.5rem;
    max-width: 7.5rem;
    transition: filter 160ms ease, opacity 160ms ease;
    width: auto;
}

.site-footer__partners-list a:hover img,
.site-footer__partners-list a:focus-visible img {
    filter: grayscale(0);
}

.site-footer__support-widget-wrap {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    width: fit-content;
}

.site-footer__support-widget {
    border: 0;
    display: block;
    height: 4rem;
    overflow: hidden;
    width: 11rem;
}

.site-footer__secondary {
    border-top: 1px solid #e4e4e4;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.75rem;
}

.site-footer__legal,
.site-footer__credit {
    font-style: italic;
    margin: 0;
}

@media (min-width: 701px) {
    .site-header {
        position: sticky;
        top: 0;
    }
}

@media (max-width: 700px) {
    .site-header__inner {
        padding: 1.75rem 2.375rem;
    }

    .site-header__bar {
        align-items: center;
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .site-branding {
        margin-right: auto;
        order: 0;
    }

    .site-branding__logo--default {
        display: none;
    }

    .site-branding__logo--horizontal {
        display: block;
        height: 3rem;
        width: auto;
    }

    .site-header__nav-group {
        display: contents;
    }

    .site-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
        font-size: 1.65rem;
        line-height: 1;
        order: 2;
    }

    .site-nav {
        display: none;
        flex: 1 1 100%;
        order: 3;
        width: 100%;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        padding: 1rem 0 0.25rem;
        text-align: center;
    }

    .site-nav li + li {
        border-top: 1px solid #e5e5e5;
    }

    .site-nav a {
        display: block;
        font-size: 1rem;
        padding: 0.9rem 0;
    }

    .site-main--column {
        max-width: none;
        padding: 2.4rem 0 5rem;
        width: calc(100% - 4.75rem);
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2.25rem;
    }

    .entry-content {
        font-size: clamp(1.25rem, 4.15vw, 1.55rem);
        line-height: 1.45;
    }

    .entry-content > * + * {
        margin-block-start: 1.75rem;
    }

    .entry-content h1 {
        font-size: 1.75rem;
    }

    .entry-content h2 {
        font-size: 1.4rem;
    }

    .entry-content h3 {
        font-size: 1.2rem;
    }

    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        font-size: 1.05rem;
    }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin: 0;
    }

    .site-footer__inner {
        padding: 2rem 2.375rem 1.5rem;
    }

    .site-footer__main {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer__column {
        flex: 1 1 auto;
    }

    .site-footer__partners-list {
        gap: 1rem 1.25rem;
    }

    .site-footer__partners-list img {
        max-height: 3rem;
        max-width: 6.5rem;
    }

    .site-footer__secondary {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.landing-intro {
    max-width: 70rem;
    margin: 0 auto;
    padding: 2.5rem 2rem 1.25rem;
}

.landing-intro__title {
    color: #222222;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    /* margin: 0 0 2.25rem; */
    text-transform: uppercase;
}

.landing-hero__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 70rem;
    gap: 1rem;
}

.landing-hero__item {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.landing-hero__bg {
    background-position: center;
    background-size: cover;
    inset: 0;
    position: absolute;
    transition: transform 0.6s ease;
}

.landing-hero__item:hover .landing-hero__bg {
    transform: scale(1.07);
}

.landing-hero__overlay {
    background: rgba(0, 0, 0, 0.42);
    inset: 0;
    position: absolute;
    transition: background 0.4s ease;
}

.landing-hero__item:hover .landing-hero__overlay {
    background: rgba(0, 0, 0, 0.22);
}

.landing-hero__content {
    color: #ffffff;
    padding: 2rem 2.25rem;
    position: relative;
    z-index: 1;
}

.landing-hero__content--top {
    margin-bottom: auto;
}

.landing-hero__content--bottom {
    margin-top: auto;
}

.landing-hero__label {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.landing-hero__project-name {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin: 0;
    opacity: 0.88;
}

@media (max-width: 700px) {
    .landing-hero__grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
    }

    .landing-hero__label {
        font-size: 1.1rem;
    }
}

@media (max-width: 420px) {
    .site-main--column {
        width: calc(100% - 2.5rem);
    }

    .entry-content {
        font-size: 1.15rem;
    }
}

.site-main--wide {
    flex: 1;
    margin: 0 auto;
    max-width: 68rem;
    padding: 3.25rem 2rem 6rem;
    width: 100%;
}

.portfolio-archive {
    width: 100%;
}

.portfolio-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
}

.portfolio-subnav a {
    color: #555555;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.portfolio-subnav a:hover {
    color: #242424;
}

.portfolio-subnav .current-cat a {
    color: #242424;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.portfolio-grid {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(4, 1fr);
}

.portfolio-item {
    min-width: 0;
}

.portfolio-item__link {
    display: block;
    text-decoration: none;
}

.portfolio-item__thumb {
    aspect-ratio: 3 / 2;
    display: block;
    height: auto;
    object-fit: cover;
    transition: opacity 180ms ease;
    width: 100%;
}

.portfolio-item__thumb--placeholder {
    background: #eeeeee;
}

.portfolio-item__link:hover .portfolio-item__thumb {
    opacity: 0.85;
}

.portfolio-item__title {
    color: #242424;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    margin: 0.6rem 0 0;
    text-transform: uppercase;
}

.portfolio-item__link:hover .portfolio-item__title {
    color: #4b5563;
}

.portfolio-empty {
    color: #666666;
    font-size: 0.9375rem;
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .site-main--wide {
        padding: 2.4rem 2rem 5rem;
    }

    .portfolio-grid {
        gap: 1.5rem 1rem;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .site-main--wide {
        padding: 2rem 1.25rem 4rem;
    }

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

.landing-hero__item--no-image {
    background: #1a1a1a;
}

.actualites-card {
    min-width: 0;
}

.actualites-card__link {
    display: block;
    text-decoration: none;
}

.actualites-card__thumb {
    aspect-ratio: 3 / 2;
    display: block;
    height: auto;
    object-fit: cover;
    transition: opacity 180ms ease;
    width: 100%;
}

.actualites-card__thumb--placeholder {
    background: #eeeeee;
}

.actualites-card__link:hover .actualites-card__thumb {
    opacity: 0.85;
}

.actualites-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.6rem;
    list-style: none;
    margin: 0.6rem 0 0.2rem;
    padding: 0;
}

.actualites-card__cats li {
    color: #aa265f;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.actualites-card__title {
    color: #242424;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
    margin: 0.2rem 0 0;
    text-transform: uppercase;
}

.actualites-card__link:hover .actualites-card__title {
    color: #4b5563;
}

.actualites-card__date {
    color: #888888;
    font-size: 0.75rem;
    margin: 0.3rem 0 0;
}

.single-post__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.single-post__cats a {
    color: #aa265f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.single-post__cats a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.single-post__date {
    color: #888888;
    font-size: 0.8125rem;
    margin: -1.5rem 0 2rem;
}

.single-post__featured {
    margin: 0 0 2rem;
}

.single-post__featured-img {
    display: block;
    height: auto;
    width: 100%;
}

.single-post__nav {
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.single-post__nav-link {
    color: #333333;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 48%;
    text-decoration: none;
}

.single-post__nav-link--next {
    margin-left: auto;
    text-align: right;
}

.single-post__nav-label {
    color: #888888;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-post__nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.single-post__nav-link:hover .single-post__nav-title {
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.artists-list {
    column-count: 2;
    column-gap: 4rem;
    padding-bottom: 4rem;
}

.artists-letter-group {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.artists-letter-heading {
    color: #aaaaaa;
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.artists-names {
    list-style: none;
    margin: 0;
    padding: 0;
}

.artists-name {
    border-bottom: 1px solid #f0f0f0;
}

.artists-name__link {
    color: #222222;
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 0.45rem 0;
    text-decoration: none;
    transition: color 120ms ease, font-style 120ms ease;
}

.artists-name__link:hover {
    color: #aa265f;
    font-style: italic;
}

.artist-preview {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transition: opacity 150ms ease;
    width: 200px;
    z-index: 100;
}

.artist-preview.is-visible {
    opacity: 1;
}

.artist-preview__img {
    aspect-ratio: 3 / 2;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 700px) {
    .artists-list {
        column-count: 1;
    }

    .artists-name__link {
        font-size: 1rem;
    }
}
