/*
Theme Name: dds_mleek-collection.com
Theme URI: https://mleek-collection.com/
Author: Chloé Moreau
Description: Thème sur mesure pour un magazine en ligne consacré à l’art de vivre chez soi : décoration, aménagement et guides immobiliers. Esthétique de planche d’architecte — papier calque sablé, traits fins, cotes et tampons.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mleek
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, two-columns
*/

/* Polices embarquées : Manrope et Source Sans 3 (SIL Open Font License 1.1) */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/manrope-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/manrope-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/manrope-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

:root {
    --paper: #E8E2D6;
    --grid: #C9BFA9;
    --coal: #2B2B28;
    --ink: #23231F;
    --muted: #8A8272;
    --soft: #5E584C;
    --terra: #B5502F;
    --terra-light: #D8774F;
    --pine: #33544A;
    --light: #EDE7DA;
    --light-dim: #CFC8B8;
    --card: #F5F1E8;
    --rule: #B8AD94;
    --f-head: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    position: relative;
    font-family: var(--f-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(201, 191, 169, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 191, 169, 0.28) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

p,
li,
dd,
td {
    overflow-wrap: break-word;
    hyphens: manual;
}

.entry-content p,
.entry-content li,
.entry-content td,
.card-excerpt,
.page-head__intro {
    hyphens: auto;
}

p {
    margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--ink);
    overflow-wrap: break-word;
    line-height: 1.2;
    margin: 0 0 0.6em;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ink);
    text-decoration-color: var(--pine);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a:hover {
    color: var(--terra);
    text-decoration-color: var(--terra);
}

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

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--coal);
    color: var(--light);
}

.skip:focus {
    top: 1rem;
    color: var(--light);
}

.shell {
    width: min(85%, 1240px);
    margin-inline: auto;
}

/* Bandes de marge façon planche d’architecte */
@media (min-width: 1200px) {
    body::before,
    body::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 2.8%;
        border-left: 1px solid var(--grid);
        border-right: 1px solid var(--grid);
        background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, var(--grid) 47px, var(--grid) 48px);
        pointer-events: none;
        z-index: 0;
    }
    body::before { left: 2.3%; }
    body::after { right: 2.3%; }
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--terra);
    border-radius: 0;
    background: transparent;
    color: var(--terra);
    font-family: var(--f-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    background: var(--terra);
    color: var(--card);
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--ink);
}

.btn--block {
    width: 100%;
    margin-top: auto;
    border-color: var(--ink);
    color: var(--ink);
}

.btn--solid {
    background: var(--terra);
    color: var(--card);
}

.btn--solid:hover,
.btn--solid:focus-visible {
    background: var(--card);
    color: var(--terra);
}

.ink-link {
    font-family: var(--f-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: var(--pine);
}

/* ---------- En-tête ---------- */
.mast {
    position: relative;
    z-index: 2;
}

.mast__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    padding: 2.2rem 0 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    flex: none;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
}

.brand__svg {
    display: block;
    width: 66px;
    height: 66px;
    color: var(--ink);
}

.brand-logo {
    display: block;
    max-width: 66px;
    max-height: 66px;
    width: auto;
    height: auto;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.brand__name {
    font-family: var(--f-head);
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand__tag {
    max-width: 44ch;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mainnav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mainnav__list a {
    display: inline-block;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    font-family: var(--f-head);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.mainnav__list a:hover,
.mainnav__list .current-menu-item > a,
.mainnav__list .current_page_item > a,
.mainnav__list .current-menu-ancestor > a {
    color: var(--terra);
    border-bottom-color: var(--terra);
}

.mainnav__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0 0 1rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--f-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Ligne de cote sous l’en-tête */
.dimline {
    position: relative;
    display: flex;
    height: 16px;
    margin-bottom: 0.4rem;
}

.dimline span {
    border-left: 1px solid var(--ink);
    background: linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1px no-repeat;
}

.dimline span:nth-child(1) { flex: 0 0 7%; }
.dimline span:nth-child(2) { flex: 0 0 16%; }
.dimline span:nth-child(3) { flex: 0 0 23%; }
.dimline span:nth-child(4) { flex: 0 0 23%; }
.dimline span:nth-child(5) { flex: 1 1 auto; border-right: 1px solid var(--ink); }

.dimline::before,
.dimline::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
}

.dimline::before {
    left: 1px;
    border-left: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    transform: rotate(45deg);
}

.dimline::after {
    right: 1px;
    border-right: 1px solid var(--ink);
    border-top: 1px solid var(--ink);
    transform: rotate(45deg);
}

/* ---------- Accueil : premier écran ---------- */
.hero {
    position: relative;
    z-index: 1;
    padding: 2.4rem 0 1rem;
}

.hero__top {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: end;
}

.hero__title {
    margin: 0;
    font-size: clamp(2.6rem, 5.6vw, 5.2rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.035em;
    max-width: 8.2em;
}

.hero__aside {
    min-width: 0;
    padding-bottom: 0.6rem;
}

.hero__aside p {
    max-width: 30ch;
    margin: 0 0 1.4rem;
    font-size: 1.12rem;
    line-height: 1.45;
}

.hero__plate {
    position: relative;
    margin: 2rem 0 0;
}

.hero__plate img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2528 / 1036;
}

.hero__note,
.dim {
    position: absolute;
    font-family: var(--f-body);
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hero__note {
    font-size: clamp(0.6rem, 0.8vw, 0.76rem);
    letter-spacing: 0.08em;
    color: var(--pine);
    text-transform: uppercase;
}

.hero__note--coords { left: 4.6%; top: 6.4%; }
.hero__note--scale { right: 0.4%; top: 0.4%; }
.hero__note--sheet { right: 3%; bottom: 0.3%; }

.dim {
    padding: 0 0.3em;
    font-size: clamp(0.5rem, 0.72vw, 0.74rem);
    color: var(--ink);
    background: var(--paper);
    transform: translate(-50%, -50%);
}

.dim--v {
    transform: translate(-50%, -50%) rotate(-90deg);
}

.dim--on-photo {
    background: rgba(245, 241, 232, 0.88);
}

/* ---------- Sections thématiques ---------- */
.fs {
    position: relative;
    z-index: 1;
    padding: 3.4rem 0;
}

.fs__frame {
    border-left: 1px solid var(--grid);
    padding: 0.4rem 0 0.4rem 1.1rem;
}

.sec-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 1.3rem;
    margin: 0 0 2.2rem;
}

.sec-head::after {
    content: "";
    flex: 1 1 60px;
    max-width: 240px;
    height: 7px;
    align-self: center;
    background:
        linear-gradient(var(--pine), var(--pine)) left center / 100% 1px no-repeat,
        linear-gradient(var(--pine), var(--pine)) right center / 7px 7px no-repeat;
}

.sec-head__no {
    font-family: var(--f-head);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--terra);
    letter-spacing: 0.02em;
}

.sec-head__title {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sec-head--stack {
    flex-wrap: nowrap;
    align-items: flex-start;
    position: relative;
    padding-bottom: 1.1rem;
}

.sec-head--stack::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
}

.sec-head--light .sec-head__title {
    color: var(--light);
}

/* Bloc 1 : plan d’aménagement */
.plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 4rem;
    align-items: center;
}

.plan__fig {
    position: relative;
    margin: 0;
    max-width: 540px;
}

.plan__fig img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 915 / 567;
}

.room {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--f-head);
    font-size: clamp(0.62rem, 1.1vw, 0.98rem);
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}

.room--small {
    font-size: clamp(0.52rem, 0.85vw, 0.78rem);
    color: var(--soft);
    letter-spacing: 0.04em;
}

.plan__list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan__list li {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.4rem;
    padding: 1.4rem 1.6rem;
}

.plan__list li::before,
.plan__list li::after,
.plan__list::before,
.plan__list::after {
    content: "+";
    position: absolute;
    font-family: var(--f-body);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--muted);
}

.plan__list li::before { left: -0.4rem; top: -0.75rem; }
.plan__list li::after { right: -0.4rem; top: -0.75rem; }
.plan__list::before { left: -0.4rem; bottom: -0.75rem; }
.plan__list::after { right: -0.4rem; bottom: -0.75rem; }

.plan__no {
    font-family: var(--f-head);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1;
    color: var(--terra);
}

.plan__list h3 {
    margin: 0.15rem 0 0.4rem;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 500;
}

.plan__list p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--soft);
}

/* Bloc 2 : guides immobiliers (fond graphite) */
.fs--dark {
    padding: 0;
    background: var(--coal);
    color: var(--light);
}

.stats {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
    border-left: 1px solid var(--pine);
    border-right: 1px solid var(--pine);
}

.stats > * {
    min-width: 0;
    padding: 2.6rem 2rem;
}

.stats .sec-head {
    margin: 0;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.stats .sec-head::after {
    display: none;
}

.stat {
    border-left: 1px solid var(--pine);
}

.stat__num {
    margin: 0 0 0.7rem;
    font-family: var(--f-head);
    font-size: clamp(2.1rem, 3.8vw, 3.3rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--terra-light);
    white-space: nowrap;
}

.stat__label {
    margin: 0;
    max-width: 24ch;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--light-dim);
}

/* Bloc : derniers articles */
.latest {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.6fr);
    align-items: start;
}

.latest__aside {
    min-width: 0;
    padding: 0.4rem 2.2rem 0 1.1rem;
    border-left: 1px solid var(--grid);
}

.latest__cards {
    min-width: 0;
    padding-left: 1.6rem;
    border-left: 1px solid var(--pine);
}

.arrow-note {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.4rem;
    font-family: var(--f-head);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.arrow-note::before {
    content: "";
    flex: 0 0 64px;
    height: 9px;
    margin-left: -1.1rem;
    background:
        linear-gradient(var(--pine), var(--pine)) left center / calc(100% - 4px) 1px no-repeat,
        linear-gradient(45deg, transparent 45%, var(--pine) 46%, var(--pine) 56%, transparent 57%) right top / 7px 50% no-repeat,
        linear-gradient(-45deg, transparent 45%, var(--pine) 46%, var(--pine) 56%, transparent 57%) right bottom / 7px 50% no-repeat;
}

/* ---------- Cartes d’articles ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.75rem;
    background: var(--card);
    border: 1px solid var(--grid);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    border-color: var(--ink);
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 var(--ink);
}

.card__thumb {
    position: relative;
    margin-bottom: 1.3rem;
}

.card__thumb a {
    display: block;
}

.card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.stamp {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border: 1px dashed var(--terra);
    background: var(--card);
    color: var(--terra);
    font-family: var(--f-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.card__thumb .stamp {
    position: absolute;
    right: -0.35rem;
    bottom: -0.8rem;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    padding: 0.2rem 0.15rem 0.1rem;
}

.card__flag {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pine);
}

.card__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.3;
}

.card__title a {
    color: var(--ink);
    text-decoration: none;
}

.card__title a:hover {
    color: var(--terra);
}

.card-excerpt {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--soft);
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-excerpt a {
    color: var(--soft);
}

/* Bloc 3 : déco pas à pas */
.steps-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.6fr);
    gap: 2rem;
    align-items: start;
}

.steps-wrap .sec-head {
    margin: 0;
    padding-right: 1rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

.step__no {
    width: 78px;
    height: 1.4rem;
    margin-bottom: 0.4rem;
    font-family: var(--f-head);
    font-size: 1rem;
    line-height: 1.4rem;
    text-align: left;
    color: var(--terra);
}

.step__icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 1px solid var(--ink);
    background: var(--paper);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.step:hover .step__icon {
    background: var(--card);
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--terra);
}

.step__icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(1.8rem + 39px);
    left: calc(50% + 52px);
    right: calc(-50% - 0.6rem + 52px);
    border-top: 1px dashed var(--ink);
}

.step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(1.8rem + 35px);
    right: calc(-50% - 0.6rem + 53px);
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
    transform: rotate(45deg);
}

.step__title {
    margin: 0.9rem 0 0.3rem;
    font-family: var(--f-body);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
}

.step__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--soft);
}

/* Bloc 4 : le coin des matières */
.matter {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) 2.6rem minmax(0, 2.5fr);
    grid-template-areas:
        "head vert swatch"
        "head vert stamp";
    gap: 1.4rem 1.4rem;
    align-items: center;
}

.matter .sec-head {
    grid-area: head;
    margin: 0;
    align-self: start;
}

.matter .sec-head::after {
    display: none;
}

.matter__vert {
    grid-area: vert;
    justify-self: center;
    margin: 0;
    padding: 0 0 0 0.5rem;
    border-left: 1px solid var(--ink);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.86rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-align: center;
    hyphens: manual;
}

.swatches {
    grid-area: swatch;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.swatch {
    min-width: 0;
    text-align: center;
}

.swatch img {
    display: block;
    width: 100%;
    max-width: 112px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto 0.8rem;
    border: 1px solid var(--ink);
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.swatch:hover img {
    transform: rotate(10deg) scale(1.04);
}

.swatch__name {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
}

.swatch__note {
    display: block;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--soft);
}

.matter__stamp {
    grid-area: stamp;
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    margin-top: 0.6rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--pine);
    outline: 1px solid var(--pine);
    outline-offset: 3px;
    font-family: var(--f-head);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pine);
}

.matter__stamp-k {
    font-weight: 600;
}

/* ---------- Pied de page ---------- */
.foot {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    background: var(--coal);
    color: var(--light-dim);
}

.foot__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    border-left: 1px solid var(--pine);
    border-right: 1px solid var(--pine);
    padding: 2.8rem 0 2.2rem;
}

.foot__col {
    min-width: 0;
    padding: 0 2rem;
}

.foot .widget {
    margin-bottom: 1.4rem;
    color: var(--light-dim);
    font-size: 0.95rem;
    line-height: 1.55;
}

.foot .widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--light);
}

.foot .widget p {
    color: var(--light-dim);
}

.foot .widget a {
    color: var(--light);
    text-decoration-color: var(--terra-light);
}

.foot .widget a:hover {
    color: var(--terra-light);
}

.foot .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot .widget li {
    margin: 0 0 0.45rem;
}

.foot .widget_nav_menu a {
    text-decoration: none;
}

.foot .widget_nav_menu a:hover {
    text-decoration: underline;
}

.foot__base {
    border-top: 1px solid var(--pine);
    padding: 1.1rem 0 1.4rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--light-dim);
}

.foot__base p {
    margin: 0;
}

/* ---------- Pages intérieures ---------- */
.page-wrap {
    position: relative;
    z-index: 1;
    padding: 1.4rem 0 3.5rem;
}

.crumbs {
    margin: 0 0 1.8rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--soft);
    overflow-wrap: anywhere;
}

.crumbs a {
    color: var(--ink);
}

.crumbs__sep {
    margin: 0 0.3rem;
    color: var(--terra);
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
}

.layout-single {
    display: block;
}

.content-area {
    min-width: 0;
}

.page-head {
    margin: 0 0 2.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--ink);
}

.page-head__no {
    font-family: var(--f-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terra);
}

.page-head__title,
.entry__title {
    margin: 0.4rem 0 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.page-head__intro {
    margin-top: 1rem;
    color: var(--soft);
}

.empty {
    color: var(--soft);
    font-style: italic;
}

.empty-box {
    padding: 1.6rem 1.6rem;
    border: 1px dashed var(--rule);
    background: var(--card);
}

/* Barre latérale */
.sidebar {
    position: relative;
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--grid);
    color: var(--ink);
}

.sidebar::before {
    content: "+";
    position: absolute;
    top: -0.8rem;
    left: -0.42rem;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--muted);
}

.sidebar .widget {
    margin-bottom: 2rem;
    color: var(--ink);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--pine);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}

.sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--grid);
    color: var(--ink);
}

.sidebar a {
    color: var(--ink);
    text-decoration: none;
}

.sidebar a:hover {
    color: var(--terra);
}

.sidebar .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--soft);
}

/* Article */
.entry__head {
    margin-bottom: 1.8rem;
}

.entry__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.entry__cats a {
    margin-right: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pine);
}

.entry__thumb {
    margin: 0 0 2rem;
}

.entry__thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--grid);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.entry-content h2 {
    margin: 2.2rem 0 0.8rem;
    font-size: 1.7rem;
    font-weight: 600;
}

.entry-content h3 {
    margin: 1.8rem 0 0.6rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.entry-content h4 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.12rem;
}

.entry-content p {
    margin: 0 0 1.15em;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4rem;
}

.entry-content li {
    margin: 0.35rem 0;
}

.entry-content ul li::marker {
    color: var(--terra);
}

.entry-content ol li::marker {
    color: var(--terra);
    font-family: var(--f-head);
    font-weight: 600;
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.3rem 1.6rem;
    border-left: 3px solid var(--terra);
    background: var(--card);
    font-family: var(--f-head);
    font-size: 1.18rem;
    line-height: 1.5;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content table {
    width: 100%;
    margin: 1.6rem 0;
    border-collapse: collapse;
    border: 1px solid var(--rule);
    font-size: 0.98rem;
}

.entry-content th,
.entry-content td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
}

.entry-content th {
    background: #DED6C5;
    font-family: var(--f-head);
    font-weight: 600;
}

.entry-content figure {
    margin: 1.8rem 0;
}

.entry-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--soft);
}

.entry-content img {
    display: block;
}

.entry-content pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--coal);
    color: var(--light);
    font-size: 0.9rem;
}

.entry-content hr {
    border: 0;
    border-top: 1px solid var(--grid);
    margin: 2rem 0;
}

.alignleft {
    float: left;
    margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.3rem 0 1rem 1.5rem;
}

.aligncenter {
    margin-inline: auto;
}

.entry__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.2rem;
}

.entry__tags-k {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft);
}

.entry__tags a {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--grid);
    font-size: 0.88rem;
    text-decoration: none;
}

.page-links {
    margin-top: 1.5rem;
}

/* Pagination */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--f-head);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.pager a.page-numbers:hover {
    border-color: var(--terra);
    color: var(--terra);
}

.pager .page-numbers.current {
    background: var(--terra);
    border-color: var(--terra);
    color: var(--card);
}

.pager .page-numbers.dots {
    border-color: transparent;
    min-width: 1.5rem;
    padding: 0;
}

/* Commentaires */
.comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ink);
}

.comments__title,
.comment-reply-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.comments__list,
.comments__list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comments__list .children {
    padding-left: 1.6rem;
}

.note {
    margin-bottom: 1rem;
    padding: 1.1rem 1.3rem;
    background: var(--card);
    border: 1px solid var(--grid);
}

.note__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.8rem;
    margin-bottom: 0.6rem;
}

.note__head img {
    display: block;
    border-radius: 0;
}

.note__author {
    font-weight: 600;
}

.note__date {
    font-size: 0.82rem;
    color: var(--soft);
}

.note__wait {
    font-style: italic;
    color: var(--terra);
}

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

.note__reply a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra);
}

.comments__closed {
    color: var(--soft);
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form p {
    margin: 0 0 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.comment-form-cookies-consent label {
    display: inline;
    font-weight: 400;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: var(--card);
    color: var(--ink);
    font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--pine);
    outline: 2px solid var(--pine);
    outline-offset: 0;
}

.comment-form .req {
    color: var(--terra);
}

.form-submit input[type="submit"] {
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--terra);
    border-radius: 0;
    background: var(--terra);
    color: var(--card);
    font-family: var(--f-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.form-submit input[type="submit"]:hover {
    background: transparent;
    color: var(--terra);
}

/* Recherche */
.search {
    display: flex;
    max-width: 520px;
    margin: 1.4rem 0;
    border: 1px solid var(--ink);
    background: var(--card);
}

.search__field {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.search__field:focus {
    outline: 2px solid var(--pine);
    outline-offset: -2px;
}

.search__btn {
    padding: 0 1.1rem;
    border: 0;
    border-left: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--terra);
    font-family: var(--f-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.search__btn:hover {
    background: var(--terra);
    color: var(--card);
}

/* 404 */
.nf {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem 3.5rem;
    align-items: center;
    padding: 2rem 0 3rem;
}

.nf__code {
    margin: 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--ink);
    font-family: var(--f-head);
    font-size: clamp(6rem, 16vw, 12rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ink);
}

.nf__title {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 500;
}

.nf__body p {
    max-width: 52ch;
    color: var(--soft);
}

/* Bandeau cookies */
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    max-width: 780px;
    margin-inline: auto;
    padding: 1.1rem 1.4rem;
    background: var(--coal);
    border: 1px solid var(--pine);
    color: var(--light);
    box-shadow: 4px 4px 0 var(--terra);
}

.cookie-banner__text {
    flex: 1;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--light);
}

.cookie-banner__btn {
    flex: none;
}

/* ---------- Adaptation ---------- */
@media (max-width: 960px) {
    .shell {
        width: 92%;
    }

    .mast__row {
        flex-wrap: wrap;
        padding: 1.5rem 0 1.2rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .mainnav {
        display: none;
        flex-basis: 100%;
    }

    .mainnav.is-open {
        display: block;
    }

    .mainnav__list {
        flex-direction: column;
        gap: 0;
    }

    .mainnav__list li {
        border-top: 1px solid var(--grid);
    }

    .mainnav__list a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 0;
    }

    .mainnav__list .current-menu-item > a {
        border-bottom: 0;
        text-decoration: underline;
        text-decoration-color: var(--terra);
    }

    .hero__top {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    .plan {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan__fig {
        max-width: 620px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats .sec-head {
        grid-column: 1 / -1;
        padding-bottom: 0;
    }

    .stats > * {
        padding: 2rem 1.6rem;
    }

    .stat {
        border-top: 1px solid var(--pine);
    }

    .stat:nth-of-type(odd) {
        border-left: 0;
    }

    .stat:last-child {
        grid-column: 1 / -1;
    }

    .latest,
    .steps-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .latest__aside {
        padding-bottom: 1.6rem;
    }

    .latest__cards {
        padding-left: 0;
        border-left: 0;
    }

    .cards--three {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    .matter {
        grid-template-columns: 2.4rem minmax(0, 1fr);
        grid-template-areas:
            "head head"
            "vert swatch"
            "stamp stamp";
    }

    .foot__grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.2rem 0 1rem;
    }

    .foot__col {
        padding: 0 1.4rem;
    }

    .layout-with-sidebar {
        display: block;
    }

    .sidebar {
        margin-top: 2.6rem;
    }

    .nf {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
    }

    .brand__mark,
    .brand__svg {
        width: 52px;
        height: 52px;
    }

    .brand__tag {
        display: none;
    }

    .fs {
        padding: 2.4rem 0;
    }

    .fs--dark {
        padding: 0;
    }

    .hero__note,
    .dim,
    .room--small {
        display: none;
    }

    .plan__list li {
        padding: 1rem 0.6rem;
        gap: 1rem;
    }

    .plan__list li::before,
    .plan__list li::after,
    .plan__list::before,
    .plan__list::after {
        display: none;
    }

    .stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats > * {
        padding: 1.6rem 1.3rem;
    }

    .stat {
        border-left: 0;
    }

    .stat:last-child {
        grid-column: auto;
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .step:not(:last-child)::after,
    .step:not(:last-child)::before {
        display: none;
    }

    .swatches {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 1.4rem;
    }

    .matter__stamp {
        justify-self: stretch;
        padding: 0.6rem 0.9rem;
    }

    .sidebar {
        padding: 1.3rem 1.1rem;
    }

    .entry-content blockquote {
        padding: 1rem 1.1rem;
    }

    .empty-box {
        padding: 1.2rem 1.1rem;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.1rem;
    }

    .alignleft,
    .alignright {
        float: none;
        margin: 1rem 0;
    }
}
