/* Housses de Couette — cosy textile : lin naturel, bleu nuit, blanc coton. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --nuit: #1f2a44;
  --nuit-2: #2c3a5a;
  --nuit-3: #3d4c6e;
  --coton: #fdfbf7;
  --lin: #ece3d4;
  --lin-light: #f5efe5;
  --lin-dark: #cbb99c;
  --argile: #8a4f35;
  --argile-light: #e9cdb9;
  --muted: #5b6070;
  --line: #e2d8c6;
  --text: #232b3f;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(31 42 68 / 5%), 0 14px 34px -18px rgb(31 42 68 / 28%);
  --shadow-soft: 0 10px 30px -20px rgb(31 42 68 / 35%);
  --stitch: 1.5px dashed rgb(31 42 68 / 28%);
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  /* Lin tissé : trame fine croisée. */
  --weave: repeating-linear-gradient(0deg, rgb(120 95 60 / 5%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(120 95 60 / 5%) 0 1px, transparent 1px 4px);
}

/* Étoffes de rubrique : teinte, encre lisible sur clair, fond doux et motif. */
.fabric-0 {
  --fab: #cbb99c; --fab-ink: #72552b; --fab-soft: #f1e8d8;
  --pattern: repeating-linear-gradient(90deg, rgb(255 255 255 / 38%) 0 6px, transparent 6px 18px, rgb(114 85 43 / 16%) 18px 20px, transparent 20px 30px);
}
.fabric-1 {
  --fab: #93a893; --fab-ink: #45594a; --fab-soft: #e3ebe1;
  --pattern: repeating-linear-gradient(0deg, rgb(255 255 255 / 30%) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 30%) 0 10px, transparent 10px 20px);
}
.fabric-2 {
  --fab: #a19dc6; --fab-ink: #4f4b7a; --fab-soft: #e9e7f3;
  --pattern: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 55%) 0 2.5px, transparent 3px) 0 0 / 16px 16px,
    radial-gradient(circle at 50% 50%, rgb(255 255 255 / 30%) 0 2px, transparent 2.5px) 8px 8px / 16px 16px;
}
.fabric-3 {
  --fab: #3d4c6e; --fab-ink: #2c3a5a; --fab-soft: #e1e5ee;
  --pattern: repeating-linear-gradient(45deg, rgb(255 255 255 / 12%) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 8%) 0 2px, transparent 2px 9px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--coton);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--argile); }
:focus-visible { outline: 3px solid var(--argile); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--nuit);
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(52px, 7vw, 96px); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--nuit); color: var(--coton); padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--coton); }

/* ---------- Composants communs ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 600 .78rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--argile);
}
.eyebrow::before { content: ""; width: 26px; border-top: 2px dashed currentColor; }
.eyebrow--light { color: var(--argile-light); }

.chip {
  display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px;
  background: var(--fab-soft, var(--lin)); color: var(--fab-ink, var(--nuit));
  border: 1px dashed color-mix(in srgb, var(--fab-ink, var(--nuit)) 35%, transparent);
  font-size: .78rem; font-weight: 600; text-decoration: none; letter-spacing: .02em;
}
a.chip:hover { background: var(--fab-ink, var(--nuit)); color: var(--coton); }

.button, .search-form button, .comment-form .submit, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
  background: var(--nuit); color: var(--coton); font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--nuit), inset 0 0 0 4.5px rgb(253 251 247 / 35%);
  transition: background-color .2s ease, transform .2s ease;
}
.button:hover, .search-form button:hover, .comment-form .submit:hover, .wp-block-button__link:hover {
  background: var(--nuit-3); color: var(--coton); transform: translateY(-1px);
}
.button .icon { transition: transform .2s ease; }
.button:hover .icon { transform: translateX(3px); }
.button--ghost {
  background: transparent; color: var(--nuit); box-shadow: none; border: 1.5px dashed var(--nuit);
}
.button--ghost:hover { background: var(--lin); color: var(--nuit); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--nuit);
  text-decoration: none; border-bottom: var(--stitch); padding-bottom: 2px;
}
.text-link:hover { color: var(--argile); border-bottom-color: var(--argile); }

.section-heading {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-heading h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0; }
.section-intro { max-width: 460px; margin: 0; color: var(--muted); }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 28px; }

.section--linen { background-color: var(--lin); background-image: var(--weave); }
.section--night { background: var(--nuit); color: #e7e9f0; }
.section--night h2 { color: var(--coton); }

/* Formulaires */
.search-form { display: flex; gap: 8px; width: 100%; max-width: 560px; }
.search-form input[type="search"] { flex: 1; min-width: 0; }
.search-form button { padding-inline: 20px; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
  width: 100%; min-height: 48px; padding: 11px 18px;
  background: var(--coton); border: 1.5px solid var(--line); border-radius: 999px; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { border-radius: var(--radius); min-height: 150px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; border-color: var(--nuit-3); box-shadow: 0 0 0 4px rgb(61 76 110 / 22%);
}
::placeholder { color: #767b8a; opacity: 1; }

/* ---------- Ruban et en-tête ---------- */
.ribbon {
  background: var(--nuit); color: #d9dce6; font-size: .84rem;
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 4%) 0 2px, transparent 2px 7px);
}
.ribbon-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.ribbon-text { display: inline-flex; align-items: center; gap: 8px; }
.ribbon-text .icon { color: var(--argile-light); }
.ribbon-link { color: var(--coton); text-decoration: none; border-bottom: 1px dashed rgb(255 255 255 / 40%); }
.ribbon-link:hover { color: var(--argile-light); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(253 251 247 / 94%);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: var(--stitch);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.branding { margin-right: auto; }
.custom-logo { max-height: 56px; width: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nuit); }
.brand:hover { color: var(--nuit); }
.brand-mark { display: inline-flex; width: 42px; height: 42px; color: var(--argile); transition: transform .3s ease; }
.brand-mark svg { width: 100%; height: 100%; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { font: 600 clamp(1.1rem, 2.2vw, 1.35rem)/1 var(--font-serif); letter-spacing: -0.01em; }
.brand-tld { font-style: italic; font-weight: 500; color: var(--argile); }

.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; color: var(--nuit);
}
.nav-menu a:hover { background: var(--lin); color: var(--nuit); }
.nav-menu .current-menu-item > a, .nav-menu [aria-current="page"] {
  background: var(--lin); box-shadow: inset 0 0 0 1px var(--lin-dark);
}
.nav-menu li { position: relative; }
.nav-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px;
  background: var(--coton); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-menu .sub-menu a { border-radius: 8px; }
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.header-search { position: relative; }
.header-search summary {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  list-style: none; cursor: pointer; color: var(--nuit); border: 1.5px dashed var(--lin-dark);
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search summary:hover { background: var(--lin); }
.header-search summary .icon + .icon, .header-search[open] summary .icon:first-child { display: none; }
.header-search[open] summary .icon + .icon { display: block; }
.header-search-panel {
  position: absolute; right: 0; top: calc(100% + 14px); width: min(420px, calc(100vw - 32px));
  padding: 14px; background: var(--coton); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  background: var(--nuit); color: var(--coton); border: 0; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .primary-nav { order: 5; flex-basis: 100%; padding-bottom: 12px; }
  .nav-menu { flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; }
  .js .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 14px var(--gutter) 22px;
    background: var(--coton); border-bottom: var(--stitch); box-shadow: var(--shadow-soft);
  }
  .js .primary-nav.is-open { display: block; }
  .js .nav-menu { flex-direction: column; align-items: stretch; }
  .js .nav-menu a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: var(--stitch); border-radius: 0; margin-left: 16px; padding: 0 0 0 8px; background: none;
  }
  .ribbon-link { display: none; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Héros : un lit fait, dessiné en CSS ---------- */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 100px) clamp(56px, 8vw, 110px);
  background-color: var(--lin-light); background-image: var(--weave);
  border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; margin-bottom: 22px; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 34px 0 0; padding: 22px 0 0; border-top: var(--stitch); color: var(--muted); }
.hero-stats strong { font: 600 1.6rem/1 var(--font-serif); color: var(--nuit); margin-right: 4px; }

.hero-bed { position: relative; aspect-ratio: 5 / 4; width: 100%; max-width: 560px; justify-self: center; }
.hero-bed::before {
  content: ""; position: absolute; right: 2%; top: -2%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7e8, #f0d9b5 70%);
  box-shadow: 0 0 60px 10px rgb(240 217 181 / 55%);
}
.bed-headboard {
  position: absolute; left: 8%; right: 8%; top: 8%; height: 46%;
  border-radius: 48% 48% 14px 14px / 40% 40% 14px 14px; background: var(--nuit-2);
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 7%) 0 3px, transparent 3px 34px);
  box-shadow: inset 0 -12px 0 rgb(0 0 0 / 12%);
}
.bed-pillow {
  position: absolute; top: 30%; width: 34%; height: 21%; border-radius: 26px;
  background: var(--coton); box-shadow: var(--shadow-soft), inset 0 0 0 8px var(--coton), inset 0 0 0 9.5px rgb(31 42 68 / 16%);
}
.bed-pillow--a { left: 13%; transform: rotate(-3deg); }
.bed-pillow--b { right: 13%; transform: rotate(3deg); background-color: var(--argile-light); box-shadow: var(--shadow-soft), inset 0 0 0 8px var(--argile-light), inset 0 0 0 9.5px rgb(154 91 63 / 35%); }
.bed-duvet {
  position: absolute; left: 3%; right: 3%; top: 45%; bottom: 4%; border-radius: 28px 28px 22px 22px;
  background-color: #dfe3ec;
  background-image: repeating-linear-gradient(90deg, rgb(31 42 68 / 10%) 0 2px, transparent 2px 22px, rgb(255 255 255 / 55%) 22px 30px, transparent 30px 44px);
  box-shadow: 0 24px 40px -24px rgb(31 42 68 / 55%), inset 0 0 0 10px transparent;
  outline: 1.5px dashed rgb(31 42 68 / 30%); outline-offset: -12px;
}
.bed-fold {
  position: absolute; left: 0; right: 0; top: 0; height: 26%; border-radius: 28px 28px 10px 10px;
  background-color: var(--coton);
  background-image: repeating-linear-gradient(0deg, rgb(154 91 63 / 12%) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, rgb(154 91 63 / 12%) 0 6px, transparent 6px 12px);
  box-shadow: 0 8px 14px -10px rgb(31 42 68 / 50%);
}
.bed-plaid {
  position: absolute; right: 6%; bottom: 10%; width: 36%; height: 30%; border-radius: 18px;
  background-color: var(--argile);
  background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / 18%) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 18%) 0 8px, transparent 8px 16px);
  transform: rotate(-8deg); box-shadow: var(--shadow-soft);
  outline: 1.5px dashed rgb(255 255 255 / 55%); outline-offset: -7px;
}
.bed-tag {
  position: absolute; left: 7%; bottom: 13%; padding: 6px 14px 6px 22px; border-radius: 6px 999px 999px 6px;
  background: var(--coton); color: var(--nuit); font: italic 500 .9rem/1.2 var(--font-serif);
  box-shadow: var(--shadow-soft); transform: rotate(4deg);
}
.bed-tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--lin-dark); }

/* ---------- À la une ---------- */
.une-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.une-side { display: grid; gap: 24px; align-content: start; }
.une-side:empty { display: none; }
.une-grid:has(.une-side:empty) { grid-template-columns: 1fr; }

/* ---------- Cartes ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 30px); }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fab-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .82rem; color: var(--muted); }
.card-time { display: inline-flex; align-items: center; gap: 5px; }
.card-title { font-size: 1.3rem; line-height: 1.22; margin: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--argile); }
/* Toute la carte est cliquable, la rubrique reste un lien distinct. */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .chip { position: relative; z-index: 2; }
.card-excerpt { margin: 0; color: var(--muted); font-size: .97rem; }
.card-date { margin-top: auto; padding-top: 12px; border-top: var(--stitch); font-size: .8rem; color: var(--muted); }
.card:focus-within { box-shadow: 0 0 0 3px var(--argile), var(--shadow); }
.card-title a:focus-visible { outline: none; }

/* Échantillon de tissu : vignette de remplacement sans image. */
.swatch {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  background: var(--pattern), var(--fab);
}
.swatch::before {
  content: ""; position: absolute; inset: 12px; border-radius: calc(var(--radius) - 10px);
  border: 1.5px dashed rgb(255 255 255 / 70%);
}
.swatch-label {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--coton); color: var(--fab-ink);
  font: italic 500 2rem/1 var(--font-serif);
  box-shadow: 0 6px 16px -8px rgb(31 42 68 / 50%), inset 0 0 0 5px var(--coton), inset 0 0 0 6.5px var(--fab);
}

.card--feature { display: grid; grid-template-columns: 1.15fr 1fr; }
.card--feature .card-media { aspect-ratio: auto; min-height: 340px; height: 100%; }
.card--feature .card-body { padding: clamp(24px, 3vw, 38px); justify-content: center; }
.card--feature .card-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.card--feature .card-excerpt { font-size: 1.05rem; }
.card--feature .swatch-label { width: 96px; height: 96px; font-size: 3rem; }

.card--mini { flex-direction: row; align-items: stretch; }
.card--mini .card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 140px; }
.card--mini .card-body { padding: 16px 18px; gap: 8px; }
.card--mini .card-title { font-size: 1.12rem; }
.card--mini .swatch::before { inset: 8px; }
.card--mini .swatch-label { width: 46px; height: 46px; font-size: 1.4rem; }
.card--mini .card-date { padding-top: 8px; }

.card--text { box-shadow: none; background: transparent; border-style: dashed; }

/* ---------- Pagination ---------- */
.pagination, .comments-pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px;
  border-radius: 999px; border: 1.5px dashed var(--lin-dark); text-decoration: none; font-weight: 600; color: var(--nuit);
}
a.page-numbers:hover { background: var(--lin); color: var(--nuit); }
.page-numbers.current { background: var(--nuit); border-color: var(--nuit); color: var(--coton); }
.page-numbers.dots { border-color: transparent; }

/* ---------- États vides ---------- */
.empty-state {
  display: grid; justify-items: center; gap: 6px; text-align: center; max-width: 640px; margin-inline: auto;
  padding: clamp(36px, 6vw, 60px) clamp(20px, 4vw, 48px);
  background: var(--lin-light); background-image: var(--weave);
  border: 1.5px dashed var(--lin-dark); border-radius: var(--radius-lg);
}
.empty-state p { color: var(--muted); max-width: 480px; }
.empty-state .search-form { margin-top: 10px; }
.empty-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 10px 0 4px; }
.empty-pillow {
  display: block; width: 120px; height: 72px; border-radius: 26px; background: var(--coton);
  box-shadow: var(--shadow-soft), inset 0 0 0 8px var(--coton), inset 0 0 0 9.5px rgb(31 42 68 / 18%);
  transform: rotate(-4deg); animation: hdc-breathe 5s ease-in-out infinite;
}
.empty-pillow span { display: block; width: 28px; height: 28px; margin: 22px auto 0; border-radius: 50%; background: var(--argile-light); }
@keyframes hdc-breathe { 50% { transform: rotate(-4deg) scale(1.04, .96); } }

/* ---------- Nuancier des matières ---------- */
.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); list-style: none; margin: 0; padding: 0; }
.material {
  position: relative; display: flex; flex-direction: column; padding: 14px 14px 22px;
  background: var(--coton); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.material-cloth {
  display: block; height: 130px; margin-bottom: 18px; border-radius: calc(var(--radius) - 8px);
  outline: 1.5px dashed rgb(255 255 255 / 65%); outline-offset: -9px;
  box-shadow: inset 0 -18px 24px -18px rgb(31 42 68 / 25%);
  transition: transform .3s ease;
}
.material:hover .material-cloth { transform: rotate(-1.2deg) scale(1.015); }
.material-name, .material-feel, .material-facts { padding-inline: 8px; }
.material-name { font-size: 1.3rem; margin: 0 0 6px; }
.material-name a { text-decoration: none; }
.material-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.material-name a:focus-visible { outline: none; }
.material:focus-within { box-shadow: 0 0 0 3px var(--argile), var(--shadow-soft); }
.material-feel { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.material-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: auto 0 0; padding-top: 14px; border-top: var(--stitch); font-size: .86rem; }
.material-facts dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--argile); font-weight: 600; }
.material-facts dd { margin: 2px 0 0; color: var(--nuit); font-weight: 500; }

.material--lin .material-cloth {
  background-color: #d8c8ad;
  background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / 16%) 0 1px, transparent 1px 3px, rgb(110 85 50 / 10%) 3px 4px, transparent 4px 7px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 14%) 0 2px, transparent 2px 5px, rgb(110 85 50 / 9%) 5px 6px, transparent 6px 11px);
}
.material--percale .material-cloth {
  background-color: #f4f3ef;
  background-image: repeating-linear-gradient(45deg, rgb(31 42 68 / 6%) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgb(31 42 68 / 6%) 0 1px, transparent 1px 4px);
  outline-color: rgb(31 42 68 / 22%);
}
.material--satin .material-cloth {
  background: linear-gradient(115deg, #3d4c6e 0%, #5d6d93 30%, #8e9cc0 42%, #5d6d93 55%, #34425f 80%, #4a5a80 100%);
}
.material--flanelle .material-cloth {
  background-color: #b9795a;
  background-image: repeating-linear-gradient(0deg, rgb(31 42 68 / 22%) 0 14px, transparent 14px 34px, rgb(255 255 255 / 20%) 34px 37px, transparent 37px 52px),
    repeating-linear-gradient(90deg, rgb(31 42 68 / 22%) 0 14px, transparent 14px 34px, rgb(255 255 255 / 20%) 34px 37px, transparent 37px 52px);
}
.material--gaze .material-cloth {
  background-color: #e9e7f3;
  background-image: radial-gradient(circle, rgb(79 75 122 / 16%) 0 3px, transparent 3.5px), radial-gradient(circle, rgb(255 255 255 / 70%) 0 3px, transparent 3.5px);
  background-size: 12px 12px; background-position: 0 0, 6px 6px;
  outline-color: rgb(79 75 122 / 30%);
}
.material--tencel .material-cloth {
  background-color: #93a893;
  background-image: repeating-radial-gradient(ellipse at 0 120%, rgb(255 255 255 / 0%) 0 14px, rgb(255 255 255 / 18%) 16px 18px, rgb(255 255 255 / 0%) 20px 30px);
}

/* ---------- Rubriques ---------- */
.rubrique-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rubrique {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 20px;
  background: var(--fab-soft); color: var(--nuit); text-decoration: none; border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.rubrique:hover { color: var(--nuit); transform: translateY(-3px); box-shadow: var(--shadow); }
.rubrique-swatch {
  display: block; height: 76px; margin-bottom: 12px; border-radius: calc(var(--radius) - 8px);
  background: var(--pattern), var(--fab); outline: 1.5px dashed rgb(255 255 255 / 70%); outline-offset: -7px;
}
.rubrique strong { font: 600 1.2rem/1.2 var(--font-serif); }
.rubrique small { color: var(--fab-ink); font-size: .88rem; }

/* ---------- Guide des tailles (fond bleu nuit) ---------- */
.section--night { background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 3%) 0 2px, transparent 2px 9px); }
.sizes-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sizes-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.sizes-copy p { color: #c9cedb; }
.sizes-tip {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px;
  border: 1.5px dashed rgb(233 205 185 / 45%); border-radius: var(--radius); color: var(--coton) !important;
}
.sizes-tip .icon { color: var(--argile-light); margin-top: 4px; }
.sizes-table-wrap {
  padding: 10px clamp(14px, 3vw, 28px); background: var(--nuit-2); border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%);
}
.sizes-table { width: 100%; border-collapse: collapse; }
.sizes-table th, .sizes-table td { padding: 14px 10px; text-align: left; vertical-align: middle; }
.sizes-table thead th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--argile-light); font-weight: 600; }
.sizes-table tbody tr + tr > * { border-top: 1px dashed rgb(255 255 255 / 16%); }
.sizes-table tbody th { font: 600 1.25rem/1.2 var(--font-serif); color: var(--coton); }
.sizes-table tbody th small { display: block; font: 400 .82rem/1.4 var(--font-body); color: #aab1c4; }
.sizes-dim { font-weight: 600; color: var(--coton); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sizes-shape { width: 80px; }
.sizes-shape span {
  display: block; margin-left: auto; width: calc(var(--w) * .26px); height: calc(var(--h) * .2px);
  border-radius: 8px; background: var(--lin); background-image: var(--weave);
  outline: 1px dashed rgb(31 42 68 / 35%); outline-offset: -4px;
}

/* ---------- Rituel d’entretien ---------- */
.care-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.care-step {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: var(--lin-light); border: 1.5px dashed var(--lin-dark); counter-increment: step;
}
.care-step::after {
  content: counter(step, decimal-leading-zero); position: absolute; top: 18px; right: 20px;
  font: italic 500 1.6rem/1 var(--font-serif); color: var(--lin-dark);
}
.care-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%;
  background: var(--nuit); color: var(--coton); box-shadow: 0 0 0 5px var(--lin-light), 0 0 0 6.5px var(--lin-dark);
}
.care-icon .icon { width: 24px; height: 24px; }
.care-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.care-step p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Bandeau de recherche ---------- */
.search-band { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 7vw, 88px); }
.search-band-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg);
  background: var(--argile-light);
  background-image: repeating-linear-gradient(0deg, rgb(154 91 63 / 9%) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, rgb(154 91 63 / 9%) 0 10px, transparent 10px 20px);
  outline: 1.5px dashed rgb(154 91 63 / 45%); outline-offset: -12px;
}
.search-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.search-band .search-form { justify-self: end; }

/* ---------- En-têtes d’archive et de recherche ---------- */
.archive-heading { margin: calc(-1 * clamp(52px, 7vw, 96px)) 0 clamp(40px, 6vw, 64px); padding-block: clamp(44px, 6vw, 76px); position: relative; background: var(--fab-soft); overflow: hidden; }
.archive-heading::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: var(--pattern), var(--fab); opacity: .9;
}
.archive-heading h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 12px; }
.archive-heading .eyebrow { color: var(--fab-ink); }
.archive-description { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.archive-description p:last-child { margin: 0; }
.archive-count { display: inline-block; margin: 14px 0 0; padding: 4px 14px; border-radius: 999px; background: var(--coton); color: var(--fab-ink); font-weight: 600; font-size: .88rem; }
.archive-heading .search-form { margin-top: 20px; }

/* ---------- Article ---------- */
.reading-thread { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 4px; pointer-events: none; }
.reading-thread span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left;
  background: repeating-linear-gradient(90deg, var(--argile) 0 10px, transparent 10px 15px);
}
.admin-bar .reading-thread { top: 32px; }
.single-main { max-width: 860px; }
.article-heading { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.article-heading h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 18px 0 16px; }
.article-heading--page h1 { margin-top: 0; }
.article-standfirst { font: italic 500 clamp(1.15rem, 2vw, 1.35rem)/1.5 var(--font-serif); color: var(--nuit-3); max-width: 680px; margin: 0 auto 24px; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; font-size: .9rem; color: var(--muted); }
.article-meta > * + *:not(.article-author)::before { content: "·"; margin-right: 18px; color: var(--lin-dark); }
.article-avatar { border-radius: 50%; box-shadow: 0 0 0 3px var(--coton), 0 0 0 4.5px var(--lin-dark); }
.article-author { font-weight: 600; color: var(--nuit); }
.article-cover { margin: 0 0 clamp(32px, 5vw, 52px); }
.article-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-cover figcaption { margin-top: 10px; text-align: center; font-size: .86rem; color: var(--muted); }

.entry-content { max-width: 720px; margin-inline: auto; font-size: 1.1rem; line-height: 1.8; }
.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; }
.entry-content h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 1.5em; }
.entry-content a { color: var(--argile); text-decoration-style: dashed; text-decoration-thickness: 1.5px; }
.entry-content a:hover { color: var(--nuit); }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul li::marker { color: var(--argile); }
.entry-content blockquote, .wp-block-quote {
  margin-inline: 0; padding: 22px 28px; border-radius: var(--radius);
  background: var(--lin-light); border: 1.5px dashed var(--lin-dark);
  font: italic 500 1.25rem/1.55 var(--font-serif); color: var(--nuit);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content cite { display: block; margin-top: 8px; font: 600 .85rem var(--font-body); font-style: normal; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px dashed var(--line); text-align: left; }
.entry-content thead th { background: var(--lin); }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: var(--radius-sm); background: var(--nuit); color: var(--coton); font-size: .9rem; }
.entry-content hr { border: 0; border-top: 2px dashed var(--lin-dark); margin-block: 2.4em; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, .wp-element-caption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 8px; }
.post-password-form input[type="password"] { max-width: 320px; }

.article-footer { max-width: 720px; margin: 44px auto 0; padding-top: 26px; border-top: var(--stitch); display: grid; gap: 20px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { padding: 4px 14px; border-radius: 999px; background: var(--lin); text-decoration: none; font-size: .88rem; }
.article-tags a::before { content: "# "; color: var(--argile); }
.article-tags a:hover { background: var(--nuit); color: var(--coton); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-weight: 600; margin-right: 6px; color: var(--nuit); }
.share a, .copy-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border-radius: 999px;
  border: 1.5px dashed var(--lin-dark); background: transparent; text-decoration: none; font-size: .9rem; font-weight: 500; cursor: pointer;
}
.share a:hover, .copy-link:hover { background: var(--lin); color: var(--nuit); }
.copy-link.is-done { background: var(--nuit); color: var(--coton); border-color: var(--nuit); }

.post-navigation { max-width: 720px; margin: 48px auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 22px; border-radius: var(--radius);
  background: var(--lin-light); text-decoration: none; font: 600 1.05rem/1.3 var(--font-serif); color: var(--nuit);
}
.post-navigation a span { font: 600 .72rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--argile); }
.post-navigation a:hover { background: var(--lin); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }

.related { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(40px, 6vw, 56px); border-top: var(--stitch); }
.single-main .related .post-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Commentaires ---------- */
.comments { max-width: 720px; margin: clamp(56px, 8vw, 88px) auto 0; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: clamp(16px, 4vw, 40px); padding-left: 16px; border-left: var(--stitch); }
.comment-body { margin-bottom: 18px; padding: 20px 22px; border-radius: var(--radius); background: var(--lin-light); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; font-size: .86rem; color: var(--muted); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--nuit); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { text-decoration: none; }
.comment-content p:last-child { margin: 0; }
.reply a { font-size: .86rem; font-weight: 600; color: var(--argile); }
.comment-awaiting-moderation { font-style: italic; color: var(--argile); }
.comment-respond { margin-top: 32px; padding: clamp(22px, 4vw, 34px); border-radius: var(--radius-lg); border: 1.5px dashed var(--lin-dark); }
.comment-reply-title { font-size: 1.5rem; }
.comment-reply-title small { margin-left: 10px; font: 500 .9rem var(--font-body); }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); }
.comments-closed { color: var(--muted); font-style: italic; }

/* ---------- 404 ---------- */
.not-found { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; max-width: 960px; margin-inline: auto; }
.not-found h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.not-found p { color: var(--muted); }
.not-found .search-form { margin-bottom: 20px; }
.not-found-sock {
  position: relative; width: 150px; height: 220px; border-radius: 40px 40px 70px 30px / 30px 30px 70px 40px;
  background: var(--argile); transform: rotate(-10deg);
  background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / 20%) 0 8px, transparent 8px 22px);
  box-shadow: var(--shadow);
}
.not-found-sock span {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(10deg);
  padding: 6px 14px; border-radius: 999px; background: var(--coton); color: var(--nuit); font: italic 600 1.8rem/1 var(--font-serif);
}

/* ---------- Pied de page ---------- */
.site-footer { position: relative; margin-top: clamp(24px, 4vw, 48px); background: var(--nuit); color: #c9cedb; }
.footer-seam {
  height: 22px;
  background: var(--coton);
  border-bottom-left-radius: 50% 22px; border-bottom-right-radius: 50% 22px;
  outline: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-block: clamp(44px, 6vw, 72px); }
.site-footer .brand, .site-footer .brand:hover { color: var(--coton); }
.site-footer .brand-mark { color: var(--argile-light); }
.site-footer .brand-tld { color: var(--argile-light); }
.footer-about p { margin-top: 16px; max-width: 320px; }
.site-footer h2 { font-size: 1.1rem; color: var(--coton); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed rgb(255 255 255 / 22%); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e4e7ef; text-decoration: none; }
.site-footer a:hover { color: var(--argile-light); text-decoration: underline; text-decoration-style: dashed; }
.footer-col li[class*="fabric-"] { display: flex; align-items: center; gap: 10px; }
.footer-col li[class*="fabric-"]::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--pattern), var(--fab); flex: none; box-shadow: 0 0 0 1px rgb(255 255 255 / 25%); }
.footer-search .search-form { flex-direction: column; }
.footer-search input[type="search"] { background: var(--nuit-2); border-color: rgb(255 255 255 / 18%); color: var(--coton); }
.footer-search ::placeholder { color: #a9b0c3; }
.footer-search .search-form button { background: var(--argile-light); color: var(--nuit); box-shadow: none; }
.footer-search .search-form button:hover { background: var(--coton); color: var(--nuit); }
.site-footer :focus-visible { outline-color: var(--argile-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 22px 28px; border-top: 1px dashed rgb(255 255 255 / 18%); font-size: .86rem; color: #aab1c4;
}

/* ---------- Adaptations ---------- */
@media (max-width: 1080px) {
  .rubrique-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .care-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .sizes-layout { grid-template-columns: 1fr; }
  .hero-bed { max-width: 460px; }
  .une-grid { grid-template-columns: 1fr; }
  .post-grid, .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-band-inner { grid-template-columns: 1fr; }
  .search-band .search-form { justify-self: stretch; max-width: none; }
}
@media (max-width: 720px) {
  .card--feature { grid-template-columns: 1fr; }
  .card--feature .card-media { min-height: 0; aspect-ratio: 4 / 3; }
  .rubrique-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .not-found { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .not-found .search-form { margin-inline: auto; }
  .not-found-sock { width: 110px; height: 160px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: auto; }
  .admin-bar .reading-thread { top: 46px; }
}
@media (max-width: 600px) {
  .post-grid, .swatch-grid, .care-steps, .footer-grid { grid-template-columns: 1fr; }
  .ribbon-text { font-size: .78rem; }
  .brand-mark { width: 34px; height: 34px; }
  .card--mini .card-media { flex-basis: 34%; }
  .sizes-shape { display: none; }
  .search-form { flex-wrap: wrap; }
  .search-form button { flex: 1 0 100%; }
  .hero-actions .button { flex: 1 1 auto; }
}

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

@media print {
  .ribbon, .site-header, .site-footer, .reading-thread, .share, .post-navigation, .related, .comment-respond, .search-band { display: none !important; }
  body { background: #fff; color: #000; }
  .entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
