/*
 * NAISKA — Matières de l'atelier.
 * Le site devient l'établi d'Anaïs : papier coton au fond, lin des pochettes sous les bijoux,
 * étagère en frêne comme son stand, velours de présentoir, kraft des étiquettes,
 * fil, aiguille et rangs de perles. Textures recalées sur les teintes de la marque
 * pour garder des contrastes AA.
 */
:root {
  --papier: url(../img/tex-papier.webp);
  --lin: url(../img/tex-lin.webp);
  --lin-clair: url(../img/tex-lin-clair.webp);
  --velours: url(../img/tex-velours.webp);
  --kraft: url(../img/tex-kraft.webp);
  --bois: url(../img/tex-bois.webp);
  --rang: url(../img/rang-perles.svg);
  --fil-couture: rgba(98, 86, 96, 0.42);
  --lumiere: radial-gradient(ellipse 72% 62% at 50% 42%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 72%);
  --ombre-pose: 0 1px 2px rgba(31, 26, 30, 0.08), 0 26px 44px -26px rgba(31, 26, 30, 0.5);
}

/* ---------- Fond : papier coton ---------- */
body { background: var(--nacre) var(--papier) 0 0 / 600px; }
.nk-header { background: transparent; }
.nk-panel, .nk-search { background: var(--nacre) var(--papier) 0 0 / 600px; }
.nk-bar { background: #211B20 var(--velours) center / 600px; }

/* Petit rang de perles sous les titres de page. */
.nk-page__head h1::after, .woocommerce-products-header__title::after {
  content: ""; display: block; width: 144px; height: 15px; margin-top: 20px;
  background: var(--rang) 0 0 / auto 15px repeat-x;
}

/* ---------- Héros : lin, lumière d'atelier, étiquette kraft ---------- */
.nk-hero__photo {
  background: radial-gradient(ellipse 72% 62% at 50% 42%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 72%), var(--lin) 0 0 / 420px, var(--poudre);
  border-radius: 4px;
  box-shadow: inset 0 -70px 100px rgba(140, 90, 80, 0.1), var(--ombre-pose);
}
.nk-hero__photo::after, .nk-custom::after, .nk-stitch::after {
  content: ""; position: absolute; inset: 14px; border: 1.6px dashed var(--fil-couture); border-radius: 2px; pointer-events: none;
}
.nk-hero__label { display: none; }
.nk-tag { position: absolute; left: 46px; bottom: 28px; z-index: 2; transform: rotate(-3deg); transform-origin: 0 50%; }
.nk-tag__fil { position: absolute; z-index: 1; left: -38px; top: 50%; width: 64px; height: 40px; margin-top: -24px; overflow: visible; pointer-events: none; }
.nk-tag__card {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 22px 14px 38px;
  background: #C8A87D var(--kraft) 0 0 / 360px; color: var(--encre);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%);
  filter: drop-shadow(0 10px 14px rgba(60, 40, 20, 0.28));
}
.nk-tag__card::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--poudre); box-shadow: inset 0 1px 2px rgba(60, 40, 20, 0.45); }
.nk-tag__card small { font-size: 14px; font-weight: 700; }
.nk-tag__card strong { font-size: 26px; font-weight: 400; line-height: 1.1; }
.nk-tag__card a { margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--encre); text-decoration: underline; text-underline-offset: 5px; }
.nk-tag__card a:hover { color: var(--accent); }
.nk-hero__fil { position: absolute; z-index: 3; right: -9%; top: -6%; width: 42%; transform: rotate(170deg) scaleY(-1); pointer-events: none; filter: drop-shadow(0 4px 3px rgba(31, 26, 30, 0.18)); }
.nk-diamond img { filter: drop-shadow(0 10px 18px rgba(31, 26, 30, 0.25)); }

/* ---------- Engagements : l'étagère en frêne du stand ---------- */
.nk-promises {
  position: relative; border: 0;
  background: #E7D3B4 var(--bois) center / 900px auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -12px 18px -12px rgba(90, 60, 30, 0.35), 0 14px 22px -14px rgba(60, 40, 20, 0.5);
}
.nk-promise { border-left: 1px solid rgba(90, 60, 30, 0.2); }
.nk-promise:first-child { border-left: 0; }
.nk-promise b { color: #4A3F47; }

/* ---------- Cartes produit : bijoux posés sur le lin ---------- */
.nk-card__media {
  background: var(--lumiere), var(--lin) 0 0 / 360px, var(--poudre);
  border-radius: 3px;
  box-shadow: inset 0 -44px 64px rgba(140, 90, 80, 0.09);
  transition: box-shadow .4s ease, transform .4s ease;
}
.nk-card:hover .nk-card__media { transform: translateY(-4px); box-shadow: inset 0 -44px 64px rgba(140, 90, 80, 0.09), 0 24px 40px -24px rgba(31, 26, 30, 0.5); }
.nk-card__badge {
  z-index: 1; top: 14px; left: 14px; padding: 5px 11px 6px; border-radius: 2px;
  background: var(--nacre) var(--lin-clair) 0 0 / 300px; color: var(--encre);
  outline: 1px dashed var(--fil-couture); outline-offset: -4px;
  box-shadow: 0 2px 5px rgba(31, 26, 30, 0.14); transform: rotate(-2deg);
}
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .flex-control-thumbs img,
.woocommerce table.shop_table td.product-thumbnail img { background: var(--lumiere), var(--lin) 0 0 / 360px, var(--poudre); }

/* ---------- Couleurs : lin bordé d'un galon de perles ---------- */
.nk-colors, .nk-contact { position: relative; background: var(--poudre) var(--lin) 0 0 / 420px; }
.nk-colors::before, .nk-contact::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 15px;
  background: var(--rang) 0 0 / auto 15px repeat-x; filter: drop-shadow(0 2px 2px rgba(31, 26, 30, 0.18));
}
.nk-chip__bead { position: relative; }
.nk-chip__bead::before { content: ""; position: absolute; top: 6px; left: 50%; width: 22px; height: 7px; margin-left: -11px; border-radius: 50%; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.35); }
.nk-chip__bead::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, 0.5) 20%, rgba(255, 255, 255, 0) 36%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2) 100%); }

/* ---------- Collections : tirage photo scotché ---------- */
.nk-collections__visual figure {
  position: relative; padding: 14px 14px 6px; background: #FFFDFB var(--papier) 0 0 / 500px;
  box-shadow: var(--ombre-pose); transform: rotate(1.6deg);
}
.nk-collections__visual figure::before, .nk-about__visual figure::after {
  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-collections__visual .nk-caption { margin: 10px 2px 6px; }
.nk-seal { z-index: 3; box-shadow: 0 10px 20px -10px rgba(31, 26, 30, 0.4); background: var(--nacre) var(--papier) 0 0 / 400px; }

/* ---------- Sur mesure : coupon de lin cousu ---------- */
.nk-custom {
  background: radial-gradient(ellipse at 18% 12%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%), var(--lin) 0 0 / 420px, var(--poudre);
  box-shadow: 0 34px 60px -42px rgba(31, 26, 30, 0.55);
}
.nk-custom::after { inset: 12px; border-radius: 20px; }
.nk-step { position: relative; background: #FFFDFB var(--papier) 0 0 / 500px; box-shadow: 0 1px 2px rgba(31, 26, 30, 0.06), 0 16px 26px -18px rgba(31, 26, 30, 0.45); }
.nk-step:nth-child(1) { transform: rotate(-1.4deg); }
.nk-step:nth-child(2) { transform: rotate(0.9deg) translateY(6px); }
.nk-step:nth-child(3) { transform: rotate(-0.6deg); }
.nk-custom__fil { position: absolute; z-index: 0; right: -24px; bottom: -18px; width: 380px; transform: rotate(-10deg); opacity: 0.95; pointer-events: none; }

/* ---------- Savoir-faire et pied de page : velours de présentoir ---------- */
.nk-craft {
  background: radial-gradient(ellipse 55% 75% at 26% 50%, rgba(255, 236, 228, 0.12), rgba(0, 0, 0, 0) 70%), var(--velours) 0 0 / 640px, #211B20;
  box-shadow: inset 0 24px 40px -24px rgba(0, 0, 0, 0.7), inset 0 -24px 40px -24px rgba(0, 0, 0, 0.7);
}
.nk-craft .nk-diamond--lg img { filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.55)); }
.nk-footer { background: #211B20 var(--velours) 0 0 / 640px; }

/* ---------- Anaïs : la photo du stand dans un cadre en frêne ---------- */
.nk-about__visual figure {
  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-about__visual figure::before { display: none; }
.nk-about__visual figure::after { left: auto; right: 18px; margin-left: 0; transform: rotate(6deg); }
.nk-about__visual img { outline: 1px solid rgba(60, 40, 20, 0.3); }
.nk-about__visual .nk-caption { margin: 8px 2px 2px; color: #4A3F47; }

/* ---------- Contact : une carte kraft avec son timbre ---------- */
.nk-contact__actions.nk-kraft {
  position: relative; flex: 0 1 460px; padding: 34px 36px; border-radius: 2px;
  background: #C8A87D var(--kraft) 0 0 / 360px; color: var(--encre);
  box-shadow: 0 22px 36px -22px rgba(60, 40, 20, 0.6); transform: rotate(-1deg);
}
.nk-kraft::after { content: ""; position: absolute; inset: 10px; border: 1.6px dashed rgba(31, 26, 30, 0.35); pointer-events: none; }
.nk-kraft .nk-mail { position: relative; z-index: 1; color: var(--encre); }
.nk-kraft .nk-btn { position: relative; z-index: 1; }
.nk-stamp {
  position: absolute; top: -18px; right: 22px; z-index: 2; width: 64px; height: 76px; display: flex; align-items: center; justify-content: center;
  background: #FFFDFB; transform: rotate(7deg); box-shadow: 0 6px 12px -6px rgba(31, 26, 30, 0.5);
  -webkit-mask: radial-gradient(circle 3.2px at 4.5px 4.5px, transparent 96%, #000) -4.5px -4.5px / 9px 9px, linear-gradient(#000 0 0) center / calc(100% - 9px) calc(100% - 9px) no-repeat;
  mask: radial-gradient(circle 3.2px at 4.5px 4.5px, transparent 96%, #000) -4.5px -4.5px / 9px 9px, linear-gradient(#000 0 0) center / calc(100% - 9px) calc(100% - 9px) no-repeat;
}
.nk-stamp img { width: 38px; height: 38px; }
.nk-stamp::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(42, 58, 168, 0.35); }

/* ---------- Boutique et commande ---------- */
.nk-ship { margin: 0 0 24px; padding: 16px 20px 18px; background: #fff var(--lin-clair) 0 0 / 360px; outline: 1px dashed var(--fil-couture); outline-offset: -6px; }
.nk-ship p { margin: 0 0 10px; font-size: 16px; }
.nk-ship__bar { display: block; height: 10px; border-radius: 5px; background: var(--poudre); overflow: hidden; }
.nk-ship__bar i { display: block; height: 100%; border-radius: 5px; background: var(--violet); }
.nk-ship--ok .nk-ship__bar i { background: #2F7D5B; }
.nk-facts { background: #fff var(--lin-clair) 0 0 / 360px; outline: 1px dashed var(--fil-couture); outline-offset: -7px; }
.nk-delay { background: var(--poudre) var(--lin) 0 0 / 420px; }
.woocommerce table.shop_table { background: #fff var(--lin-clair) 0 0 / 360px; }

/* ---------- Configurateur : l'aperçu sur lin, les blocs sur papier ---------- */
.nk-configurator .cf-sticky > div:first-child { background-image: var(--lumiere), var(--lin) !important; background-size: auto, 420px !important; }
.nk-configurator [style*="background: #FBF5F2"] { background-image: var(--papier) !important; background-size: 600px !important; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .nk-hero__fil { right: -6%; top: -7%; width: 46%; }
  .nk-custom__fil { display: none; }
}
@media (max-width: 600px) {
  .nk-tag { left: 36px; bottom: 16px; }
  .nk-tag__card { padding: 10px 16px 10px 32px; }
  .nk-tag__card strong { font-size: 22px; }
  .nk-collections__visual figure, .nk-about__visual figure { transform: none; }
  .nk-contact__actions.nk-kraft { padding: 52px 22px 28px; }
  .nk-kraft .nk-mail { font-size: 18px; overflow-wrap: anywhere; }
  .nk-stamp { top: -14px; right: 16px; width: 54px; height: 64px; }
  .nk-stamp img { width: 32px; height: 32px; }
}
@media (max-width: 700px) {
  .nk-promises__grid { grid-template-columns: 1fr 1fr; }
  .nk-promise { border-left: 0; padding: 20px 8px 20px 0; }
  .nk-promise:nth-child(odd) { padding-right: 14px; border-right: 1px solid rgba(90, 60, 30, 0.2); }
  .nk-promise:nth-child(even) { padding-left: 14px; }
  .nk-promise:nth-child(n+3) { border-top: 1px solid rgba(90, 60, 30, 0.2); }
  .nk-promise span { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .nk-card:hover .nk-card__media { transform: none; }
}

/* Loupe des fiches produit : le zoom garde le fond de lin au lieu d'un blanc plein. */
.woocommerce-product-gallery .zoomImg { background: var(--poudre) var(--lin) 0 0 / 360px !important; }
