/* wz-foundations */
/* Design foundations derived from the theme. Do not hand-edit: apply_design_foundations rewrites this whole block. */

:root {
    --wz-space-2xs: clamp(8px, 0.5rem + 0.2vw, 12px);
    --wz-space-xs: clamp(12px, 0.75rem + 0.3vw, 16px);
    --wz-space-s: clamp(16px, 1rem + 0.5vw, 24px);
    --wz-space-m: clamp(24px, 1.5rem + 0.8vw, 32px);
    --wz-space-l: clamp(24px, 1.5rem + 0.9vw, 36px);
    --wz-space-xl: clamp(32px, 2rem + 1.4vw, 48px);
    --wz-space-2xl: clamp(40px, 2.5rem + 2vw, 64px);
    --wz-space-3xl: clamp(56px, 3.5rem + 3vw, 88px);
    --wz-flow: 0.9em;
    --wz-radius-s: 2px;
    --wz-radius-m: 2px;
    --wz-radius-l: 4px;
    --wz-surface: rgba(0, 0, 0, .035);
    --wz-surface-high: rgba(0, 0, 0, .06);
    --wz-border: rgba(0, 0, 0, .14);
    --wz-text-muted: rgba(0, 0, 0, .62);
    --wz-ink: #14161a;
    --wz-ink-on: #f4f2f0;
    --wz-elev-1: 0 1px 2px rgba(17, 17, 17, .06), 0 2px 6px rgba(17, 17, 17, .05);
    --wz-elev-2: 0 1px 2px rgba(17, 17, 17, .07), 0 4px 12px rgba(17, 17, 17, .07), 0 12px 28px rgba(17, 17, 17, .06);
}

/* Vertical rhythm between sections. The theme ships 20/30/40/50 px, below the 64-96 px
   a content section needs; margin "none" stays untouched (it is glued on purpose). */
.body__wrapper .wiziblocks__item.small { margin-bottom: var(--wz-space-l); }
.body__wrapper .wiziblocks__item.medium { margin-bottom: var(--wz-space-2xl); }
.body__wrapper .wiziblocks__item.large { margin-bottom: var(--wz-space-3xl); }
.body__wrapper .wiziblocks__item:not(.small):not(.medium):not(.large):not(.none) { margin-bottom: var(--wz-space-2xl); }

/* Flow inside a block. The theme sets margin:0 and padding:0 on headings and paragraphs,
   so two paragraphs touch. The class is repeated to win over the theme rule without !important. */
body.body .wiziblocks__item.wiziblocks__item p + p { margin-top: var(--wz-flow); }
body.body .wiziblocks__item.wiziblocks__item h2 + p,
body.body .wiziblocks__item.wiziblocks__item h3 + p,
body.body .wiziblocks__item.wiziblocks__item h4 + p { margin-top: var(--wz-space-2xs); }
body.body .wiziblocks__item.wiziblocks__item p + h2,
body.body .wiziblocks__item.wiziblocks__item p + h3 { margin-top: var(--wz-space-m); }

/* Display voice "quiet": Titles stay discreet so the products carry the page: the right choice for a large catalogue. */
/* The theme caps a title at 48 px and font.titleSize does nothing, so the size lives here. */
body.body .wiziblocks__item.wiziblocks__item h1,
body.body .wiziblocks__item.wiziblocks__item h2 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}
body.body .wiziblocks__item.wiziblocks__item h1 { font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.375rem); }
body.body .wiziblocks__item.wiziblocks__item h2 { font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem); }

/* Line-height: generous on reading sizes (the theme sets 1.4 on titles and text alike). */
body.body .wiziblocks__item.wiziblocks__item h3 { line-height: 1.2; }
body.body .wiziblocks__item.wiziblocks__item p,
body.body .wiziblocks__item.wiziblocks__item li { line-height: 1.55; }

/* Measure: 45-75 characters per line. A one-column text block spans the whole container otherwise. */
body.body .wiziblocks__item.wiziblocks__item .wizi-txt--one p { max-width: 68ch; margin-inline: auto; }

/* Surface strategy "alternate": Sections alternate between the page background and a tinted surface: the page reads in chapters. */
/* Hang these on a section with class_custom. The colour goes on __maxWidth: the theme repaints */
/* the page background there, so painting .wiziblocks__item alone shows only in the gutters. */
.wiziblocks__item.wz-alt .wiziblocks__item__maxWidth {
    background-color: var(--wz-surface);
    padding-block: var(--wz-space-l);
}

/* Elevation: layered shadows. A single shadow reads as cheap; the theme ships one at 75% opacity. */
body.body .wiziBtn:hover { box-shadow: var(--wz-elev-2); }

/* Visible focus ring (WCAG 2.4.7). Keyboard only: it never shows on a mouse click. */
body.body a:focus-visible,
body.body button:focus-visible,
body.body input:focus-visible,
body.body select:focus-visible,
body.body textarea:focus-visible,
body.body [tabindex]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--wz-radius-s);
}

/* Every header variant pins itself on mobile, so an anchor or a keyboard focus
   lands under it without this (WCAG 2.4.11 Focus Not Obscured). Values measured
   in a browser, not guessed: docs/tools/header-sticky-probe.mjs. */
html { scroll-padding-top: 70px; }
/* This variant leaves the top free on a desktop. */
@media (min-width: 1024px) { html { scroll-padding-top: 0; } }

/* /wz-foundations */

/* DUROLITH accueil responsive — 2026-11-12 */
/* DUROLITH homepage refinements */
.page-homepage .durolith-hero h1 { max-width: 850px; margin-inline: auto; text-wrap: balance; }
.page-homepage .durolith-hero p { max-width: 640px; margin-inline: auto; }
.page-homepage .wz-alt h2 { font-size: clamp(1rem, .9rem + .3vw, 1.18rem); line-height: 1.3; }
.page-homepage .durolith-categories img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
 .page-homepage .durolith-hero h1 { font-size: clamp(1.65rem, 6vw, 2.3rem); line-height: 1.18; padding-inline: 12px; }
 .page-homepage .durolith-hero p { font-size: 1rem; line-height: 1.5; padding-inline: 14px; }
 .page-homepage .wz-alt h2 { font-size: 1rem; }
 .page-homepage .durolith-categories { margin-bottom: 24px; }
}




/* Vignettes compactes meilleures ventes — 2026-11-13 */
.page-homepage #d1456f02-992d-45a1-a2af-f119dbbe512b img, .page-homepage #bd9b1fb5-9d6b-4ad0-95c1-ec57c4dcab14 img { max-height:155px !important; width:auto !important; max-width:100% !important; object-fit:contain !important; margin-left:auto; margin-right:auto; }

/* Cinq produits par ligne meilleures ventes — 2026-11-13 */
@media (min-width:1024px) { .page-homepage .dl-five-products .prod.product-list-simple { display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr))!important; gap:14px!important; } .page-homepage .dl-five-products .prod.product-list-simple > .prod__article { width:100%!important; max-width:none!important; min-width:0!important; margin:0!important; float:none!important; } } @media (min-width:650px) and (max-width:1023px) { .page-homepage .dl-five-products .prod.product-list-simple { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:12px!important; } .page-homepage .dl-five-products .prod.product-list-simple > .prod__article { width:100%!important; max-width:none!important; margin:0!important; } }

/* Prix visibles sous les produits meilleures ventes — 2026-11-13 */
@media(min-width:1024px){.page-homepage .dl-five-products .prod.product-list-classic{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}.page-homepage .dl-five-products .prod.product-list-classic>.prod__article{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;float:none!important}}@media(min-width:650px) and (max-width:1023px){.page-homepage .dl-five-products .prod.product-list-classic{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.page-homepage .dl-five-products .prod.product-list-classic>.prod__article{width:100%!important;max-width:none!important;margin:0!important}}.page-homepage .dl-five-products .prod__article img{max-height:155px!important;width:auto!important;max-width:100%!important;object-fit:contain!important;margin-inline:auto}

/* Entete unique DUROLITH sans regles contradictoires — 2026-11-13 */
@media(min-width:1024px){body.page-homepage .header__relative{display:grid;grid-template-columns:230px minmax(300px,1fr) 200px;align-items:center;column-gap:28px;max-width:1320px;margin:auto;padding:10px 22px;min-height:95px}body.page-homepage .header__logo{display:flex;align-items:center;position:static;width:230px;height:80px;padding:0;margin:0;overflow:visible}body.page-homepage .header__logo__a{display:flex;align-items:center;height:80px}body.page-homepage .header__logo__a__img{display:block;width:auto;height:78px;max-height:78px;max-width:230px;object-fit:contain}body.page-homepage .header__nav{display:none}body.page-homepage .header__search{display:block;position:static;width:100%;opacity:1;visibility:visible;transform:none}body.page-homepage .search--wrapper{display:block;position:static;opacity:1;visibility:visible;transform:none;width:100%}body.page-homepage .search--form{display:block;width:100%}body.page-homepage .search--fieldset{position:relative;display:block;width:100%}body.page-homepage .search--input{display:block;width:100%;height:46px;padding:0 58px 0 14px;border:1px solid #9aa7b4;border-radius:4px;box-sizing:border-box}body.page-homepage .search--btn{position:absolute;top:0;right:0;width:50px;height:46px;background:#0a2746;color:white;border-radius:0 4px 4px 0}body.page-homepage .header__area{display:flex;align-items:center;justify-content:flex-end;gap:20px;position:static;width:auto}body.page-homepage .header__account{display:block}body.page-homepage .header__account__a{display:flex;align-items:center;gap:7px;white-space:nowrap}body.page-homepage .header__account__a:after{content:'Mon compte';font-size:13px;font-weight:700;color:#0a2746}body.page-homepage .header__cart__a{display:flex;align-items:center;justify-content:center;position:relative}body.page-homepage .header__cart__a:before{content:'\\f07a';font-family:'Font Awesome 5 Free';font-weight:900;font-size:27px;color:#0a2746}body.page-homepage .header__cart__text{display:none}body.page-homepage .header nav.nav{display:block;background:#0a2746}body.page-homepage .header .nav__wrapper{background:#0a2746}body.page-homepage .header .nav__itemlvl1{color:white}}

/* Logo DUROLITH lisible en permanence sur accueil */
@media(min-width:1024px){body.page-homepage .header__logo,body.page-homepage .header__h1,body.page-homepage .header__logo__a{display:flex!important;visibility:visible!important;opacity:1!important;overflow:visible!important;align-items:center}body.page-homepage .header__logo__a{position:relative;min-width:230px;min-height:76px;font-size:0}body.page-homepage .header__logo__a picture{display:none}body.page-homepage .header__logo__a:after{content:'DUROLITH';display:block;font-family:Roboto,Arial,sans-serif;font-weight:900;font-size:36px;letter-spacing:-1.8px;line-height:1;color:#102c4c;white-space:nowrap}body.page-homepage .header__logo__a:before{content:'';position:absolute;left:0;bottom:13px;width:78px;height:5px;background:#d94c16;border-radius:3px}}

/* Logo DUROLITH bande orange sous le mot comme maquette */
@media(min-width:1024px){body.page-homepage .header__logo__a:after{content:'DUROLITH';font-size:38px;letter-spacing:-1.6px;color:#102c4c;font-weight:900}body.page-homepage .header__logo__a:before{content:'';position:absolute;left:0;bottom:6px;width:205px;height:8px;background:#e15a1b;border-radius:0;transform:skewX(-16deg)}}

/* Nouveau logo officiel boutique (2172 x 724), remplace le faux logo CSS */
@media(min-width:1024px){body.page-homepage .header__logo__a:before,body.page-homepage .header__logo__a:after{content:none!important;display:none!important}body.page-homepage .header__logo__a picture{display:block!important;width:230px!important;height:auto!important;overflow:visible!important;position:static!important}body.page-homepage .header__logo__a picture img,body.page-homepage .header__logo__a__img{display:block!important;position:static!important;transform:none!important;width:230px!important;height:auto!important;max-width:230px!important;max-height:none!important;object-fit:contain!important;visibility:visible!important;opacity:1!important}}

/* Texte SEO sous les produits des catégories — 2026-11-19 */
/* Sur toutes les pages catégories : conserver le titre, montrer les produits puis le descriptif SEO. */
body.page-prod-list .prod-list__right { display: flex; flex-direction: column; }
body.page-prod-list .prod-list__right > .prod-list__right__title { order: 0; }
body.page-prod-list .prod-list__right > .prod-list__wrapper-top-right { order: 1; }
body.page-prod-list .prod-list__right > #bloc-home-1 { order: 2; width: 100%; margin-top: 36px; }
body.page-prod-list .prod-list__right > #bloc-home-1:empty { display: none; }

/* Menu métaux sans sous-menu — 2026-11-20 */
/* Onglet Métaux & Antirouille : lien direct, sans menu déroulant */
.nav .nav__label:has(> .nav__wrapper2 > a[href="/anticorrosion/"]) > .nav__sublevel {display:none;}
.nav .nav__label:has(> .nav__wrapper2 > a[href="/anticorrosion/"]) > .nav__wrapper2 > .nav__arrow {display:none;}
.nav .nav__label:has(> .nav__wrapper2 > a[href="/anticorrosion/"]) > .nav__wrapper2 > a.nav__itemlvl1 {padding-right:12px;}
