/*
 * NAISKA — Pages éditoriales : Collections, L'atelier, Contact, Sur mesure, Boutique.
 * Mêmes matières que l'accueil (variables définies dans matieres.css).
 */

/* ---------- En-tête de page ---------- */
.nk-pagehero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 5vw, 88px); padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(24px, 4vw, 56px); }
.nk-pagehero__text { flex: 1.1 1 440px; min-width: 0; }
.nk-pagehero__text h1 { margin: 0 0 22px; font-size: clamp(44px, 5.4vw, 84px); line-height: 1.05; }
.nk-pagehero__text h1 em { color: var(--accent); }
.nk-pagehero__text h1::after { content: ""; display: block; width: 144px; height: 15px; margin-top: 24px; background: var(--rang) 0 0 / auto 15px repeat-x; }
.nk-pagehero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; padding: 18px 0; }
.nk-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.nk-section-gap { margin-top: clamp(80px, 10vw, 152px); }

/* Tirage photo scotché et cadre en frêne, réutilisables. */
.nk-tirage, .nk-cadre-bois { position: relative; margin: 0; width: min(100%, 460px); }
.nk-tirage { padding: 14px 14px 6px; background: #FFFDFB var(--papier) 0 0 / 500px; box-shadow: var(--ombre-pose); transform: rotate(1.6deg); }
.nk-cadre-bois {
  padding: 18px 18px 8px; border-radius: 3px; background: #E7D3B4 var(--bois) center / 700px auto;
  box-shadow: inset 0 0 0 1px rgba(90, 60, 30, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 34px 54px -30px rgba(60, 40, 20, 0.6);
  transform: rotate(-1.2deg);
}
.nk-tirage img, .nk-cadre-bois img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nk-cadre-bois img { object-position: center 28%; outline: 1px solid rgba(60, 40, 20, 0.3); }
.nk-tirage .nk-caption, .nk-cadre-bois .nk-caption { margin: 10px 2px 6px; }
.nk-cadre-bois .nk-caption { color: #4A3F47; }
.nk-tirage::before, .nk-cadre-bois::before {
  content: ""; position: absolute; z-index: 2; top: -15px; left: 50%; width: 124px; height: 32px; margin-left: -62px;
  background: repeating-linear-gradient(-45deg, rgba(229, 162, 179, 0.7) 0 7px, rgba(245, 214, 222, 0.7) 7px 14px);
  clip-path: polygon(3% 0, 97% 0, 100% 18%, 97% 36%, 100% 54%, 97% 72%, 100% 90%, 97% 100%, 3% 100%, 0 82%, 3% 64%, 0 46%, 3% 28%, 0 10%);
  transform: rotate(-4deg);
}
.nk-cadre-bois::before { left: auto; right: 18px; margin-left: 0; transform: rotate(6deg); }

/* Carte kraft générique (contact, marchés). */
.nk-kraft { position: relative; background: #C8A87D var(--kraft) 0 0 / 360px; color: var(--encre); box-shadow: 0 22px 36px -22px rgba(60, 40, 20, 0.6); }
.nk-kraft a:not(.nk-btn) { color: var(--encre); }

/* ---------- Collections ---------- */
.nk-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.nk-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 2px; background: #FFFDFB var(--papier) 0 0 / 400px; outline: 1px dashed var(--fil-couture); outline-offset: -5px; box-shadow: 0 2px 6px rgba(31, 26, 30, 0.08); font-size: 16px; font-weight: 700; text-decoration: none; }
.nk-jump a:hover { color: var(--accent); }
.nk-coll-list { display: flex; flex-direction: column; gap: clamp(80px, 10vw, 140px); padding-top: clamp(56px, 7vw, 104px); }
.nk-coll { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 5vw, 88px); scroll-margin-top: 24px; }
.nk-coll--rev { flex-direction: row-reverse; }
.nk-coll__board {
  position: relative; flex: 1.15 1 440px; min-width: 0; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px;
  aspect-ratio: 5 / 4; padding: 30px; border-radius: 4px;
  background: var(--lumiere), var(--lin) 0 0 / 420px, var(--poudre); box-shadow: var(--ombre-pose);
}
.nk-coll__board::after { content: ""; position: absolute; inset: 12px; border: 1.6px dashed var(--fil-couture); border-radius: 2px; pointer-events: none; }
.nk-coll__piece { position: relative; display: block; min-height: 0; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.28); transition: transform .4s ease; }
.nk-coll__piece img { width: 100%; height: 100%; object-fit: contain; }
.nk-coll__piece--1 { grid-row: 1 / span 2; }
.nk-coll__piece--2 { transform: rotate(2deg); }
.nk-coll__piece--3 { transform: rotate(-2deg); }
.nk-coll__piece--2:nth-last-child(2) { grid-row: 1 / span 2; }
.nk-coll__board:hover .nk-coll__piece { transform: none; }
.nk-coll__label {
  position: absolute; z-index: 1; right: -12px; bottom: 26px; padding: 8px 16px 8px 26px; transform: rotate(-4deg);
  background: #C8A87D var(--kraft) 0 0 / 300px; font-size: 16px; font-weight: 700;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); filter: drop-shadow(0 6px 8px rgba(60, 40, 20, 0.3));
}
.nk-coll__text { flex: 1 1 380px; min-width: 0; }
.nk-coll__text h2 { margin-bottom: 16px; font-size: clamp(38px, 4.2vw, 62px); }
.nk-coll__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.nk-coll__meta span { padding: 6px 14px; border-radius: 2px; background: #E7D3B4 var(--bois) center / 500px auto; font-size: 15px; font-weight: 700; color: #3A3037; }
.nk-coll__names { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 16px; }
.nk-coll__names a { color: var(--taupe); text-underline-offset: 5px; }
.nk-coll__names a:hover { color: var(--accent); }

/* ---------- L'atelier ---------- */
.nk-values__grid, .nk-materials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.nk-value { position: relative; padding: 30px 28px 26px; background: #FFFDFB var(--papier) 0 0 / 500px; box-shadow: 0 1px 2px rgba(31, 26, 30, 0.06), 0 18px 30px -22px rgba(31, 26, 30, 0.45); }
.nk-value:nth-child(2) { transform: rotate(0.8deg); }
.nk-value__num { display: block; margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--accent); }
.nk-value h3, .nk-material h3 { margin: 0 0 10px; font-size: 24px; }
.nk-value p, .nk-material p { margin: 0; font-size: 16px; color: var(--taupe); }
.nk-material { position: relative; padding: 30px 28px 28px; background: #fff var(--lin-clair) 0 0 / 360px; outline: 1px dashed var(--fil-couture); outline-offset: -9px; }
.nk-material__ico { width: 56px; height: 56px; margin-bottom: 12px; }
.nk-timeline { display: flex; flex-direction: column; gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.nk-timeline li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; align-items: start; }
.nk-timeline b { display: block; margin-bottom: 4px; font-size: 22px; font-weight: 400; }
.nk-timeline span:not(.nk-num) { font-size: 16px; line-height: 1.65; color: var(--brume); }
.nk-figures .nk-promise b { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; line-height: 1.1; color: var(--encre); }
.nk-figures .nk-promise span { font-size: 16px; color: #3A3037; }
.nk-polaroids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 28px; margin: 0; padding: 12px 0 0; list-style: none; }
.nk-polaroid { display: block; padding: 12px 12px 4px; background: #FFFDFB var(--papier) 0 0 / 500px; box-shadow: var(--ombre-pose); text-decoration: none; transition: transform .35s ease; }
.nk-polaroids li:nth-child(odd) .nk-polaroid { transform: rotate(-2deg); }
.nk-polaroids li:nth-child(even) .nk-polaroid { transform: rotate(1.6deg) translateY(10px); }
.nk-polaroids .nk-polaroid:hover { transform: rotate(0) translateY(-4px); }
.nk-polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nk-polaroid__cap { display: block; padding: 10px 4px 8px; font-size: 18px; text-align: center; }
.nk-market { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.nk-market__visual { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.nk-market__text { flex: 1.2 1 440px; min-width: 0; }
.nk-market__text > p { max-width: 560px; color: var(--taupe); }
.nk-market__card { margin-top: 28px; padding: 40px 34px 30px; transform: rotate(-0.8deg); }
.nk-market__card::after, .nk-envelope::after, .nk-price::after { content: ""; position: absolute; inset: 10px; border: 1.6px dashed rgba(31, 26, 30, 0.35); pointer-events: none; }
.nk-market__card h3 { margin: 0 0 10px; font-size: 22px; }
.nk-market__card ul { margin: 0 0 12px; padding-left: 1.1em; }
.nk-market__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 18px 0 0; }
.nk-soin { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; padding: clamp(32px, 4vw, 56px); border-radius: 4px; background: var(--poudre) var(--lin) 0 0 / 420px; }
.nk-soin > div { flex: 1 1 300px; }
.nk-soin h2 { margin: 0; }
.nk-soin ul { flex: 1 1 320px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nk-soin li { display: flex; gap: 12px; }
.nk-soin li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-top: 11px; border: 1px solid var(--accent); transform: rotate(45deg); }
.nk-soin .nk-link-u { position: relative; z-index: 1; }
.nk-stitch { position: relative; }

/* ---------- Contact ---------- */
.nk-envelope { width: min(100%, 440px); padding: 64px 38px 40px; transform: rotate(-2deg); }
.nk-envelope__to { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.nk-envelope__line { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px dashed rgba(31, 26, 30, 0.45); font-size: 18px; }
.nk-envelope .nk-mail { position: relative; z-index: 1; font-size: clamp(18px, 1.8vw, 22px); overflow-wrap: anywhere; }
.nk-contactpage { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(32px, 4vw, 64px); scroll-margin-top: 20px; }
.nk-formcard { position: relative; flex: 1.6 1 520px; min-width: 0; padding: clamp(30px, 4vw, 56px); background: #FFFDFB var(--papier) 0 0 / 500px; box-shadow: var(--ombre-pose); }
.nk-formcard h2 { font-size: clamp(28px, 3vw, 40px); }
.nk-form { position: relative; z-index: 1; }
.nk-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 20px; }
.nk-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; }
.nk-field label { font-size: 16px; font-weight: 700; }
.nk-field input, .nk-field select, .nk-field textarea { width: 100%; min-height: 54px; padding: 12px 16px; border: 1px solid rgba(31, 26, 30, 0.4); border-radius: 2px; background: #fff; font-size: 17px; }
.nk-field textarea { min-height: 190px; resize: vertical; line-height: 1.6; }
.nk-field input:focus, .nk-field select:focus, .nk-field textarea:focus { border-color: var(--encre); outline: 3px solid var(--accent); outline-offset: 2px; }
.nk-field small { font-size: 14px; color: var(--taupe); }
.nk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nk-form__legal { font-size: 15px; color: var(--taupe); }
.nk-notice { display: flex; flex-direction: column; gap: 4px; margin: 0 0 24px; padding: 16px 20px; border-left: 4px solid; font-size: 16px; }
.nk-notice--ok { border-color: #2E6B4F; background: #E9F4EE; }
.nk-notice--err { border-color: #A3261E; background: #FBEBEA; }
.nk-contactpage__aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nk-infocard { padding: 24px 26px; background: #fff var(--lin-clair) 0 0 / 360px; outline: 1px dashed var(--fil-couture); outline-offset: -8px; }
.nk-infocard h3 { margin: 0 0 6px; font-size: 20px; }
.nk-infocard p { margin: 0 0 8px; font-size: 16px; color: var(--taupe); }
.nk-infocard .nk-mail { font-size: 18px; overflow-wrap: anywhere; }

/* ---------- Questions fréquentes ---------- */
.nk-faq { max-width: 920px; border-top: 1.6px dashed var(--fil-couture); }
.nk-faq__item { border-bottom: 1.6px dashed var(--fil-couture); }
.nk-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; list-style: none; cursor: pointer; font-size: clamp(19px, 1.6vw, 22px); }
.nk-faq summary::-webkit-details-marker { display: none; }
.nk-faq summary::after { content: "+"; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--poudre) var(--lin) 0 0 / 300px; font-size: 22px; line-height: 1; }
.nk-faq details[open] summary::after { content: "−"; }
.nk-faq summary:hover { color: var(--accent); }
.nk-faq__a { max-width: 780px; padding: 0 0 22px; color: var(--taupe); }
.nk-faq__a p:last-child { margin-bottom: 0; }

/* ---------- Sur mesure : tarifs et déroulé ---------- */
.nk-configurator .nk-section h2 { font-size: clamp(30px, 3.6vw, 52px) !important; line-height: 1.12 !important; }
.nk-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; margin: 0; padding: 12px 0 0; list-style: none; }
.nk-price { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 46px 26px 28px; background: #C8A87D var(--kraft) 0 0 / 360px; box-shadow: 0 20px 32px -22px rgba(60, 40, 20, 0.6); }
.nk-price::before { content: ""; position: absolute; top: 16px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--nacre); box-shadow: inset 0 1px 3px rgba(60, 40, 20, 0.5); }
.nk-price:nth-child(odd) { transform: rotate(-1.2deg); }
.nk-price:nth-child(even) { transform: rotate(1deg); }
.nk-price--star { transform: rotate(-0.4deg) translateY(-8px) !important; }
.nk-price b { font-size: 46px; font-weight: 400; line-height: 1; }
.nk-price__size, .nk-price__time { font-size: 15px; font-weight: 700; }
.nk-price span:last-child { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.nk-sm__note { margin-top: 26px; font-size: 16px; color: var(--taupe); }
.nk-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.nk-path li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.nk-path li:not(:last-child)::before { content: ""; position: absolute; top: 24px; left: 62px; right: -14px; border-top: 1.6px dashed var(--fil-couture); }
.nk-path__num { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #211B20 var(--velours) 0 0 / 300px; color: var(--nacre); font-size: 20px; }
.nk-path b { font-size: 22px; font-weight: 400; }
.nk-path span:last-child { font-size: 16px; color: var(--taupe); }

/* ---------- Boutique ---------- */
.woocommerce-products-header__title { font-size: clamp(44px, 5.4vw, 84px); line-height: 1.05; }
.nk-reassure { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 6px; padding: 0; list-style: none; font-size: 15px; font-weight: 700; color: #4A3F47; }
.nk-reassure li { display: flex; align-items: center; gap: 10px; }
.nk-reassure li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); }
.nk-filters a { gap: 8px; background: #FFFDFB var(--papier) 0 0 / 400px; }
.nk-filters__dot { flex-shrink: 0; width: 10px; height: 16px; border-radius: 3px; box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.15); }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .nk-coll, .nk-coll--rev { flex-direction: column; align-items: stretch; }
  .nk-coll > * { flex: 0 0 auto; width: 100%; }
  .nk-path li::before { display: none; }
}
@media (max-width: 600px) {
  .nk-tirage, .nk-cadre-bois, .nk-envelope, .nk-market__card, .nk-value:nth-child(2) { transform: none; }
  .nk-coll__board { padding: 22px; gap: 10px; }
  .nk-coll__label { right: -6px; }
  .nk-polaroids { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .nk-polaroid__cap { font-size: 15px; }
}
