.g2dh-home, .g2dh-faq {
  --g2dh-ink: #102e40;
  --g2dh-accent: #00698c;
  --g2dh-blue: #32beeb;
  --g2dh-paper: #f3f8fa;
  --g2dh-line: #d7e5ec;
  --g2dh-text: #264657;
  --g2dh-radius: 14px;
}

.g2dh-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.1vw, 28px);
  padding-block: clamp(22px, 4vw, 56px);
}

.g2dh-categories > .g2da-anchor { grid-column: 1 / -1; margin-bottom: calc(-1 * clamp(16px, 2.1vw, 28px)); }
.g2dh-categories > section.l-section { width: 100%; min-width: 0; padding: 0 !important; }
.g2dh-categories > section.l-section > .l-section-h,
.g2dh-categories > section.l-section > .l-section-h > .g-cols { width: 100%; height: 100%; margin-inline: 0; }
.g2dh-categories .g2dh-banner.wpb_column {
  display: flex;
  flex-direction: column;
  min-height: clamp(390px, 38vw, 530px) !important;
  border: 1px solid var(--g2dh-line);
  border-radius: var(--g2dh-radius) !important;
  overflow: hidden;
}
.g2dh-new-category .g2dh-banner {
  background: #102e40 var(--g2dh-category-image) no-repeat center / cover;
}
.g2dh-new-category[data-category="packaging"] {
  --g2dh-category-image: url("https://www.gravure2d3d.com/wp-content/uploads/2026/05/packaging-emballage-sur-mesure.jpg");
}
.g2dh-new-category[data-category="medailles"] {
  --g2dh-category-image: url("https://www.gravure2d3d.com/wp-content/uploads/2026/05/medailles-personnalisees-sur-mesure.jpg");
}
.g2dh-banner > .vc_column-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  flex: 1;
  padding: 0 !important;
  background: linear-gradient(180deg, transparent 20%, #081a2470 45%, #081a24f5 100%);
}
.g2dh-banner > .vc_column-inner > .w-vwrapper,
.g2dh-banner > .vc_column-inner > .wpb_text_column {
  margin: 0 !important;
  padding: clamp(16px, 2.1vw, 28px) !important;
  background: transparent !important;
  color: #fff !important;
  text-align: left;
}
.g2dh-banner > .vc_column-inner > .w-vwrapper:empty { display: none; }
.g2dh-banner .wpb_wrapper h2 {
  color: #fff !important;
  font-size: clamp(1.35rem, 2.45vw, 2.2rem) !important;
  line-height: 1.15;
  letter-spacing: -.018em;
  margin: 0 0 .55rem;
}
.g2dh-banner .wpb_wrapper p { margin: .45rem 0; color: #f0f7f9; line-height: 1.45; }
.g2dh-banner a.w-btn,
.g2dh-banner > .vc_column-inner > .wpb_text_column a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  width: fit-content;
  margin-top: .35rem;
  padding: .58rem .9rem !important;
  background: var(--g2dh-accent) !important;
  color: #fff !important;
  border-radius: 7px !important;
  font-size: .9rem !important;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  text-decoration: none;
}
.g2dh-banner .w-btn-label { white-space: normal; }
.g2dh-banner a.w-btn:hover,
.g2dh-banner > .vc_column-inner > .wpb_text_column a:hover { background: #00516c !important; }
.g2dh-banner a:focus-visible { outline: 3px solid var(--g2dh-blue); outline-offset: 3px; }

main.g2dh-home .g2dh-editorial,
main.g2dh-home .g2dh-contact,
main.g2dh-home .g2dh-projects,
main.g2dh-home .g2dh-portfolio { padding-block: clamp(18px, 2.8vw, 38px); }

.g2dh-editorial > .l-section-h,
.g2dh-contact > .l-section-h,
.g2dh-portfolio > .l-section-h {
  padding: clamp(20px, 3.2vw, 42px);
  border: 1px solid var(--g2dh-line);
  border-radius: var(--g2dh-radius);
  background: var(--g2dh-paper);
}
.g2dh-contact > .l-section-h { background: linear-gradient(105deg, #f6fbfd, #ebf8fd); }
.g2dh-editorial .wpb_text_column { max-width: 920px; margin-inline: auto; color: var(--g2dh-text); }
.g2dh-editorial p { line-height: 1.65; }
.g2dh-home .g2dh-editorial h2,
.g2dh-home .g2dh-contact h2,
.g2dh-home .g2dh-projects h2,
.g2dh-faq h2 {
  color: var(--g2dh-ink) !important;
  font-size: clamp(1.52rem, 2.65vw, 2.22rem) !important;
  line-height: 1.16;
  letter-spacing: -.024em;
  margin-bottom: .75rem;
}
.g2dh-home .g2dh-editorial h2:first-child::before,
.g2dh-faq h2::before {
  display: block;
  content: "";
  width: 52px;
  height: 4px;
  border-radius: 6px;
  background: var(--g2dh-blue);
  margin-bottom: 14px;
}
.g2dh-editorial a, .g2dh-contact a, .g2dh-faq a { color: var(--g2dh-accent); text-underline-offset: .18em; }
.g2dh-portfolio .w-gallery-item-img { border-radius: 9px; overflow: hidden; }
.g2dh-proof .wpb_text_column > .wpb_wrapper > p { color: var(--g2dh-ink); }
.g2dh-contact .l-section { background: transparent !important; }

main .g2dh-faq { padding-block: clamp(26px, 5vw, 72px); }
.g2dh-faq-card {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(18px, 4vw, 46px);
  border: 1px solid var(--g2dh-line);
  border-radius: var(--g2dh-radius);
  background: var(--g2dh-paper);
}
.g2dh-faq h2 { margin: 0 0 1.2rem; }
.g2dh-faq details { border-top: 1px solid var(--g2dh-line); }
.g2dh-faq details:last-child { border-bottom: 1px solid var(--g2dh-line); }
.g2dh-faq summary { padding: .9rem .25rem; color: var(--g2dh-accent); font-weight: 700; cursor: pointer; }
.g2dh-faq summary:focus-visible, .g2dh-faq a:focus-visible { outline: 3px solid var(--g2dh-accent); outline-offset: 3px; }
.g2dh-answer { padding: 0 .25rem 1rem; color: var(--g2dh-text); }
.g2dh-answer p { margin: 0; line-height: 1.6; }
.g2dh-answer a { display: inline-block; margin-top: .4rem; font-weight: 700; text-decoration: underline; }

@media (max-width: 740px) {
  .g2dh-categories { grid-template-columns: minmax(0, 1fr); }
  .g2dh-categories .g2dh-banner.wpb_column { min-height: clamp(345px, 100vw, 465px) !important; }
}
