.g2dsm {
    --g2dsm-ink: #112f40;
    --g2dsm-muted: #415f6e;
    --g2dsm-blue: #006780;
    --g2dsm-line: #d6e5eb;
    --g2dsm-pale: #eff7fa;
    --g2dsm-radius: 14px;
    color: var(--g2dsm-ink);
}
.g2dsm .g2dsm-wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.g2dsm .g2dsm-wrap h1, .g2dsm .g2dsm-wrap h2, .g2dsm .g2dsm-wrap h3 { line-height: 1.15; letter-spacing: -.024em; }
.g2dsm .g2dsm-wrap img { display: block; max-width: 100%; }
.g2dsm .g2dsm-wrap :focus-visible, .g2dsm-dialog :focus-visible { outline: 3px solid #0787ab; outline-offset: 3px; }
.g2dsm-catalogue { padding-bottom: 2rem; }
.g2dsm .g2dsm-crumb { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0; color: var(--g2dsm-muted); font-size: .85rem; }
.g2dsm .g2dsm-crumb a { color: var(--g2dsm-blue); }
.g2dsm .g2dsm-hero { display: grid; grid-template-columns: 1.12fr 1fr; overflow: hidden; border-radius: var(--g2dsm-radius); background: #102c3c; }
.g2dsm .g2dsm-hero-copy { align-self: center; padding: clamp(2rem, 3.6vw, 3.45rem); }
.g2dsm .g2dsm-hero h1 { color: white; font-size: clamp(2.25rem, 4.3vw, 3.9rem); margin: 0; padding: 0; }
.g2dsm .g2dsm-hero p { color: #e2eef4; max-width: 43ch; margin: 1.1rem 0 1.5rem; }
.g2dsm .g2dsm-hero-image { position: relative; min-height: 340px; }
.g2dsm .g2dsm-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.g2dsm .g2dsm-line { width: 40px; height: 4px; border-radius: 10px; background: #38b7d6; margin-bottom: 1.05rem; }
.g2dsm .g2dsm-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(--g2dsm-blue); color: white;
    text-align: center; font-weight: 700; font-size: .9rem; line-height: 1.3; text-decoration: none;
}
.g2dsm .g2dsm-button:hover { background: #054d61; color: white; }
.g2dsm .g2dsm-light { background: #52ccea; color: #103243; }
.g2dsm .g2dsm-light:hover { background: #8de1f4; color: #103243; }
.g2dsm .g2dsm-secondary { background: white; border-color: #9dbfcf; color: var(--g2dsm-blue); }
.g2dsm .g2dsm-secondary:hover { background: var(--g2dsm-pale); color: var(--g2dsm-blue); }
.g2dsm .g2dsm-modeles { margin-top: 2.35rem; }
.g2dsm .g2dsm-modeles > p { color: var(--g2dsm-muted); margin: .5rem 0 1rem; }
.g2dsm .g2dsm-modeles h2, .g2dsm .g2dsm-panel h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin: 0 0 .45rem; padding: 0; color: var(--g2dsm-ink); }
.g2dsm .g2dsm-cards { display: grid; grid-template-columns: repeat(var(--g2dsm-desktop-columns, 4), minmax(0, 1fr)); gap: 1.1rem; }
.g2dsm .g2dsm-card { display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--g2dsm-line); border-radius: var(--g2dsm-radius); }
.g2dsm .g2dsm-card-image { display: block; overflow: hidden; background: #eff3f4; }
.g2dsm .g2dsm-card-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .2s; }
.g2dsm .g2dsm-card-image:hover img { transform: scale(1.03); }
.g2dsm .g2dsm-card-content { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.1rem; }
.g2dsm .g2dsm-card h3 { margin: 0; padding: 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--g2dsm-ink); }
.g2dsm .g2dsm-card p { flex: 1; margin: .45rem 0 .8rem; font-size: .93rem; color: var(--g2dsm-muted); }
.g2dsm .g2dsm-card-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: .7rem; border-top: 1px solid var(--g2dsm-line); font-size: .9rem; }
.g2dsm .g2dsm-card-action strong { color: var(--g2dsm-blue); }

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

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

/* The fixed Impreza header is a sibling of main and does not reserve space. */
body.header_hor.headerinpos_top .l-header.pos_fixed ~ main > .g2dsm-catalogue,
body.header_hor.headerinpos_top .l-header.pos_fixed ~ main > .wpb_row:first-child:has(.g2dsm-catalogue),
body.header_hor.headerinpos_top .l-header.pos_fixed ~ main.g2dsm-product-page {
    padding-top: calc(var(--header-height, 116px) + var(--g2dsm-mobile-header-extra, 0px));
    display: flow-root;
}
body.header_hor.headerinpos_top .l-header.pos_fixed ~ main > .g2dsm-catalogue #g2dsm-modeles {
    scroll-margin-top: calc(var(--header-sticky-height, 96px) + 1rem);
}
main .g2dsm-legacy.l-section {
    --g2dsm-ink: #102e40;
    --g2dsm-blue: #00698c;
    --g2dsm-muted: #264657;
    --g2dsm-pale: #f3f8fa;
    --g2dsm-line: #d7e5ec;
    padding-block: clamp(.55rem, 1.6vw, 1.3rem) !important;
    background: transparent !important;
}
.g2dsm-legacy > .upb_row_bg { display: none !important; }
main .g2dsm-legacy > .l-section-h {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 2.65rem);
    border: 1px solid var(--g2dsm-line);
    border-radius: var(--g2dsm-radius);
    background: var(--g2dsm-pale);
    color: var(--g2dsm-muted);
}
main .g2dsm-legacy-contact > .l-section-h,
main .g2dsm-legacy-form > .l-section-h { background: linear-gradient(105deg, #f6fbfd, #ebf8fd); }
.g2dsm-legacy .wpb_text_column .wpb_wrapper { max-width: 920px; margin-inline: auto; }
.g2dsm-legacy :is(p, li) { color: var(--g2dsm-muted) !important; line-height: 1.65; }
.g2dsm-legacy :is(h2, h3) {
    color: var(--g2dsm-ink) !important;
    font-size: clamp(1.35rem, 2.4vw, 2.05rem) !important;
    line-height: 1.18;
    letter-spacing: -.02em;
}
.g2dsm-legacy-editorial .wpb_wrapper h2:first-child::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin: 0 auto .8rem;
    background: #32beeb;
    border-radius: 4px;
}
.g2dsm-legacy-editorial a, .g2dsm-legacy-contact a { color: var(--g2dsm-blue); text-underline-offset: .18em; }
.g2dsm-legacy-form .happyforms-form {
    max-width: 860px;
    margin-inline: auto;
    padding: clamp(.7rem, 2vw, 1.4rem);
    border: 1px solid var(--g2dsm-line);
    border-radius: 12px;
    background: #fff;
}
.g2dsm-legacy-form .happyforms-form button[type="submit"],
.g2dsm-legacy-form .happyforms-form input[type="submit"] {
    background: #00698c !important;
    color: white !important;
    border-radius: 7px !important;
}
.g2dsm-legacy-form .happyforms-form button[type="submit"]:hover,
.g2dsm-legacy-form .happyforms-form input[type="submit"]:hover { background: #00516c !important; }

.g2dsm-projects { margin: clamp(1.1rem, 3vw, 2.2rem) 0; }
.g2dsm-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;
}
.g2dsm-project-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: 1rem; }
.g2dsm-project-head h2 { margin: 0; padding: 0; color: #f7f8f9; font-size: clamp(1.5rem, 2.9vw, 2.45rem); }
.g2dsm-project-controls { display: flex; flex: none; gap: .55rem; }
.g2dsm-project-controls[hidden] { display: none; }
.g2dsm-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;
}
.g2dsm-project-controls button:hover:enabled { background: #52cef0; border-color: #52cef0; color: #112027; }
.g2dsm-project-controls button:disabled { opacity: .45; cursor: default; }
.g2dsm-projects .g2dsm-project-track {
    --g2dsm-project-columns: 6;
    --g2dsm-project-gap: 12px;
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--g2dsm-project-columns) - 1) * var(--g2dsm-project-gap)) / var(--g2dsm-project-columns));
    gap: var(--g2dsm-project-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 3px;
    padding: 3px; margin: 0; list-style: none;
}
.g2dsm-project-frame[data-enhanced] .g2dsm-project-track { scrollbar-width: none; }
.g2dsm-project-frame[data-enhanced] .g2dsm-project-track::-webkit-scrollbar { display: none; }
.g2dsm-project-track li { display: flex; min-width: 0; margin: 0; padding: 0; scroll-snap-align: start; }
.g2dsm-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;
}
.g2dsm-project-track a:hover { border-color: #52cef0; color: #fff; }
.g2dsm-project-track a img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #30363a; }
.g2dsm-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;
}
.g2dsm-project-track a > span > span { flex: none; color: #52cef0; }
.g2dsm-projects .g2dsm-wrap :focus-visible { outline-color: #52cef0; outline-offset: -2px; }

@media (max-width: 940px) {
    .g2dsm-projects .g2dsm-project-track { --g2dsm-project-columns: 3; }
    main .g2dsm-legacy > .l-section-h { width: calc(100% - 36px); }
}
@media (max-width: 620px) {
    .g2dsm-projects .g2dsm-project-track { --g2dsm-project-columns: 2; --g2dsm-project-gap: 9px; }
    main .g2dsm-legacy > .l-section-h { width: calc(100% - 28px); }
}
@media (max-width: 620px) {
    .g2dsm { --g2dsm-mobile-header-extra: 1.15rem; }
}

main .g2dsm-legacy-contact .uvc-heading .uvc-sub-heading,
main .g2dsm-legacy-contact .uvc-heading .uvc-sub-heading :is(p, span, a, strong) {
    color: #264657 !important;
}

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

.g2dsm .g2dsm-hero p + p { margin-top: -.5rem; }
#g2dsm-contact,
#g2dsm-argumentaire { scroll-margin-top: calc(var(--header-sticky-height, 100px) + 1rem); }

.g2dsm .g2dsm-hero-sans-photo { grid-template-columns: 1fr; }
