/*
Theme Name: Décodouce
Theme URI: https://decodouce.com
Author: Décodouce
Description: Magazine de décoration français, élégant et contemporain.
Version: 1.6.4
License: GNU General Public License v2 or later
Text Domain: decodouce
Tags: blog, magazine, decoration, blue, responsive
*/

@font-face {
    font-family: "Nyse";
    src: url("assets/fonts/Nyse-Demi.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: optional;
}

:root {
    --blue: #2457a6;
    --blue-dark: #102a43;
    --blue-deep: #0b2447;
    --blue-soft: #eaf2ff;
    --blue-mist: #f3f7fc;
    --cream: #f7f3ec;
    --gold: #c6a66a;
    --ink: #142033;
    --muted: #667085;
    --line: #dce3ec;
    --white: #fff;
    --serif: "Nyse", Georgia, "Times New Roman", serif;
    --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --article-sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --brand-sans: "Karla", "Helvetica Neue", Arial, sans-serif;
    --shell: min(1100px, calc(100% - 48px));
    --radius: 3px;
    --ease: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; z-index: 9999; left: 12px; top: -80px; padding: 10px 16px; background: #fff; color: var(--blue-dark); }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.single .site-header { position: relative; top: auto; }
.reading-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 1001; height: 3px; overflow: hidden; pointer-events: none; }
.reading-progress__bar { display: block; width: 0; height: 100%; background: var(--blue); transition: width 80ms linear; }
body.admin-bar.single .reading-progress { top: 32px; }
.header-main { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { grid-column: 2; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand__name { color: var(--blue); font-family: var(--serif); font-size: clamp(44px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.05em; }
.brand__tagline { width: 100%; margin-top: 1px; color: #52627a; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-align: center; text-transform: uppercase; }
.nav-bar { border-top: 1px solid var(--line); }
.nav-bar__inner { position: relative; min-height: 52px; display: flex; align-items: center; justify-content: center; }
.search-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--blue-deep); cursor: pointer; transition: background var(--ease), color var(--ease); }
.search-toggle:hover, .site-header.search-open .search-toggle { background: var(--blue-soft); color: var(--blue); }
.search-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.header-search-bar { overflow: hidden; max-height: 0; border-top: 0 solid var(--line); transition: max-height .32s ease, border-top-width .32s ease; }
.site-header.search-open .header-search-bar { max-height: 96px; border-top: 1px solid var(--line); background: var(--blue-mist); }
.header-search-bar form { display: flex; align-items: center; gap: 10px; padding: 20px 0; border-bottom: 0; }
.header-search-bar input { flex: 1; min-width: 0; border: 0; border-bottom: 1.5px solid #a9b5c5; outline: 0; padding: 8px 4px; background: transparent; color: var(--ink); font: 400 17px var(--article-sans); }
.header-search-bar input:focus { border-bottom-color: var(--blue); }
.header-search-bar input::placeholder { color: #8a96a8; }
.header-search-bar button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; transition: background var(--ease); }
.header-search-bar button:hover { background: var(--blue-deep); }
.header-search-bar button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.desktop-nav { display: flex; gap: clamp(22px, 3vw, 42px); }
.desktop-nav a { position: relative; padding: 15px 0; color: var(--blue-deep); font-size: 14px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 9px; height: 2px; background: var(--blue); transition: right var(--ease); }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; background: none; padding: 0; cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; }
.mobile-menu, .menu-backdrop { display: none; }

.eyebrow { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow--light { color: #afc8ed; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 30px; border-radius: 999px; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); }
.button:hover { transform: translateY(-3px); }
.button--primary { background: linear-gradient(135deg, var(--blue), #326bc0); color: #fff; box-shadow: 0 10px 24px rgba(36,87,166,.22); }
.button--primary:hover { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); box-shadow: 0 14px 28px rgba(16,42,67,.24); }
.button--light { background: #fff; color: var(--blue-deep); }
.button--light:hover { background: var(--blue-soft); }
.text-link { display: inline-flex; gap: 14px; align-items: center; color: var(--blue-dark); border-bottom: 1px solid var(--blue); padding-bottom: 5px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }

.home-hero { background: linear-gradient(110deg, #f4f7fb 0%, #fff 58%); padding: 28px 0 36px; overflow: hidden; }
.home-hero__grid { display: grid; grid-template-columns: .8fr 1.35fr; gap: clamp(42px, 7vw, 100px); align-items: center; }
.home-hero__content { position: relative; z-index: 2; }
.home-hero h1 { margin: 18px 0 24px; color: var(--blue-dark); font: 600 clamp(52px, 6.2vw, 86px)/.98 var(--serif); letter-spacing: -.045em; }
.home-hero h1 em { color: var(--blue); font-weight: 600; }
.home-hero__content > p { max-width: 510px; margin: 0 0 32px; color: #526070; font-size: 17px; line-height: 1.8; }
.home-hero__gallery { position: relative; display: grid; min-width: 0; min-height: 555px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 0 10px; }
.home-hero__gallery::after { content: ""; position: absolute; z-index: -1; right: -25px; bottom: 0; width: 72%; height: 72%; background: var(--blue-soft); }
.hero-portrait { position: relative; min-width: 0; height: 500px; overflow: hidden; background: #dce6f2; box-shadow: 0 14px 35px rgba(16,42,67,.09); }
.hero-portrait--salon { margin-top: 22px; }
.hero-portrait--chambre { margin-top: 0; }
.hero-portrait--cuisine { margin-top: 38px; }
.hero-portrait::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(7,27,53,.3)); pointer-events: none; }
.hero-portrait img { height: 100%; object-fit: cover; transition: transform 800ms ease, opacity 220ms ease; }
.hero-portrait:hover img { transform: scale(1.045); }

.room-section { padding: 48px 0 44px; }
.section-intro { margin-bottom: 30px; }
.section-intro--inline { display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.section-intro h2 { margin: 9px 0 0; color: var(--blue-dark); font: 600 clamp(36px, 4vw, 52px)/1.15 var(--serif); letter-spacing: -.025em; }
.section-intro > p { max-width: 420px; margin: 0 0 5px; color: var(--muted); }
.room-section .section-intro > p { max-width: 300px; white-space: normal; }
@media (min-width: 1000px) {
    .room-section .section-intro h2 { white-space: nowrap; font-size: clamp(38px, 3.4vw, 48px); }
}
.section-intro--bordered { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.room-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.room-card { position: relative; min-width: 0; }
.room-card__image { display: block; height: 300px; overflow: hidden; background: var(--blue-soft); }
.room-card__image img { height: 100%; object-fit: cover; transition: transform 700ms ease; }
.room-card:hover .room-card__image img { transform: scale(1.045); }
.room-card__body { display: block; padding: 19px 28px 0 0; }
.room-card__body strong { display: block; color: var(--blue-dark); font: 600 24px/1.2 var(--serif); }
.room-card__body small { color: var(--muted); font-size: 11px; }
.room-card__arrow { position: absolute; right: 0; bottom: 14px; color: var(--blue); font-size: 20px; transition: transform var(--ease); }
.room-card:hover .room-card__arrow { transform: translate(3px,-3px); }

.latest-section { padding: 52px 0 48px; background: var(--blue-mist); }
.article-grid, .archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.article-card { display: flex; min-width: 0; height: 100%; flex-direction: column; background: #fff; border: 1px solid #e0e0e0; }
.article-card__image { position: relative; display: block; aspect-ratio: 3 / 2; margin-bottom: 0; overflow: hidden; background: #dce6f2; }
.article-card__image img { height: 100%; object-fit: cover; transition: transform 700ms ease; }
.article-card:hover .article-card__image img { transform: scale(1.035); }
.article-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 20px 20px; }
.article-card__category { display: block; margin-bottom: 2px; color: #555; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-card__category:hover { color: #555; text-decoration: underline; }
.article-card h3 { margin: 0 0 8px; color: var(--ink); font: 600 26px/1.25 var(--serif); letter-spacing: 0; }
.article-card h3 a { background-image: linear-gradient(var(--blue),var(--blue)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size 350ms ease; }
.article-card h3 a:hover { background-size: 100% 1px; }
.article-card__author { margin: auto 0 0; color: #666; font-size: 12px; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px solid var(--line); background: #fff; }
.empty-state span { color: var(--blue); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.empty-state h3 { margin: 12px 0; font: 600 32px var(--serif); }

.editorial-feature { padding: 110px 0; background: var(--blue-deep); color: #fff; overflow: hidden; }
.editorial-feature__grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(55px, 8vw, 120px); }
.editorial-feature__image { position: relative; min-height: 580px; }
.editorial-feature__image img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.feature-stamp { position: absolute; right: -40px; top: 40px; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--blue-deep); text-align: center; font: 600 14px/1.25 var(--serif); transform: rotate(8deg); }
.editorial-feature__content h2 { max-width: 520px; margin: 17px 0 24px; color: #fff; font: 500 clamp(40px, 5vw, 65px)/1.08 var(--serif); letter-spacing: -.045em; }
.editorial-feature__content p { max-width: 490px; margin: 0 0 32px; color: #c4d1e4; font-size: 16px; line-height: 1.8; }

.trend-section { padding: 120px 0; background: var(--cream); }
.trend-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.trend-content h2 { max-width: 500px; margin: 14px 0 22px; color: var(--blue-dark); font: 500 clamp(42px, 5vw, 62px)/1.08 var(--serif); letter-spacing: -.045em; }
.trend-content > p { max-width: 500px; color: #657080; }
.trend-list { list-style: none; padding: 18px 0; margin: 20px 0 28px; border-top: 1px solid #d7d0c4; }
.trend-list li { padding: 12px 0; border-bottom: 1px solid #d7d0c4; font: 500 17px var(--serif); }
.trend-list span { display: inline-block; width: 45px; color: var(--blue); font: 600 10px var(--sans); }
.trend-image { position: relative; min-height: 610px; }
.trend-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.color-chip { position: absolute; left: -32px; bottom: 35px; display: flex; align-items: center; gap: 10px; padding: 16px 19px; background: #fff; box-shadow: 0 14px 35px rgba(16,42,67,.14); color: var(--blue-dark); font-size: 11px; }
.color-chip i { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); }
.color-chip b { color: #8791a0; font-weight: 500; }

.site-footer { padding-top: 48px; background: var(--blue-deep); color: #e6eef9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .65fr .75fr 1.2fr; gap: 60px; padding-bottom: 38px; }
.footer-logo { color: #fff; font: 600 52px var(--serif); letter-spacing: -.05em; }
.footer-brand p { max-width: 350px; margin-top: 19px; color: #d3dfef; font-size: 15px; line-height: 1.75; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column h2 { margin: 4px 0 14px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a { color: #d9e4f3; font-size: 15px; line-height: 1.7; }
.footer-column a:hover { color: #fff; }
.footer-newsletter h2 { margin: 15px 0 25px; color: #fff; font: 600 31px/1.23 var(--serif); }
@media (max-width: 600px) { .footer-newsletter h2 { font-size: 23px; margin: 12px 0 20px; } }
.newsletter-note { margin: 8px 0 -4px; color: #b9c9dd; font-size: 12px; }
.newsletter-form { display: flex; border-bottom: 1px solid #6b7e9b; }
.newsletter-form input { width: 100%; padding: 14px 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 15px; }
.newsletter-form input::placeholder { color: #c5d3e6; }
.newsletter-form button { border: 0; background: none; color: #fff; font-size: 22px; cursor: pointer; }
.newsletter-message { margin: -12px 0 10px; color: #dce8f7; font-size: 12px; line-height: 1.5; }
.newsletter-message--success { color: #bfe4c9; }
.newsletter-unsubscribe { margin-left: 6px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { min-height: 58px; display: flex; align-items: center; justify-content: center; border-top: 1px solid #3a5574; color: #e2eaf5; opacity: .7; font-family: var(--brand-sans); font-size: 12px; font-weight: 400; letter-spacing: 0; text-align: center; }

/* Archive, search and article pages */
.archive-header { padding: 64px 0 32px; margin-bottom: 16px; background: #fff; text-align: center; }
.archive-header h1 { margin: 8px 0; color: #111; font: 600 40px/1.2 var(--serif); }
.archive-parent { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.archive-desc { max-width: 600px; margin: 12px auto 0; color: var(--muted); }
.section { padding: 32px 0 64px; }
.search-header { padding: 64px 0; background: #f5f5f5; text-align: center; }
.search-header h1 { margin: 0 0 16px; color: #111; font: 600 40px/1.2 var(--serif); }
.search-form-wrapper { position: relative; width: min(500px, calc(100% - 40px)); margin: 0 auto; }
.search-form-wrapper input { width: 100%; padding: 14px 52px 14px 20px; border: 2px solid #e0e0e0; outline: 0; background: #fff; color: #111; font: 16px var(--sans); }
.search-form-wrapper input:focus { border-color: var(--blue); }
.search-form-wrapper button { position: absolute; top: 0; right: 0; bottom: 0; width: 48px; border: 0; background: transparent; color: var(--blue-dark); cursor: pointer; }
.search-form-wrapper button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.container { width: var(--shell); margin-inline: auto; }
.container--wide { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.pagination { margin-top: 65px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--blue-dark); font-size: 12px; }
.page-numbers.current, .page-numbers:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.single-post-header { padding: 48px 0 20px; text-align: left; }
.single-featured { max-height: 720px; overflow: hidden; }
.single-featured img { height: min(64vw, 720px); object-fit: cover; }
.container--post-header { width: min(660px, calc(100% - 40px)); max-width: none; padding: 0 32px; }
.post-category { display: inline-block; margin-bottom: 18px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.post-title { max-width: 700px; margin: 0 0 24px; color: #111; font: 600 46px/1.15 var(--serif); letter-spacing: -.03em; }
.page .single-post-header { text-align: center; padding-bottom: 8px; }
.page .single-post-header .container { width: min(760px, calc(100% - 40px)); }
.page .post-title { max-width: none; margin-inline: auto; }
.page .post-content h2 { margin-top: 40px; font-size: 30px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #555; font-size: 14px; }
.post-meta > * { margin: 0; }
.meta-by { color: #555; font-weight: 400; }
.author-link { color: #111; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.author-link:hover { color: var(--blue); }
.meta-separator { color: #ccc; font-weight: 300; }
.meta-date { color: #555; font-weight: 400; }
.post-share { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 30px; }
.share-label { margin-right: 6px; color: var(--blue-dark); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.share-arrow { display: none; }
.share-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--blue); text-decoration: none; transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease); }
.share-btn:hover { border-color: var(--blue); background: var(--blue); color: #fff; transform: translateY(-2px); }
.share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.post-content { width: min(660px, calc(100% - 40px)); margin: 18px auto 40px; padding: 0 32px; color: #333; font-family: var(--article-sans); font-size: 18px; line-height: 1.62; counter-reset: decodouce-section; }
.post-content p { margin: 0 0 1.4em; color: #333; font-family: var(--article-sans); font-size: 18px; font-weight: 400; line-height: 1.62; }
.post-content h1, .post-content h2, .post-content h3 { margin: 45px 0 16px; color: #111; font-family: var(--serif); line-height: 1.25; }
.single .post-content h1 { counter-increment: decodouce-section; display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 52px 0 32px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.single .post-content h1::before { content: counter(decodouce-section, decimal-leading-zero); margin: 0 0 8px; padding: 2px 10px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font: 700 14px/1.4 var(--sans); letter-spacing: .06em; }
.post-content h2 { font-size: 35px; }
.post-content img { width: 100%; height: auto; margin: 32px 0; }
.post-content a { color: var(--blue); text-decoration: underline; }
.post-footer-cta { width: min(760px, calc(100% - 40px)); margin: 0 auto 40px; padding: 32px; background: var(--blue-mist); text-align: center; }
.next-article-divider { width: min(1100px, calc(100% - 48px)); margin: 70px auto 0; padding: 56px 0 22px; border-top: 1px solid var(--line); color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.next-article { background: #fff; }
.next-article .single-post-header { padding-top: 28px; }
.next-article .post-title a { color: inherit; text-decoration: none; }
.next-article .post-title a:hover { color: var(--blue); }
.cta-question { margin: 0 0 16px; font: 600 26px var(--serif); }
.pinterest-cta-large { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.pinterest-cta-large svg { width: 18px; height: 18px; }
.widget-title { font-family: var(--serif); }

/* Contact form */
.contact-form-wrap { margin: 8px 0 12px; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; }
.contact-field label { color: var(--blue-dark); font-family: var(--article-sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-field input, .contact-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 400 16px var(--article-sans); transition: border-color var(--ease); }
.contact-field input:focus, .contact-field textarea:focus { outline: 0; border-color: var(--blue); }
.contact-field textarea { resize: vertical; min-height: 130px; }
.contact-submit { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 12px; padding: 13px 26px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: 700 12px var(--article-sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background var(--ease); }
.contact-submit:hover { background: var(--blue-deep); }
.contact-submit span { font-size: 15px; }
.contact-message { margin: 0 0 20px; padding: 14px 16px; border-radius: 6px; font-family: var(--article-sans); font-size: 15px; }
.contact-message--success { background: var(--blue-soft); color: var(--blue-deep); border-left: 3px solid var(--blue); }
.contact-message--error { background: #fdecec; color: #a12622; border-left: 3px solid #d4433d; }

@media (max-width: 1050px) {
    .room-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
    .article-grid, .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
    .footer-newsletter { grid-column: 1 / -1; max-width: 520px; }
    .desktop-nav { gap: 20px; }
    .desktop-nav a { font-size: 12px; }
}

@media (max-width: 780px) {
    :root { --shell: min(100% - 32px, 680px); }
    .header-search, .nav-bar { display: none; }
    .header-main { min-height: 85px; grid-template-columns: 1fr auto 1fr; }
    .brand__name { font-size: 48px; }
    .brand__tagline { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu { position: fixed; z-index: 104; display: flex; flex-direction: column; left: 0; top: 0; bottom: 0; width: min(88vw, 380px); padding: 28px; background: #fff; transform: translateX(-105%); transition: transform 320ms ease; }
    .mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; color: var(--blue); font: 600 32px var(--serif); }
    .menu-close { border: 0; background: none; color: var(--blue-dark); font-size: 34px; }
    .mobile-menu > a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font: 600 20px var(--serif); }
    .menu-backdrop { position: fixed; z-index: 103; inset: 0; display: block; background: rgba(6,25,49,.58); opacity: 0; visibility: hidden; transition: opacity 320ms ease, visibility 320ms; }
    .menu-open .mobile-menu { transform: translateX(0); }
    .menu-open .menu-backdrop { opacity: 1; visibility: visible; }
    .home-hero { padding: 30px 0 34px; }
    .home-hero__grid { grid-template-columns: 1fr; gap: 42px; }
    .home-hero__content { text-align: center; }
    .home-hero__content > p { margin-inline: auto; }
    .home-hero__gallery { min-height: 455px; gap: 10px; padding-bottom: 10px; }
    .hero-portrait { height: 405px; }
    .hero-portrait--salon { margin-top: 22px; }
    .hero-portrait--cuisine { margin-top: 38px; }
    .section-intro--inline { display: block; }
    .room-section .section-intro > p { white-space: normal; }
    .section-intro > p, .section-intro > .text-link { margin-top: 18px; }
    .room-section, .latest-section, .trend-section { padding: 44px 0; }
    .room-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 42px 18px; }
    .editorial-feature { padding: 75px 0; }
    .editorial-feature__grid, .trend-grid { grid-template-columns: 1fr; }
    .editorial-feature__image { min-height: 470px; }
    .feature-stamp { right: 15px; top: 20px; }
    .trend-image { min-height: 480px; order: -1; }
    .color-chip { left: 15px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 45px 25px; }
    .footer-brand, .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
    body.admin-bar.single .reading-progress { top: 46px; }
}

@media (max-width: 520px) {
    .home-hero h1 { font-size: 49px; }
    .home-hero__gallery { min-height: 350px; margin-inline: -4px; gap: 7px; }
    .home-hero__gallery::after { right: -12px; }
    .hero-portrait { height: 310px; }
    .hero-portrait--salon { margin-top: 18px; }
    .hero-portrait--cuisine { margin-top: 30px; }
    .room-grid { display: flex; overflow-x: auto; gap: 14px; margin-right: -16px; padding-right: 16px; scroll-snap-type: x mandatory; }
    .room-card { min-width: 73vw; scroll-snap-align: start; }
    .room-card__image { height: 330px; }
    .article-grid, .archive-grid { grid-template-columns: 1fr; }
    .editorial-feature__image, .trend-image { min-height: 400px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand, .footer-newsletter { grid-column: auto; }
    .footer-bottom { display: flex; padding: 22px 0; text-align: center; }
    .footer-bottom span { display: block; margin: 5px; }
}

/* =========================================================
   DECOVYA FEATURE PARITY — DÉCODOUCE IDENTITY
   ========================================================= */

.desktop-nav a.current-menu-item { color: var(--blue); }
.desktop-nav a.current-menu-item::after { right: 0; }

.mobile-menu__search {
    display: flex;
    align-items: center;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--line);
}
.mobile-menu__search input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}
.mobile-menu__search button {
    width: 42px;
    border: 0;
    background: transparent;
    color: var(--blue-dark);
}
.mobile-menu__search svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
.mobile-menu > a.current-menu-item { color: var(--blue); }

.home-editorial-feature { padding-block: 86px; }
.home-editorial-feature .editorial-feature__image { display: block; }
.home-editorial-feature .editorial-feature__content a { color: inherit; }
.more-inspirations-section { padding: 58px 0 72px; background: #fff; }
.more-inspirations-section .section-intro { margin-bottom: 32px; }

/* Article body follows Decovya's 660px column on desktop. */
.article-full .post-title a { color: inherit; text-decoration: none; }
.article-full .post-title a:hover { color: var(--blue); }
.post-content figure,
.post-content figure.wp-block-image {
    width: 100%;
    margin: 0;
}
.post-content figure + p,
.post-content figure.wp-block-image + p { margin-top: 1rem; }
.post-content p { margin-top: .5rem; margin-bottom: .75rem; }
.single .post-content { counter-reset: decodouce-heading; }
.single .post-content h1.wp-block-heading,
.single .post-content h2.wp-block-heading {
    counter-increment: decodouce-heading;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 1.5rem 0 .5rem !important;
    color: #111;
    font: 600 30px/1.2 var(--serif) !important;
    letter-spacing: -.02em;
}
.single .post-content h1.wp-block-heading::before,
.single .post-content h2.wp-block-heading::before {
    content: counter(decodouce-heading, decimal-leading-zero);
    display: block;
    margin: 0 0 8px;
    padding: 2px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--blue-soft);
    color: var(--blue);
    font: 700 14px/1.4 var(--sans) !important;
    letter-spacing: .06em;
}
.post-content h1.wp-block-heading + figure,
.post-content h2.wp-block-heading + figure { margin-top: 0 !important; }

.pinnable-image {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
}
.pinnable-image img { display: block; width: 100%; margin: 32px 0 0; }
.pinnable-image .pin-overlay {
    position: absolute;
    z-index: 5;
    top: 16px;
    left: 16px;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #e60023;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
    cursor: pointer;
    opacity: 1;
    text-decoration: none;
    pointer-events: auto;
    transition: transform .25s ease, box-shadow .25s ease;
}
.pinnable-image .pin-overlay:hover { transform: scale(1.12); box-shadow: 0 5px 15px rgba(0,0,0,.4); }
.pinnable-image .pin-overlay svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }

.post-footer-cta {
    width: auto;
    max-width: 660px;
    margin: 24px auto 48px;
    padding: 24px 32px 32px;
    background: transparent;
}
.pinterest-cta-large svg { width: 18px; height: 18px; fill: currentColor; }
.post-tags {
    display: flex;
    max-width: 660px;
    flex-wrap: wrap;
    gap: 8px;
    margin: -18px auto 36px;
    padding: 0 32px;
}
.post-tags a {
    padding: 6px 13px;
    border: 1px solid var(--line);
    color: var(--blue-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Lazy article continuation. */
.inf-sentinel { width: 100%; height: 1px; }
.inf-article {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.inf-article.inf-visible { opacity: 1; transform: translateY(0); }
.inf-divider {
    display: flex;
    max-width: 660px;
    align-items: center;
    gap: 22px;
    margin: 0 auto;
    padding: 20px 32px 12px;
}
.inf-divider::before,
.inf-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inf-divider span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
}
.inf-scroll-hint { padding-bottom: 8px; color: var(--blue); text-align: center; }
.inf-scroll-arrow { display: inline-block; animation: decodouce-scroll-arrow 1.4s ease-in-out infinite; }
@keyframes decodouce-scroll-arrow { 50% { transform: translateY(6px); } }

/* Related posts slider: two portrait cards, like Decovya. */
.related-section {
    padding: 44px 0 54px;
    border-top: 1px solid var(--line);
    background: var(--cream);
    opacity: 0;
    transition: opacity .5s ease;
}
.related-section[hidden] { display: none; }
.related-section--visible,
.related-section:not([hidden]) { opacity: 1; }
.related-section > .container { width: 660px; max-width: 100%; padding: 0 32px; }
.related-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.related-section__title { margin: 5px 0 0; color: var(--blue-dark); font: 600 30px/1.15 var(--serif); }
.related-section__nav { display: flex; gap: 7px; }
.related-nav-btn {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--blue-dark);
    border-radius: 50%;
    background: transparent;
    color: var(--blue-dark);
    cursor: pointer;
}
.related-nav-btn:disabled { opacity: .3; cursor: default; }
.related-nav-btn:not(:disabled):hover { background: var(--blue-dark); color: #fff; }
.related-nav-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.related-track-wrap { overflow: hidden; }
.related-track {
    display: flex;
    gap: 16px;
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.related-slide { flex: 0 0 calc(50% - 8px); min-width: 0; }
.related-card { display: block; height: 100%; overflow: hidden; border: 1px solid #e0e0e0; background: #fff; }
.related-card__img { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--blue-soft); }
.related-card__img img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.related-card:hover .related-card__img img { transform: scale(1.04); }
.related-card__body { display: block; padding: 14px 14px 20px; }
.related-card__cat { display: block; margin-bottom: 8px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.related-card__title { display: block; color: var(--ink); font: 600 24px/1.25 var(--serif); }

@media (max-width: 768px) {
    .container { width: 100%; padding-inline: 16px; }
    .container--post-header {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-inline: 16px;
    }
    .single-post-header { padding: 24px 0 16px; }
    .post-title { max-width: 100%; margin-bottom: 16px; font-size: 36px; line-height: 1.1; }
    .post-content {
        width: 100%;
        max-width: 100%;
        margin: 32px 0 48px;
        padding-inline: 16px;
    }
    .post-content h1.wp-block-heading,
    .post-content h2.wp-block-heading { margin-top: 1.25rem !important; font-size: 30px !important; }
    .post-footer-cta { width: 100%; max-width: 100%; margin-bottom: 42px; padding: 20px 16px 28px; }
    .post-tags { max-width: 100%; margin-bottom: 44px; padding-inline: 16px; }
    .inf-divider { padding-inline: 16px; }
    .related-section > .container { width: 100%; padding-inline: 16px; }
    .related-track { gap: 10px; }
    .related-slide { flex-basis: calc(50% - 5px); }
    .related-card__body { padding: 9px 10px 13px; }
    .related-card__cat { font-size: 9px; }
    .related-card__title { font-size: 18px; line-height: 1.28; }
    .article-grid,
    .archive-grid { grid-template-columns: 1fr; gap: 32px; }
    .home-editorial-feature { padding-block: 64px; }
    .more-inspirations-section { padding-block: 44px; }
}

@media (max-width: 520px) {
    .pin-overlay { top: 12px; left: 12px; width: 38px; height: 38px; opacity: 1; }
    .related-section__title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
