.g2dip {
    --g2dip-ink: #112f40;
    --g2dip-muted: #415f6e;
    --g2dip-blue: #006780;
    --g2dip-line: #d6e5eb;
    --g2dip-pale: #eff7fa;
    --g2dip-radius: 14px;
    color: var(--g2dip-ink);
}
.g2dip .g2dip-wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.g2dip .g2dip-wrap h1, .g2dip .g2dip-wrap h2, .g2dip .g2dip-wrap h3 { line-height: 1.15; letter-spacing: -.024em; }
.g2dip .g2dip-wrap img { display: block; max-width: 100%; }
.g2dip .g2dip-wrap :focus-visible, .g2dip-dialog :focus-visible { outline: 3px solid #0787ab; outline-offset: 3px; }
.g2dip-catalogue { padding-bottom: 2rem; }
.g2dip .g2dip-crumb { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0; color: var(--g2dip-muted); font-size: .85rem; }
.g2dip .g2dip-crumb a { color: var(--g2dip-blue); }
.g2dip .g2dip-line { width: 40px; height: 4px; border-radius: 10px; background: #38b7d6; margin-bottom: 1.05rem; }
.g2dip .g2dip-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .55rem .88rem;
    border: 1px solid transparent; border-radius: 7px; background: var(--g2dip-blue); color: white;
    text-align: center; font-weight: 700; font-size: .9rem; line-height: 1.3; text-decoration: none;
}
.g2dip .g2dip-button:hover { background: #054d61; color: white; }
.g2dip .g2dip-secondary { background: white; border-color: #9dbfcf; color: var(--g2dip-blue); }
.g2dip .g2dip-secondary:hover { background: var(--g2dip-pale); color: var(--g2dip-blue); }
.g2dip .g2dip-modeles { margin-top: 2.35rem; }
.g2dip .g2dip-modeles > p { color: var(--g2dip-muted); margin: .5rem 0 1rem; }
.g2dip .g2dip-modeles h2, .g2dip .g2dip-panel h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin: 0 0 .45rem; padding: 0; color: var(--g2dip-ink); }
.g2dip .g2dip-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.g2dip .g2dip-card { display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--g2dip-line); border-radius: var(--g2dip-radius); }
.g2dip .g2dip-card-image { display: block; overflow: hidden; background: #eff3f4; }
.g2dip .g2dip-card-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .2s; }
.g2dip .g2dip-card-image:hover img { transform: scale(1.03); }
.g2dip .g2dip-card-content { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.1rem; }
.g2dip .g2dip-card h3 { margin: 0; padding: 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--g2dip-ink); }
.g2dip .g2dip-card p { flex: 1; margin: .45rem 0 .8rem; font-size: .93rem; color: var(--g2dip-muted); }
.g2dip .g2dip-card-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: .7rem; border-top: 1px solid var(--g2dip-line); font-size: .9rem; }
.g2dip .g2dip-card-action strong { color: var(--g2dip-blue); }

.g2dip .g2dip-product { padding-bottom: 2.5rem; }
.g2dip .g2dip-product-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: 1.35rem; align-items: start; }
.g2dip .g2dip-main-photo { position: relative; display: block; border-radius: var(--g2dip-radius); background: #e9eff1; overflow: hidden; cursor: zoom-in; }
.g2dip .g2dip-main-photo img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: contain; }
.g2dip .g2dip-main-photo span { position: absolute; right: 10px; bottom: 10px; padding: .25rem .55rem; border-radius: 5px; background: #112f40ee; color: white; font-size: .77rem; }
.g2dip .g2dip-thumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.g2dip .g2dip-thumbs a { overflow: hidden; border: 2px solid var(--g2dip-line); border-radius: 7px; }
.g2dip .g2dip-thumbs a[aria-current="true"] { border-color: var(--g2dip-blue); }
.g2dip .g2dip-thumbs img { width: 76px; height: 62px; object-fit: cover; }
.g2dip .g2dip-details { padding: clamp(1.35rem, 3vw, 2.25rem); border: 1px solid var(--g2dip-line); border-radius: var(--g2dip-radius); background: linear-gradient(130deg, #f7fbfd, #e8f5fa); }
.g2dip .g2dip-details h1 { font-size: clamp(2rem, 3.45vw, 3.1rem); color: var(--g2dip-ink); padding: 0; margin: 0 0 .75rem; overflow-wrap: break-word; }
.g2dip .g2dip-details dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; margin: 1.15rem 0; }
.g2dip .g2dip-details dl:empty { display: none; }
.g2dip .g2dip-details dl div { border: 1px solid var(--g2dip-line); padding: .55rem .7rem; border-radius: 6px; background: #ffffff94; font-size: .91rem; }
.g2dip .g2dip-details dt { font-weight: 700; }
.g2dip .g2dip-details dd { margin: .15rem 0 0; color: var(--g2dip-muted); overflow-wrap: anywhere; }
.g2dip .g2dip-short { color: var(--g2dip-muted); }
.g2dip .g2dip-short p { margin: .65rem 0; }
.g2dip .g2dip-product-price { font-size: 1.55rem; font-weight: 700; padding-top: .75rem; border-top: 1px solid var(--g2dip-line); margin: .9rem 0 .4rem; }
.g2dip .g2dip-terms { font-size: .9rem; color: var(--g2dip-muted); margin: 0 0 .9rem; }
.g2dip .g2dip-panel { padding: clamp(1.3rem, 3vw, 2.5rem); margin: 1.95rem 0 0; border: 1px solid var(--g2dip-line); border-radius: var(--g2dip-radius); background: white; }
.g2dip .g2dip-form-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; }
.g2dip .g2dip-form-grid p { margin: .55rem 0 .85rem; }
.g2dip .g2dip-argumentaire { display: flow-root; }
.g2dip .g2dip-argumentaire h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); max-width: 77ch; }
.g2dip .g2dip-argumentaire h2:not(:first-child) { margin-top: 1.4rem; }
.g2dip .g2dip-argumentaire p { max-width: 90ch; margin: .75rem 0; }
.g2dip .g2dip-dialog { max-width: min(920px, calc(100% - 24px)); max-height: 95vh; border: 1px solid var(--g2dip-line); padding: 12px; border-radius: 10px; }
.g2dip .g2dip-dialog::backdrop { background: #101d25db; }
.g2dip .g2dip-dialog img { display: block; max-width: 100%; max-height: 83vh; object-fit: contain; }
.g2dip .g2dip-dialog button { display: block; margin: 0 0 .55rem auto; }
.g2dip #devis-inclusion-plexi, .g2dip #g2dip-modeles { scroll-margin-top: 140px; }

@media (max-width: 900px) {
    .g2dip .g2dip-wrap { width: calc(100% - 36px); }
    .g2dip .g2dip-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
    .g2dip .g2dip-wrap { width: calc(100% - 28px); }
    .g2dip .g2dip-form-grid { gap: .75rem; }
    .g2dip .g2dip-card-content { padding: .8rem; }
    .g2dip .g2dip-card h3 { font-size: 1.12rem; }
    .g2dip .g2dip-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g2dip #devis-inclusion-plexi, .g2dip #g2dip-modeles { scroll-margin-top: 95px; }
}
@media (max-width: 395px) {
    .g2dip .g2dip-cards, .g2dip .g2dip-details dl { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .g2dip .g2dip-card-image img { transition: none; }
}

/* The fixed Impreza header sits outside main and needs its own offset. */
body.header_hor.headerinpos_top .l-header.pos_fixed ~ main.g2dip-product-page,
body.g2dip-service.header_hor.headerinpos_top .l-header.pos_fixed ~ main > .g2di-hero {
    padding-top: calc(var(--header-height, 116px) + var(--g2dip-mobile-header-extra, 0px));
    display: flow-root;
}
body.g2dip-service.header_hor.headerinpos_top .l-header.pos_fixed ~ main > .g2di-hero {
    padding-top: calc(var(--header-height, 116px) + var(--g2dip-mobile-header-extra, 0px) + clamp(1rem, 3vw, 2.5rem));
}
body.g2dip-service #realisations-inclusion-plexi, body.g2dip-service #devis-inclusion-plexi {
    scroll-margin-top: calc(var(--header-sticky-height, 96px) + 1rem);
}
.g2di-section .g2dip-catalogue { padding-bottom: 0; }
.g2di-section .g2dip-catalogue .g2dip-wrap { width: 100%; }
.g2di-section .g2dip-catalogue .g2dip-modeles { margin-top: 1rem; }
.g2di .g2dip-card-action a.g2dip-button { text-decoration: none; }

.g2dip-projects { margin: clamp(1.1rem, 3vw, 2.2rem) 0; }
.g2dip-project-frame {
    padding: clamp(1rem, 2.85vw, 2rem);
    border-radius: 16px;
    color: #f7f8f9;
    background: radial-gradient(ellipse at 90% 0%, #23333b 0%, transparent 48%), #171a1d;
}
.g2dip-project-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: 1rem; }
.g2dip-project-head h2 { margin: 0; padding: 0; color: #f7f8f9; font-size: clamp(1.5rem, 2.9vw, 2.45rem); }
.g2dip-project-controls { display: flex; flex: none; gap: .55rem; }
.g2dip-project-controls[hidden] { display: none; }
.g2dip-project-controls button {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border-radius: 50%; border: 1px solid #586872; background: #20282f; color: white;
    font-size: 1.65rem; line-height: 1; cursor: pointer;
}
.g2dip-project-controls button:hover:enabled { background: #52cef0; border-color: #52cef0; color: #112027; }
.g2dip-project-controls button:disabled { opacity: .45; cursor: default; }
.g2dip-projects .g2dip-project-track {
    --g2dip-project-columns: 6;
    --g2dip-project-gap: 12px;
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--g2dip-project-columns) - 1) * var(--g2dip-project-gap)) / var(--g2dip-project-columns));
    gap: var(--g2dip-project-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 3px;
    padding: 3px; margin: 0; list-style: none;
}
.g2dip-project-frame[data-enhanced] .g2dip-project-track { scrollbar-width: none; }
.g2dip-project-frame[data-enhanced] .g2dip-project-track::-webkit-scrollbar { display: none; }
.g2dip-project-track li { display: flex; min-width: 0; margin: 0; padding: 0; scroll-snap-align: start; }
.g2dip-project-track a {
    display: flex; flex-direction: column; width: 100%; min-width: 0; overflow: hidden;
    border: 1px solid #3b444b; border-radius: 12px; background: #20252a; color: #fff;
    text-decoration: none;
}
.g2dip-project-track a:hover { border-color: #52cef0; color: #fff; }
.g2dip-project-track a img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #30363a; }
.g2dip-project-track a > span {
    display: flex; justify-content: space-between; align-items: flex-start; gap: .3rem;
    padding: .7rem .6rem; font-size: .92rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere;
}
.g2dip-project-track a > span > span { flex: none; color: #52cef0; }
.g2dip-projects .g2dip-wrap :focus-visible { outline-color: #52cef0; outline-offset: -2px; }

@media (max-width: 940px) {
    .g2dip-projects .g2dip-project-track { --g2dip-project-columns: 3; }
}
@media (max-width: 620px) {
    .g2dip-projects .g2dip-project-track { --g2dip-project-columns: 2; --g2dip-project-gap: 9px; }
}
@media (max-width: 620px) {
    .g2dip, .g2dip-service { --g2dip-mobile-header-extra: 1.15rem; }
}

.g2dip .g2dip-quote-product {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: .65rem;
    margin-bottom: 1rem;
    background: var(--g2dip-pale);
    border: 1px solid var(--g2dip-line);
    border-radius: 9px;
    overflow-wrap: anywhere;
}
.g2dip .g2dip-quote-product img {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

/* Styles of the existing Inclusion form on dedicated product pages. */
.g2di-quote-form { max-width: 800px; }
.g2di-quote-form > label,
.g2di-quote-pair > label { display: block; margin-bottom: 1rem; font-weight: 650; }
.g2di-quote-form :is(input[type="text"],input[type="email"],input[type="tel"],input[type="number"],textarea) {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .65rem;
  border: 1px solid #a9c3cf;
  border-radius: 5px;
  background: #fff;
  font: inherit;
}
.g2di-quote-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.g2di-quote-form fieldset { border: 1px solid #a9c3cf; border-radius: 5px; margin: 0 0 1rem; padding: .65rem .9rem; }
.g2di-quote-form legend { font-weight: 630; }
.g2di-quote-form fieldset label { display: inline-flex; gap: .35em; align-items: center; margin: .4rem 1rem .35rem 0; }
.g2di-quote-form .g2di-consent { display: flex; align-items: baseline; gap: .5rem; font-weight: 400; }
.g2di-quote-form input[type="radio"], .g2di-quote-form input[type="checkbox"] { appearance: auto; }
.g2di-quote-form .g2di-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.g2di-quote-form button { border: 0; cursor: pointer; font: inherit; }
.g2di-form-message { font-weight: 650; padding: .8rem 1rem; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
@media (max-width: 600px) {
  .g2di-quote-pair { grid-template-columns: 1fr; gap: 0; }
}

.g2dip-form-grid .g2di-button { display: inline-flex; min-height: 46px; padding: .7rem 1.15rem; border-radius: 7px; color: white; background: #00698c; font-weight: 700; }
