/* « Générateur Dowebo pour WordPress » (docs/WORDPRESS-GENERATOR.md): the style of the generator's sections written as
   WordPress blocks (App\Services\SiteBuilder\WordPress\BlockWriter), shipped by the « Générateur Dowebo » plugin as
   assets/blocks.css, on the site and in the editor. It ports resources/site-builder/css (base.css, the sections' files
   and the kit shared by the themes of the pre-designed sites) to the blocks' markup: each section's root block carries
   « dwb-section dwb-<type> dwb-<type>--<variant> dwb-bg-<background> dwb-space-<spacing> », its pieces dwb-* classes.
   Colours, fonts and the theme's style come as the generator's --sb-* variables, which the site's global styles set
   from its palette and fonts (ThemeStyle, styles.css); the defaults below only stand in where they are missing (a
   section inserted on a site that never imported a pre-designed site). The decors of each theme (themes/<id>.css)
   are not ported yet. */

:where(:root) {
    --sb-ink: var(--wp--preset--color--ink, var(--wp--preset--color--contrast, #1d1f24));
    --sb-muted: var(--wp--preset--color--muted, color-mix(in srgb, var(--sb-ink) 72%, transparent));
    --sb-paper: var(--wp--preset--color--paper, var(--wp--preset--color--base, #ffffff));
    --sb-soft: var(--wp--preset--color--soft, color-mix(in srgb, var(--sb-ink) 5%, var(--sb-paper)));
    --sb-accent: var(--wp--preset--color--accent, var(--wp--preset--color--accent-3, #145cff));
    --sb-on-accent: var(--wp--preset--color--on-accent, #ffffff);
    --sb-dark: var(--wp--preset--color--dark, #14161b);
    --sb-on-dark: var(--wp--preset--color--on-dark, #f4f5f7);
    --sb-highlight: var(--wp--preset--color--highlight, var(--sb-accent));
    --sb-p-accent: var(--sb-accent); --sb-p-paper: var(--sb-paper); --sb-p-soft: var(--sb-soft); --sb-p-dark: var(--sb-dark);
    --sb-heading: var(--wp--preset--font-family--heading, inherit);
    --sb-body: var(--wp--preset--font-family--body, inherit);
    --sb-radius: 12px; --sb-button-radius: 999px; --sb-space: 1; --sb-heading-weight: 600; --sb-heading-case: none; --sb-heading-spacing: -.01em;
    /* The kit of the pre-designed sites' themes (kit.css). */
    --sb-head-align: left; --sb-display: clamp(2.4rem, 6.2vw, 4.6rem); --sb-h2: clamp(1.8rem, 3.6vw, 2.75rem);
    --sb-image-radius: var(--sb-radius); --sb-card-shadow: 0 1px 2px rgba(15, 20, 30, .06), 0 10px 30px rgba(15, 20, 30, .07);
    --sb-header-bg: color-mix(in srgb, var(--sb-paper) 92%, transparent); --sb-frame: var(--sb-accent);
    --sb-line: color-mix(in srgb, currentColor 16%, transparent);
}

/* Sections: one after the other, without the block gap WordPress puts between blocks; their texts spaced as the
   generator's, whatever the layout WordPress gives them. */
.dwb-section.dwb-section { position: relative; margin-block: 0; padding-block: calc(clamp(48px, 8vw, 96px) * var(--sb-space)); font-family: var(--sb-body); font-size: 1.0625rem; line-height: 1.65; }
.dwb-section.dwb-space-compact { padding-block: calc(clamp(28px, 4vw, 48px) * var(--sb-space)); }
.dwb-section.dwb-space-large { padding-block: calc(clamp(72px, 11vw, 140px) * var(--sb-space)); }
.dwb-section.dwb-section :where(.is-layout-flow, .is-layout-constrained, .wp-block-cover__inner-container, .wp-block-media-text__content) > * { margin-block: 0; }
.dwb-section.dwb-section :where(h1, h2, h3, h4) { margin-block: 0 .5em; font-family: var(--sb-heading); font-weight: var(--sb-heading-weight); line-height: 1.15; letter-spacing: var(--sb-heading-spacing); text-transform: var(--sb-heading-case); text-wrap: balance; color: inherit; }
.dwb-section.dwb-section :where(p) { margin-block: 0 1em; }
.dwb-section h1 { font-size: var(--sb-display); line-height: 1.04; }
.dwb-section h2 { font-size: var(--sb-h2); line-height: 1.1; }
.dwb-section h3, .dwb-section h4 { font-size: 1.15rem; }
.dwb-section a:where(:not(.wp-element-button)) { color: var(--sb-accent); text-underline-offset: 3px; }
.dwb-section :focus-visible { outline: 3px solid var(--sb-accent); outline-offset: 3px; }
/* An image frame drawn beside its picture never pushes the page sideways on a phone. */
.dwb-section { overflow-x: clip; }

/* Backgrounds: tinted, the accent, dark, or a photo under a veil (core/cover). The palette's classes colour the root;
   these rules stand in for them when the palette lacks the slug, and turn the texts light where the ground is dark. */
.dwb-section.dwb-bg-soft { background-color: var(--sb-soft); }
.dwb-section.dwb-bg-accent { --sb-ink: var(--sb-on-accent); --sb-muted: var(--sb-on-accent); background-color: var(--sb-accent); color: var(--sb-on-accent); }
.dwb-section.dwb-bg-accent a:where(:not(.wp-element-button)) { color: var(--sb-on-accent); }
.dwb-section.dwb-bg-dark, .dwb-section.dwb-bg-image, .dwb-section.wp-block-cover {
    --sb-ink: var(--sb-on-dark); --sb-muted: color-mix(in srgb, var(--sb-on-dark) 82%, transparent); --sb-accent: var(--sb-on-dark); --sb-on-accent: var(--sb-dark);
    background-color: var(--sb-dark); color: var(--sb-on-dark);
}
.dwb-section.dwb-bg-dark a:where(:not(.wp-element-button)), .dwb-section.wp-block-cover a:where(:not(.wp-element-button)) { color: var(--sb-on-dark); }
.dwb-section.dwb-bg-accent :focus-visible { outline-color: var(--sb-on-accent); }
.dwb-section.dwb-bg-dark :focus-visible, .dwb-section.wp-block-cover :focus-visible { outline-color: var(--sb-on-dark); }
/* core/cover: the photo fills the section, its contents keep the section's width and space. */
.dwb-section.wp-block-cover { display: block; min-height: 0; }
.dwb-section.wp-block-cover > .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; color: inherit; }
.dwb-section.wp-block-cover > .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dwb-section.wp-block-cover > .wp-block-cover__background { background-color: var(--sb-dark); }

/* The shape that closes a section at its bottom, in the colour of what follows (dwb-next-<background>). */
.dwb-section.dwb-has-divider { padding-bottom: calc(clamp(48px, 8vw, 96px) * var(--sb-space) + clamp(24px, 4.5vw, 64px)); }
.dwb-section.dwb-has-divider::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; height: clamp(24px, 4.5vw, 64px); pointer-events: none;
    background: var(--dwb-divider-fill, var(--sb-p-paper));
    -webkit-mask: var(--dwb-divider-shape) center / 100% 100% no-repeat; mask: var(--dwb-divider-shape) center / 100% 100% no-repeat;
}
.dwb-divider-wave { --dwb-divider-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46C180 70 360 82 540 64S900 10 1080 18 1350 54 1440 60V80H0Z'/%3E%3C/svg%3E"); }
.dwb-divider-slant { --dwb-divider-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 1440 6V80Z'/%3E%3C/svg%3E"); }
.dwb-divider-curve { --dwb-divider-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q720 120 1440 0V80H0Z'/%3E%3C/svg%3E"); }
.dwb-divider-peaks { --dwb-divider-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 52 160 22 330 58 520 12 700 50 880 26 1060 62 1250 18 1440 46V80H0Z'/%3E%3C/svg%3E"); }
.dwb-next-plain { --dwb-divider-fill: var(--sb-p-paper); }
.dwb-next-soft { --dwb-divider-fill: var(--sb-p-soft); }
.dwb-next-accent { --dwb-divider-fill: var(--sb-p-accent); }
.dwb-next-dark, .dwb-next-image, .dwb-next-footer { --dwb-divider-fill: var(--sb-p-dark); }

/* Shared pieces: the « Surtitre », a section's head, its lead, notes and long texts, cards, images and buttons. */
.dwb-section .dwb-eyebrow { margin-block: 0 .7em; color: var(--sb-eyebrow, var(--sb-accent)); font-size: .82rem; font-weight: 700; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.dwb-section:is(.dwb-bg-accent, .dwb-bg-dark, .wp-block-cover) .dwb-eyebrow { color: inherit; opacity: .9; }
.dwb-section .dwb-head { max-width: 46em; margin-block-end: clamp(28px, 4vw, 48px); text-align: var(--sb-head-align); }
/* A narrow block (a head, a price list, the questions…) starts where the section's column starts, as in the generator's
   .sb-wrap, where WordPress would centre it; a theme that centres its heads (--sb-head-margin: auto) centres them. */
.dwb-section > :is(.dwb-head, .dwb-hero-text, .dwb-pricing-list, .dwb-note, .dwb-faq-list, .dwb-hours-grid, .dwb-steps-list, .dwb-menu-groups, .dwb-map-text, .dwb-split-text, .wp-block-dowebo-contact),
.dwb-section > .wp-block-cover__inner-container > :is(.dwb-head, .dwb-hero-text, .dwb-pricing-list, .dwb-note, .dwb-faq-list, .dwb-hours-grid, .dwb-steps-list, .dwb-menu-groups, .dwb-map-text, .dwb-split-text, .wp-block-dowebo-contact) {
    margin-left: var(--sb-head-margin, max(0px, calc((100% - 1080px) / 2))) !important; margin-right: auto !important;
}
.dwb-section .dwb-head > :last-child { margin-block-end: 0; }
.dwb-section .dwb-lead { max-width: 42em; color: var(--sb-muted); font-size: clamp(1.08rem, 1.6vw, 1.25rem); }
.dwb-section .dwb-head .dwb-lead { margin-inline: var(--sb-head-margin, 0); }
.dwb-section .dwb-note { color: var(--sb-muted); font-size: .95rem; }
.dwb-section .dwb-prose { max-width: 44em; }
.dwb-section .dwb-prose > p:last-child { margin-block-end: 0; }
.dwb-section .dwb-card { padding: 24px; border: 1px solid transparent; border-radius: var(--sb-radius); background: var(--sb-paper); color: var(--sb-ink); box-shadow: var(--sb-card-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.dwb-section .dwb-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 20, 30, .06), 0 18px 40px rgba(15, 20, 30, .12); }
.dwb-section:is(.dwb-bg-dark, .wp-block-cover) .dwb-card { background: color-mix(in srgb, var(--sb-on-dark) 9%, transparent); box-shadow: none; }
.dwb-section.dwb-bg-accent .dwb-card { background: rgba(0, 0, 0, .14); box-shadow: none; }
.dwb-section .wp-block-image { margin: 0; }
.dwb-section .wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--sb-image-radius); }
.dwb-section .wp-block-buttons { margin-block-start: 8px; gap: 12px; }
.dwb-section .wp-block-button__link {
    display: inline-block; padding: 14px 26px; border: 2px solid var(--sb-accent); border-radius: var(--sb-button-radius); background: var(--sb-accent); color: var(--sb-on-accent);
    font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.dwb-section .wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 10px 24px color-mix(in srgb, var(--sb-accent) 32%, transparent); }
.dwb-section .wp-block-button__link::after { content: "→" / ""; display: inline-block; margin-left: .55em; transition: transform .2s ease; }
.dwb-section .wp-block-button__link:hover::after { transform: translateX(3px); }
.dwb-section.dwb-bg-accent .wp-block-button__link { border-color: var(--sb-on-accent); background: var(--sb-on-accent); color: var(--sb-accent); }
.dwb-section .is-style-outline > .wp-block-button__link { background: transparent; color: var(--sb-accent); }

/* Header (template part): the site's name and its pages, at the top while the page scrolls. */
.wp-block-template-part:has(> .dwb-header) { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20; }
.dwb-header { border-bottom: 1px solid var(--sb-line); background: var(--sb-header-bg); color: var(--sb-ink); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.dwb-header .dwb-header-inner { gap: 6px 24px; padding-block: 18px; }
.dwb-header .wp-block-site-title { margin: 0; font-family: var(--sb-heading); font-weight: var(--sb-heading-weight); font-size: 1.3rem; line-height: 1.2; letter-spacing: var(--sb-heading-spacing); }
.dwb-header .wp-block-site-title a { color: var(--sb-ink); text-decoration: none; }
.dwb-header .dwb-nav { font-weight: 600; }
.dwb-header .dwb-nav .wp-block-navigation__container { gap: 0 18px; }
.dwb-header .dwb-nav .wp-block-navigation-item__content { position: relative; padding-block: 8px; color: var(--sb-ink); text-decoration: none; }
.dwb-header .dwb-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.dwb-header .dwb-nav .wp-block-navigation-item__content:hover::after, .dwb-header .dwb-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

/* Footer (template part): dark, the site's name large, its details, its pages, then the last line. */
.dwb-footer { --sb-ink: var(--sb-on-dark); --sb-muted: color-mix(in srgb, var(--sb-on-dark) 72%, transparent); padding-block: clamp(48px, 7vw, 80px) 28px; background-color: var(--sb-dark); color: var(--sb-muted); font-size: .95rem; }
.dwb-footer.dwb-footer :where(.is-layout-flow, .is-layout-constrained) > * { margin-block: 0; }
.dwb-footer p { margin-block: 0 4px; }
.dwb-footer a { color: var(--sb-on-dark); }
.dwb-footer .dwb-footer-grid { gap: 24px; }
.dwb-footer .dwb-footer-name { margin-block-end: 8px; color: var(--sb-ink); font-family: var(--sb-heading); font-weight: var(--sb-heading-weight); font-size: 1.5rem; }
.dwb-footer .dwb-footer-nav { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dwb-footer .dwb-footer-bottom { gap: 4px 16px; margin-block-start: 28px; padding-block-start: 16px; border-top: 1px solid color-mix(in srgb, var(--sb-on-dark) 18%, transparent); }

/* « En-tête »: centred, beside its photo (framed), or over it (core/cover), its text at the bottom left. */
.dwb-hero--centered { text-align: center; }
.dwb-hero--centered .dwb-lead { margin-inline: auto; }
.dwb-hero--centered .wp-block-buttons { justify-content: center; }
.dwb-hero--centered > .dwb-media { max-width: 960px; margin-block-start: 40px; }
.dwb-section.dwb-hero--left .dwb-lead, .dwb-section.dwb-hero--centered .dwb-lead { max-width: 34em; }
.dwb-section .dwb-hero-columns { align-items: center; gap: clamp(24px, 5vw, 56px); }
.dwb-section .dwb-hero-columns > .wp-block-column:first-child { flex-basis: 52%; }
.dwb-section.dwb-hero--cover { display: flex; align-items: flex-end; min-height: min(92vh, 860px); padding-bottom: clamp(56px, 9vw, 120px); }
.dwb-section.dwb-hero--cover:not(.wp-block-cover) { min-height: 0; align-items: center; }
.dwb-section.dwb-hero--cover.wp-block-cover { --sb-ink: #fff; --sb-muted: #fff; color: #fff; }
.dwb-section.dwb-hero--cover .dwb-hero-text { max-width: 44em; }
.dwb-section.dwb-hero--cover .dwb-lead { opacity: .92; }
.dwb-section.dwb-hero.wp-block-cover .wp-block-cover__background.has-background-dim {
    opacity: 1; background-color: transparent !important;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .7) 100%), linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 70%);
}
.dwb-section.dwb-hero--cover:not(.wp-block-cover) .wp-block-button__link { border-color: var(--sb-on-accent); background: var(--sb-on-accent); color: var(--sb-accent); }
.dwb-section.dwb-hero--cover.wp-block-cover .wp-block-button__link { border-color: #fff; background: #fff; color: #111; }
/* The photo beside a text: framed, in the shape of a portrait. */
.dwb-section :is(.dwb-hero-columns .dwb-media, .dwb-split .wp-block-media-text__media) { position: relative; isolation: isolate; }
.dwb-section :is(.dwb-hero-columns .dwb-media, .dwb-split .wp-block-media-text__media)::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1; border-radius: var(--sb-image-radius); background: var(--sb-frame); opacity: var(--sb-frame-opacity, .18); }
.dwb-section .dwb-split:not(.has-media-on-the-right) .wp-block-media-text__media::before { inset: 22px 22px -22px -22px; }
.dwb-section :is(.dwb-hero-columns .dwb-media img, .dwb-split .wp-block-media-text__media img) { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--sb-image-radius); }

/* « Texte »: the title on the left of its paragraphs, or centred. */
.dwb-text--centered { text-align: center; }
.dwb-text--centered .dwb-prose, .dwb-text--centered .dwb-media { margin-inline: auto; }
.dwb-section .dwb-text-grid { gap: 32px; }
.dwb-section .dwb-text-grid > .wp-block-column:first-child { flex-basis: 33.33%; }
.dwb-section .dwb-text-body .dwb-media { max-width: 44em; margin-block-start: 24px; }

/* « Texte et image »: core/media-text, text and photo side by side. */
.dwb-section .dwb-split.wp-block-media-text, .dwb-section .dwb-split.wp-block-media-text.has-media-on-the-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 64px); align-items: center; }
.dwb-section .dwb-split > .wp-block-media-text__content { padding: 0; }
.dwb-section .dwb-split .dwb-prose { margin-block-end: 8px; }
.dwb-section.dwb-text-image.dwb-no-image .dwb-split-text { max-width: 44em; }

/* « Appel à l’action »: centred, or the text and its button side by side. */
.dwb-cta--banner .dwb-cta-inner { text-align: center; }
.dwb-cta--banner .dwb-lead { margin-inline: auto; }
.dwb-section.dwb-cta--banner .wp-block-buttons { justify-content: center; margin-block-start: 20px; }
.dwb-section.dwb-cta--split .dwb-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.dwb-section .dwb-cta-text > :last-child { margin-block-end: 0; }
.dwb-section.dwb-cta h2 { margin-block-end: .3em; }

/* « Annonce »: a band or a box. */
.dwb-section.dwb-notice { padding-block: calc(18px * var(--sb-space)); }
.dwb-section.dwb-notice.dwb-space-large { padding-block: calc(36px * var(--sb-space)); }
.dwb-section.dwb-notice--box { padding-block: calc(28px * var(--sb-space)); }
.dwb-section .dwb-notice-text { margin: 0; font-weight: 600; text-align: center; }
.dwb-section .dwb-notice-text a { margin-left: .4em; font-weight: 700; }
.dwb-section.dwb-notice--box .dwb-notice-text { padding: 16px 20px; border: 1px solid var(--sb-line); border-left: 4px solid currentColor; border-radius: var(--sb-radius); text-align: left; }

/* The elements of a section in a grid: as many columns as fit, stretched over the width. */
.dwb-section .dwb-items.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(var(--dwb-column, 240px), 100%), 1fr)); gap: 20px; }
.dwb-section .dwb-items.is-layout-flow { display: grid; gap: 0; }

/* « Services »: cards (their photo across the top) or a list. */
.dwb-section .dwb-services-list :is(h2, h3) { font-size: 1.15rem; }
.dwb-section .dwb-services-list p { margin: 0; color: var(--sb-muted); }
.dwb-section .dwb-card--photo { overflow: hidden; padding-top: 0; }
.dwb-section .dwb-card--photo > .dwb-card-media { margin: 0 -24px 18px; overflow: hidden; }
.dwb-section .dwb-card--photo > .dwb-card-media img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; transition: transform .6s ease; }
.dwb-section .dwb-card--photo:hover > .dwb-card-media img { transform: scale(1.04); }
.dwb-section.dwb-services--list .dwb-card { padding: 18px 0; border: 0; border-top: 1px solid var(--sb-line); border-radius: 0; background: none; box-shadow: none; transform: none; }

/* « Tarifs »: cards, or a price list like a menu (name and price on one line, a dotted rule under them). */
.dwb-section .dwb-price-name { margin: 0; font-size: 1.15rem; }
.dwb-section .dwb-price { margin-block: .35em .5em; color: var(--sb-accent); font-family: var(--sb-heading); font-weight: var(--sb-heading-weight); font-size: 1.6rem; line-height: 1.1; }
.dwb-section.dwb-bg-accent .dwb-price { color: var(--sb-on-accent); }
.dwb-section .dwb-price-detail { margin: 0; color: var(--sb-muted); }
.dwb-section.dwb-pricing--menu .dwb-pricing-list { max-width: 760px; }
.dwb-section.dwb-pricing--menu .dwb-card { padding: 14px 0; border: 0; border-bottom: 1px dotted var(--sb-line); border-radius: 0; background: none; box-shadow: none; transform: none; }
.dwb-section.dwb-pricing--menu .dwb-price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dwb-section.dwb-pricing--menu .dwb-price { margin: 0; font-size: 1.15rem; white-space: nowrap; }
.dwb-section.dwb-pricing--menu .dwb-price-detail { margin-block-start: 4px; font-size: .95rem; }
.dwb-section.dwb-pricing .dwb-note { max-width: 760px; margin-block: 24px 0; }

/* « Étapes »: numbered, in a row or as a list. */
.dwb-section .dwb-steps-list { --dwb-column: 200px; counter-reset: dwb-step; gap: 24px; }
.dwb-section .dwb-steps-list.is-layout-flow { gap: 24px; max-width: 760px; }
.dwb-section .dwb-step { position: relative; counter-increment: dwb-step; }
.dwb-section .dwb-step::before { content: counter(dwb-step); display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 12px; border-radius: 999px; background: var(--sb-accent); color: var(--sb-on-accent); font-family: var(--sb-heading); font-size: 1.2rem; font-weight: 700; }
.dwb-section.dwb-bg-accent .dwb-step::before { background: var(--sb-on-accent); color: var(--sb-accent); }
.dwb-section.dwb-steps--list .dwb-step { padding-left: 4.2rem; }
.dwb-section.dwb-steps--list .dwb-step::before { position: absolute; left: 0; top: -.2rem; }
.dwb-section .dwb-step :is(h2, h3) { font-size: 1.15rem; }
.dwb-section .dwb-step p { margin: 0; color: var(--sb-muted); }

/* « Chiffres clés »: large figures, in a row or as cards. */
.dwb-stats--row { text-align: center; }
.dwb-section.dwb-stats--row .dwb-head { margin-inline: auto !important; }
.dwb-section .dwb-stats-list { --dwb-column: 140px; }
.dwb-section .dwb-stat-value { overflow-wrap: break-word; hyphens: auto; margin: 0; color: var(--sb-accent); font-family: var(--sb-heading); font-weight: var(--sb-heading-weight); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.dwb-section.dwb-bg-accent .dwb-stat-value { color: var(--sb-on-accent); }
.dwb-section .dwb-stat-label { margin: .45em 0 0; color: var(--sb-muted); }
.dwb-section.dwb-stats--cards .dwb-stat { padding: 24px; border-radius: var(--sb-radius); background: var(--sb-soft); }
.dwb-section.dwb-stats--cards.dwb-bg-soft .dwb-stat { background: var(--sb-paper); }
.dwb-section.dwb-stats--cards:is(.dwb-bg-accent, .dwb-bg-dark, .wp-block-cover) .dwb-stat { background: rgba(0, 0, 0, .14); }

/* « Équipe »: round photos (or initials), as a grid or a list. */
.dwb-section .dwb-team-list { --dwb-column: 220px; gap: 28px; }
.dwb-section.dwb-team--grid .dwb-member { text-align: center; }
.dwb-section :is(.dwb-member-photo, .dwb-initials) { width: 132px; height: 132px; margin: 0 auto 14px !important; }
.dwb-section .dwb-member-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dwb-section .dwb-initials { display: grid; place-items: center; border-radius: 50%; background: var(--sb-soft); color: var(--sb-accent); font-family: var(--sb-heading); font-weight: var(--sb-heading-weight); font-size: 2.2rem; line-height: 1; }
.dwb-section.dwb-bg-soft .dwb-initials { background: var(--sb-paper); }
.dwb-section.dwb-bg-accent .dwb-initials { background: rgba(0, 0, 0, .14); color: var(--sb-on-accent); }
.dwb-section .dwb-member :is(h2, h3) { margin-block-end: .2em; font-size: 1.15rem; }
.dwb-section .dwb-role { margin-block: 0 .6em; color: var(--sb-accent); font-weight: 600; }
.dwb-section.dwb-bg-accent .dwb-role { color: var(--sb-on-accent); }
.dwb-section .dwb-member-text p:not(.dwb-role) { color: var(--sb-muted); }
.dwb-section.dwb-team--list .dwb-team-list { gap: 28px; }
.dwb-section.dwb-team--list .dwb-member { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.dwb-section.dwb-team--list :is(.dwb-member-photo, .dwb-initials) { width: 96px; height: 96px; margin: 0 !important; font-size: 1.6rem; }

/* « Galerie »: core/gallery as a grid, a mosaic (the first photo across the width) or a band to scroll sideways. */
.dwb-section .dwb-gallery-list.wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; }
.dwb-section .dwb-gallery-list.wp-block-gallery.has-nested-images figure.wp-block-image:not(#dwb) { display: block; width: auto !important; margin: 0; overflow: hidden; border-radius: var(--sb-image-radius); }
.dwb-section .dwb-gallery-list.wp-block-gallery.has-nested-images figure.wp-block-image:not(#dwb)::before { content: none; }
.dwb-section .dwb-gallery-list.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#dwb) img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sb-image-radius); transition: transform .6s ease; }
.dwb-section .dwb-gallery-list.wp-block-gallery.has-nested-images figure.wp-block-image:not(#dwb):hover img { transform: scale(1.04); }
.dwb-section .dwb-gallery-list.wp-block-gallery.has-nested-images figure.wp-block-image:not(#dwb) figcaption { position: static; max-height: none; margin-top: 8px; padding: 0; overflow: visible; background: none; color: var(--sb-muted); font-size: .95rem; text-align: left; text-shadow: none; }
@media (min-width: 640px) {
    .dwb-section.dwb-gallery--mosaic .dwb-gallery-list.wp-block-gallery > figure:first-child { grid-column: 1 / -1; }
    .dwb-section.dwb-gallery--mosaic .dwb-gallery-list.wp-block-gallery.is-cropped > figure.wp-block-image:first-child:not(#dwb) img { aspect-ratio: 16 / 7; }
}
.dwb-section.dwb-gallery--strip .dwb-gallery-list.wp-block-gallery.has-nested-images { display: flex; flex-wrap: nowrap; padding-bottom: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.dwb-section.dwb-gallery--strip .dwb-gallery-list.wp-block-gallery.has-nested-images figure.wp-block-image:not(#dwb) { flex: 0 0 min(80%, 380px); scroll-snap-align: start; }

/* « Témoignages »: core/quote in cards, or large quotes. */
.dwb-section .dwb-testimonials-list { --dwb-column: 260px; }
.dwb-section .dwb-testimonial::before { content: "“" / ""; display: block; height: .55em; color: var(--sb-accent); font: 700 4rem/1 var(--sb-heading); }
.dwb-section.dwb-bg-accent .dwb-testimonial::before { color: var(--sb-on-accent); }
.dwb-section .dwb-testimonial .wp-block-quote { margin: 0; padding: 0; border: 0; background: none; font-size: 1.05rem; font-style: normal; }
.dwb-section .dwb-testimonial .wp-block-quote p { margin-block: 0 14px; }
.dwb-section .dwb-testimonial .wp-block-quote cite { display: block; color: var(--sb-muted); font-size: .95rem; font-style: normal; text-transform: none; }
.dwb-section .dwb-testimonial .wp-block-quote cite strong { color: var(--sb-ink); }
.dwb-section.dwb-testimonials--quotes .dwb-head { margin-inline: auto !important; text-align: center; }
.dwb-section.dwb-testimonials--quotes .dwb-testimonials-list { max-width: 820px; margin-inline: auto !important; gap: 48px; }
.dwb-section.dwb-testimonials--quotes .dwb-testimonial { padding: 0; border: 0; background: none; box-shadow: none; transform: none; text-align: center; }
.dwb-section.dwb-testimonials--quotes .dwb-testimonial .wp-block-quote p { font-family: var(--sb-heading); font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.35; }

/* « Logos »: in a row, or in framed cells; a logo without image shows its name. */
.dwb-section.dwb-logos .dwb-head { margin-inline: auto !important; text-align: center; }
.dwb-section .dwb-logos-list.is-layout-flex { align-items: center; justify-content: center; gap: 24px 44px; }
.dwb-section .dwb-logos-list.is-layout-grid { --dwb-column: 150px; gap: 16px; }
.dwb-section.dwb-logos--grid .dwb-logo { display: grid; place-items: center; min-height: 104px; padding: 16px; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); }
.dwb-section .dwb-logo .wp-block-image img { width: auto; max-width: 160px; max-height: 64px; border-radius: 0; object-fit: contain; }
.dwb-section .dwb-logo-name { margin: 0; color: var(--sb-muted); font-family: var(--sb-heading); font-weight: var(--sb-heading-weight); font-size: 1.1rem; }
.dwb-section .dwb-logo a { color: inherit; text-decoration: none; }

/* « Vidéo »: core/embed, wide or beside its text. */
.dwb-section .dwb-video-grid { align-items: center; gap: clamp(24px, 5vw, 56px); }
.dwb-section .dwb-video-grid > .wp-block-column:last-child { flex-basis: 58%; }
.dwb-section .dwb-video-text { margin-block-end: 24px; }
.dwb-section .dwb-video-text > :last-child { margin-block-end: 0; }
.dwb-section .dwb-video-embed { margin: 0; overflow: hidden; border-radius: var(--sb-radius); background: #111; }

/* « Questions fréquentes »: core/details, a « + » that turns into « – ». */
.dwb-section .dwb-faq-list { max-width: 820px; border-top: 1px solid var(--sb-line); }
.dwb-section .dwb-faq-item { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--sb-line); }
.dwb-section .dwb-faq-item > summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.08rem; list-style: none; cursor: pointer; }
.dwb-section .dwb-faq-item > summary::-webkit-details-marker { display: none; }
.dwb-section .dwb-faq-item > summary::after { content: "+" / ""; flex: none; color: var(--sb-accent); font-size: 1.4rem; line-height: 1; }
.dwb-section.dwb-bg-accent .dwb-faq-item > summary::after { color: var(--sb-on-accent); }
.dwb-section .dwb-faq-item[open] > summary::after { content: "–" / ""; }
.dwb-section .dwb-faq-item > p { margin-block: 10px 0; color: var(--sb-muted); }

/* « Horaires »: core/table of days and hours, the note under it or beside it. */
.dwb-section .dwb-hours-grid { gap: 20px; }
.dwb-section.dwb-hours--table .dwb-hours-grid { max-width: 720px; }
.dwb-section .dwb-hours-table { margin: 0; overflow: visible; }
.dwb-section .dwb-hours-table table { width: 100%; border-collapse: collapse; }
.dwb-section .dwb-hours-table td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--sb-line); vertical-align: top; }
.dwb-section .dwb-hours-table td:first-child { padding-right: 16px; font-weight: 700; }
.dwb-section .dwb-hours-table td:last-child { color: var(--sb-muted); text-align: right; }
.dwb-section.dwb-hours .dwb-note { margin: 0; }
.dwb-section.dwb-hours--columns .dwb-hours-grid > .wp-block-column:first-child { flex-basis: 55%; }
@media (max-width: 520px) {
    .dwb-section .dwb-hours-table tr { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--sb-line); }
    .dwb-section .dwb-hours-table td { padding: 0; border: 0; }
    .dwb-section .dwb-hours-table td:last-child { text-align: left; }
}

/* « Adresse et plan »: a card with the address and a link to the map, the photo beside it. */
.dwb-section .dwb-map-grid { align-items: center; gap: 24px; }
.dwb-section .dwb-map-text { max-width: 560px; }
.dwb-section .dwb-address { margin-block: 0 1em; font-size: 1.15rem; line-height: 1.5; }

/* « Coordonnées »: the labels small and capitalised, the links large. */
.dwb-contact--centered { text-align: center; }
.dwb-section.dwb-contact--centered .dwb-head { margin-inline: auto !important; }
.dwb-section.dwb-contact--centered .dwb-lead { margin-inline: auto; }
.dwb-section .dwb-contact-grid { align-items: flex-start; gap: 12px 48px; }
.dwb-section .dwb-contact-list { gap: 16px 32px; }
.dwb-section .dwb-contact-list.is-layout-flow > * + * { margin-block-start: 16px; }
.dwb-section .dwb-contact-item > p { margin: 0; }
.dwb-section .dwb-contact-label { color: var(--sb-muted); font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dwb-section .dwb-contact-value { font-size: 1.2rem; font-weight: 600; }
.dwb-section .dwb-contact-value a { color: var(--sb-ink); text-decoration-color: var(--sb-accent); }
.dwb-section.dwb-contact--centered .dwb-contact-list { margin-block-end: 16px; }

/* « Formulaire de contact »: the plugin's dowebo/contact block, beside the text or under it. */
.dwb-section .dwb-form-grid { align-items: flex-start; gap: clamp(24px, 5vw, 56px); }
.dwb-section .dwb-form-grid > .wp-block-column:last-child { flex-basis: 56%; }
.dwb-section.dwb-contact-form--simple .wp-block-dowebo-contact { max-width: 680px; }

/* « Carte »: categories, each item's name and price on one line, its description and mentions; or cards. */
.dwb-section .dwb-menu-groups { display: grid; gap: 36px; }
@media (min-width: 900px) { .dwb-section.dwb-menu--columns .dwb-menu-groups { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.dwb-section.dwb-menu--list .dwb-menu-groups { max-width: 760px; }
.dwb-section .dwb-menu-category { margin-block: 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--sb-accent); font-size: 1.3rem; }
.dwb-section .dwb-menu-item { padding: 14px 0; border-bottom: 1px dotted var(--sb-line); }
.dwb-section .dwb-menu-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dwb-section .dwb-menu-name { margin: 0; font-size: 1.08rem; }
.dwb-section .dwb-menu-price { margin: 0; color: var(--sb-accent); font-family: var(--sb-heading); font-weight: var(--sb-heading-weight); font-size: 1.08rem; white-space: nowrap; }
.dwb-section.dwb-bg-accent .dwb-menu-price { color: var(--sb-on-accent); }
.dwb-section .dwb-menu-description { margin: 4px 0 0; color: var(--sb-muted); font-size: .95rem; }
.dwb-section .dwb-menu-mentions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.dwb-section .dwb-menu-mentions li { padding: 2px 10px; border: 1px solid var(--sb-line); border-radius: 999px; color: var(--sb-muted); font-size: .78rem; font-weight: 600; }
.dwb-section .dwb-menu-item.is-sold-out :is(.dwb-menu-name, .dwb-menu-description) { opacity: .55; }
.dwb-section .dwb-menu-item.is-sold-out .dwb-menu-price { color: var(--sb-muted); text-decoration: line-through; }
.dwb-section.dwb-menu--cards .dwb-menu-list { --dwb-column: 240px; }
.dwb-section.dwb-menu--cards .dwb-menu-item { overflow: hidden; padding: 0; border: 1px solid var(--sb-line); border-radius: var(--sb-radius); background: var(--sb-paper); }
.dwb-section.dwb-menu--cards .dwb-menu-photo img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.dwb-section.dwb-menu--cards .dwb-menu-body { padding: 16px; }
.dwb-section.dwb-menu .dwb-note { margin-block: 24px 0; }

/* Sections appear as they are reached (browsers that know scroll-driven animations), never in the editor nor when
   motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        body:not(.block-editor-iframe__body) .dwb-section :is(.dwb-head, .dwb-card, .dwb-split, .dwb-stat, .dwb-step) {
            animation: dwb-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
        }
    }
}
@keyframes dwb-rise { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) {
    .dwb-section :is(.dwb-card, .wp-block-button__link, .wp-block-button__link::after, img), .dwb-header .wp-block-navigation-item__content::after { transition: none; }
}

@media (max-width: 760px) {
    .dwb-section .dwb-split.wp-block-media-text, .dwb-section .dwb-split.wp-block-media-text.has-media-on-the-right { grid-template-columns: 100%; row-gap: 32px; }
    .dwb-section .dwb-split > .wp-block-media-text__content { grid-row: 1; grid-column: 1; }
    .dwb-section .dwb-split > .wp-block-media-text__media { grid-row: 2; grid-column: 1; }
    .dwb-section :is(.dwb-hero-columns .dwb-media, .dwb-split .wp-block-media-text__media)::before { inset: 14px -10px -14px 14px; }
    .dwb-section :is(.dwb-hero-columns .dwb-media img, .dwb-split .wp-block-media-text__media img) { aspect-ratio: 4 / 3; }
    .wp-block-template-part:has(> .dwb-header) { position: relative; top: auto; }
}
