/* =====================================================================
   ERMAX : intégration WordPress / WooCommerce du design system v1.2.
   Se charge après tokens.css et components.css. Mobile d'abord, paliers 640 / 768 / 1024 / 1280.
   Aucune couleur en dur : tokens uniquement (primitives réservées au header, au footer et aux textes sur photo).
   ===================================================================== */

/* ---------- Socle de page ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.ex-root { margin: 0; min-height: 100vh; overflow-x: clip; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block: 0 !important; }
.wp-block-template-part, .ex-part { display: contents; }
main#contenu, .ex-main { display: block; outline: none; }
.ex-main:focus-visible { outline: none; }
.ex-root :where(h1, h2, h3, h4) { font-weight: inherit; }
.ex-container--narrow { max-width: 860px; }
.ex-nowrap { white-space: nowrap; }
.ex-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ex-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--link); }
[hidden] { display: none !important; }

/* ---------- Bandeau pro (partenaires, commerciaux) ---------- */
.ex-probar { background: var(--black-900); color: var(--white); font-size: 14px; border-bottom: 1px solid var(--black-800); }
.ex-probar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); padding-block: var(--space-2); }
.ex-probar__who { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.ex-probar__who .ex-icon { color: var(--green-400); }
.ex-probar__terms { color: var(--grey-400); }
.ex-probar__terms strong { color: var(--green-400); font-weight: 700; }
.ex-probar__form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ex-probar__form label { color: var(--grey-400); }
.ex-probar__form .ex-select { min-height: 40px; width: auto; max-width: 100%; background-color: var(--black-950); color: var(--white); border-color: var(--grey-600); }
.ex-probar__toggle { margin-left: auto; }
.ex-probar__switch {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-3);
  background: none; border: 1px solid var(--grey-600); border-radius: var(--radius-full); color: var(--white); font: inherit; font-size: 13px; cursor: pointer;
}
.ex-probar__switch::before { content: ""; width: 28px; height: 16px; border-radius: 8px; background: var(--grey-600); box-shadow: inset 2px 0 0 2px var(--grey-600); transition: background .15s ease-out; }
.ex-probar__switch[aria-pressed="true"]::before { background: var(--green-400); box-shadow: inset 14px 0 0 2px var(--green-400), inset 0 0 0 2px var(--green-400); }
.ex-probar__switch:hover { border-color: var(--green-400); }
.ex-probar .ex-btn--secondary { color: var(--white); border-color: var(--grey-400); }

/* ---------- En-tête : recherche mobile, suggestions ---------- */
.ex-header__iconbtn--search { display: inline-flex; }
@media (min-width: 1024px) { .ex-header__iconbtn--search { display: none; } }
@media (max-width: 1023.98px) {
  .ex-header.is-search-open .ex-header__search { display: block; position: absolute; left: 0; right: 0; top: 100%; padding: var(--space-3) var(--gutter) var(--space-4); background: var(--black-950); border-top: 1px solid var(--black-800); z-index: 55; }
}
.ex-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; max-height: min(70vh, 520px); overflow: auto;
  background: var(--white); color: var(--black-950); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); padding: var(--space-2);
}
@media (min-width: 1024px) { .ex-suggest { width: min(480px, 90vw); left: auto; } }
.ex-suggest__group { padding: var(--space-2) var(--space-3) var(--space-1); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
.ex-suggest a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.ex-suggest a:hover, .ex-suggest a[aria-selected="true"] { background: var(--grey-100); }
.ex-suggest__name { font-weight: 600; font-size: 15px; }
.ex-suggest__meta { grid-column: 1; font-size: 13px; color: var(--grey-600); }
.ex-suggest__price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--font-display); font-weight: 700; color: var(--green-700); font-variant-numeric: tabular-nums; }
.ex-suggest__all { display: block !important; text-align: center; font-weight: 600; margin-top: var(--space-1); border-top: 1px solid var(--grey-200); border-radius: 0 !important; }
.ex-suggest__empty { padding: var(--space-3); font-size: 14px; color: var(--grey-600); }
.ex-mega__all { color: var(--green-400) !important; font-weight: 600; }
.ex-mega__foot { grid-column: 1 / -1; padding-top: var(--space-4); border-top: 1px solid var(--black-800); }
.ex-mega__foot .ex-link { color: var(--green-400); font-size: 14px; }
.ex-mega h3 a { color: inherit; padding: 0; font-size: inherit; }
@media (min-width: 1280px) { .ex-mega { width: min(1040px, 90vw); grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Menu mobile ---------- */
.ex-drawer {
  margin: 0 auto 0 0; width: min(380px, 88vw); max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0;
  background: var(--black-950); color: var(--white); overflow-y: auto; overscroll-behavior: contain;
}
.ex-drawer::backdrop { background: var(--scrim-soft); }
.ex-drawer[open] { animation: ex-drawer-in .3s ease-out; }
@keyframes ex-drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.ex-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--black-800); }
.ex-drawer__logo { width: 120px; height: auto; fill: currentColor; }
.ex-drawer__list { padding: var(--space-2) 0; }
.ex-drawer__link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--space-5); color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; list-style: none; }
.ex-drawer__link::-webkit-details-marker { display: none; }
.ex-drawer__link:hover, .ex-drawer__link[aria-current="page"] { color: var(--green-400); }
.ex-drawer__group summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.ex-drawer__group[open] summary::after { transform: rotate(225deg); }
.ex-drawer__sub { padding: 0 var(--space-5) var(--space-4); display: grid; gap: var(--space-4); }
.ex-drawer__sub h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: var(--space-1); }
.ex-drawer__sub h3 a { color: var(--white); text-decoration: none; }
.ex-drawer__sub a { display: block; padding: 8px 0; color: var(--grey-400); text-decoration: none; font-size: 15px; }
.ex-drawer__sub a:hover { color: var(--green-400); }
.ex-drawer__links { border-top: 1px solid var(--black-800); padding: var(--space-3) var(--space-5) var(--space-8); }
.ex-drawer__links a { display: block; padding: 10px 0; color: var(--grey-400); text-decoration: none; }
.ex-drawer__links a:hover { color: var(--white); }
.ex-drawer .ex-search { margin: var(--space-4) var(--space-5) 0; }

/* ---------- Toast (confirmation d'ajout au panier) ---------- */
.ex-toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px)); display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5);
  background: var(--black-950); color: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay); font-size: 15px;
}
.ex-toast .ex-icon { color: var(--green-400); flex: none; }
.ex-toast a { color: var(--green-400); font-weight: 600; margin-left: auto; white-space: nowrap; }
.ex-toast--error .ex-icon { color: var(--red-300); }
.has-stickybuy .ex-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Dialogues ---------- */
.ex-dialog__lead { color: var(--ink-muted); font-size: 15px; }
.ex-garage-empty { color: var(--ink-muted); font-size: 15px; }
.ex-dialog[open], .ex-lightbox[open] { animation: ex-fade .2s ease-out; }
@keyframes ex-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ex-garage-item button { flex: none; }
.ex-garage-item__select { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ex-lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.ex-lightbox::backdrop { background: var(--scrim); }
.ex-lightbox img { width: 100%; height: auto; max-height: calc(100dvh - 32px); object-fit: contain; }
.ex-lightbox__close { position: absolute; top: var(--space-3); right: var(--space-3); background: var(--white); border: 1px solid var(--line-control); }

/* ---------- En-têtes de page ---------- */
.ex-pagehead { padding-bottom: var(--space-8); }
.ex-pagehead__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-section); line-height: 1.15; text-transform: uppercase; margin-top: var(--space-2); overflow-wrap: anywhere; hyphens: auto; }
.ex-pagehead__lead { max-width: 75ch; margin-top: var(--space-4); font-size: 18px; color: var(--ink-muted); }
.ex-pagehead__lead p + p { margin-top: var(--space-3); }
.ex-pagehead--dark { padding-bottom: var(--space-12); }
.ex-pagehero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: var(--space-12); }
.ex-pagehero.has-image { min-height: clamp(320px, 42vw, 520px); display: flex; align-items: flex-end; }
.ex-pagehero__bg { position: absolute; inset: 0; z-index: -1; }
.ex-pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ex-pagehero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim-soft) 60%, transparent 100%), linear-gradient(0deg, var(--scrim) 0%, transparent 60%); }
.ex-pagehero__inner { width: 100%; }
.ex-pagehero .ex-breadcrumb, .ex-pagehero .ex-breadcrumb a { color: var(--grey-400); }
.ex-pagehero .ex-breadcrumb [aria-current="page"] { color: var(--white); }
.ex-pagehero__title { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-hero); line-height: 1.05; text-transform: uppercase; color: var(--white); overflow-wrap: anywhere; }
.ex-pagehero__meta { margin-top: var(--space-3); font-family: var(--font-display); font-weight: 700; color: var(--green-400); }
.ex-pagehero__lead { max-width: 65ch; margin-top: var(--space-4); color: var(--grey-200); font-size: 18px; }

/* ---------- Catalogue ---------- */
.ex-catalogue__body { padding-bottom: var(--section-y); display: grid; gap: var(--space-6); }
.ex-chips ul { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.ex-chip {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); white-space: nowrap;
  border: 1px solid var(--line-control); border-radius: var(--radius-full); background: var(--surface-raised); color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .3s ease-out, border-color .3s ease-out;
}
.ex-chip:hover { border-color: var(--interactive); background: var(--interactive); color: var(--ink-on-green); }
.ex-chip[aria-current="page"], .ex-chip--active { border-color: var(--ink); background: var(--ink); color: var(--surface-raised); }
.ex-chip--active:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--on-action-hover); }
.ex-chip .ex-icon { width: 16px; height: 16px; }
.ex-vehicle { background: var(--infobar); color: var(--ink-on-green); border-radius: var(--radius-lg); padding: var(--space-5); display: grid; gap: var(--space-4); scroll-margin-top: calc(var(--header-h) + 24px); }
.ex-vehicle__title { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; }
.ex-vehicle__title .ex-icon { width: 28px; height: 28px; flex: none; }
.ex-vehicle__fields { display: grid; gap: var(--space-3); align-items: end; }
@media (min-width: 768px) { .ex-vehicle__fields { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; } }
.ex-vehicle .ex-field__label { color: var(--ink-on-green); }
.ex-vehicle .ex-select { border-color: var(--black-950); }
.ex-vehicle .ex-select:disabled { opacity: 1; background-color: var(--grey-100); color: var(--grey-600); }
.ex-vehicle__submit { background: var(--black-950); color: var(--white); border-color: var(--black-950); }
.ex-vehicle__submit:hover { background: var(--white); color: var(--black-950); border-color: var(--black-950); }
.ex-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.ex-toolbar__count { font-weight: 600; font-size: 15px; align-self: center; }
.ex-toolbar__fields { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ex-toolbar__fields .ex-field { min-width: 180px; flex: 1 1 180px; }
.ex-activefilters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.ex-garage-hint { display: flex; align-items: center; gap: var(--space-2); font-size: 15px; }
.ex-garage-hint .ex-icon { color: var(--accent); }
.ex-empty { padding: var(--space-12) var(--space-6); text-align: center; background: var(--surface-raised); border-radius: var(--radius-lg); display: grid; gap: var(--space-4); justify-items: center; }
.ex-empty__title { font-family: var(--font-display); font-weight: 300; font-size: 24px; text-transform: uppercase; }
.ex-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.ex-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); }
.ex-pagination a, .ex-pagination span.page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-2);
  border-radius: var(--radius-sm); border: 1px solid var(--line-control); background: var(--surface-raised); color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ex-pagination a:hover { border-color: var(--interactive); background: var(--interactive); color: var(--ink-on-green); }
.ex-pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface-raised); }
.ex-pagination .dots { border: 0; background: none; }
.ex-seo__body { max-width: 860px; display: grid; gap: var(--space-4); color: var(--ink-muted); }
.ex-seo__body :where(h2, h3) { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; color: var(--ink); font-size: clamp(22px, 1.4rem + .6vw, 30px); line-height: 1.2; }
.ex-seo__body a { color: var(--link); }

/* ---------- Cartes ---------- */
.ex-card__noimg { display: grid; place-items: center; width: 100%; aspect-ratio: 8 / 7; color: var(--grey-400); }
.ex-card__noimg svg, .ex-card__noimg .ex-icon { width: 64px; height: 64px; }
.ex-price__from { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-muted); display: block; margin-bottom: 2px; }
.ex-price-pro { display: grid; gap: 2px; margin-top: 4px; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ex-price-pro__net { color: var(--accent); font-weight: 600; }
.ex-card__excerpt { font-size: 14px; color: var(--ink-muted); }
.ex-card--story .ex-card__title { -webkit-line-clamp: 3; }
.ex-tile--noimg { background: linear-gradient(160deg, var(--black-850), var(--black-950)); }
.ex-tile__picto { position: absolute; inset: 18% 12% 38%; background: var(--grey-600); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; opacity: .55; transition: background-color .3s ease-out; }
.ex-tile:hover .ex-tile__picto { background: var(--green-400); opacity: 1; }

/* ---------- Fiche produit ---------- */
.ex-pdp { padding-bottom: var(--space-12); }
.ex-pdp__details { padding-bottom: var(--section-y); }
.ex-pdp__more { padding-top: 0; }
.ex-section__head--start { justify-items: start; text-align: left; }
.ex-buybox__form { display: grid; gap: var(--space-6); }
.ex-buybox__unavailable { font-size: 14px; color: var(--ink-muted); }
.ex-gallery__main--empty { display: grid; place-items: center; aspect-ratio: 1; color: var(--grey-400); text-align: center; }
.ex-gallery__main--empty p { display: grid; gap: var(--space-3); justify-items: center; font-weight: 600; }
.ex-gallery__ph { width: 96px; height: 96px; fill: currentColor; }
.ex-gallery__main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ex-gallery__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ex-compat-check { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface); border-radius: var(--radius-sm); font-size: 15px; }
.ex-compat-check .ex-icon { color: var(--accent); }
.ex-compat-check--ko .ex-icon { color: var(--warning); }
.ex-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ex-tablewrap:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.ex-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ex-table th, .ex-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ex-table th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface); }
.ex-table tr:last-child td { border-bottom: 0; }
.ex-table a { color: var(--link); text-decoration: underline; text-decoration-color: var(--interactive); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ex-video { margin-block: var(--space-4); }
.ex-video__play { display: grid; justify-items: start; gap: var(--space-1); width: 100%; padding: var(--space-5); background: var(--black-950); color: var(--white); border: 0; border-radius: var(--radius-lg); font: inherit; text-align: left; cursor: pointer; }
.ex-video__play .ex-icon { width: 40px; height: 40px; color: var(--green-400); }
.ex-video__play span { font-weight: 600; font-size: 16px; }
.ex-video__play small { font-size: 13px; color: var(--grey-400); }
.ex-video__play:hover .ex-icon { color: var(--white); }
.ex-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); }
.ex-stickybuy__info { min-width: 0; }
.ex-choices__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ex-choice { position: relative; display: inline-flex; }
.ex-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ex-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface-raised); font-size: 15px; font-weight: 500; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.ex-choice:hover span { border-color: var(--interactive); }
.ex-choice input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 600; }
.ex-choice input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.ex-choice input:disabled + span { color: var(--ink-muted); text-decoration: line-through; background: var(--surface); cursor: not-allowed; }
.ex-choices { border: 0; padding: 0; margin: 0; }

/* ---------- Contenu éditorial ---------- */
.ex-page__content { padding-bottom: var(--section-y); }
.ex-prose { font-size: 17px; line-height: 1.7; }
.ex-prose > :where(p, ul, ol, h2, h3, h4, blockquote, table, figure, details, .wp-block-details, .wp-block-table, .wp-block-buttons, .ex-faqsearch, .ex-todo) { max-width: 860px; }
.ex-prose > .ex-form, .ex-prose > form { max-width: 720px; }
.ex-prose--wide > * { max-width: none; }
.ex-prose > * + * { margin-top: var(--space-5); }
.ex-prose > .ex-section { margin-top: var(--space-12); }
.ex-prose :where(h2) { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 1.3rem + 1vw, 32px); line-height: 1.2; text-transform: uppercase; margin-top: var(--space-12); }
.ex-prose :where(h3) { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.3; margin-top: var(--space-8); }
.ex-prose :where(ul, ol) { padding-left: 1.25em; }
.ex-prose :where(ul) { list-style: disc; }
.ex-prose :where(ol) { list-style: decimal; }
.ex-prose :where(li + li) { margin-top: var(--space-2); }
.ex-prose :where(a:not(.ex-btn)) { color: var(--link); text-decoration: underline; text-decoration-color: var(--interactive); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ex-prose :where(a:not(.ex-btn)):hover { text-decoration-color: var(--ink); }
.ex-prose :where(img) { border-radius: var(--radius-lg); height: auto; }
.ex-prose :where(figure) { margin-inline: 0; }
.ex-prose :where(figcaption) { font-size: 14px; color: var(--ink-muted); margin-top: var(--space-2); }
.ex-prose :where(table) { width: 100%; border-collapse: collapse; font-size: 15px; }
.ex-prose :where(th, td) { border-bottom: 1px solid var(--line); padding: var(--space-3); text-align: left; }
.ex-prose :where(blockquote) { margin-inline: 0; padding-left: var(--space-5); border-left: 3px solid var(--interactive); color: var(--ink-muted); }
.ex-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ex-prose .ex-a-todo, .ex-todo { padding: var(--space-4) var(--space-5); border: 2px dashed var(--warning); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); font-weight: 600; }
.ex-prose .wp-block-columns { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .ex-prose .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.ex-prose > .ex-wide, .ex-page__content > .ex-wide { max-width: none; }
.ex-prose details.wp-block-details, .ex-accordion details { background: var(--surface-raised); }
.ex-prose details.wp-block-details { border-radius: var(--radius-lg); padding: 0; }
.ex-prose details.wp-block-details > summary { cursor: pointer; padding: var(--space-5) var(--space-6); font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.ex-prose details.wp-block-details > summary::-webkit-details-marker { display: none; }
.ex-prose details.wp-block-details > summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.ex-prose details.wp-block-details[open] > summary::after { transform: rotate(225deg); }
.ex-prose details.wp-block-details > :not(summary) { padding: 0 var(--space-6) var(--space-5); margin: 0; }
.ex-prose details.wp-block-details + details.wp-block-details { margin-top: var(--space-2); }
.ex-prose details.wp-block-details > summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-lg); }
.ex-faqsearch { display: grid; gap: var(--space-2); margin-bottom: var(--space-8); max-width: 640px; }
.ex-faqsearch__count { font-size: 14px; color: var(--ink-muted); min-height: 1.5em; }
.ex-faq-hidden { display: none !important; }

/* Sections pleine largeur dans les pages (blocs Groupe avec les classes du design system) */
.ex-prose > .ex-section, .ex-prose > .wp-block-group.ex-section { margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - var(--container-max) / 2 + var(--gutter))); max-width: none; }
.ex-prose > .ex-section + .ex-section { margin-top: 0; }
.ex-prose > .ex-section:last-child { margin-bottom: calc(-1 * var(--section-y)); }
.wp-block-group.ex-section > * { max-width: var(--container-max); margin-inline: auto; }
.ex-features { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ex-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ex-features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ex-feature { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.ex-feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.ex-feature p { color: var(--ink-muted); font-size: 15px; }
.ex-split { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 1024px) { .ex-split { grid-template-columns: 1fr 1fr; gap: var(--space-16); } .ex-split--reverse > :first-child { order: 2; } }
.ex-split img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.ex-split h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-section); line-height: 1.15; text-transform: uppercase; }
.ex-split p { color: var(--ink-muted); }
.ex-split > div > * + * { margin-top: var(--space-4); }
.ex-steps { counter-reset: step; display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .ex-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ex-steps li { counter-increment: step; display: grid; gap: var(--space-2); align-content: start; }
.ex-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-figure); line-height: 1; color: var(--accent); }
.ex-steps strong { font-size: 17px; }
.ex-steps span { color: var(--ink-muted); font-size: 15px; }
.ex-cta-band { display: grid; gap: var(--space-4); justify-items: center; text-align: center; }

/* ---------- Formulaires ---------- */
.ex-form { display: grid; gap: var(--space-5); max-width: 720px; }
.ex-form__legend, .ex-form__privacy { font-size: 14px; color: var(--ink-muted); }
.ex-form__status { padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-weight: 500; }
.ex-form__status--ok { background: var(--surface-raised); box-shadow: inset 4px 0 0 var(--success); }
.ex-form__status--ko { background: var(--surface-raised); box-shadow: inset 4px 0 0 var(--danger); color: var(--danger); }
.ex-field__optional { font-weight: 400; color: var(--ink-muted); }
.ex-field__input--area { min-height: 160px; resize: vertical; }
.ex-field--invalid .ex-select { border-color: var(--danger); border-width: 2px; }
.ex-form .ex-choices__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ex-form .ex-choice span { width: 100%; justify-content: center; min-height: 56px; }
.ex-panel { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); }
.ex-panel__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.ex-protools { display: grid; gap: var(--space-6); }
.ex-notices { display: grid; gap: var(--space-3); margin-block: var(--space-4); }
.ex-cart-alert { margin-block: var(--space-4); }

/* ---------- Réalisations, actualités, 404 ---------- */
.ex-realisations, .ex-posts { list-style: none; padding: 0; }
.ex-story { padding-bottom: var(--section-y); display: grid; gap: var(--space-8); }
.ex-story__cta { display: flex; }
.ex-article { padding-bottom: var(--section-y); margin-inline: auto; }
.ex-article__date { font-size: 14px; color: var(--ink-muted); font-weight: 600; letter-spacing: .04em; }
.ex-article__cover img { width: 100%; border-radius: var(--radius-lg); }
.ex-404 { padding-block: var(--section-y); display: grid; gap: var(--space-5); justify-items: start; max-width: 760px; }
.ex-404__code { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 12vw, 140px); line-height: 1; color: var(--accent); }
.ex-404__search { width: 100%; max-width: 520px; }
.ex-404__search input { color: var(--ink); border-bottom-color: var(--line-control); }
.ex-404__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ex-footer__help { font-size: 13px; color: var(--grey-400); margin-top: var(--space-2); }
.ex-footer__help a { color: var(--grey-400); }
.ex-footer__help a:hover { color: var(--white); }
.ex-footer__help.is-ok { color: var(--green-400); }
.ex-footer__help.is-ko { color: var(--red-300); }

/* =====================================================================
   WooCommerce : panier, commande, Mon compte (blocs et gabarits classiques)
   ===================================================================== */
.ex-wc { padding-bottom: var(--section-y); }
.ex-wc .wp-block-woocommerce-cart, .ex-wc .wp-block-woocommerce-checkout { max-width: var(--container-max); margin-inline: auto; }
.ex-root .wc-block-components-button:not(.is-link),
.ex-root .wc-block-cart__submit-button,
.ex-root .wc-block-components-checkout-place-order-button,
.ex-root .woocommerce-button, .ex-root .woocommerce .button, .ex-root button.button, .ex-root a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6);
  background: var(--action); color: var(--on-action); border: 0; border-radius: var(--radius-sm);
  font: 600 16px/1.25 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .3s ease-out, color .3s ease-out;
}
.ex-root .wc-block-cart__submit-button, .ex-root .wc-block-components-checkout-place-order-button { min-height: 56px; width: 100%; letter-spacing: .06em; text-transform: uppercase; }
.ex-root .wc-block-components-button:not(.is-link):hover, .ex-root .wc-block-cart__submit-button:hover,
.ex-root .wc-block-components-checkout-place-order-button:hover, .ex-root .woocommerce-button:hover, .ex-root .woocommerce .button:hover,
.ex-root button.button:hover, .ex-root a.button:hover { background: var(--action-hover); color: var(--on-action-hover); }
.ex-root .wc-block-components-button:focus-visible, .ex-root .woocommerce .button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: none; }
.ex-root .wc-block-components-text-input input, .ex-root .wc-block-components-text-input textarea,
.ex-root .wc-blocks-components-select__select, .ex-root .wc-block-components-combobox .wc-block-components-combobox-control input,
.ex-root .woocommerce form .input-text, .ex-root .woocommerce form select, .ex-root .woocommerce-Input {
  border: 1px solid var(--line-control) !important; border-radius: var(--radius-sm) !important; background: var(--surface-raised) !important; color: var(--ink) !important; font-family: var(--font-body) !important;
}
.ex-root .woocommerce form .input-text, .ex-root .woocommerce form select, .ex-root .woocommerce-Input { min-height: 48px; padding: 10px 14px; width: 100%; font-size: 16px; }
.ex-root .wc-block-components-text-input input:focus, .ex-root .wc-blocks-components-select__select:focus,
.ex-root .woocommerce form .input-text:focus, .ex-root .woocommerce form select:focus { outline: 3px solid var(--focus-ring) !important; outline-offset: 1px; box-shadow: none !important; border-color: var(--ink) !important; }
.ex-root .wc-block-components-text-input label, .ex-root .wc-blocks-components-select__label { color: var(--ink-muted); }
.ex-root .wc-block-components-checkout-step__title, .ex-root .wc-block-cart__totals-title, .ex-root .wc-block-components-title {
  font-family: var(--font-display) !important; font-weight: 300 !important; text-transform: uppercase; letter-spacing: 0; font-size: 22px !important;
}
.ex-root .wc-block-components-sidebar-layout .wc-block-components-main, .ex-root .wc-block-components-sidebar { box-sizing: border-box; }
.ex-root .wc-block-components-sidebar .wc-block-components-panel, .ex-root .wc-block-components-totals-wrapper, .ex-root .wc-block-cart__sidebar > *, .ex-root .wc-block-checkout__sidebar {
  background: var(--surface-raised);
}
.ex-root .wp-block-woocommerce-cart-order-summary-block, .ex-root .wp-block-woocommerce-checkout-order-summary-block { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-5) var(--space-5); border: 0 !important; }
.ex-root .wc-block-cart-items, .ex-root table.wc-block-cart-items { background: var(--surface-raised); border-radius: var(--radius-lg); border-collapse: separate; }
.ex-root .wc-block-cart-items td, .ex-root .wc-block-cart-items th { border-color: var(--line) !important; }
.ex-root .wc-block-cart-items .wc-block-cart-items__header { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ex-root .wc-block-components-product-name { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; color: var(--ink) !important; text-decoration: none; font-size: 16px; line-height: 1.25; }
.ex-root .wc-block-components-product-price, .ex-root .wc-block-components-totals-item__value, .ex-root .wc-block-components-formatted-money-amount { font-variant-numeric: tabular-nums; }
.ex-root .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.ex-root .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); }
.ex-root .wc-block-components-product-metadata, .ex-root .wc-block-components-product-details { font-size: 14px; color: var(--ink-muted); }
.ex-root .wc-block-components-quantity-selector { border-color: var(--line-control) !important; border-radius: var(--radius-sm); }
.ex-root .wc-block-components-quantity-selector button { min-width: 40px; min-height: 40px; color: var(--ink); }
.ex-root .wc-block-cart-item__remove-link { color: var(--ink-muted) !important; text-decoration: underline; text-decoration-color: var(--interactive); }
.ex-root .wc-block-components-radio-control__option, .ex-root .wc-block-components-radio-control-accordion-option { border-color: var(--line-control) !important; border-radius: var(--radius-sm); }
.ex-root .wc-block-components-radio-control__option-checked, .ex-root .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--accent) !important; border-color: var(--accent) !important; }
.ex-root .wc-block-components-radio-control__input:checked { border-color: var(--accent) !important; }
.ex-root .wc-block-components-radio-control__input:checked::before { background: var(--accent) !important; }
.ex-root .wc-block-components-checkbox__input:checked { background: var(--accent) !important; border-color: var(--accent) !important; }
.ex-root .wc-block-components-notice-banner { border-radius: var(--radius-sm); border-left-width: 4px; font-size: 15px; }
.ex-root .wc-block-components-notice-banner.is-error { border-color: var(--danger); }
.ex-root .wc-block-components-notice-banner.is-success { border-color: var(--success); }
.ex-root .wc-block-components-notice-banner.is-info, .ex-root .wc-block-components-notice-banner.is-warning { border-color: var(--warning); }
.ex-root .wc-block-components-totals-coupon__button { min-height: 48px; }
.ex-root .wc-block-components-sale-badge { background: var(--surface-raised); color: var(--accent); border-color: var(--accent); border-radius: var(--radius-sm); font-weight: 600; }
.ex-root .wc-block-components-express-payment, .ex-root .wc-block-components-express-payment-continue-rule { display: none; }
.ex-root .wc-block-checkout__terms { font-size: 14px; color: var(--ink-muted); }
.ex-root .wc-block-components-checkout-return-to-cart-button { color: var(--link); text-decoration: underline; text-decoration-color: var(--interactive); text-underline-offset: 3px; }
.ex-root .wc-block-components-address-card { border-color: var(--line) !important; border-radius: var(--radius-sm); background: var(--surface-raised); }
.ex-root .wc-block-cart__empty-cart__title { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; }
.ex-root .wc-block-components-product-image img { border-radius: var(--radius-sm); background: linear-gradient(var(--media-top), var(--media-bottom)); }

/* Mon compte (gabarits classiques) */
.woocommerce-account .woocommerce { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .woocommerce-account .woocommerce { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 2px; background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-2); }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation a:hover { background: var(--surface); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--surface-raised); }
@media (max-width: 1023.98px) { .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; } .woocommerce-MyAccount-navigation a { white-space: nowrap; } }
.woocommerce-MyAccount-content { display: grid; gap: var(--space-5); min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { font-size: 17px; }
.woocommerce-MyAccount-content a:not(.button):not(.ex-btn) { color: var(--link); text-decoration: underline; text-decoration-color: var(--interactive); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.woocommerce-account h2, .woocommerce-account h3, .woocommerce-account legend { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: 22px; }
.woocommerce table.shop_table, .woocommerce-orders-table { width: 100%; border-collapse: collapse; background: var(--surface-raised); border-radius: var(--radius-lg); overflow: hidden; font-size: 15px; font-variant-numeric: tabular-nums; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce table.shop_table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 767.98px) {
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr { display: grid; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; gap: var(--space-4); border: 0; padding: var(--space-1) var(--space-4); }
  .woocommerce table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--ink-muted); }
}
.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 var(--space-4); }
.woocommerce form .form-row label { font-size: 14px; font-weight: 600; }
.woocommerce form .form-row .required { color: var(--danger); text-decoration: none; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, .woocommerce-EditAccountForm, .woocommerce-address-fields { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-6); }
.woocommerce-account .u-columns { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .woocommerce-account:not(.logged-in) .woocommerce { grid-template-columns: 1fr; } .woocommerce-account .u-columns { grid-template-columns: 1fr 1fr; } }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper > * {
  list-style: none; margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); background: var(--surface-raised); box-shadow: inset 4px 0 0 var(--success); font-size: 15px;
}
.woocommerce-error { box-shadow: inset 4px 0 0 var(--danger); }
.woocommerce-info { box-shadow: inset 4px 0 0 var(--warning); }
.woocommerce-Addresses { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-5); }
.woocommerce-order-details, .woocommerce-customer-details, .woocommerce-order-overview { display: grid; gap: var(--space-4); }
.woocommerce-order-overview { list-style: none; padding: var(--space-5); background: var(--surface-raised); border-radius: var(--radius-lg); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.woocommerce-order-overview li { font-size: 13px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.woocommerce-order-overview strong { display: block; font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: 0; margin-top: 4px; }
.wc-block-order-confirmation-status { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .ex-drawer[open], .ex-dialog[open], .ex-lightbox[open] { animation: none; }
  .ex-chip, .ex-choice span { transition: none; }
}

/* ---------- Pages moto : sections de présentation ---------- */
.ex-motostory { padding-block: var(--space-12) 0; }
.ex-motostory__grid { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .ex-motostory__grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }
.ex-motostory__item { display: grid; gap: var(--space-3); align-content: start; color: var(--ink-muted); max-width: 75ch; }
.ex-motostory__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 1.3rem + .6vw, 30px); line-height: 1.2; text-transform: uppercase; color: var(--ink); }

/* ---------- Sections sombres dans les pages (bloc Groupe, classe ex-theme-dark) ---------- */
.ex-theme-dark {
  --surface: var(--black-950); --surface-raised: var(--black-900); --surface-muted: var(--black-850);
  --ink: var(--white); --ink-muted: var(--grey-400); --line: var(--black-800); --line-control: var(--grey-600);
  --accent: var(--green-400); --link: var(--green-400); --focus-ring: var(--green-400);
  --success: var(--green-400); --warning: var(--amber-300); --danger: var(--red-300);
  background-color: var(--surface); color: var(--ink);
}
.ex-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ex-section__intro { max-width: 75ch; color: var(--ink-muted); font-size: 18px; }
.ex-univlinks { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ex-quote { margin: 0; padding: var(--space-6) var(--space-8); border-left: 3px solid var(--interactive); background: var(--surface-raised); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(18px, 1rem + .6vw, 24px); line-height: 1.35; }
.ex-coords { display: grid; gap: var(--space-2); font-style: normal; }
.ex-contact { display: grid; gap: var(--space-12); }
@media (min-width: 1024px) { .ex-contact { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.ex-contact__aside { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); }
.ex-contact__aside h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.ex-doclist { display: grid; gap: var(--space-3); max-width: 720px; }

/* Navigation : 8 entrées sur une ligne dès 1 024 px */
@media (min-width: 1024px) and (max-width: 1279.98px) { .ex-nav__list { gap: 0 var(--space-5); } .ex-nav__link { font-size: 13px; letter-spacing: .04em; } }

/* Grilles : un enfant ne doit jamais élargir la page (rangées défilantes, tableaux, miniatures) */
.ex-catalogue__body > *, .ex-pdp > *, .ex-accordion__panel, .ex-accordion__panel > *, .ex-buybox > *, .ex-contact > *, .ex-statement > * { min-width: 0; }
.ex-chips { max-width: 100%; }
.ex-tablewrap { max-width: 100%; }
/* Grilles de points forts : 3 ou 6 éléments sur 3 colonnes, 2 sur 2 (pas de rangée orpheline) */
@media (min-width: 1024px) {
  .ex-features:has(> :nth-child(3):last-child), .ex-features:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-features:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ex-prose > .ex-section .ex-section__title { text-align: left; }
.ex-gallery > * { min-width: 0; }
/* Méga-menu centré sur la navigation (et non sur l'entrée « Par moto ») : jamais hors de l'écran */
@media (min-width: 1024px) {
  .ex-nav { position: relative; }
  .ex-nav__item { position: static; }
  .ex-mega { left: 50%; transform: translateX(-50%); width: min(1040px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 180px); overflow-y: auto; }
}
