@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2"); }

/* ==========================================================================
   dB Artisan Coutelier — thème sombre
   Charte : Forêt #575538 · Mousse #B0AB4F · Terre #89633E · Eau #6D8C8F · Sable #E0CFB2
   ========================================================================== */

:root {
  --nuit: var(--wp--preset--color--nuit, #000000);
  --sous-bois: var(--wp--preset--color--sous-bois, #0c0c0c);
  --charbon: var(--wp--preset--color--charbon, #171717);
  --foret: var(--wp--preset--color--foret, #575538);
  --mousse: var(--wp--preset--color--mousse, #b0ab4f);
  --terre: var(--wp--preset--color--terre, #89633e);
  --eau: var(--wp--preset--color--eau, #6d8c8f);
  --sable: var(--wp--preset--color--sable, #e0cfb2);
  --creme: var(--wp--preset--color--sable, #e0cfb2);

  --muted: rgba(224, 207, 178, .62);
  --line: rgba(224, 207, 178, .13);
  --line-strong: rgba(224, 207, 178, .28);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(90px, 11vw, 170px);
}

html { scroll-behavior: smooth; background: var(--nuit); }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; }
.db-loading body { overflow: hidden; }
::selection { background: var(--mousse); color: var(--nuit); }

/* grain discret sur tout le site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 998;
  opacity: .05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }

/* ---------- Typographie ---------- */

h1, h2 { text-wrap: balance; }

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 800;
  color: var(--mousse);
}

.db-section h2,
.db-process h2,
.db-pagehero h1 {
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin-block: 0 2rem;
}

.is-style-surtitre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: 1.4rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--mousse);
}

.is-style-surtitre::before {
  content: "";
  flex: 0 0 16px;
  height: 28px;
  background: url("../img/feuille-mousse.png") center / contain no-repeat;
  rotate: -18deg;
}

.is-style-surtitre::after {
  content: "";
  flex: 0 0 36px;
  height: 1px;
  background: currentColor;
  opacity: .5;
  order: -1;
}

.db-lead { max-width: 560px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; color: var(--sable); }

.db-section__head { gap: 24px 60px; margin-bottom: clamp(40px, 5vw, 70px); }
.db-section__head h2 { margin-bottom: 0; }
.db-section__intro { max-width: 420px; margin: 0; color: var(--muted); }

/* ---------- Boutons ---------- */

.wp-block-button__link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .3s var(--ease);
}

.wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--sable);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}

.wp-block-button__link:hover::before { transform: translateY(0); }

.wp-block-button:not(.is-style-ghost) .wp-block-button__link::after {
  content: "→";
  display: inline-block;
  margin-left: 12px;
  transition: transform .4s var(--ease);
}

.wp-block-button__link:hover::after { transform: translateX(5px); }

.is-style-mousse .wp-block-button__link,
.is-style-mousse .wp-block-button__link:hover { background: var(--mousse); color: var(--nuit); }

.is-style-ghost .wp-block-button__link { background: transparent; border-color: var(--line-strong); color: var(--sable); }
.is-style-ghost .wp-block-button__link:hover { background: transparent; border-color: var(--sable); color: var(--nuit); }

.is-style-lien .wp-block-button__link,
.is-style-lien .wp-block-button__link:hover {
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--mousse);
  border-radius: 0;
  background: transparent;
  color: var(--mousse);
}

.is-style-lien .wp-block-button__link::before { display: none; }

/* ---------- Styles de groupe et d'image ---------- */

.is-style-fond-sous-bois { background: var(--sous-bois); }
.is-style-fond-foret { background: var(--foret); }
.is-style-fond-sable { background: var(--sable); color: var(--nuit); }
.is-style-fond-sable :is(h1, h2, h3) { color: var(--nuit); }
.is-style-fond-sable :is(h1, h2, h3) em { color: var(--terre); }
.is-style-arrondi img { border-radius: var(--radius); }

/* ---------- Bandeau code promo ---------- */

.db-promo {
  position: relative;
  z-index: 101;
  background: var(--mousse);
  color: var(--nuit);
  overflow: hidden;
  animation: promoIn .9s var(--ease) both;
}

.db-promo[hidden] { display: none; }

.db-promo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 9px 56px 9px var(--gutter);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.db-promo p { margin: 0; }
.db-promo__leaf { height: 26px; width: auto; filter: brightness(.25); animation: sway 6s ease-in-out infinite; }

.db-promo__code {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 5px 4px 14px;
  border: 1.5px dashed var(--nuit);
  border-radius: 100px;
  background: rgba(243, 236, 224, .3);
  color: inherit;
  font: inherit;
  font-weight: 800;
  letter-spacing: .14em;
  cursor: pointer;
  overflow: hidden;
  transition: background .3s;
}

.db-promo__code:hover { background: rgba(243, 236, 224, .55); }

.db-promo__code::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 3.5s ease-in-out infinite 1s;
}

.db-promo__code small {
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--nuit);
  color: var(--sable);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.db-promo__until { font-weight: 500; }
.db-promo__count { margin-left: 4px; font-weight: 700; }
.db-promo__count:not(:empty)::before { content: "· "; }

.db-promo__close {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.db-promo__close:hover { background: rgba(18, 19, 9, .12); }

@keyframes promoIn { from { transform: translateY(-100%); } }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------- Écran de chargement ---------- */

.db-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  background: var(--nuit);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
}

.db-loading .db-loader { display: grid; }
.db-loader-out .db-loader { clip-path: inset(0 0 100% 0); }

.db-loader__inner { position: relative; display: grid; place-items: center; width: 140px; height: 200px; }
.db-loader__leaf { position: absolute; height: 100%; width: auto; opacity: .25; animation: spin 3s linear infinite; }
.db-loader__logo { position: relative; width: 90px; animation: pulse 1.4s ease-in-out infinite; }

.db-loader__bar {
  position: absolute;
  bottom: 12vh;
  left: 50%;
  width: 160px;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
  overflow: hidden;
}

.db-loader__bar span {
  display: block;
  height: 100%;
  background: var(--mousse);
  transform-origin: left;
  animation: loadBar 1.4s var(--ease) forwards;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
@keyframes loadBar { from { transform: scaleX(0); } }
@keyframes sway { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-14px); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(4deg); } }


/* ---------- En-tête ---------- */

.db-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform .6s var(--ease);
}

.admin-bar .db-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
.db-header-wrap.is-hidden { transform: translateY(-110%); }

.db-header {
  padding: 16px var(--gutter);
  background: rgba(18, 19, 9, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s;
}

.db-overlay .db-header-wrap:not(.is-scrolled) .db-header {
  padding-top: 26px;
  padding-bottom: 26px;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.db-overlay .db-main { margin-top: calc(-1 * var(--db-header-h, 98px)); }

.db-brand { gap: 14px; }
.db-brand__logo { margin: 0; }
.db-brand__logo img { transition: width .5s var(--ease); }
.db-header-wrap.is-scrolled .db-brand__logo img { width: 48px !important; }

.db-brand__name {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.db-brand__name a { color: var(--sable); text-decoration: none; }

.db-header__right { gap: clamp(14px, 2.2vw, 34px); }
.db-nav { gap: clamp(18px, 2.8vw, 44px); }

.db-nav .wp-block-navigation-item__content {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sable);
}

.db-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--mousse);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.db-nav .wp-block-navigation-item__content:hover::after,
.db-nav .current-menu-item .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }

.db-nav .wp-block-navigation__responsive-container-open,
.db-nav .wp-block-navigation__responsive-container-close { color: var(--sable); }

.db-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--nuit) !important;
  color: var(--sable) !important;
  padding: 100px var(--gutter) 40px;
  animation: menuIn .7s var(--ease-io);
}

.db-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
.db-nav .is-menu-open .wp-block-navigation__container { gap: 14px; }
.db-nav .is-menu-open .wp-block-navigation-item__content { font-size: clamp(32px, 10vw, 54px); font-weight: 200; letter-spacing: -.02em; }

@keyframes menuIn { from { clip-path: circle(0 at calc(100% - 40px) 40px); } to { clip-path: circle(150% at calc(100% - 40px) 40px); } }

.db-header .wc-block-mini-cart__button,
.db-header .wp-block-woocommerce-customer-account a { color: var(--sable); padding: 6px; }
.db-header .wc-block-mini-cart__badge { background: var(--mousse); color: var(--nuit); border: 0; font-weight: 700; }
.db-header .wc-block-mini-cart__icon { width: 26px; height: 26px; }

/* ---------- Hero (accueil) : logo, feuilles, titre ---------- */

.db-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 150px !important;
  padding-bottom: 150px !important;
  background:
    radial-gradient(ellipse 45% 40% at 50% 36%, rgba(176, 171, 79, .14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(137, 99, 62, .22), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 20%, rgba(109, 140, 143, .18), transparent 70%),
    var(--nuit);
  overflow: hidden;
  isolation: isolate;
}

.db-hero > * { position: relative; z-index: 2; width: 100%; }

.db-hero > .db-hero__leaf {
  position: absolute;
  z-index: 1;
  width: auto;
  max-width: none !important;
  margin: 0 !important;
  pointer-events: none;
  transition: opacity 1.8s var(--ease), transform 1.8s var(--ease);
}

.db-hero__leaf img { width: 100%; height: auto; animation: sway 10s ease-in-out infinite; transform-origin: 50% 95%; }
.db-hero > .db-hero__leaf--left { left: -7%; top: 20%; width: min(19vw, 290px); rotate: -28deg; opacity: .9; }
.db-hero > .db-hero__leaf--right { right: -6%; bottom: -14%; width: min(21vw, 320px); rotate: 26deg; opacity: .9; transition-delay: .2s; }
.db-hero > .db-hero__leaf--small { right: 14%; top: 16%; width: min(6vw, 84px); rotate: 14deg; transition-delay: .4s; }
.db-hero__leaf--small img { animation-duration: 7s; animation-direction: reverse; }

.db-emblem {
  display: grid;
  place-items: center;
  width: clamp(170px, 19vw, 250px) !important;
  aspect-ratio: 1;
  margin: 0 auto 2.2rem !important;
}

.db-emblem::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: url("../img/feuille-sable-ajouree.png") center / contain no-repeat;
  opacity: .1;
  animation: spin 60s linear infinite;
}

.db-emblem > .db-emblem__logo { position: relative; width: 54%; margin: 0 !important; }
.db-emblem__logo img { width: 100%; height: auto; }

/* le texte de l'anneau se modifie dans l'éditeur ; sur le site, il est dessiné en cercle */
.db-js .db-emblem > .db-emblem__text { display: none; }
.db-emblem__text { margin: 0 !important; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-align: center; }

.db-emblem__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.db-emblem__ring text { font-size: 11.5px; font-weight: 600; letter-spacing: .26em; fill: var(--sable); font-family: inherit; }

.db-hero .is-style-surtitre { justify-content: center; }

.db-hero__title {
  margin: 0 0 1.6rem;
  font-size: clamp(36px, 5.6vw, 92px) !important;
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--sable);
}

.db-hero__lead { max-width: 560px; margin: 0 auto 2.4rem !important; font-weight: 300; color: var(--muted); }

.db-hero__canvas {
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  width: 100% !important;
  height: 100%;
  max-width: none !important;
  margin: 0 !important;
  pointer-events: none;
}

.db-hero__scroll {
  position: absolute !important;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: auto !important;
  margin: 0 !important;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted) !important;
  text-decoration: none;
  transform: translateX(-50%);
}

.db-hero__scroll i { position: relative; width: 1px; height: 50px; background: var(--line); overflow: hidden; }

.db-hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mousse);
  animation: scrollLine 2s var(--ease-io) infinite;
}

@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* entrée du hero */
.db-js :is(.db-hero__title, .db-pagehero h1) { opacity: 0; }
.db-js :is(.db-hero__title, .db-pagehero h1).is-split { opacity: 1; }
.db-line { display: block; overflow: hidden; padding-bottom: .05em; }
.db-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }

.db-js :is(.db-hero, .db-pagehero) :is(.is-style-surtitre, .db-hero__lead, .db-pagehero__lead, .wp-block-buttons) {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.db-js .db-emblem { opacity: 0; transform: scale(.7) rotate(-20deg); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.db-js .db-hero > .db-hero__leaf { opacity: 0; transform: translateY(80px); }

.db-ready .db-line > span,
.db-ready :is(.db-hero, .db-pagehero) :is(.is-style-surtitre, .db-hero__lead, .db-pagehero__lead, .wp-block-buttons),
.db-ready .db-emblem { opacity: 1; transform: none; }
.db-ready .db-hero > .db-hero__leaf { opacity: .9; transform: none; }

/* ---------- En-tête de page (pages intérieures) ---------- */

.db-pagehero {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 170px !important;
  padding-bottom: clamp(60px, 8vw, 110px) !important;
  background:
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(137, 99, 62, .25), transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(109, 140, 143, .16), transparent 70%),
    var(--nuit);
  overflow: hidden;
  isolation: isolate;
}

.db-pagehero--short { min-height: 50vh; }

/* conteneur flex : sans largeur, les marges automatiques centreraient le contenu */
.db-pagehero > :not(.db-pagehero__bg) { position: relative; z-index: 2; width: 100%; }

.db-pagehero::after {
  content: "";
  position: absolute;
  right: -2%;
  bottom: -16%;
  z-index: 1;
  width: min(26vw, 340px);
  aspect-ratio: 547 / 1000;
  background: url("../img/feuille-terre.png") center / contain no-repeat;
  rotate: 24deg;
  animation: sway 10s ease-in-out infinite;
  pointer-events: none;
}

.db-pagehero__canvas { position: absolute !important; inset: 0; z-index: 1 !important; width: 100% !important; height: 100%; max-width: none !important; margin: 0 !important; pointer-events: none; }

.db-pagehero > .db-pagehero__bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  max-width: none !important;
  margin: 0 !important;
}

.db-pagehero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12) translateY(var(--py, 0));
  transition: transform 2.4s var(--ease);
}

.db-ready .db-pagehero__bg img { transform: scale(1.02) translateY(var(--py, 0)); }

.db-pagehero:has(.db-pagehero__bg)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 19, 9, .92), rgba(18, 19, 9, .45)),
    linear-gradient(0deg, var(--nuit), transparent 50%);
}

.db-pagehero :is(h1, .wp-block-post-title, .wp-block-query-title) {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--creme);
}

.db-pagehero__lead { max-width: 520px; margin-top: 1.6rem !important; margin-left: 0 !important; color: var(--sable); font-weight: 300; }

/* ---------- Bandeau défilant ---------- */

.db-marquee {
  padding: 28px 0 !important;
  border-block: 1px solid var(--line);
  background: var(--nuit);
  overflow: hidden;
  white-space: nowrap;
}

.db-marquee > p {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 48px);
  font-weight: 200;
  text-align: center;
  text-transform: uppercase;
}

.db-marquee.is-built > p { display: none; }

.db-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  animation: marquee 40s linear infinite;
}

.db-marquee__track span {
  font-size: clamp(24px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--sable);
}

.db-marquee__track span:nth-of-type(even) {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--step-color, var(--mousse));
}

.db-marquee__track img { height: 40px; width: auto; opacity: .8; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.db-section {
  position: relative;
  padding-top: var(--section-y) !important;
  padding-bottom: var(--section-y) !important;
  overflow: hidden;
}

.db-deco {
  position: absolute;
  z-index: 0;
  max-width: none !important;
  margin: 0 !important;
  pointer-events: none;
  opacity: .55;
  transform: translateY(var(--py, 0)) rotate(var(--pr, 0deg));
}

.db-deco img { width: 100%; height: auto; animation: sway 12s ease-in-out infinite; }

.db-deco--a { left: -90px; bottom: -40px; width: 300px; rotate: -28deg; }
.db-deco--b { right: -90px; top: 6%; width: 280px; rotate: 32deg; }
.db-deco--c { right: -140px; top: -100px; width: 460px; rotate: 18deg; opacity: .08; }
.db-deco--d { left: -120px; top: -50px; width: 260px; rotate: -20deg; opacity: .45; }
.db-deco--e { right: -60px; bottom: -120px; width: 480px; rotate: -14deg; opacity: .12; }
.db-deco--f { right: -70px; top: 12%; width: 250px; rotate: 22deg; }
.db-deco + * { margin-block-start: 0; }
.db-section > :not(.db-deco) { position: relative; z-index: 1; }

/* photos */
.db-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--charbon); }
.db-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.db-photo--portrait img { aspect-ratio: 4 / 5; }
.db-photo--landscape img { aspect-ratio: 4 / 3; }
.db-photo img[src*="/assets/img/feuille"] { object-fit: contain; padding: 14%; opacity: .5; }
.db-photo:hover img { transform: scale(1.04); }

/* ---------- L'Artisanat ---------- */

.db-manifest { background: var(--nuit); }
.db-manifest__cols { gap: clamp(40px, 7vw, 120px); }

.db-manifest__big {
  margin: 0 0 2rem !important;
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--sable);
}

.db-manifest p:not(.db-manifest__big):not(.is-style-surtitre) { color: var(--muted); }

.db-manifest__sign {
  padding: 18px 0 18px 22px;
  border-left: 2px solid var(--terre);
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--sable) !important;
}

.db-manifest__sign em { color: var(--mousse); font-weight: 800; }

/* ---------- Création du mois ---------- */

.db-feature { background: var(--sous-bois); }
.db-woo { padding-top: clamp(50px, 6vw, 80px) !important; background: var(--nuit); }

.db-feature { padding-top: clamp(60px, 7vw, 100px) !important; padding-bottom: clamp(60px, 7vw, 100px) !important; }

.db-spotlight__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; margin-bottom: 28px; }
.db-spotlight__head .is-style-surtitre { margin: 0; }

.db-spotlight .db-spotlight__title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 300; text-transform: uppercase; }
.db-spotlight__title a { color: var(--sable); text-decoration: none; transition: color .3s; }
.db-spotlight__title a:hover { color: var(--mousse); }

.db-spotlight__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.5vw, 20px); }
.db-spotlight__gallery--1 { grid-template-columns: 1fr; max-width: 640px; }
.db-spotlight__gallery--2 { grid-template-columns: repeat(2, 1fr); }
.db-spotlight__gallery--3 { grid-template-columns: repeat(3, 1fr); }

.db-spotlight__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--charbon);
  overflow: hidden;
  transition: border-color .5s;
}

.db-spotlight__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.db-spotlight__item:hover { border-color: rgba(176, 171, 79, .6); }
.db-spotlight__item:hover img { transform: scale(1.06); }

@media (max-width: 781px) {
  .db-spotlight__gallery { grid-template-columns: repeat(2, 1fr); }
}

/* tableau des caractéristiques */
.db-specs { margin: 0; padding: 0; border-top: 1px solid var(--line); }

.db-specs__row {
  display: grid;
  grid-template-columns: minmax(120px, 40%) 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.db-specs dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.db-specs dd { margin: 0; color: var(--creme); }
.db-specs-ph { padding: 16px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 13px; }

/* ---------- Collection / boutique ---------- */

.db-collection,
.db-shop,
.db-related { background: var(--nuit); }

.db-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }

.db-filter {
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: transparent;
  color: var(--sable);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .4s, color .4s, border-color .4s;
}

.db-filter:hover { border-color: var(--sable); color: var(--creme); }
.db-filter.is-active { background: var(--mousse); border-color: var(--mousse); color: var(--nuit); }

.db-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.db-creations--related .db-grid { grid-template-columns: repeat(4, 1fr); }
.db-collection .db-grid { grid-template-columns: repeat(4, 1fr); }

.db-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sous-bois);
  overflow: hidden;
  transition: border-color .5s, box-shadow .6s var(--ease), transform .5s var(--ease), opacity 1s var(--ease);
}

.db-card:hover { border-color: rgba(176, 171, 79, .55); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); }
.db-card.is-filtered { display: none; }

.db-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charbon);
}

.db-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .7s var(--ease);
}

.db-card__img--alt { opacity: 0; }
.db-card:hover .db-card__img { transform: scale(1.06); }
.db-card:hover .db-card__img--alt { opacity: 1; }

/* reflet de lame au survol */
.db-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.db-card:hover .db-card__media::after { transform: translateX(120%); transition: transform 1.1s var(--ease); }

.db-card__media::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  width: 30px;
  aspect-ratio: 547 / 1000;
  background: url("../img/feuille-mousse.png") center / contain no-repeat;
  opacity: 0;
  transform: translateY(14px) rotate(-30deg);
  transition: opacity .5s, transform .8s var(--ease);
}

.db-card:hover .db-card__media::before { opacity: 1; transform: none; }

.db-card__ph { position: absolute; top: 18%; left: 50%; height: 64%; width: auto; opacity: .35; translate: -50% 0; }

.db-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--nuit);
  color: var(--sable);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.db-card__badge--promo { background: var(--mousse); color: var(--nuit); }
.db-card__badge--unique { background: rgba(18, 19, 9, .75); border: 1px solid var(--line-strong); }

.db-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }

.db-card__tag { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--mousse); }

.db-card__title { margin: 8px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.db-card__title a { color: var(--creme); text-decoration: none; }
.db-card__meta { margin: 0; font-size: 13px; color: var(--muted); }

.db-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.db-card__price { font-size: 18px; font-weight: 300; color: var(--sable); }
.db-card__price del { opacity: .5; font-size: 14px; margin-right: 6px; }
.db-card__price ins { text-decoration: none; color: var(--mousse); }

.db-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sable);
}

.db-card__link i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-style: normal;
  transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease);
}

.db-card:hover .db-card__link i { background: var(--mousse); border-color: var(--mousse); color: var(--nuit); transform: rotate(-45deg); }

.db-creations-empty { padding: 40px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.db-collection .wp-block-buttons { margin-top: 56px; }

.db-pagination { margin-top: 60px; display: flex; justify-content: center; gap: 8px; }

.db-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--sable);
  text-decoration: none;
}

.db-pagination .page-numbers.current,
.db-pagination .page-numbers:hover { background: var(--mousse); border-color: var(--mousse); color: var(--nuit); }

/* ---------- Savoir-faire : vignettes qui défilent doucement ---------- */

.db-process {
  position: relative;
  padding: var(--section-y) 0 !important;
  background: var(--sous-bois);
  overflow: hidden;
}

.db-process h2 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 5rem); }
.db-process__head { max-width: 1320px; margin: 0 auto clamp(40px, 5vw, 70px); padding: 0 var(--gutter); }

.db-step {
  --step-color: var(--terre);
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--step-color);
  border-radius: var(--radius);
  background: var(--nuit);
  overflow: hidden;
  transition: border-color .5s, transform .6s var(--ease);
}

.db-step:hover { transform: translateY(-6px); border-color: var(--step-color); }

.db-step[data-n="2"] { --step-color: var(--eau); }
.db-step[data-n="3"] { --step-color: var(--mousse); }
.db-step[data-n="4"] { --step-color: var(--sable); }
.db-step[data-n="5"] { --step-color: var(--foret); }

.db-step > * { margin: 0; }
.db-step > :not(.db-step__photo):not(.db-step__leaf) { padding-inline: 24px; }
.db-step > :last-child { padding-bottom: 26px; }

.db-step__photo { aspect-ratio: 4 / 3; overflow: hidden; }

.db-step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.6) brightness(.85);
  transition: filter .9s var(--ease), transform 1.2s var(--ease);
}

.db-step:hover .db-step__photo img { filter: none; transform: scale(1.05); }

.db-step > .db-step__leaf { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.db-step__leaf img { width: 100%; height: auto; animation: sway 6s ease-in-out infinite; }

.db-step__num {
  position: relative;
  margin-top: -38px !important;
  font-size: 64px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: var(--nuit);
  -webkit-text-stroke: 1.5px var(--step-color);
}

.db-step h3 { margin-top: 12px !important; font-size: 18px; font-weight: 600; text-transform: uppercase; color: var(--sable); }
.db-step p:not(.db-step__num) { margin-top: 8px !important; font-size: 14px; font-weight: 300; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .db-carousel { overflow-x: auto; }
}

/* ---------- Essences de bois ---------- */

.db-woods { background: var(--nuit); }

.db-woods__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.db-wood { position: relative; margin: 0 !important; }

.db-wood::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  aspect-ratio: 547 / 1000;
  background: url("../img/feuille-sable-ajouree.png") center / contain no-repeat;
  opacity: .8;
  transition: rotate .8s var(--ease);
}

.db-wood:hover::after { rotate: 25deg; }
.db-wood > * { margin: 0; }

.db-wood__photo {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--charbon);
  overflow: hidden;
}

.db-wood__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.5) rotate(-35deg);
  transition: transform 1.4s var(--ease);
}

.db-wood:hover .db-wood__photo img { transform: scale(1.15) rotate(-35deg); }

.db-wood h3 { margin-top: 20px; font-size: 18px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--creme); }
.db-wood p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Rééditions (bloc couleur Forêt) ---------- */

.db-custom { background: var(--foret); }
.db-custom .is-style-surtitre { color: var(--sable); }
.db-custom h2 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); color: var(--sable); }
.db-custom h2 em { color: var(--nuit); }
.db-custom .db-lead { color: rgba(224, 207, 178, .9); }
.db-custom__cols { gap: clamp(40px, 7vw, 120px); }

.db-steps-list {
  margin: 2.4rem 0 2.6rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.db-steps-list li {
  position: relative;
  padding: 16px 0 16px 64px;
  border-top: 1px solid rgba(224, 207, 178, .25);
  color: rgba(224, 207, 178, .85);
  counter-increment: step;
}

.db-steps-list li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  color: var(--mousse);
}

.db-steps-list strong { color: var(--sable); font-weight: 700; }

/* ---------- L'artisan ---------- */

.db-artisan { background: var(--nuit); }
.db-artisan__cols { gap: clamp(40px, 7vw, 120px); }

.db-quote__text {
  margin-bottom: 2rem;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--creme);
}

.db-artisan .db-quote__text + p { color: var(--muted); }

/* ---------- À propos : frise ---------- */

.db-timeline { background: var(--nuit); }

.db-timeline::before {
  content: "";
  position: absolute;
  top: var(--section-y);
  bottom: var(--section-y);
  left: 50%;
  width: 1px;
  background: var(--line);
}

.db-timeline__progress {
  position: absolute !important;
  top: var(--section-y);
  left: 50%;
  width: 1px;
  height: calc(100% - 2 * var(--section-y));
  margin: 0 !important;
  background: var(--mousse);
  transform: scaleY(0);
  transform-origin: top;
}

.db-chapter {
  position: relative;
  width: calc(50% - 60px);
  margin: 0 0 clamp(60px, 8vw, 120px) !important;
}

.db-chapter:nth-child(even) { margin-left: auto !important; }

.db-chapter::before {
  content: "";
  position: absolute;
  top: 10px;
  right: -67px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--mousse);
  border-radius: 50%;
  background: var(--nuit);
  transition: background .6s, box-shadow .6s;
}

.db-chapter:nth-child(even)::before { right: auto; left: -66px; }
.db-chapter.is-in::before { background: var(--mousse); box-shadow: 0 0 0 6px rgba(176, 171, 79, .15); }

.db-chapter > * { margin: 0; }
.db-chapter__when { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mousse); }
.db-chapter h3 { margin: 10px 0 14px; font-size: clamp(24px, 2.6vw, 36px); font-weight: 300; letter-spacing: -.02em; text-transform: uppercase; color: var(--creme); }
.db-chapter p:not(.db-chapter__when) { color: var(--muted); }
.db-chapter__photo { margin-top: 26px !important; }
.db-chapter__photo img { aspect-ratio: 4 / 3; }

.db-about-gallery { background: var(--sous-bois); }
.db-mosaic { gap: clamp(16px, 2vw, 28px); margin-bottom: 50px !important; }

/* ---------- Contact ---------- */

.db-contact { background: var(--nuit); padding-top: clamp(60px, 7vw, 100px) !important; }
.db-contact__cols { gap: clamp(40px, 7vw, 110px); }

.db-contact__info { margin: 2.2rem 0; padding: 0; list-style: none; }

.db-contact__info li {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--creme);
}

.db-contact__info strong { padding-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mousse); }

.db-note {
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--mousse);
  border-radius: var(--radius);
  background: var(--sous-bois);
}

.db-note h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--creme); }
.db-note p { margin: 0; font-size: 15px; color: var(--muted); }

.db-form {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sous-bois);
}

/* ---------- Formulaires (Jetpack, WooCommerce) ---------- */

:is(.db-form, .woocommerce, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .wc-block-components-form) label,
.grunion-field-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

:is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], textarea, select):not(.wc-block-components-text-input input):not(.wc-blocks-components-select__select) {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--nuit);
  color: var(--creme);
  font: inherit;
  outline: none;
  transition: border-color .4s, box-shadow .4s;
}

:is(input, textarea, select):focus { border-color: var(--mousse) !important; box-shadow: 0 0 0 3px rgba(176, 171, 79, .18) !important; }

.wc-block-components-text-input input,
.wc-blocks-components-select__select,
.wc-block-components-textarea {
  border-color: var(--line-strong) !important;
  background: var(--nuit) !important;
  color: var(--creme) !important;
}

.wc-block-components-text-input label,
.wc-blocks-components-select__label { color: var(--muted) !important; }

:is(.db-form, .woocommerce) :is(button[type="submit"], .button),
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  padding: 1.05rem 1.9rem;
  border: 0 !important;
  border-radius: 100px !important;
  background: var(--mousse) !important;
  color: var(--nuit) !important;
  font: inherit;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .4s, transform .3s var(--ease);
}

:is(.db-form, .woocommerce) :is(button[type="submit"], .button):hover,
.wc-block-components-button:not(.is-link):hover { background: var(--sable) !important; }

/* ---------- Fiche produit ---------- */

.db-product__top {
  padding-top: clamp(40px, 5vw, 70px) !important;
  padding-bottom: clamp(60px, 7vw, 100px) !important;
  background: radial-gradient(ellipse 60% 70% at 20% 0%, rgba(176, 171, 79, .08), transparent 70%), var(--nuit);
}

.db-product .woocommerce-breadcrumb,
.db-product .wc-block-breadcrumbs { margin-bottom: 30px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.db-product .woocommerce-breadcrumb a { color: var(--sable); text-decoration: none; }

.db-product__cols { gap: clamp(30px, 6vw, 90px); }

.db-product__gallery .woocommerce-product-gallery { margin: 0 !important; }
.db-product__gallery .woocommerce-product-gallery__wrapper,
.db-product__gallery .flex-viewport { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--charbon); }
.db-product__gallery .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px !important; }
.db-product__gallery .flex-control-thumbs li { width: 80px !important; }
.db-product__gallery .flex-control-thumbs img { display: block; width: 100%; height: auto; }
.db-product__gallery .flex-control-thumbs img { border: 1px solid var(--line); border-radius: 10px; opacity: .5; transition: opacity .3s; }
.db-product__gallery .flex-control-thumbs img.flex-active,
.db-product__gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--mousse); }
.db-product__gallery .woocommerce-product-gallery__trigger { background: var(--nuit) !important; }

@media (min-width: 782px) {
  .db-product__summary { position: sticky; top: calc(var(--db-header-h, 90px) + 20px); align-self: flex-start; }
}

.db-product__cat { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.db-product__cat a { color: var(--mousse); text-decoration: none; }

.db-product__title {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--creme);
}

.db-product__price,
.db-product__price .price,
.db-product .wc-block-components-product-price { font-size: clamp(24px, 2.4vw, 34px) !important; font-weight: 300 !important; color: var(--mousse) !important; }

.db-product__excerpt { color: var(--muted); }
.db-product .db-specs { margin: 26px 0; }
.db-product .stock { font-size: 13px; color: var(--mousse); }
.db-product .stock.out-of-stock { color: #d98e6b; }

.db-product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.db-product form.cart .quantity input { width: 80px; text-align: center; }

.db-product form.cart .single_add_to_cart_button {
  flex: 1;
  min-height: 54px;
  border: 0;
  border-radius: 100px;
  background: var(--mousse);
  color: var(--nuit);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .4s;
}

.db-product form.cart .single_add_to_cart_button:hover { background: var(--sable); }

.db-reassure { margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.db-reassure li { position: relative; padding: 5px 0 5px 28px; font-size: 14px; color: var(--muted); }
.db-reassure li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 1px; background: var(--mousse); }

.db-product__details { background: var(--sous-bois); padding-top: clamp(60px, 7vw, 100px) !important; padding-bottom: clamp(60px, 7vw, 100px) !important; }
.db-product__details .wc-tabs { display: flex; gap: 8px; margin: 0 0 30px !important; padding: 0 !important; border: 0 !important; list-style: none; }
.db-product__details .wc-tabs::before, .db-product__details .wc-tabs li::before, .db-product__details .wc-tabs li::after { display: none !important; }
.db-product__details .wc-tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }

.db-product__details .wc-tabs li a {
  display: block;
  padding: 10px 20px !important;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--sable) !important;
  font-size: 11px;
  font-weight: 600 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}

.db-product__details .wc-tabs li.active a { background: var(--mousse); border-color: var(--mousse); color: var(--nuit) !important; }
.db-product__details .woocommerce-Tabs-panel h2 { font-size: 1.4rem; font-weight: 300; }
.db-product__details table.shop_attributes { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.db-product__details table.shop_attributes :is(th, td) { padding: 13px 0; border-bottom: 1px solid var(--line); background: none !important; text-align: left; font-style: normal; }
.db-product__details table.shop_attributes th { width: 40%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.db-product__details table.shop_attributes td p { margin: 0; }
.db-product__details #reviews .comment-reply-title { font-weight: 300; }

.db-related h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); }

/* ---------- WooCommerce : panier, commande, compte ---------- */

.woocommerce-page:not(.single-product) .wp-site-blocks > main,
.woocommerce-cart .wp-site-blocks > main,
.woocommerce-checkout .wp-site-blocks > main,
.woocommerce-account .wp-site-blocks > main {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(70px, 9vw, 130px);
}

:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  text-transform: uppercase;
}

.woocommerce table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content table {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  border-collapse: separate;
  overflow: hidden;
}

.woocommerce table.shop_table :is(th, td) { border-color: var(--line) !important; color: var(--sable); }
.woocommerce table.shop_table img { border-radius: 8px; }

.wc-block-components-sidebar-layout .wc-block-components-main,
.wc-block-components-sidebar { color: var(--sable); }

.wc-block-components-totals-wrapper,
.wc-block-cart-items,
.wc-block-cart-items td,
.wc-block-cart-items th,
.wc-block-components-panel,
.wc-block-components-checkout-step { border-color: var(--line) !important; }

.wc-block-components-order-summary,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-sidebar .wc-block-components-panel { background: var(--sous-bois); border-radius: var(--radius); }

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option { border-color: var(--line) !important; }
.wc-block-components-radio-control__input { background: var(--nuit) !important; border-color: var(--line-strong) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--mousse) !important; }

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { background: var(--nuit); border-color: var(--line-strong); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--mousse); }

.wc-block-components-quantity-selector { border-color: var(--line-strong) !important; }
.wc-block-components-quantity-selector input { color: var(--creme) !important; background: transparent !important; }
.wc-block-components-quantity-selector__button { color: var(--sable) !important; }

.wc-block-components-product-name,
.wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item { color: var(--creme) !important; }

.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--line-strong) !important;
  border-left: 3px solid var(--mousse) !important;
  border-radius: 10px !important;
  background: var(--sous-bois) !important;
  color: var(--sable) !important;
}

.wc-block-components-notice-banner > svg { background: var(--mousse) !important; fill: var(--nuit) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--mousse) !important; }

.wc-block-components-drawer,
.wc-block-mini-cart__drawer .components-modal__content { background: var(--sous-bois) !important; color: var(--sable) !important; }
.wc-block-mini-cart__title, .wc-block-mini-cart__footer { color: var(--creme); border-color: var(--line) !important; }

.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--sable); text-decoration: none; }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--mousse); }

/* ---------- Pages simples (CGV, mentions…) ---------- */

.db-content { padding-top: clamp(50px, 6vw, 80px); padding-bottom: clamp(70px, 9vw, 130px); color: var(--sable); }
.db-content :is(h2, h3) { margin-top: 2.6em; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--creme); }
.db-content a { text-decoration: underline; text-underline-offset: 3px; }

.db-posts .wp-block-post { margin-bottom: 30px; }
.db-posts .wp-block-post-title a { color: var(--creme); text-decoration: none; }

/* ---------- Pied de page : l'empreinte de la nature ---------- */

.db-footer {
  position: relative;
  padding-top: clamp(70px, 8vw, 110px) !important;
  padding-bottom: 24px !important;
  background: var(--nuit);
  overflow: hidden;
  isolation: isolate;
}

/* bande des couleurs de la charte */
.db-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 6px;
  background: linear-gradient(90deg, #575538 0 20%, #b0ab4f 20% 40%, #89633e 40% 60%, #6d8c8f 60% 80%, #e0cfb2 80%);
}

/* photo de forêt en fond, fondue dans le noir */
.db-footer > .db-nature__bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  max-width: none !important;
  margin: 0 !important;
}

.db-nature__bg img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)); }

.db-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--nuit) 0%, rgba(0, 0, 0, .45) 22%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .92) 72%, var(--nuit) 100%);
}

.db-footer > :not(.db-nature__bg) { position: relative; z-index: 2; }
.db-footer a { color: var(--sable); text-decoration: none; transition: color .3s; }
.db-footer a:hover { color: var(--mousse); }

.db-footer__nature { padding-bottom: clamp(50px, 6vw, 80px); }
.db-footer__nature .is-style-surtitre { justify-content: center; color: var(--sable); }
.db-footer__nature > .db-nature__leaf { width: min(18vw, 90px); margin: 0 auto 1.2rem !important; }
.db-nature__leaf img { width: 100%; height: auto; animation: sway 9s ease-in-out infinite; transform-origin: 50% 95%; }
.db-footer__nature .db-lead { max-width: 640px; margin-inline: auto !important; color: var(--sable); }
.db-footer__nature .wp-block-buttons { margin-top: 2.4rem; }

.db-footer__title {
  margin: 0 0 1.6rem;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.db-footer__cols { gap: 40px; padding-block: clamp(30px, 4vw, 50px); border-top: 1px solid var(--line); }
.db-footer__logo img { transition: transform .8s var(--ease); }
.db-footer__logo:hover img { transform: rotate(-6deg) scale(1.04); }
.db-footer__tag { max-width: 340px; margin-top: 24px; color: var(--muted); }
.db-footer__label { margin: 0 0 16px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mousse); }
.db-footer__nav { gap: 8px; }
.db-footer__nav .wp-block-navigation-item__content { font-size: 15px; color: var(--sable); }

.db-footer__bottom { padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.db-footer__bottom p { margin: 0; }


/* ---------- Apparitions au défilement ---------- */

.db-js .db-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.db-js .db-reveal.is-in { opacity: 1; transform: none; }

/* le masque est sur l'image : l'élément observé ne doit pas être lui-même masqué */
.db-js .db-photo.db-reveal { opacity: 1; transform: none; }
.db-js .db-photo.db-reveal img { clip-path: inset(100% 0 0 0 round var(--radius)); transform: scale(1.3); transition: clip-path 1.5s var(--ease-io), transform 2s var(--ease); }
.db-js .db-photo.db-reveal.is-in img { clip-path: inset(0 0 0 0 round var(--radius)); transform: none; }

.db-words .w { opacity: .16; transition: opacity .4s; }
.db-words .w.is-lit { opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .db-grid, .db-creations--related .db-grid { grid-template-columns: repeat(3, 1fr); }
  .db-collection .db-grid { grid-template-columns: repeat(2, 1fr); }
  .db-woods__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .db-spotlight { grid-template-columns: 1fr; }
  .db-grid, .db-creations--related .db-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 781px) {
  .db-grid, .db-creations--related .db-grid { gap: 12px; }
  .db-card__body { padding: 14px 14px 16px; }
  .db-card__title { font-size: 15px; }
  .db-card__link span { display: none; }
  .db-process__progress { display: none; }
  .db-contact__info li { grid-template-columns: 1fr; gap: 2px; }
  .db-marquee__track img { height: 28px; }
  .db-promo__inner { padding-right: 46px; font-size: 12px; }
  .db-promo__leaf { display: none; }
  .db-header-wrap.is-hidden { transform: none; }
  .db-hero > .db-hero__leaf--left { top: 10%; width: 34vw; }
  .db-hero > .db-hero__leaf--right { width: 42vw; bottom: -4%; }
  .db-hero > .db-hero__leaf--small { display: none; }
  .db-pagehero::after { width: 34vw; opacity: .7; }
  .db-deco { opacity: .3; }
  .db-timeline::before, .db-timeline__progress { left: 6px; }
  .db-chapter, .db-chapter:nth-child(even) { width: auto; margin-left: 36px !important; }
  .db-chapter::before, .db-chapter:nth-child(even)::before { left: -36px; right: auto; }
}

@media (max-width: 480px) {
  .db-woods__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .db-wood p { display: none; }
}

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

  html { scroll-behavior: auto; }
  .db-hero__canvas { display: none; }
}


/* ==========================================================================
   Thème classique : base, mise en page, menu, WooCommerce
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--nuit);
  color: var(--sable);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--mousse); }
a:hover { color: var(--sable); }

h1, h2, h3, h4 { margin: 0 0 1rem; color: var(--sable); font-weight: 200; line-height: 1.02; letter-spacing: -.03em; }
h1 { font-size: clamp(2.6rem, 5vw, 5.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.6rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
p { margin: 0 0 1.2rem; }

.db-wrap { position: relative; width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.db-wrap--narrow { max-width: 1100px; }
.db-wrap--text { max-width: 900px; }
.db-center { text-align: center; justify-content: center; }
.db-muted { color: var(--muted); font-size: 14px; }

.db-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.db-cols--contact { grid-template-columns: 42fr 58fr; align-items: start; }
.db-mosaic { gap: clamp(16px, 2vw, 28px); margin-bottom: 50px; }

.db-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.db-section__head > .db-section__intro { margin-left: auto; }

.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 1.6rem; }

.wp-block-button__link {
  display: inline-block;
  padding: 1.05rem 1.9rem;
  border-radius: 100px;
  background: var(--mousse);
  color: var(--nuit);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}

.wp-block-button__link:hover { color: var(--nuit); }

.db-emblem { position: relative; }
.db-hero .db-wrap { text-align: center; }
.db-footer__nature { text-align: center; }

/* ---------- En-tête ---------- */

.db-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.db-header__right { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }

.db-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.db-brand__logo { width: 64px; height: auto; transition: width .5s var(--ease); }
.db-header-wrap.is-scrolled .db-brand__logo { width: 48px; }
.db-brand__name { color: var(--sable); }

.db-nav__list { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 44px); margin: 0; padding: 0; list-style: none; }

.db-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sable);
}

.db-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--mousse);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.db-nav a:hover::after,
.db-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

.db-icon-link { position: relative; display: inline-flex; padding: 6px; color: var(--sable); }
.db-icon-link:hover { color: var(--mousse); }

.db-cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--mousse);
  color: var(--nuit);
  font-size: 10px;
  font-weight: 700;
}

.db-cart-count.is-empty { display: none; }

.db-burger { display: none; position: relative; z-index: 3; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; }
.db-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--sable); transition: transform .45s var(--ease), top .45s var(--ease); }
.db-burger span:first-child { top: 17px; }
.db-burger span:last-child { top: 25px; }
.db-nav-open .db-burger span:first-child { top: 21px; transform: rotate(45deg); }
.db-nav-open .db-burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .db-burger { display: block; }
  .db-brand__name { display: none; }

  .db-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 100px var(--gutter) 40px;
    background: var(--nuit) url("../img/feuille-sable-ajouree.png") right -80px bottom -60px / 300px auto no-repeat;
    clip-path: circle(0 at calc(100% - 44px) 44px);
    transition: clip-path .8s var(--ease-io);
  }

  .db-nav-open .db-nav { clip-path: circle(150% at calc(100% - 44px) 44px); }
  .db-nav-open body { overflow: hidden; }
  .db-nav__list { flex-direction: column; align-items: flex-start; gap: 18px; }
  .db-nav a { font-size: clamp(30px, 9vw, 48px); font-weight: 200; letter-spacing: -.01em; }
}

/* ---------- Pied de page ---------- */

.db-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.db-footer__nav { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.db-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Contenu des pages (CGV, mentions…) ---------- */

.db-content-section { padding-top: clamp(50px, 6vw, 80px) !important; }
.db-content h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* ---------- Fiche produit (WooCommerce classique) ---------- */

.db-product__top { padding-top: calc(var(--db-header-h, 90px) + 30px); padding-bottom: clamp(60px, 7vw, 100px); }
.db-product .woocommerce-product-gallery { border-radius: var(--radius); overflow: hidden; }
.db-product .woocommerce-product-gallery .flex-viewport,
.db-product .woocommerce-product-gallery__wrapper { border: 1px solid var(--line); border-radius: var(--radius); background: var(--charbon); }
.db-product .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px !important; }
.db-product .flex-control-thumbs li { width: 80px !important; }
.db-product .flex-control-thumbs img { border: 1px solid var(--line); border-radius: 10px; opacity: .5; }
.db-product .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--mousse); }
.db-product .product_title { font-size: clamp(2rem, 3.8vw, 3.6rem); font-weight: 200; text-transform: uppercase; color: var(--sable); }
.woocommerce .db-product p.price,
.woocommerce .db-product span.price { font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; color: var(--mousse); }
.db-product .woocommerce-product-details__short-description { color: var(--muted); }
.db-product .product_meta { font-size: 13px; color: var(--muted); }
.db-product .product_meta a { color: var(--sable); }

.woocommerce .db-product div.product .woocommerce-tabs { clear: both; padding-top: 60px; }
.woocommerce .db-product div.product .woocommerce-tabs ul.tabs { display: flex; gap: 8px; margin: 0 0 30px; padding: 0; border: 0; }
.woocommerce .db-product div.product .woocommerce-tabs ul.tabs::before,
.woocommerce .db-product div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce .db-product div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce .db-product div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 100px; background: none; }
.woocommerce .db-product div.product .woocommerce-tabs ul.tabs li a { padding: 10px 20px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--sable); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.woocommerce .db-product div.product .woocommerce-tabs ul.tabs li.active a { background: var(--mousse); border-color: var(--mousse); color: var(--nuit); }
.woocommerce .db-product table.shop_attributes { border-top: 1px solid var(--line); }
.woocommerce .db-product table.shop_attributes :is(th, td) { padding: 13px 0; border-bottom: 1px solid var(--line); background: none !important; color: var(--sable); font-style: normal; }
.woocommerce .db-product table.shop_attributes th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.woocommerce-breadcrumb { margin-bottom: 30px !important; font-size: 12px; color: var(--muted) !important; }
.woocommerce-breadcrumb a { color: var(--sable) !important; }
.woocommerce span.onsale { background: var(--mousse); color: var(--nuit); }

/* ---------- Responsive (thème classique) ---------- */

@media (max-width: 781px) {
  .db-cols, .db-cols--contact { grid-template-columns: 1fr; }
  .db-footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .db-section__head { gap: 16px; }
}

/* ---------- Grand visuel : photo de fond ---------- */

.db-hero > .db-hero__bg {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  width: auto;
  margin: 0;
}

.db-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.08); transition: transform 2.4s var(--ease); }
.db-ready .db-hero__bg img { transform: translateY(var(--py, 0)) scale(1); }

/* voile sombre : centre plus foncé pour le logo et le titre, fondu vers le noir en bas */
.db-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 50% 48%, rgba(0, 0, 0, .78), rgba(0, 0, 0, .45) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 30%, transparent 70%, var(--nuit) 100%),
    linear-gradient(120deg, rgba(87, 85, 56, .35), rgba(137, 99, 62, .25));
}

/* ---------- L'Artisanat : photo entière, plus large ---------- */

.db-cols--wide { grid-template-columns: 1.25fr 1fr; }
.db-photo--natural img { aspect-ratio: auto; height: auto; }

@media (max-width: 781px) {
  .db-cols--wide { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ajustements : bannière plus basse, photos entières et plus grandes
   ========================================================================== */

/* ---------- Bannière ---------- */

.db-hero {
  min-height: clamp(540px, 76vh, 780px);
  padding-top: 120px !important;
  padding-bottom: 80px !important;
}

.db-emblem { width: clamp(130px, 13vw, 180px) !important; margin-bottom: 1.4rem !important; }
.db-hero__title { font-size: clamp(32px, 4.8vw, 76px) !important; margin-bottom: 1.2rem; }
.db-hero__lead { margin-bottom: 1.6rem !important; }
.db-hero > .db-hero__leaf--left { width: min(15vw, 220px); top: 22%; }
.db-hero > .db-hero__leaf--right { width: min(16vw, 240px); bottom: -10%; }
.db-hero__scroll { display: none !important; }

/* ---------- Photos entières (plus de recadrage) ---------- */

.db-photo img,
.db-photo--portrait img,
.db-photo--landscape img,
.db-chapter__photo img { aspect-ratio: auto !important; height: auto !important; object-fit: contain; }

.db-cols--wide { grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 5vw, 80px); }

/* ---------- Création du mois : une seule grande photo ---------- */

.db-spotlight { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.db-spotlight__head { display: block; margin: 0; }
.db-spotlight__head .is-style-surtitre { margin-bottom: 1rem; }
.db-spotlight .db-spotlight__title { font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1.05; }
.db-spotlight__item { aspect-ratio: auto; }
.db-spotlight__item img { height: auto; object-fit: contain; display: block; }

/* ---------- Savoir-faire : 5 vignettes fixes ---------- */

.db-process__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.db-step { flex: none; }
.db-step__photo { aspect-ratio: 4 / 3; background: var(--charbon); }
.db-step__photo img { object-fit: contain; }
.db-step > :not(.db-step__photo):not(.db-step__leaf) { padding-inline: 18px; }
.db-step__num { font-size: 52px; margin-top: -30px !important; }
.db-step h3 { font-size: 16px; }
.db-step p:not(.db-step__num) { font-size: 13px; }

/* ---------- Rééditions : moins haute ---------- */

.db-custom { padding-top: clamp(60px, 7vw, 100px) !important; padding-bottom: clamp(60px, 7vw, 100px) !important; }
.db-custom h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); margin-bottom: 1.2rem; }
.db-custom .db-lead { font-size: 16px; }
.db-custom .db-steps-list { margin: 1.4rem 0 1.6rem; }
.db-custom .db-steps-list li { padding-block: 10px; }
.db-custom .db-steps-list li::before { top: 6px; font-size: 22px; }

/* ---------- Bois de la boutique : photo entière ---------- */

.db-wood__photo { aspect-ratio: 4 / 3; }
.db-wood__photo img { object-fit: contain; transform: none; }
.db-wood:hover .db-wood__photo img { transform: scale(1.04); }

@media (max-width: 1100px) {
  .db-process__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 781px) {
  .db-spotlight, .db-cols--wide { grid-template-columns: 1fr; }
  .db-process__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .db-process__grid { grid-template-columns: 1fr; }
}

/* ---------- L'Artisanat : photo verticale entière ---------- */

.db-cols--art { grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); }
.db-cols--art .db-photo { max-width: 560px; margin-inline: auto; }

/* ---------- Rééditions : la photo occupe toute sa colonne, sans cadre ---------- */

.db-cols--custom { grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 4vw, 60px); }
.db-cols--custom .db-photo { width: 100%; border: 0; background: none; }
.db-cols--custom .db-photo img { width: 100%; height: auto; }

@media (max-width: 781px) {
  .db-cols--art, .db-cols--custom { grid-template-columns: 1fr; }
}

/* ---------- Coins arrondis posés sur les images elles-mêmes (Safari ignore sinon l'arrondi du cadre) ---------- */

.db-photo img,
.db-step__photo img,
.db-spotlight__item img,
.db-wood__photo img { border-radius: var(--radius); }

/* ---------- L'Artisanat : cadre de la photo réduit de moitié ---------- */

.db-cols--art .db-photo { background: none; }

/* ---------- Rééditions : photo plus grande ---------- */

.db-cols--custom { grid-template-columns: .85fr 1.4fr; }

/* ---------- Savoir-faire : vignettes plus grandes sur ordinateur ---------- */

@media (min-width: 1101px) {
  .db-process .db-wrap { max-width: 1640px; }
  .db-process__grid { gap: 20px; }
  .db-step h3 { font-size: 18px; }
  .db-step p:not(.db-step__num) { font-size: 14px; }
  .db-step__num { font-size: 60px; }
}

/* ---------- Boutique : section « Les matières » sur un fond distinct ---------- */

.db-shop + .db-woods {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(137, 99, 62, .38), transparent 65%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(87, 85, 56, .45), transparent 65%),
    #15120d;
}

/* ---------- À propos : bannière moins haute, cadrée sur la tête de l'artisan ---------- */

.db-pagehero--about > .db-pagehero__bg {
  inset: 70px 0 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%);
}

.db-pagehero--about .db-pagehero__bg img { object-position: 52% 0; transform: none !important; }

/* le titre reste à gauche du visage */
.db-pagehero--about h1 { max-width: 48%; font-size: clamp(2rem, 4.2vw, 4rem) !important; }
.db-pagehero--about .db-pagehero__lead { max-width: 40%; }

@media (max-width: 781px) {
  .db-pagehero--about h1, .db-pagehero--about .db-pagehero__lead { max-width: none; }
  .db-pagehero--about > .db-pagehero__bg { inset: 0; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Bannières des pages Boutique, À propos, Contact : même hauteur ---------- */

@media (min-width: 782px) {
  .db-pagehero--short { min-height: 660px; }
}

/* ---------- Panier, Mon compte, pages légales : titres longs contenus dans la même hauteur ---------- */

.db-pagehero--page h1 { max-width: 900px; font-size: clamp(2.2rem, 4.6vw, 4.4rem) !important; }

/* ---------- Formulaire de contact : bouton centré et message de remerciement ---------- */

.db-form .contact-submit,
.db-form .wp-block-jetpack-button,
.db-form .wp-block-button { text-align: center; justify-content: center; margin-inline: auto; }

.db-form .contact-form-submission { text-align: center; padding: clamp(20px, 3vw, 40px) 0; }

.db-form .contact-form-submission::before {
  content: "";
  display: block;
  width: 46px;
  height: 84px;
  margin: 0 auto 1.4rem;
  background: url("../img/feuille-mousse.png") center / contain no-repeat;
  animation: sway 6s ease-in-out infinite;
}

.db-form .contact-form-submission h4 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 200;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--sable);
}

.db-form .contact-form-submission p { color: var(--muted); }
.db-form .contact-form-submission .go-back-message { margin-bottom: 1.4rem; }
.db-form .contact-form-submission .go-back-message a { color: var(--mousse); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

/* ---------- Photos : plus de fond gris autour des images ---------- */

.db-chapter__photo,
.db-cols--art .db-photo,
.db-cols--custom .db-photo { background: none; }

.db-chapter__photo img { width: 100%; }

/* ---------- À propos : bannière un peu plus grande sur ordinateur ---------- */

@media (min-width: 782px) {
  .db-pagehero--short.db-pagehero--about { min-height: 760px; }
}

/* ---------- À propos : carrousel de photos qui défile doucement ---------- */

.db-about-gallery { padding-top: clamp(60px, 7vw, 100px) !important; }

.db-gallery {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 50px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.db-gallery__track { display: flex; gap: 18px; width: max-content; }
.db-gallery.is-looping .db-gallery__track { animation: dbGallery var(--db-gallery-duration, 60s) linear infinite; }
.db-gallery.is-looping:hover .db-gallery__track { animation-play-state: paused; }

@keyframes dbGallery { to { transform: translateX(-50%); } }

.db-gallery__item { flex: 0 0 auto; margin: 0; }

.db-gallery__item img {
  display: block;
  width: auto;
  height: clamp(200px, 26vw, 340px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(.85);
  transition: transform .8s var(--ease), filter .8s var(--ease);
}

.db-gallery__item:hover img { transform: scale(1.03); filter: none; }

@media (prefers-reduced-motion: reduce) {
  .db-gallery { overflow-x: auto; }
}

/* ---------- Formulaire de contact ---------- */

/* message de remerciement caché tant que le formulaire n'est pas envoyé
   (règle de Jetpack, dont la feuille de style n'est pas chargée) */
.contact-form-ajax-submission:not(.submission-success),
.contact-form.submission-success { display: none !important; }

.db-form { padding: clamp(24px, 3vw, 40px); }
.db-form .grunion-field-wrap { margin-bottom: 16px; }
.db-form textarea { height: 150px !important; min-height: 120px; resize: vertical; }
.db-form .grunion-label-required { margin-left: 6px; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .7; }

/* le bouton sort de son paragraphe (Jetpack y place des blocs) : on le centre directement */
.db-form form { display: flex; flex-direction: column; }
.db-form form > button[type="submit"],
.db-form .contact-submit button[type="submit"],
.db-form .wp-block-jetpack-button { align-self: center; margin: 10px auto 0; }
.db-form .contact-submit:empty { display: none; }

/* ---------- Fiche produit : formulaire d'avis ---------- */

.woocommerce #reviews #comments ol.commentlist { padding: 0; }
.woocommerce #reviews .woocommerce-noreviews { color: var(--muted); }

.woocommerce #review_form #respond {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sous-bois);
}

.woocommerce #review_form #respond .comment-reply-title {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--sable);
}

.woocommerce #review_form #respond .comment-notes { font-size: 13px; color: var(--muted); }
.woocommerce #review_form #respond p { margin-bottom: 16px; }
.woocommerce #review_form #respond label { display: block; margin-bottom: 6px; }
.woocommerce #review_form #respond textarea { height: 150px; min-height: 120px; }
.woocommerce #review_form #respond .comment-form-cookies-consent label { display: inline; text-transform: none; letter-spacing: 0; font-size: 13px !important; }

/* étoiles de notation aux couleurs de la charte */
.woocommerce #review_form #respond p.stars a { color: var(--mousse); }
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before { color: var(--mousse); }

/* bouton « Soumettre » centré, comme « Ajouter au panier » */
.woocommerce #review_form #respond .form-submit { margin: 24px 0 0; text-align: center; }

.woocommerce #review_form #respond .form-submit input#submit {
  min-height: 54px;
  padding: 0 2.6rem;
  border: 0;
  border-radius: 100px;
  background: var(--mousse);
  color: var(--nuit);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .4s;
}

.woocommerce #review_form #respond .form-submit input#submit:hover { background: var(--sable); color: var(--nuit); }

/* étoiles de notation en caractères ★ / ☆ (la police d'icônes de WooCommerce n'est pas toujours chargée) ;
   même logique que WooCommerce : survol et note choisie remplissent les étoiles jusqu'à celle visée */
.woocommerce #review_form #respond p.stars a,
.woocommerce #review_form #respond p.stars a:hover { width: 1.4em; height: 1.4em; margin-right: 4px; text-decoration: none; }

.woocommerce #review_form #respond p.stars a::before {
  content: "☆";
  font-family: inherit;
  font-size: 1.5em;
  line-height: 1;
  color: var(--mousse);
}

.woocommerce #review_form #respond p.stars:hover a::before,
.woocommerce #review_form #respond p.stars.selected a.active::before,
.woocommerce #review_form #respond p.stars.selected a:not(.active)::before { content: "★"; }

.woocommerce #review_form #respond p.stars:hover a:hover ~ a::before,
.woocommerce #review_form #respond p.stars.selected a.active ~ a::before { content: "☆"; }

.woocommerce .star-rating { font-family: inherit; width: 5.6em; letter-spacing: .12em; }
.woocommerce .star-rating::before { content: "☆☆☆☆☆"; font-family: inherit; }
.woocommerce .star-rating span::before { content: "★★★★★"; font-family: inherit; }

/* ==========================================================================
   Version mobile — à garder EN DERNIER : ces règles doivent l'emporter sur
   les réglages ordinateur ajoutés plus haut.
   ========================================================================== */

@media (max-width: 781px) {
  /* toutes les mises en page à 2 colonnes s'empilent */
  .db-cols,
  .db-cols--art,
  .db-cols--wide,
  .db-cols--custom,
  .db-cols--contact,
  .db-spotlight { grid-template-columns: 1fr !important; gap: 32px; }

  /* Rééditions : texte puis photo pleine largeur, bouton sur une ligne */
  .db-custom h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .db-custom .db-lead { font-size: 15px; }
  .db-cols--custom .db-photo { max-width: none; }
  .db-custom .wp-block-button__link { white-space: nowrap; }

  /* Boutique : filtres sur une seule ligne qui défile au doigt */
  .db-filters {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter)) 28px;
    padding: 2px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .db-filters::-webkit-scrollbar { display: none; }
  .db-filter { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }

  /* À propos : frise sans décalage, photos centrées sur toute la largeur */
  .db-timeline::before,
  .db-timeline__progress,
  .db-chapter::before { display: none !important; }

  .db-chapter,
  .db-chapter:nth-child(even) {
    width: auto !important;
    margin: 0 0 48px !important;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .db-chapter__photo { width: 100%; margin-inline: auto !important; }
  .db-mosaic .db-photo { margin-inline: auto; }

  /* Contact : feuille décorative discrète derrière les coordonnées */
  .db-contact .db-deco { opacity: .12; }

  /* Pied de page centré */
  .db-footer__cols { text-align: center; justify-items: center; }
  .db-footer__logo { display: inline-block; }
  .db-footer__logo img { margin-inline: auto; }
  .db-footer__tag { margin-inline: auto; }
  .db-footer__nav { justify-items: center; }
  .db-footer__bottom { flex-direction: column; align-items: center; text-align: center; }

  /* titres centrés */
  .db-section h2,
  .db-pagehero h1,
  .db-process h2,
  .db-footer__title,
  .db-spotlight__title,
  .db-chapter h3,
  .db-chapter__when,
  .db-pagehero__lead,
  .db-section__intro { text-align: center; }

  .is-style-surtitre { justify-content: center; }
  .db-section__head { flex-direction: column; align-items: center; }
  .db-section__head > .db-section__intro { margin-left: 0; }
  .db-pagehero__lead { margin-inline: auto !important; }
  .wp-block-buttons { justify-content: center; }
}
