/*
Theme Name: LALOYEAU
Template: motorx
Theme URI: https://www.via-mobilis.com/
Author: Via Mobilis
Author URI: https://www.via-mobilis.com/
Description: LALOYEAU client theme, built on top of the motorx parent theme and the wordpress-corpo engine plugin. Derived from the wordpress-corpo-gabarit boilerplate.
Version: 1.0.37
Requires PHP: 8.2
Text Domain: laloyeau
*/

/*
 * LALOYEAU brand palette.
 */
:root {
    --color-primary: #97d700;
    --color-secondary: #1d428a;
    --color-secondary-light: #f1f5fd;
    --color-pink: #ee398a;
    --color-text: #333333;
    --color-border-grey: rgba(0, 0, 0, 0.12);
    --color-light-grey: rgba(0, 0, 0, 0.05);
    --img-radius: 10px;
    --img-big-radius: 25px;
    --btn-radius: 7px;
    --section-gap: 48px;
    --icon-size: 48px;
    --font-heading: "HandelGothic BT", "Arial Narrow", sans-serif;
    --font-body: "DIN Pro", Arial, sans-serif;
}

/*
 * Brand fonts: HandelGothic BT for headings, DIN Pro (Regular + Bold) for
 * body text — client-supplied files, served from assets/fonts/ as-is (no
 * build step, see CLAUDE.md).
 *
 * HandelGothic BT only exists in Regular, so its face is declared over the
 * whole 100-900 weight range: a heading still carrying font-weight: 700
 * (motorx's typography_headings default, or a component rule such as
 * .category-cards h3) then resolves to this one face as-is instead of
 * getting a browser-synthesized faux bold.
 */
@font-face {
    font-family: "HandelGothic BT";
    src: url("assets/fonts/handelgothic-bt-regular.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DIN Pro";
    src: url("assets/fonts/dinpro-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DIN Pro";
    src: url("assets/fonts/dinpro-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/*
 * motorx prints a font-family (its own Customizer typography_* theme_mods,
 * "Plus Jakarta Sans" by default) on each of these selectors from
 * inc/styles.php — same selector text here, so laloyeau-style's print order
 * wins (see inc/enqueue-assets.php). The main nav rule is the exception:
 * motorx generates it with !important, which only another !important can
 * beat (same gotcha as the mainnav color rule further down).
 */
body, button, input, select, textarea,
#mainnav ul.sub-menu > li > a,
footer .footer-widgets .widget.widget_text, .infor-ft li, footer .wrap-widgets p, footer .widget.widget_nav_menu ul li a,
.themesflat-button, .tf-btn, button, input[type="button"], input[type="reset"], input[type="submit"],
.copyright,
.bottom,
.themesflat-top, .themesflat-top.select-2 .content-left ul li {
    font-family: var(--font-body);
}

#mainnav > ul > li > a, .header-modal-menu-left-btn .text, header .flat-information li {
    font-family: var(--font-body) !important;
}

/* Footer column titles: headings too, but motorx's own font-family rule
 * for them (same inc/styles.php) is more specific than plain h1-h6. */
#footer .footer-widgets .widgets-areas > .widget-title, footer .widget .widget-title, footer .widget h2, footer .wp-block-search .wp-block-search__label {
    font-family: var(--font-heading);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/*
 * Global typography overrides. motorx prints its own h1/h2 font-size and
 * body line-height from Customizer JSON theme_mods (typography_headings /
 * typography_body, inc/styles.php) and its h1-h6 color from a plain
 * main.css rule, all as equally-specific `h1` / `h2` / `body, button, ...`
 * / `h1, h2, ..., h6` rules — laloyeau-style prints after all of motorx's
 * CSS (see inc/enqueue-assets.php), so plain rules of the same specificity
 * here win on source order alone. body_text_color (a plain string
 * theme_mod, not JSON) is set in inc/customizer-defaults.php instead,
 * which avoids reverse-engineering a JSON shape shared with
 * font-family/size the client may still want at motorx's own defaults.
 */
h2 {
    font-size: 28px;
    margin-bottom: 32px;
}

h1 {
    font-size: 36px;
    margin-bottom: 32px;
}

body {
    line-height: 1.25;
    font-size: 16px;
}

h1, h2, h3 {
    color: var(--color-secondary);
}

img {
    object-fit: cover;
    border-radius: var(--img-radius);
}

i.small-icon {
    width: .8rem;
    height: .8rem;
}

/*
 * Header/footer chrome overrides for motorx's own markup (topbar, logo,
 * footer widgets) — see tpl/header/header-default.php and
 * tpl/footer/footer-widgets.php, both overridden in this theme to add
 * markup motorx has no slot for (topbar address/badge, footer contact
 * info/social/stock links).
 */

/* motorx's own .themesflat-top.style-01 rule (main.css) hardcodes
 * background: var(--theme-primary-color). Matching that exact two-class
 * selector ties its specificity and print order (see
 * inc/enqueue-assets.php) wins the tie — the single-class .themesflat-top
 * rule motorx generates from topbar_background_color is too weak to. */
.themesflat-top.style-01 {
    background: var(--color-secondary);
}

/* motorx's own .themesflat-top.style-01 .container-inside .content-left
 * rule (responsive.css, max-width: 767px only) sets margin-bottom: 10px —
 * matching its exact selector (rather than the shorter .themesflat-top
 * .content-left, lower specificity) plus print order is what wins here too. */
.themesflat-top.style-01 .container-inside .content-left {
    margin-bottom: 0;
}

/*
 * Vertical breathing room around every page's content wrapper (motorx's
 * #themesflat-content, printed on every request — see motorx's
 * header.php). Doesn't fight the homepage's full-bleed layout: motorx's
 * own .page-template-front-page #themesflat-content.page-wrap rule
 * (main.css) is more specific and zeroes this out there.
 *
 * overflow-x clips the few px of horizontal overflow the 100vw bleed of
 * .secondary-light-wrapper / .bleed100-wrapper (below) introduces: 100vw
 * counts the scrollbar gutter, 100% of this box does not. Scoped to this
 * per-page content wrapper rather than body/html so it can't affect the
 * header's own overflow/sticky behavior, which lives outside it.
 *
 * clip rather than hidden: overflow-x: hidden forces overflow-y to auto,
 * making this box a scroll container that never scrolls itself — every
 * position: sticky descendant (e.g. the stock technical sheet's
 * .form-container) then sticks to it instead of the viewport, i.e. never.
 * clip clips the same way without creating a scroll container.
 */
#themesflat-content {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
    overflow-x: clip;
}

#mainnav_canvas ul .sub-menu {
    background-color: transparent;
}

/* Every header nav entry in uppercase and bold — desktop (#mainnav,
 * dropdowns included) and the off-canvas mobile nav (#mainnav_canvas).
 * The weight needs each of motorx's own selectors: its Customizer prints
 * the top-level one with !important (typography_menu, see
 * themesflat_custom_styles()), the dropdown one without, and main.css
 * sets the mobile ones on #mainnav_canvas ul li a and, for submenus,
 * #mainnav_canvas .sub-menu a. */
#mainnav a,
#mainnav_canvas ul li a {
    text-transform: uppercase;
    font-weight: 700;
}

/* Secondary blue too, as on the laloyeau-services landing: motorx's own
 * color rules for these exact selectors (Customizer mainnav_color /
 * sub_nav_color, main.css for the mobile nav) carry no !important, so
 * print order wins. Hover/active stay primary green: on desktop via the
 * !important #header #mainnav … :hover/.current-menu-* rule further
 * down, in the mobile nav via motorx's own more specific
 * li.current-menu-item > a rule (var(--theme-primary-color), the same
 * green through the primary_color theme_mod). */
#mainnav > ul > li > a {
    font-weight: 700!important;
    color: var(--color-secondary);
}

#mainnav ul.sub-menu > li.current-menu-ancestor > a,
#mainnav ul.sub-menu > li > a {
    font-weight: 700;
    color: var(--color-secondary);
}

#mainnav_canvas ul li a {
    color: var(--color-secondary);
}

#mainnav_canvas .sub-menu a {
    font-weight: 700;
}

/* The off-canvas mobile nav's own search toggle (.group-header-logo
 * .show-search in tpl/header/header-default.php, as in motorx's original)
 * is rendered unconditionally, unlike the desktop one (.header-ct-right
 * .show-search) gated by header_search_box — no theme_mod turns just this
 * one off. Matching motorx's own main.css selector exactly hides only the
 * mobile instance, never the desktop search this theme keeps. */
#header .inner-canvas-nav .group-header-logo .show-search {
    display: none;
}

#header .show-search {
    margin-left: 10px;
}

#header .inner-canvas-nav .group-header-logo {
    box-shadow: none!important;
    margin-bottom: 0!important;
}

.btn-menu:before,
.btn-menu:after,
.btn-menu span {
    background: var(--color-secondary)!important;
}

/* Needs !important: motorx's Customizer generates
 * `#mainnav > ul > li > a:hover` (mainnav_hover_color) and
 * `#mainnav > ul > li.current-menu-item > a, ...` (mainnav_active_color)
 * with `color: ... !important` (inc/styles.php), and an !important
 * declaration can only be beaten by another !important one — between the
 * two, the extra #header here wins on specificity. Those options' values
 * aren't tied to the brand palette, so this can't be dropped. motorx's
 * static main.css rules for the same selectors
 * (var(--theme-primary-color), no !important) aren't what this competes
 * with. */
#header #mainnav > ul > li > a:hover,
#header #mainnav > ul > li.current-menu-item > a,
#header #mainnav > ul > li.current-menu-ancestor > a,
#header #mainnav > ul > li.current-menu-parent > a {
    color: var(--color-primary)!important;
}

/* motorx's own `#mainnav ul.sub-menu > li.current-menu-item a` rule
 * (main.css, var(--theme-primary-color)) uses a descendant combinator
 * before `a`, so when the current sub-menu item has its own sub-menu (e.g.
 * "Nos gammes" under "Nos produits") every nested link turns green too,
 * not just the current one. These rules reset the nested links and
 * re-highlight only the actual current item. At (1,3,5) they outrank
 * motorx's (1,2,3) on specificity, not print order — and also outrank
 * motorx's generic `#mainnav ul.sub-menu > li a:hover`, hence the explicit
 * :hover rule so hovering these links still highlights them. */
#mainnav ul.sub-menu > li.current-menu-item ul.sub-menu > li > a {
    color: #000;
}

#mainnav ul.sub-menu > li.current-menu-item ul.sub-menu > li > a:hover {
    color: var(--color-primary);
}

#mainnav ul.sub-menu > li.current-menu-item ul.sub-menu > li.current-menu-item > a {
    color: var(--color-primary);
}

#mainnav ul.sub-menu li.menu-item-has-children > a::before {
    transition: transform .3s ease-in-out;
}

#mainnav ul.sub-menu li.menu-item-has-children:hover > a::before,
#mainnav ul.sub-menu li.menu-item-has-children:focus > a::before,
#mainnav ul.sub-menu li.menu-item-has-children:focus-within > a::before {
    transform: translateY(-50%) rotate(-90deg)
}

/* motorx's Customizer prints this exact selector with an !important
 * line-height (themesflat_custom_styles(), the "menu" typography control,
 * 98px by default) — only another !important overrides it, same reasoning
 * as the active/hover color rule above. Lets the nav's own text block
 * (#mainnav > ul, inside .header-ct-center) fit the shorter header below
 * instead of overflowing it. */
#mainnav > ul > li > a,
#header.header-sticky #mainnav > ul > li > a {
    line-height: 49px!important;
}

/* motorx's main.css gives #header's 3 flex children
 * (.header-ct-left/-center/-right) height: 100%, against a #header whose
 * own height is content-driven (auto). With that percentage height,
 * #header's height doesn't follow the nav's line-height above; only an
 * explicit pixel height on these children sizes it. 70px fits the 49px
 * nav line-height above and the logo (capped at 65px below). */
#header .header-wrap .header-ct-left,
#header .header-wrap .header-ct-center,
#header .header-wrap .header-ct-right {
    height: 70px;
}

/* The logo's rendered height follows the logo_width theme_mod
 * (client-editable; inc/customizer-defaults.php sets 220) through motorx's
 * generated `#header #logo a img { max-width: <logo_width>px; height:
 * auto; }` (inc/styles.php), so it can exceed the fixed-height box above.
 * Nothing in this chain sets overflow: hidden, on purpose (it would also
 * clip #mainnav's dropdown panels, which live inside the same
 * .header-wrap), so the logo's own height is capped instead, whatever
 * logo_width is. Scoped to #logo (the desktop header) rather than the bare
 * .site-logo class, which the off-canvas mobile nav's own copy
 * (#logo-mobi, a different, unconstrained box) shares. */
#header #logo img.site-logo {
    max-height: 65px;
    border-radius: 0;
    margin-inline-end: 1rem;
}

/* motorx's own rule for these same selectors (main.css) sets flex-grow: 1
 * — same specificity, so laloyeau-style's print order (see
 * inc/enqueue-assets.php) is what wins here, no !important needed. */
#header .header-wrap .header-ct-center,
#header .header-wrap .header-ct-left {
    flex-grow: 0;
}

/* The white part of the header (#header — the .themesflat-top topbar
 * above it scrolls normally) pins to the top of the viewport once
 * scrolled past the topbar, with a permanent bottom shadow:
 * laloyeauInitStickyHeader() (assets/js/child.js) toggles .is-fixed below.
 * motorx's own header_sticky option (off by default, left untouched)
 * doesn't do that: its headerFixed() (motorx/js/main.js) keeps the header
 * hidden above the viewport until 500px of scroll, then shows it at
 * z-index 999.
 *
 * position: sticky can't do it either: #header's parent (motorx's
 * <div class="header-boxed">) is only as tall as the topbar + #header, so
 * a sticky #header would only stay stuck for that short box (~140px of
 * scroll). Widening the containing block with `display: contents` on
 * .header-boxed would work, but that property carries enough
 * cross-browser stacking/accessibility quirks to avoid when a JS-toggled
 * class does the job.
 *
 * z-index restates motorx's own #header value (main.css) so this stays
 * correct on its own: #header and everything inside it (in particular
 * #mainnav's dropdown panels) must paint above all page content, none of
 * which uses a z-index anywhere near this range. */
#header {
    z-index: 9999;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

#header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* Occupies #header's own flow height while it's fixed (see
 * laloyeauInitStickyHeader()), so #main-content doesn't jump up into the
 * space #header vacated — same purpose as motorx's own header_sticky
 * mechanism's injected spacer div, just toggled by class instead of
 * inline display. */
.header-fixed-spacer {
    display: none;
}

.header-fixed-spacer.is-active {
    display: block;
}

.uppercase {
    text-transform: uppercase;
}

.bold {
    font-weight: bold;
}

.color-primary {
    color: var(--color-primary)!important;
}

.color-secondary {
    color: var(--color-secondary)!important;
}

.color-white {
    color: #fff;
}

.bg-primary {
    background-color: var(--color-primary)!important;
}

.bg-light-grey {
    background-color: var(--color-light-grey);
}

section {
    padding-block: var(--section-gap);
}

.d-flex {
    align-items: normal; /* overrides motorx's main.css .d-flex { align-items: center } */
}

/*
 * Bleeds .secondary-light-wrapper's background past the boxed .wrap-content-area
 * column it sits in (e.g. "Notre usine", views/page-notre-usine.php),
 * full-width regardless of viewport — the standard "100vw + negative
 * margin" trick. Motorx's own full-bleed sections instead rely on the
 * .page-template-front-page body class (see the #themesflat-content note
 * above), which only applies to the front page, not a generic boxed one.
 * Its content stays boxed by nesting it in a real .container in the view
 * (the same Bootstrap class the page's own outer wrapper already uses), so
 * only the background bleeds, not the content itself.
 */
.secondary-light-wrapper {
    background-color: var(--color-secondary-light);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.bleed100-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.bg-image-gammes {
    background-image: url(assets/images/gammes/bandeau.webp);
    background-repeat: no-repeat;
    background-size: cover;
}

.topbar-address {
    display: flex;
    align-items: center;
    color: #fff;
    margin-right: 22px;
}

.topbar-address i {
    margin-right: 7px;
}

/* The topbar address is hidden from 1199px down, along with the switch
 * to the burger menu below: its label is long, with no shorter wording to
 * fall back to. Left in place, .content-right (address, socials, pink
 * badge) would wrap onto its own line under .content-left's email once
 * motorx's own .themesflat-top .container-inside rule (responsive.css,
 * max-width: 991px) switches to flex-wrap: wrap. */
@media (max-width: 1199px) {
    .topbar-address {
        display: none;
    }

    /* The burger menu takes over from 1199px down instead of motorx's own
     * 991px (responsive.css): the uppercase bold entries no longer fit
     * below that. Same 3 rules as motorx's breakpoint — the matching JS
     * (submenu toggles) is laloyeauInitBurgerBreakpoint(), child.js.
     * #mainnav needs !important: motorx's own script sets an inline
     * display on it (jQuery .show()) when the viewport crosses 991px. */
    #header.header-default .header-wrap .header-ct-center .inner-center {
        display: none;
    }

    #mainnav {
        display: none!important;
    }

    .btn-menu {
        display: block;
    }
}

.pink-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-pink);
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 6px 14px;
    margin-left: 16px;
}

/** MASKS
 * Use alongside .wordpress-corpo-mask (plugin's assets/icons.css) — that
 * class carries the actual mask sizing/positioning, these just supply the
 * per-icon mask-image.
 */
.utilitaires-mask {
    -webkit-mask-image: url("assets/images/gammes/icon-utilitaires.svg");
    mask-image: url("assets/images/gammes/icon-utilitaires.svg");
}

.pl-mask {
    -webkit-mask-image: url("assets/images/gammes/icon-poids-lourd.svg");
    mask-image: url("assets/images/gammes/icon-poids-lourd.svg");
}

.specifique-mask {
    -webkit-mask-image: url("assets/images/gammes/icon-specifiques.svg");
    mask-image: url("assets/images/gammes/icon-specifiques.svg");
}

.solutions-mask {
    -webkit-mask-image: url("assets/images/gammes/icon-solutions.svg");
    mask-image: url("assets/images/gammes/icon-solutions.svg");
}

.materiaux-mask {
    -webkit-mask-image: url("assets/images/gammes/icon-materiaux.svg");
    mask-image: url("assets/images/gammes/icon-materiaux.svg");
}

.realisation-mask {
    -webkit-mask-image: url("assets/images/contact/icon-realisation.svg");
    mask-image: url("assets/images/contact/icon-realisation.svg");
}

.magasin-mask {
    -webkit-mask-image: url("assets/images/contact/icon-magasin.svg");
    mask-image: url("assets/images/contact/icon-magasin.svg");
}

.atelier-mask {
    -webkit-mask-image: url("assets/images/contact/icon-atelier.svg");
    mask-image: url("assets/images/contact/icon-atelier.svg");
}

.info-mask {
    -webkit-mask-image: url("assets/images/contact/icon-info.svg");
    mask-image: url("assets/images/contact/icon-info.svg");
}

.whatsapp-mask {
    -webkit-mask-image: url("assets/images/team/icon-whatsapp.svg");
    mask-image: url("assets/images/team/icon-whatsapp.svg");
}

.mail-mask {
    -webkit-mask-image: url("assets/images/team/icon-mail.svg");
    mask-image: url("assets/images/team/icon-mail.svg");
}

.linkedin-mask {
    -webkit-mask-image: url("assets/images/team/icon-linkedin.svg");
    mask-image: url("assets/images/team/icon-linkedin.svg");
}


/* In the topbar specifically, the badge should fill the bar's full height
 * edge-to-edge, not just the height of its own padded content — but
 * .themesflat-top.style-01 (main.css) is what actually reserves that
 * height, via its own `padding: 7px 0`, not .content-right or
 * .container-inside (both plain `align-items: center`, sized to their
 * tallest child). align-self: stretch alone would only match .content-right's
 * own height, so the badge still wouldn't reach the bar's true edges — the
 * matching negative margin is what bleeds it those last 7px on each side. */
.themesflat-top .pink-badge {
    align-self: stretch;
    margin-top: -7px;
    margin-bottom: -7px;
    padding-top: 0;
    padding-bottom: 0;
}

.pink-badge img {
    height: 22px;
    width: auto;
    display: block;
    border-radius: 0;
}

/* The same badge again in the off-canvas mobile nav, right after
 * .bottom-canvas-nav (tpl/header/header-default.php) — lined up with that
 * block's own 20px side padding (motorx's main.css). */
.canvas-nav-badge {
    padding: 0 20px 20px;
}

.canvas-nav-badge .pink-badge {
    margin-left: 0;
}

.canvas-nav-badge .pink-badge img {
    height: 26px;
}

/* motorx's .logo img rule (main.css) forces image-rendering: crisp-edges,
 * meant for pixel-art icons — it blurs a normal raster logo like ours.
 * img.site-logo matches its exact specificity (class + element); print
 * order (see inc/enqueue-assets.php) is what wins here. */
img.site-logo {
    image-rendering: auto;
    border-radius: 0;
}

#logo-mobi .site-logo {
    max-width: 230px;
}

.footer_background {
    background-color: var(--color-secondary);
    border-top-right-radius: var(--img-big-radius);
    border-top-left-radius: var(--img-big-radius);
}

/*
 * Footer column 1 (tpl/footer/footer-widgets.php): logo, contact info
 * (.footer-contact) and social icons — shown here instead of in the
 * bottom bar (social_bottom theme_mod off, see
 * inc/customizer-defaults.php).
 */
.wrap-logo-footer {
    margin-left: 0;
}

.wrap-logo-footer img {
    max-width: 60%;
    border-radius: 0;
}
.footer-contact {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 11px;
}

.footer-contact li i {
    color: var(--color-primary);
    font-size: 18px;
    margin-right: 12px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-social ul {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.footer .themesflat-socials li {
    background-color: transparent;
}

.footer .pink-badge {
    margin-left: 0;
}

.footer .pink-badge img {
    width: 150px;
    max-width: 150px;
}

.footer-social ul li,
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fff;
}

.footer_background  .copyright,
.footer_background  .bottom {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.footer_background  .bottom {
    background-color: var(--color-secondary);
}

.footer_background  .bottom::before {
    background: #fff;
}

#menu-informations-legales-bas-de-page {
    display: flex;
    flex-direction: column;
}

#menu-informations-legales-bas-de-page li {
    margin: 0;
}

/*
 * Buttons shared across homepage sections and page views.
 */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 28px!important;
    border-radius: var(--btn-radius)!important;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    flex: none!important;
    outline: none;
    width: 100%;
}

.btn i {
    transition: all 0.3s ease-in-out;
}

/* .btn's own outline: none above drops the keyboard focus indicator
 * (WCAG 2.4.7) on every button site-wide with nothing to replace it —
 * restated here, scoped to :focus-visible so a mouse click stays silent
 * and only keyboard nav shows it. */
.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-secondary)!important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-within {
    color: var(--color-secondary)!important;
    background-color: #fff!important;
    border-color: var(--color-secondary)!important;
}

.facets-btn-filter.btn-primary i,
.btn-primary:hover i,
.btn-primary:focus i,
.btn-primary:focus-within i {
    background-color: var(--color-secondary)!important;
}

.btn-white {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-secondary);
}

.btn-white:hover {
    background-color: transparent;
    color: #fff;
    opacity: 1;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn-secondary-hover-primary,
.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:focus-within {
    background-color: #fff;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-secondary-hover-primary:hover,
.btn-secondary-hover-primary:focus,
.btn-secondary-hover-primary:focus-within {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}


/*
 * Hero. A looping muted background video (see views/front-page.php) rather
 * than the static photo the mockup shows — full-bleed, with the bottom two
 * corners rounded into the page below (see .hero-media).
 */
.hero {
    position: relative;
    margin: 0;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Room for the stats band straddling the bottom edge (see .stats
     * below) so it never overlaps the hero's own text content. */
    padding-bottom: 64px;
}

/* Video + overlay live in their own absolutely-positioned wrapper, not
 * directly on .hero, so only the video gets clipped/rounded —
 * .hero itself must NOT have overflow: hidden, or it would also
 * clip .stats, which deliberately straddles its bottom edge. */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-bottom-right-radius: var(--img-big-radius);
    border-bottom-left-radius: var(--img-big-radius);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(29, 66, 138, 0.65);
}

.hero-content {
    /* Explicit z-index (1, above .hero-media's 0) rather than
     * relying on DOM order alone to paint over the video — same intent
     * as .hero-sound-toggle's 3 and .stats's 2 below. */
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.8em;
    line-height: 1.2;
}

.hero-content .btn-group {
    justify-content: center;
}

.hero-content .btn {
    padding: 12px 24px;
    font-size: 0.95em;
}

.hero-sound-toggle {
    position: absolute;
    z-index: 3;
    right: 15px;
    bottom: 15px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.hero-sound-toggle:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.hero-sound-toggle svg {
    width: 20px;
    height: 20px;
}

.hero-sound-toggle .icon-sound-on {
    display: none;
}

.hero-sound-toggle[aria-pressed="true"] .icon-sound-off {
    display: none;
}

.hero-sound-toggle[aria-pressed="true"] .icon-sound-on {
    display: block;
}

/* Mobile/tablet default: bottom-left, clear of the centered .stats band,
 * which would otherwise sit under a bottom-right button. From 992px it
 * sits next to .hero-sound-toggle instead (see that breakpoint), where
 * .stats no longer reaches that corner. */
.hero-play-toggle {
    position: absolute;
    z-index: 3;
    left: 15px;
    bottom: 15px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.hero-play-toggle:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.hero-play-toggle svg {
    width: 20px;
    height: 20px;
}

.hero-play-toggle .icon-play {
    display: none;
}

.hero-play-toggle[aria-pressed="true"] .icon-pause {
    display: none;
}

.hero-play-toggle[aria-pressed="true"] .icon-play {
    display: block;
}

/*
 * Key figures band — straddles the hero's bottom edge, centered, narrower
 * than the hero itself (rather than the full-width band the mockup shows).
 */
.stats {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 85%);
    width: min(65%, 1040px);
}

.stats-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 32px 48px;
    text-align: center;
    color: #fff;
    background-color: var(--color-primary);
    border-radius: var(--img-big-radius) 0 var(--img-big-radius) 0;
}

.stats-list li {
    flex: 1 1 160px;
}

.stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
}

.stat-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.8em;
}

/*
 * "Nos références" teaser.
 */
.references {
    padding: 64px 0;
    text-align: center;
}

.references h2 {
    color: var(--color-secondary);
    margin-bottom: 32px;
}

.references-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.references-list li {
    flex: 1 1 220px;
    max-width: 260px;
    margin-inline: auto;
}

.references-list img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: var(--img-radius);
}

.reference-name {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: left;
}

.reference-type {
    display: block;
    color: var(--color-text);
    opacity: 0.7;
    text-align: left;
}

/*
 * "L'expertise de LALOYEAU" section.
 */
.expertise {
    background-color: var(--color-secondary-light);
    padding: 64px 0;
}

.expertise-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--section-gap);
}

.expertise-image {
    flex: 1 1 360px;
    max-width: 480px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--img-big-radius);
}

.expertise-content {
    flex: 1 1 360px;
}

.expertise-cta {
    margin-top: 24px;
}

.expertise-content h2 {
    color: var(--color-secondary);
    margin-bottom: 24px;
}

/*
 * "Derniers arrivages": wordpress-corpo's carousel zone
 * (wordpress_corpo_laloyeau_render_derniers_arrivages_carousel(), see
 * inc/stock-carousel.php), or the plain placeholder below it falls back to
 * when the Stockway plugin pair isn't active / stock is empty. The
 * carousel's own markup (.wordpress-corpo-carousel-*) is brand-neutral by
 * design — dressed here with the brand palette rather than overridden.
 */
.wordpress-corpo-carousel .f-button {
    width: 40px;
    height: 100px;
}

.wordpress-corpo-carousel .f-button.is-next {
    right: -7px!important;
}

.wordpress-corpo-carousel .f-button.is-prev {
    left: -7px!important;
}

.f-carousel__viewport {
    padding-block: .25rem;
}

.latest-stock {
    padding: 64px 0;
    text-align: center;
}

.latest-stock h2 {
    color: var(--color-secondary);
}

.placeholder-notice {
    color: var(--color-text);
    opacity: 0.7;
    margin-bottom: 24px;
}

.latest-stock .wordpress-corpo-carousel-title {
    color: var(--color-secondary);
}

.latest-stock .wordpress-corpo-carousel-card {
    border-radius: var(--img-radius);
    text-align: left;
}

.latest-stock .wordpress-corpo-carousel-card-title {
    color: var(--color-secondary);
    /* One line with an ellipsis through plain block layout, instead of
     * the plugin default's -webkit-box line clamp — display has to go back
     * to block for white-space: nowrap + text-overflow: ellipsis. */
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
 * Category tag (e.g. "Tracteur") shown above a vehicle carousel card's
 * title, per the homepage mockup — set by
 * wordpress_corpo_laloyeau_stockway_carousel_item() (inc/stock-carousel.php)
 * and rendered in the 'title' branch of views/zones/carousel/card.php.
 * Only vehicle items set it, so this only ever appears on the "Derniers
 * arrivages"/"Annonces similaires" carousels.
 */
.wordpress-corpo-carousel-card-category {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Tighter than the plugin's default zone-to-zone gap
 * (assets/carousel.css's ".wordpress-corpo-carousel-card > * + *", 0.75rem
 * margin+padding) — the tag reads as a label for the title right below it,
 * not a separate card zone. Two classes here beat that single-class plugin
 * rule on specificity alone, so this wins regardless of print order. */
.wordpress-corpo-carousel-card-category + .wordpress-corpo-carousel-card-title {
    margin-top: 0.125rem;
    padding-top: 0;
}

.latest-stock .wordpress-corpo-carousel-card-category {
    color: var(--color-primary);
}

.latest-stock .wordpress-corpo-carousel-card-price {
    color: var(--color-primary);
}

.latest-stock .wordpress-corpo-carousel-card-link {
    color: var(--color-secondary);
    padding-inline: 0!important;
    margin-inline: 1rem!important;
}

/*
 * "Annonces similaires" (fiche technique, inc/stock-technical-sheet.php)
 * — same brand colors as "Derniers arrivages" above (.latest-stock),
 * scoped to this carousel's own wrapper.
 */
.similar-vehicles-carousel .wordpress-corpo-carousel-title {
    color: var(--color-secondary);
}

.similar-vehicles-carousel .wordpress-corpo-carousel-card {
    border-radius: var(--img-radius);
    text-align: left;
}

.similar-vehicles-carousel .wordpress-corpo-carousel-card-title {
    color: var(--color-secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-vehicles-carousel .wordpress-corpo-carousel-card-category {
    color: var(--color-primary);
}

.similar-vehicles-carousel .wordpress-corpo-carousel-card-price {
    color: var(--color-primary);
}

.similar-vehicles-carousel .wordpress-corpo-carousel-card-link {
    color: var(--color-secondary);
    padding-inline: 0!important;
    margin-inline: 1rem!important;
}

html .wordpress-corpo-carousel-dot.is-selected {
    background-color: var(--color-secondary);
}

/* Touch targets (WCAG 2.5.8, Lighthouse "target-size"): the plugin's dots
 * are 8px wide, 8px apart. 18px gaps put their centres 26px apart (≥24px:
 * the spacing exception), and a transparent ::before gives each one a 24px
 * hit area, so a tap next to a dot still lands on it. The html prefix
 * outranks the plugin's carousel CSS, which prints mid-body in no
 * guaranteed order. */
html .wordpress-corpo-carousel-dots {
    gap: 18px;
}

html .wordpress-corpo-carousel-dot {
    position: relative;
}

html .wordpress-corpo-carousel-dot::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}

/*
 * Footer certifications column (see inc/footer-links.php,
 * wordpress_corpo_laloyeau_render_footer_certifications()).
 */
.certifications {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.certifications img {
    max-width: 100px;
    height: auto;
    background-color: #fff;
    /* An img's own border-radius clips its rendered content directly (no
     * overflow: hidden needed) — padding of at least --img-radius keeps
     * the arc from biting into the actual logo near each corner. */
    padding: var(--img-radius);
    border-radius: var(--img-radius);
}

.certifications img.no-bg {
    /* The LALOYEAU Services badge logo (inside .pink-badge, see
     * inc/footer-links.php) also matches .certifications img — it isn't a
     * white logo card at all, so no background, padding or radius. */
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/*
 * Shared building blocks for boxed content pages (views/page-*.php), as
 * opposed to the homepage's full-bleed sections above.
 */
.lead {
    font-size: 1.1em;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 32px;
}

.full-image {
    width: 100%;
    height: auto;
    border-radius: var(--img-radius);
    margin-bottom: var(--section-gap);
}

/*
 * "Notre usine"'s top-of-page photo band: wordpress-corpo's carousel zone
 * in 'gallery' style (see views/page-notre-usine.php). The zone's own CSS
 * is brand-neutral and unspaced by design (same convention as
 * .latest-stock's own carousel overrides above) — this gives it the same
 * vertical rhythm as the sections after it.
 */
.usine .wordpress-corpo-carousel-wrapper {
    margin-block: var(--section-gap);
}

.usine .wordpress-corpo-carousel-card--gallery .wordpress-corpo-carousel-card-image img {
    height: 400px;
    border-radius: var(--img-big-radius);
}

.usine .two-col img {
    max-height: 500px;
}

.usine .wordpress-corpo-carousel-card {
    border: none;
}

.two-col {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--section-gap);
    padding-block: var(--section-gap);
}

.two-col-reverse {
    flex-direction: row-reverse;
}

.two-col-text {
    flex: 1 1 400px;
}

.two-col-text h2 {
    color: var(--color-secondary);
}

.two-col-text .btn {
    margin-top: 27px;
}

.two-col-image {
    flex: 1 1 400px;
    width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: var(--img-big-radius);
    object-fit: cover;
    margin-inline: auto;
}

.two-col-image.large {
    flex: 1 1 480px;
    max-width: 540px;
    height: 100%;
    margin-block: auto;
}

/*
 * Key-figures band inside a boxed page ("Présentation": the 'boxed'
 * variant of views/zones/sections/key-figures.php) — same tokens as
 * .stats-list on the homepage, without the hero overlap.
 */
.stats-boxed {
    background-color: var(--color-primary);
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    margin-block: var(--section-gap);
    text-align: center;
    border-top-left-radius: var(--img-big-radius);
    border-bottom-right-radius: var(--img-big-radius);
    color: #fff;
}

.stats-boxed li {
    flex: 1 1 160px;
}

.video {
    position: relative;
    margin: 0 0 var(--section-gap);
    padding-top: var(--section-gap);
}

.video .wordpress-corpo-video {
    --wordpress-corpo-video-radius: var(--img-big-radius);
}

/*
 * "Notre histoire" timeline: a sliding carousel (views/zones/sections/
 * history-timeline.php, corpo_zone('carousel', ...)) whose cards each
 * carry their own year + dot "point" (views/zones/carousel/card.php's
 * theme override, .wordpress-corpo-carousel-card-point — only rendered
 * when an item carries $item['year'], true only for "Notre histoire"
 * milestones, not the vehicle or "Notre usine" carousels also built on
 * this zone). Every card's point is the same fixed height
 * (--history-timeline-point-height below), so every dot lands at the same
 * y-coordinate no matter which card it's on — .history-timeline-line is a
 * single static line positioned at that same y-coordinate, so it never
 * needs to move or track the carousel (no JS involved).
 */
.history-timeline {
    --history-timeline-point-height: 50px;
    --history-timeline-marker-size: 24px;
    /* .f-carousel__viewport's own padding-top, below, pushes every card's
     * point down by this same amount relative to .history-timeline (the
     * line's own positioning context) — one variable feeds both the
     * padding and the line's calc, so the two can't drift apart. */
    --history-timeline-viewport-padding-top: 1rem;
    position: relative;
    margin: 0 0 24px;
    /* Line sits under the very first thing painted (the point row) —
     * pushing the whole carousel down by that same amount keeps the line
     * from overlapping the carousel's own title/margin if one is ever
     * added later. */
    padding-top: 2px;
}

.history-timeline .f-carousel__viewport {
    padding: var(--history-timeline-viewport-padding-top) 1rem 1rem;
}

.history-timeline .wordpress-corpo-carousel-card-text {
    border: none;
    margin: 0;
    padding-bottom: 0.75rem;
}

.history-timeline-line {
    position: absolute;
    left: 0;
    right: 0;
    /* Vertically centered on the dot: the point row is
       --history-timeline-point-height tall with its marker flush to the
       row's own bottom edge (see .wordpress-corpo-carousel-card-point
       below), so the dot's center sits at point-height minus half the
       marker's own size, plus --history-timeline-viewport-padding-top (the
       carousel viewport's own padding-top, see that variable). The
       leading 1px is empirical (sub-pixel rounding on the marker's
       circular border), not derivable from the box model — if any of the
       custom properties involved changes, re-measure against a rendered
       dot (getBoundingClientRect()) rather than trust the calc alone. */
    top: calc(
        1px + var(--history-timeline-viewport-padding-top)
        + var(--history-timeline-point-height) - (var(--history-timeline-marker-size) / 2)
    );
    height: 1px;
    background-color: var(--color-primary);
}

/*
 * .wordpress-corpo-carousel-card--has-point (card.php's $hasPoint):
 * strips the plugin's own card chrome — background, border,
 * border-radius, overflow: hidden — off the *outer* element: the visual
 * card is .wordpress-corpo-carousel-card-body inside it (wrapping just the
 * image/title/text/etc., see card.php), so the point, a sibling of that
 * body, paints against whatever is behind the card rather than on the
 * card itself. The outer element is a plain flow box holding the point +
 * the body. Two classes (0,2,0) beat the plugin's own bare
 * ".wordpress-corpo-carousel-card" (0,1,0) regardless of print order —
 * see the note on .wordpress-corpo-carousel-card-point +
 * .wordpress-corpo-carousel-card-body below for why that matters here.
 */
.wordpress-corpo-carousel-card.wordpress-corpo-carousel-card--has-point {
    background: none;
    border-radius: 0;
    overflow: visible;
    border: none;
}

/*
 * The actual visual card. Background and border-radius read the same
 * custom properties as the plugin's own card rule
 * (--wordpress-corpo-carousel-card-bg / --wordpress-corpo-carousel-radius,
 * assets/carousel.css), with this theme's card shadow in place of the
 * plugin's border. height: 100% matches the plugin's outer card.
 *
 * The plugin's own ".wordpress-corpo-carousel-card > *" / "> * + *" rules
 * (child padding, spacing between zones) only match *direct* children of
 * the outer card — the zones nested in here are a level deeper, so the
 * padding is set on this element instead and the spacing rule is
 * replicated below (with a separator border), retargeted at this class.
 */
.wordpress-corpo-carousel-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    background: var(--wordpress-corpo-carousel-card-bg, #fff);
    border-radius: var(--wordpress-corpo-carousel-radius);
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wordpress-corpo-carousel-card-body > * + * {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wordpress-corpo-carousel-card-point {
    position: relative;
    z-index: 1;
    height: var(--history-timeline-point-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    /* Space between the dot and .wordpress-corpo-carousel-card-body right
     * after it — doesn't affect the line's own position (see
     * .history-timeline-line above), only how far the visual card starts
     * under the dot. Adjust this value alone to change that gap. */
    margin-bottom: 24px;
}

/* Cancels assets/carousel.css's generic ".wordpress-corpo-carousel-card >
 * * + *" spacing (margin-top/padding-top) on the body — the point and the
 * body are both direct children of the outer card, so that rule would add
 * its own gap on top of the point's margin-bottom above. Two classes
 * deliberately (0,2,0), not one: the plugin's carousel CSS is a separate
 * handle Carousel::enqueueAssets() prints mid-body, not chained as a
 * dependency of laloyeau-style the way motorx's CSS is (see
 * inc/enqueue-assets.php) — its print order relative to this stylesheet
 * isn't guaranteed, so this needs to win on specificity alone. */
.wordpress-corpo-carousel-card-point + .wordpress-corpo-carousel-card-body {
    margin-top: 0;
    /* Restates .wordpress-corpo-carousel-card-body's own padding-top
     * (1rem, from its base rule above): that base rule and the plugin's
     * "> * + *" rule (padding-top: .75rem) are both (0,1,0), and the
     * plugin's can print later and win — only this two-class rule
     * guarantees 1rem. */
    padding-top: 1rem;
}

.wordpress-corpo-carousel-card-point-year {
    font-weight: 700;
    color: var(--color-primary);
}

.wordpress-corpo-carousel-card-point-marker {
    width: var(--history-timeline-marker-size);
    height: var(--history-timeline-marker-size);
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--color-primary);
}

.wordpress-corpo-carousel-card-image--logo img {
    object-fit: contain;
    background-color: var(--color-secondary);
    padding: 20px;
}

.wordpress-corpo-carousel-card-text {
    font-size: 0.9375rem;
}

/*
 * "Notre usine" capability/tools/certifications lists.
 */
.capability-list {
    list-style: none;
    margin: 52px 0 32px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.icon-primary {
    display: flex;
    align-items: center;
    justify-content:center;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    padding: .325rem;
    background-color: var(--color-primary);
    border-radius: var(--img-radius);
}

.icon-primary i {
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.capability-title {
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 4px;
}

.tools-list {
    margin: 0 0 24px;
    padding-left: 10px;
}

.tools-list li {
    margin-bottom: 8px;
}

.certifications-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.certifications-list li {
    flex: 1 1 260px;
}

.certification-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 4px;
}
.certification-title i {
    background-color: var(--color-primary);
}


/*
 * Shared "Contactez-nous" team zone (views/zones/sections/team-contact.php).
 */
.team-contact {
    padding: var(--section-gap) 0;
    text-align: center;
}

.team-contact h2 {
    color: var(--color-secondary);
    margin-bottom: 32px;
    text-align: left;
}

.team-list {
    display: grid;
    grid-template: auto / 1fr;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-list > li {
    border-radius: var(--img-radius);
    padding: 24px 16px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
}

.team-list img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.team-name {
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
}

.team-role {
    display: block;
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 12px;
}

/* The per-person contact buttons (WhatsApp/e-mail/LinkedIn) the mockup
 * shows under each card. Small enough to read as a row of icons, not
 * competing with .icon-primary's larger 60px squares used elsewhere
 * (Contact page departments, "Notre usine" capabilities). */
.team-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height:36px;
    border-radius: 50%;
    background-color: var(--color-primary);
    transition: opacity 0.2s ease;
}

.sidebar-team-contact .team-social-link {
    width: 32px;
    height: 32px;
}

.team-social-link:hover {
    opacity: 0.8;
}

.team-social-link .wordpress-corpo-mask {
    width: 18px;
    height: 18px;
    background-color: #fff;
}

.sidebar-team-contact .team-social-link .wordpress-corpo-mask {
    width: 16px;
    height: 16px;
}

/*
 * Fiche technique (inc/stock-technical-sheet.php): the same team-contact
 * zone, squeezed into the narrow sidebar column next to the contact form
 * — 1 column, then 2 from 576px (the mockup's tight 2x2 grid for 4
 * contacts). Set explicitly because the generic .team-list column count
 * (--team-columns, see the breakpoints at the end of this file) follows
 * the viewport width, not this narrow column's own width.
 */
.sidebar-team-contact .team-contact {
    padding: 0;
    text-align: center;
}

.sidebar-team-contact .team-contact .container {
    padding: 0;
}

.sidebar-team-contact .team-list {
    grid-template-columns: repeat(1, 1fr);
    justify-content: flex-start;
    gap: 12px;
}

.sidebar-team-contact .team-list > li {
    min-width: 120px;
    padding: 12px 8px;
}

.sidebar-team-contact .team-list img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

/*
 * "Nos produits" / gammes pages: checklists, CTA band, category cards,
 * icon blocks. Shared across views/page-nos-gammes.php,
 * page-utilitaires.php, page-poids-lourd-et-srem.php and
 * page-vehicules-specifiques.php.
 */
.nos-gammes .full-image {
    height: 250px;
    object-fit: cover;
}
.checklist-groups {
    display: flex;
    flex-wrap: wrap;
    gap: var(--section-gap);
    margin-bottom: var(--section-gap);
}

.checklist-group {
    flex: 1 1 260px;
}

.laloyeau-utilitaires .checklist-groups {
    gap: calc(var(--section-gap));
}

.laloyeau-utilitaires .checklist-group {
    flex: 1 1 100%;
}

.laloyeau-utilitaires .checklist-group img {
    max-height: 250px;
}

.laloyeau-utilitaires .checklist-groups .checklist {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    font-size: 15px;
    gap: 1.5rem;
}

.laloyeau-utilitaires .checklist-groups .checklist li {
    white-space: nowrap;
}

.laloyeau-utilitaires .checklist-groups .checklist i {
    min-width: 16px;
}

.checklist-group h3 {
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}

.checklist li {
    position: relative;
    margin-bottom: 12px;
    break-inside: avoid;
}

.checklist li i {
    background-color: var(--color-primary);
    margin-inline-end: .5rem;
}

.checklist li:has(i) {
    display: flex;
    align-items: center;
}


/* Room for the ::before marker below, only on items without an icon:
 * those with one (<i class="wordpress-corpo-mask …">) lay it out
 * themselves through the flex rule above. */
.checklist li:not(:has(i)) {
    padding-left: 24px;
}

.checklist li:not(:has(i))::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.recrutement .checklist li::before {
    content: "\279C";
}

.category-cards {
    list-style: none;
    margin: 0 0 var(--section-gap);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.secondary-light-wrapper .category-cards {
    margin-bottom: 0;
}

.category-cards li {
    flex: 1 1 260px;
}

.category-cards.row-cards li {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-cards.row-cards li img {
    width: 100%;
}

.category-cards a {
    text-decoration: none;
    color: inherit;
}

.card-category {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    height: 350px;
    min-height: 300px;
    padding: 1.5rem;
    border-radius: var(--img-radius);
    overflow: hidden;
    transition: all ease .5s;
}

.card-category .card-background {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-category .card-content {
    position: relative;
    z-index: 10;
    margin-top: auto;
    width: 80%;
}

.card-category::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0,0,0,.5);
    transition: opacity .5s ease;
    opacity: 1
}

.card-category:hover::before {
    opacity: 0.5;
}

.card-category::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,rgba(0, 0, 0, 0) 70%, var(--color-primary) 100%);
    transition: opacity .5s ease;
    opacity: 0
}

.card-category:hover::after {
    opacity: 1;
}

.card-category:hover {
    transform: translateY(-5px);
}


.category-cards h3 {
    color: var(--color-secondary);
    margin-bottom: 4px;
    font-size: 24px;
}

.nos-gammes .category-cards p {
    font-size: 14px;
}

.category-cards-dark h3,
.category-cards-dark p {
    color: #fff;
}

.category-cards .category-card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
}

.circle-white {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background-color: #fff;
}
.circle-white i {
    background-color: #000;
    width: .7rem;
}

.card-category .circle-white {
    position: absolute;
    right: -70px;
    bottom: 0;
    transform: translateX(-10px);
    transition: opacity .5s ease, transform .5s ease;
    opacity: 0;
}

.card-category:hover .circle-white {
    opacity: 1;
    transform: translateX(0);
}

.icon-blocks {
    list-style: none;
    margin: 0 0 var(--section-gap);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.icon-blocks li {
    flex: 1 1 220px;
}

.icon-blocks img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.icon-blocks h3 {
    color: var(--color-secondary);
    margin-bottom: 4px;
}

.final-cta {
    background-color: var(--color-secondary-light);
    border-radius: 4px;
    padding: 32px;
    margin-bottom: var(--section-gap);
    text-align: center;
}

.final-cta h2 {
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.final-cta p {
    margin-bottom: 20px;
}

/*
 * "Nos prestations" service cards (views/zones/sections/service-cards.php):
 * the shared .category-cards grid above, every card's photo — a single
 * <img> or the 'gallery' carousel's slides — in the same 10:7 frame. The
 * carousel selector outranks the plugin's own 16:9 rule on specificity,
 * since that CSS prints mid-body, after this stylesheet.
 */
.service-cards > li > img,
.service-cards .wordpress-corpo-carousel-card--gallery .wordpress-corpo-carousel-card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 7;
    border-radius: var(--img-big-radius);
}

/* Lines the carousel's photo up exactly with a single <img>'s: no slide
 * gap or viewport padding (the theme's own .f-carousel__viewport rule
 * above, meant for card shadows a gallery doesn't have), and the dots
 * laid over the photo's bottom edge, as in the mockup, rather than below
 * it. */
.service-cards .wordpress-corpo-carousel-wrapper {
    --wordpress-corpo-carousel-gap: 0px;
}

.service-cards .f-carousel__viewport {
    padding-block: 0;
}

.service-cards .wordpress-corpo-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
}

/* Drops the plugin's card border, which its gallery style keeps (same as
 * .usine's carousel above). */
.service-cards .wordpress-corpo-carousel-card {
    border: none;
}

/* Brand-colored dots, readable over the photo: inactive secondary blue,
 * active primary green (outranks the site-wide html ….is-selected rule). */
.service-cards .wordpress-corpo-carousel-dot {
    background-color: var(--color-secondary);
}

.service-cards .wordpress-corpo-carousel-dot.is-selected {
    background-color: var(--color-primary);
}

.service-cards h2 {
    margin-block: 32px 16px;
}

/*
 * "Nos références" full gallery (views/page-nos-references.php) — a grid
 * (not the homepage teaser's flex row) so a sparse last row doesn't
 * stretch its items wide.
 */
.references-list-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: var(--section-gap);
}

/*
 * "Nos partenaires" logo wall.
 */
.partner-logos {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 28px;
}

.partner-logos li {
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
    border-radius: var(--img-radius);
    padding: 16px;
    display: flex;
    height: 150px;
    align-items: center;
    justify-content: center;
}

.partner-logos img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

/*
 * "Recrutement" job cards. A single-column checklist variant: job
 * missions/profile lists read better as one column than the 2-column
 * default .checklist uses for short option lists elsewhere.
 *
 * .wordpress-corpo-job-offers is the wrapper emitted by the wordpress-corpo
 * plugin's job-offers/listing zone — this theme only overrides the per-offer
 * card (views/zones/job-offers/card.php), so the wrapper markup, and this
 * selector, come from the plugin rather than from a theme-authored div.
 */
.checklist-single {
    columns: 1;
}

.wordpress-corpo-job-offers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: var(--section-gap);
}

.job-card {
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 10px rgba(0,0,0, 0.1);
    border-radius: var(--img-radius);
    padding: 24px;
    margin-bottom: 0;
}

.job-card h2 {
    color: var(--color-secondary);
    font-size: 1.3em;
    margin-bottom: 8px;
}

.job-card h3 {
    color: var(--color-secondary);
    font-size: 1em;
    margin-bottom: 8px;
}

/*
 * "Contact" page: map + form, department email list.
 */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: var(--section-gap);
}

.contact-map {
    flex: 1 1 100%;
    min-height: 360px;
    border: 0;
    border-radius: var(--img-radius);
}

.contact-form-wrap {
    flex: 1 1 320px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border-radius: var(--img-radius);
}

.contact-form-wrap h2 {
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form > *:has(.corpo-form-error:not(:empty)) textarea,
.contact-form > *:has(.corpo-form-error:not(:empty)) input {
    border-color: var(--corpo-form-error-color);
}


select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], select.form-control, .select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple, .nice-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-secondary-light);
    border-radius: var(--img-radius);
    font-weight: normal;
    font-size: 16px;
    color: var(--color-text);
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .tfre-resset-password .reset_password_user_login:focus, select.form-control:focus, .select2-container--default .select2-selection--multiple:focus, .nice-select:focus {
    border-color: var(--color-primary);
}

/*
 * Icons inside form fields (Contact page + fiche technique forms — same
 * treatment as the LALOYEAU Services landing page's form). Placed after
 * the generic input rule above so the extra left padding wins on print
 * order at equal specificity. The icon is pinned to the field's first line
 * (top, not 50%) so the inline error message forms.js inserts after the
 * control (still inside the label) doesn't shift it.
 */
.field-with-icon {
    position: relative;
    display: block;
    margin: 0;
}

.field-with-icon > .wordpress-corpo-mask {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 15px;
    height: 15px;
    color: var(--color-text);
    pointer-events: none;
}

.field-with-icon input,
.field-with-icon textarea {
    padding-left: 42px;
}

/* The tel_intl number input is printed by the wordpress-corpo plugin's own
 * phone-field zone, with no slot for an icon. It can't be a background
 * image on the input either: the browser's autofill style
 * (:-internal-autofill-selected) forces `background-image: none
 * !important`, and a user-agent !important beats any author rule. So the
 * icon is the .corpo-tel-intl flex container's ::after, ordered between
 * the country picker and the input (the error span forms.js inserts after
 * the input keeps order 0, so it stays last). Its margins cancel out its
 * own width plus one flex gap, so the input doesn't move, and pull it
 * 16px inside the input's left padding, top-pinned like
 * .field-with-icon's masks. The SVG is the plugin's own phone_ring.svg,
 * filled with --color-text's value (a background image can't use
 * currentColor). input.-qualified to tie the generic input[type="tel"]
 * rule above (whose padding would otherwise win), print order settles it. */
input.corpo-tel-intl-number {
    padding-left: 42px;
}

.corpo-tel-intl-country {
    order: -2;
}

.corpo-tel-intl::after {
    content: "";
    order: -1;
    position: relative;
    z-index: 1;
    flex: 0 0 15px;
    height: 15px;
    margin: 16px calc(-31px - .5rem) 0 16px;
    background: url("assets/images/icons/icon-phone-field.svg") no-repeat center / 15px 15px;
    pointer-events: none;
}

.user-mask {
    -webkit-mask-image: url("assets/images/icons/icon-user.svg");
    mask-image: url("assets/images/icons/icon-user.svg");
}

.edit-mask {
    -webkit-mask-image: url("assets/images/icons/icon-edit.svg");
    mask-image: url("assets/images/icons/icon-edit.svg");
}

.energy-mask {
    -webkit-mask-image: url("assets/images/icons/energy.svg");
    mask-image: url("assets/images/icons/energy.svg");
}

/*
 * International phone field ("indicatif" + tel) skin. The plugin's own
 * assets/forms.css only lays out .corpo-tel-intl-* structurally (position,
 * flex, overflow) — colors/spacing/typography are this theme's job.
 * line-height is set explicitly (not left to "normal") on every element
 * that can contain a flag emoji: some emoji fonts report much taller
 * intrinsic line metrics than the surrounding Latin text, which would
 * balloon the toggle button's height. Height itself is pinned to 47px
 * rather than derived from the same padding as .corpo-tel-intl-number: an
 * <input>'s intrinsic content-box height isn't governed by line-height the
 * way a <button>'s is, so identical padding/font-size/line-height still
 * leaves the two a few px apart — 47px is that input's own rendered
 * height with the rule above.
 */
.corpo-tel-intl-toggle {
    appearance: none;
    -webkit-appearance: none;
    height: 47px;
    padding: 0 16px;
    border: 1px solid var(--color-secondary-light);
    border-radius: var(--img-radius);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: #fff;
    min-width: max-content;
}

.corpo-tel-intl-toggle span[data-corpo-tel-intl-flag] {
    min-width: 20px;
}

/* motorx's own generic `button:hover`/`.btn:hover` rules (main.css) set
 * color: #fff on every plain <button> site-wide — color must be restated
 * explicitly on :hover/:active, not just background/border, or the
 * toggle's own text and its .wordpress-corpo-mask chevron (colored via
 * currentColor) turn invisible against this rule's own white background. */
.corpo-tel-intl-toggle:hover,
.corpo-tel-intl-toggle:active {
    background-color: #fff;
    border-color: var(--color-secondary-light);
    color: var(--color-text);
}

.corpo-tel-intl-toggle:focus-visible {
    border-color: var(--color-primary);
}

.corpo-tel-intl-toggle .wordpress-corpo-mask {
    width: .7em;
    height: .7em;
}

.corpo-tel-intl-panel {
    background-color: #fff;
    border: 1px solid var(--color-secondary-light);
    border-radius: var(--img-radius);
    box-shadow: 0 4px 16px var(--color-border-grey);
    padding: 8px;
    margin-top: 4px;
}

.corpo-tel-intl-search {
    margin-bottom: 8px;
}

.corpo-tel-intl-option {
    padding: 10px 12px;
    border-radius: calc(var(--img-radius) / 2);
    font-size: 16px;
    line-height: 1.5;
}

.corpo-tel-intl-option:hover {
    background-color: var(--color-secondary-light);
}

.contact-consent {
    font-size: 0.75em;
    opacity: 0.7;
}

/* Same reason as #breadcrumbs a: a link inside text needs more than color. */
.contact-consent a {
    text-decoration: underline;
}

.centered-heading {
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.department-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.department-list li {
    flex: 1 1 200px;
    max-width: 240px;
}

.department-list img {
    width: var(--icon-size);
    height: var(--icon-size);
    padding: 12px;
    background-color: var(--color-primary);
    border-radius: var(--img-radius);
    margin-bottom: 8px;
}

.department-list a {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.department-list a:hover {
    text-decoration: underline;
}

.department-list span {
    display: block;
    opacity: 0.7;
}

/** Gammes */
.gamme-index h2 {
    font-size: 28px;
}

.gamme-index h3 {
    font-size: 22px;
}

.gamme-index .checklist {
    display: flex;
    flex-direction: column;
}

.gamme-index .checklist-wide {
    display: grid;
    grid-template: auto / repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--section-gap);
}

.laloyeau-utilitaires .checklist-wide li {
    white-space: nowrap;
    margin: 0;
}

.gamme-index .secondary-light-wrapper .checklist-wide {
    margin-bottom: 0;
}

.gamme-index img {
    width: 100%;
    height: auto;
}

.gamme-index .category-cards img {
    max-height: 250px;
}

.banner-float .floating-img {
    position: absolute;
    height: 330px;
    width: auto;
    margin-top: 1rem;
}

/*
 * Breadcrumbs (views/zones/layout/content-open.php calls the plugin's
 * views/zones/breadcrumbs.php on every page but the home page). Covers both
 * markups that zone can produce: Yoast SEO's own yoast_breadcrumb() output
 * (active on this install — plain <span> wrappers, separator replaced with
 * an .wordpress-corpo-mask arrow icon via inc/breadcrumbs.php, current crumb
 * marked with .breadcrumb_last) and the plugin's own fallback trail used
 * only if Yoast is ever deactivated (.wordpress-corpo-breadcrumbs-item.is-
 * current, plain ">" separator — inc/breadcrumbs.php only overrides Yoast's
 * own separator, see that file's docblock) — kept in sync so the current-
 * crumb styling doesn't silently break if that ever happens.
 */
#breadcrumbs {
    display: block;
    margin: 0 0 24px;
    font-size: 0.9em;
    color: var(--color-text);
}

/* Underlined: the blue alone doesn't stand out enough from the body text
 * (WCAG 1.4.1, Lighthouse "link-in-text-block"). */
#breadcrumbs a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#breadcrumbs a:hover {
    text-decoration: none;
}

#breadcrumbs .breadcrumb_last,
#breadcrumbs .wordpress-corpo-breadcrumbs-item.is-current {
    color: var(--color-primary);
    font-weight: 700;
}

#breadcrumbs .wordpress-corpo-mask {
    width: 0.7em;
    height: 0.7em;
    margin: 0 2px;
    vertical-align: -0.05em;
    opacity: 0.6;
}

/** Contact */
.laloyeau-contact .team-contact .container {
    padding: 0;
}

/**
 * Legals — .legals is one of the 3 legal pages' <main class="main-content">
 * classes (their views' $extraContentClasses, passed by views/page.php to
 * content-open.php's 'classes' param).
 */

.main-content.legals ul {
    list-style: unset;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

/**
 * Notre stock (vm_stockway_templates plugin). Every rule this plugin
 * ships is keyed off a --stockway-* custom property with a :root default
 * (see that plugin's assets/style.scss) — a theme just redeclares the
 * ones it wants to brand here. Since every plugin rule lives inside
 * .stockway-bootstrap, a direct declaration on that same class always
 * wins over the plugin's inherited :root default, regardless of
 * stylesheet print order (no enqueue-dependency fight needed, unlike
 * motorx's CSS). The vehicle card's own shape is left to the plugin's
 * default, which already matches the "Derniers arrivages" carousel card.
 */
.stockway-bootstrap {
    --stockway-primary-color: var(--color-primary);
    --stockway-dark-gray-color: var(--color-text);
    --stockway-light-gray-color: var(--color-border-grey);
    --stockway-white-color: #fff;
}

.facet-group .facet-title {
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
    font-weight: bold;
}

/* --stockway-primary-color above also drives buttons, prices and facet
   accents, which stay the brand's primary green — only the page titles
   and the card's "details" link are blue (secondary), so they get their
   own targeted overrides rather than changing the shared variable. */
.stockway-bootstrap .listing-title h1 {
    color: var(--color-secondary);
}

.stockway-bootstrap .listing .elements .element .details .details-link {
    color: var(--color-secondary);
}

.stockway-bootstrap .stockway_ad .head h1 {
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.stockway-bootstrap .stockway_ad .navigation {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/*
 * Scoped to .stockway_ad (the fiche technique's own wrapper) rather than
 * a bare .stockway-bootstrap h2 — the plugin's listing page also lives
 * under .stockway-bootstrap, with <h2> vehicle card titles and <h3> facet
 * titles that aren't meant to turn blue along with the fiche technique's
 * own section titles.
 */
.stockway-bootstrap .stockway_ad h2 {
    color: var(--color-secondary);
}

/*
 * motorx's own main.css has an unscoped "th, td { border: 1px solid
 * #f5f5f5; padding: 7px; text-align: center; }" (a plain-blog-content
 * table default) that bleeds into the fiche technique's characteristics
 * table — invisible-looking (near-white) but real, plus unwanted padding
 * and a forced center alignment that overrides the row's own
 * text-align: left (a direct property on the element itself always wins
 * over inheriting that from its .stockway-meta tr parent, regardless of
 * selector specificity). All three reset here so the table falls back to
 * the plugin's own intended flex-row layout instead.
 */
.stockway-bootstrap .stockway_ad .stockway-meta th,
.stockway-bootstrap .stockway_ad .stockway-meta td {
    border: none;
    padding: 0;
    text-align: left;
}

.stockway-bootstrap .stockway_ad .content_ad .infos .stockway-meta table {
    font-size: 1rem;
}

.stockway-bootstrap .stockway_ad .content_ad .infos .stockway-meta table tbody tr th {
    margin-right: 1rem;
}

.stockway-bootstrap .stockway_ad .content_ad .infos .stockway-meta table tbody tr td:has(.checkmark) {
    width: 20%;
    margin-inline-start: auto;
}

.stockway-bootstrap .listing-pagination {
    justify-content: center;
    margin-top: var(--section-gap);
}

.stockway-bootstrap .listing-pagination a,
.stockway-bootstrap .listing-pagination span {
    padding: 1.5rem;
    border-radius: var(--img-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stockway-bootstrap .listing .facets .facet-group input[type=checkbox] {
    border-color: var(--color-border-grey);
}

/* This file's own unscoped ".btn { padding: 14px 28px !important; ... }"
   rule also matches the plugin's ".btn.range-submit" filter button and
   beats its plain "padding: 0" — the padding then overflows the button's
   declared 2.25rem width/height and the flex algorithm squeezes the
   search icon inside down to 0 width. Restoring 0 padding (!important,
   at higher specificity) and restating the height keeps it
   pixel-identical to the number inputs beside it. */
.stockway-bootstrap .range-submit {
    padding: 0 !important;
    height: 2.25rem;
}

.stockway-bootstrap .stockway_ad .content_ad .infos .stockway-meta:first-of-type {
    margin: 0;
    border: none;
}

.stockway-bootstrap .stockway_ad .content_ad .infos .stockway-meta:first-of-type h2 {
    margin-top: 0;
}

.stockway-bootstrap .stockway_ad .content_ad .infos .stockway-meta .checkmark {
    border-color: var(--color-primary);
}

.stockway_ad .team-contact .container {
    margin: 0;
    width: 100%;
}

.stockway-bootstrap .stockway_ad .navigation .nav-link,
.stockway-bootstrap .stockway_ad .navigation .nav-link:hover {
    color: var(--color-primary);
}

.search-results article .featured-post img {
    max-height: 250px;
    min-width: 30%;
}

.search-results article {
    border: 1px solid var(--color-border-grey);
    border-radius: var(--img-radius);
    margin-bottom: 20px!important;
}

/* "Voir en détails" on each search result (content-search.php): same look
 * as the carousel cards' own link (.wordpress-corpo-carousel-card-link —
 * plugin's carousel.css for size/weight/gap, .latest-stock above for the
 * color), but underlined in blue on hover instead of motorx's generic
 * a:hover, which would otherwise turn it green (primary_color). */
.search-result-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
}

.search-result-link:hover,
.search-result-link:focus-visible {
    color: var(--color-secondary);
    text-decoration: underline;
    text-decoration-color: var(--color-secondary);
    text-underline-offset: 3px;
}

/* motorx's own rule for this exact selector (css/main.css) sets
   font-size: 200px and color: #0A1426 — matching it here, at the same
   specificity, wins on print order alone (laloyeau-style always prints
   after motorx's real CSS bundle, see inc/enqueue-assets.php), no
   !important needed. Used by 404.php/410.php/503.php's shared
   wordpress_corpo_laloyeau_render_error_page() (inc/error-pages.php) to
   show the status code itself instead of motorx's original car photo. */
.error-404-text h2 {
    font-size: 120px;
    color: var(--color-secondary);
}

.go-top i {
    color: var(--color-secondary);
}

@media (min-width: 449px) {
    .stats {
        transform: translate(-50%, 70%);
    }
    .laloyeau-utilitaires .checklist-groups .checklist {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 576px) {
    .stats {
        width: min(55%, 1040px);
    }
    #menu-informations-legales-bas-de-page {
        flex-direction: row;
        gap: 1em;
    }
    .capability-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        width: max-content;
    }

    /* min(2, contact count), see --team-columns below. */
    .team-list {
        grid-template-columns: repeat(var(--team-columns-sm, 2), 1fr);
    }

    .gamme-index .checklist-wide {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-team-contact .team-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .stats {
        transform: translate(-50%, 50%);
        width: min(75%, 1040px);
    }
    .references-list {
        justify-content: space-between;
    }

    .wordpress-corpo-job-offers {
        grid-template-columns: repeat(2, 1fr);
    }

    .gamme-index .checklist-wide {
        grid-template-columns: repeat(3, 1fr);
    }

    .stockway-bootstrap .stockway_ad .content_ad .right-wrapper .form-container {
        top: 80px;
    }

    .category-cards.row-cards li {
        flex-direction: row;
    }

    /* flex-shrink: 0 keeps the photo at its 40%: otherwise the text
     * column next to it squeezes it down to ~20% of the card. */
    .category-cards.row-cards li img {
        width: 40%;
        flex-shrink: 0;
    }
}

@media (min-width: 992px) {
    /* Two "Nos standards en VUL" cards per row from here on: any
     * narrower, their two-column nowrap checklists (see the 449px
     * breakpoint) no longer fit half a row and the cards size unevenly. */
    .laloyeau-utilitaires .checklist-group {
        flex-basis: calc(50% - var(--section-gap));
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .stat-number {
        font-size: 1.9em;
    }

    .hero-sound-toggle {
        right: 24px;
        bottom: 24px;
        width: 40px;
        height: 40px;
    }

    .hero-play-toggle {
        left: auto;
        right: 76px;
        bottom: 24px;
        width: 40px;
        height: 40px;
    }

    .tools-list {
        padding-left: 20px;
    }

    .two-col-image {
        max-width: 450px;
        max-height: unset;
    }

    .two-col-image.large {
        min-height: 400px;
    }

    /* --team-columns: min(4, contact count), set inline by
     * team-contact.php, so fewer than 4 contacts don't leave empty
     * columns. */
    .team-list {
        grid-template-columns: repeat(var(--team-columns, 4), 1fr);
    }

    .nos-gammes .center-content {
        margin-inline: auto;
        width: 75%;
    }
    .gamme-index .checklist-wide {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-map {
        flex: 1 1 400px;
    }

    .stockway-bootstrap .listing .facets {
        margin-right: 1rem;
    }
    .laloyeau-utilitaires .checklist-group img {
        max-height: unset;
    }
}

@media (min-width: 1200px) {
    .two-col-image {
        max-width: 550px;
    }
    .gamme-index .checklist-wide {
        grid-template-columns: repeat(5, 1fr);
    }

    .stockway-bootstrap .listing .facets {
        margin-right: 1rem;
    }
    .laloyeau-utilitaires .checklist-groups {
        gap: calc(var(--section-gap) * 2);
    }
}

@media (min-width: 1400px) {
    .wordpress-corpo-carousel .f-button.is-next {
        right: -20px!important;
    }

    .wordpress-corpo-carousel .f-button.is-prev {
        left: -20px!important;
    }
    .laloyeau-utilitaires .checklist-groups .checklist {
        grid-template-columns: repeat(3, 1fr);
    }
}
