/*
Theme Name: EuroChina Motors
Theme URI: https://www.eurochina-motors.fr
Author: EuroChina Motors
Description: Thème bloc sur mesure d'EuroChina Motors — importation et vente de véhicules chinois. Pages 100 % éditables dans l'éditeur de blocs ; composants dynamiques fournis par l'extension EuroChina Core.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.2
License: GPL-2.0-or-later
Text Domain: eurochina
*/

/* ════════════════════════════════════════════════════════════
   1. Jetons et bases
   ════════════════════════════════════════════════════════════ */
:root {
  --night: #0b1424;
  --night-2: #0f1c31;
  --premium: #17365c;
  --electric: #3d82f6;
  --electric-dark: #2563eb;
  --sky: #7dd3fc;
  --mist: #f3f5f8;
  --line: #e3e8ef;
  --muted: #6b7280;
  --ink: #111827;
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --display: var(--wp--preset--font-family--manrope, "Manrope", system-ui, sans-serif);
  --sans: var(--wp--preset--font-family--inter, "Inter", system-ui, sans-serif);
  --radius: 1.25rem;
  --shadow: 0 1px 2px rgb(11 20 36 / 0.04), 0 8px 24px -12px rgb(11 20 36 / 0.12);
  --shadow-lift: 0 2px 4px rgb(11 20 36 / 0.04), 0 24px 48px -20px rgb(11 20 36 / 0.28);
  --header-h: 76px;
  --gutter: 1rem;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
body.ecm-lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgb(61 130 246 / 0.2); }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Neutralisation de l'espacement automatique, à spécificité nulle (méthode) */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
:where(h1, h2, h3, h4, p, ul, ol, dl, figure) { margin: 0; }
figure.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; }
:where(.wp-block-post-content) > * { margin-block: 0; }
.ecm-main { display: block; }
.ecm-main--plain { padding: calc(var(--header-h) + 3rem) 0 4rem; }

.ecm-wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Icônes (masques CSS générés depuis Lucide) */
.ecm-i { display: inline-block; flex: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--ecm-i) center / contain no-repeat; mask: var(--ecm-i) center / contain no-repeat; vertical-align: -0.15em; }

/* ════════════════════════════════════════════════════════════
   2. Boutons
   ════════════════════════════════════════════════════════════ */
.ecm-btn, .wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 0.875rem; line-height: 1.2;
  padding: 0.8rem 1.35rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ecm-btn:hover, .wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.ecm-btn:disabled { opacity: 0.6; pointer-events: none; }
.ecm-btn--sm, .wp-block-button.is-sm .wp-block-button__link { padding: 0.55rem 1rem; font-size: 0.8rem; }
.ecm-btn--lg, .wp-block-button.is-lg .wp-block-button__link { padding: 0.95rem 1.75rem; font-size: 0.95rem; }
.ecm-btn--block { width: 100%; }
.ecm-btn--primary, .wp-block-button.is-primary .wp-block-button__link { background: var(--electric); color: #fff; box-shadow: 0 8px 24px -10px rgb(61 130 246 / 0.7); }
.ecm-btn--primary:hover, .wp-block-button.is-primary .wp-block-button__link:hover { background: var(--electric-dark); }
.ecm-btn--dark, .wp-block-button.is-dark .wp-block-button__link { background: var(--night); color: #fff; }
.ecm-btn--dark:hover, .wp-block-button.is-dark .wp-block-button__link:hover { background: var(--premium); }
.ecm-btn--outline, .wp-block-button.is-outline .wp-block-button__link { background: #fff; color: var(--ink); border-color: rgb(17 24 39 / 0.15); }
.ecm-btn--outline:hover, .wp-block-button.is-outline .wp-block-button__link:hover { border-color: rgb(17 24 39 / 0.4); }
.ecm-btn--outline[aria-pressed="true"] { border-color: rgb(61 130 246 / 0.35); background: rgb(61 130 246 / 0.08); color: var(--electric-dark); }
.ecm-btn--outline[data-ecm-fav-btn][aria-pressed="true"] { border-color: #fecdd3; background: #fff1f2; color: #be123c; }
.wp-block-button.is-light .wp-block-button__link { background: #fff; color: var(--night); }
.wp-block-button.is-light .wp-block-button__link:hover { background: var(--mist); }
.wp-block-button.is-ghost .wp-block-button__link { background: rgb(255 255 255 / 0.05); color: #fff; border-color: rgb(255 255 255 / 0.3); backdrop-filter: blur(6px); }
.wp-block-button.is-ghost .wp-block-button__link:hover { background: rgb(255 255 255 / 0.15); border-color: rgb(255 255 255 / 0.6); }
.wp-block-button.is-arrow .wp-block-button__link::after { content: "→"; font-weight: 500; }
.ecm-btn--whatsapp { background: #fff; color: #128c7e; border-color: rgb(37 211 102 / 0.4); }
.ecm-btn.is-loading { opacity: 0.7; pointer-events: none; }
.ecm-btn.is-loading::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ecm-spin 0.7s linear infinite; }
@keyframes ecm-spin { to { transform: rotate(360deg); } }
.wp-block-buttons.ecm-actions, .ecm-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-button { margin: 0; }
.ecm-link { background: none; border: 0; padding: 0; color: var(--electric); font-weight: 600; font-size: 0.85rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.ecm-link:hover { color: var(--electric-dark); }

/* ════════════════════════════════════════════════════════════
   3. En-tête
   ════════════════════════════════════════════════════════════ */
.ecm-header-part { position: fixed; inset: 0 0 auto; z-index: 50; }
.admin-bar .ecm-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .ecm-header-part { top: 46px; } }
.ecm-header { background: rgb(11 20 36 / 0.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgb(255 255 255 / 0.08); transition: background 0.3s, border-color 0.3s; color: #fff; }
.has-hero:not(.is-scrolled) .ecm-header { background: transparent; border-color: transparent; backdrop-filter: none; }
.ecm-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); max-width: 80rem; margin-inline: auto; padding-inline: var(--gutter); }

.ecm-logo { margin: 0; flex: none; font-size: 0; line-height: 1; }
.ecm-logo a { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ecm-logo a::before { content: ""; width: 40px; height: 40px; flex: none; border-radius: 11px; background: linear-gradient(135deg, #3d82f6, #17365c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.ecm-logo a::after { content: ""; position: absolute; left: 0; top: 50%; margin-top: -20px; width: 40px; height: 40px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M11 27.5 20 12l9 15.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14.6 22.4h10.8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M11 27.5 20 12l9 15.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14.6 22.4h10.8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ecm-logo a { position: relative; }

.ecm-nav { flex: 1; font-size: 0.84rem; font-weight: 500; }
.ecm-nav .wp-block-navigation__container { gap: 0.25rem; }
.ecm-nav .wp-block-navigation-item__content { display: block; padding: 0.5rem 0.75rem; border-radius: 999px; color: rgb(255 255 255 / 0.8); text-decoration: none; position: relative; }
.ecm-nav .wp-block-navigation-item__content:hover, .ecm-nav .current-menu-item > .wp-block-navigation-item__content { color: #fff; }
.ecm-nav .current-menu-item > .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.1rem; height: 2px; border-radius: 2px; background: var(--electric); }
.ecm-nav .ecm-nav__mobile-only { display: none; }
.ecm-nav .wp-block-navigation__responsive-container-open, .ecm-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.ecm-nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }

/* Menu burger jusqu'à 1280 px (7 entrées) */
@media (max-width: 1279px) {
  .ecm-nav { order: 4; flex: none; }
  .ecm-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .ecm-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
  .ecm-header__inner > .ecm-header-actions, .ecm-header__inner > .wp-block-shortcode { margin-left: auto; }
}
.wp-block-navigation.ecm-nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: rgba(11, 20, 36, 0.985) !important; color: #fff !important; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
}
.ecm-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; }
.ecm-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.ecm-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.ecm-nav .is-menu-open .wp-block-navigation-item__content { font-family: var(--display); font-size: 1.15rem; font-weight: 600; padding: 1rem 0 !important; color: #fff; }
.ecm-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--sky); }
.ecm-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content::after { display: none; }
.ecm-nav .is-menu-open .ecm-nav__mobile-only { display: block; border: 0; margin-top: 1.5rem; }
.ecm-nav .is-menu-open .ecm-nav__mobile-only .wp-block-navigation-item__content { background: var(--electric); border-radius: 999px; text-align: center; padding: 0.95rem !important; font-family: var(--sans); font-size: 1rem; }
.ecm-nav .wp-block-navigation__responsive-container-close { top: calc(var(--header-h) / 2 - 12px); right: var(--gutter); }

.ecm-header-actions { display: flex; align-items: center; gap: 0.25rem; }
.ecm-iconlink { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 1.15rem; }
.ecm-iconlink:hover { background: rgb(255 255 255 / 0.1); }
.ecm-counter { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--electric); color: #fff; font-size: 0.62rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.ecm-header .ecm-header__cta { display: none; }
@media (min-width: 640px) { .ecm-header .ecm-header__cta { display: flex; } }
@media (max-width: 639px) {
  .ecm-header__inner { gap: 0.25rem; }
  .ecm-logo a { font-size: 0.86rem; letter-spacing: 0.05em; gap: 0.6rem; }
  .ecm-logo a::before, .ecm-logo a::after { width: 36px; height: 36px; }
  .ecm-logo a::after { margin-top: -18px; }
}

/* ════════════════════════════════════════════════════════════
   4. Sections de page (blocs natifs)
   ════════════════════════════════════════════════════════════ */
.ecm-eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--electric); }
.ecm-eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }

/* Héros d'accueil */
.ecm-hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--night); color: #fff; padding: 7rem 0 2.5rem; }
.ecm-hero > .ecm-hero__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.ecm-hero > .ecm-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 65%; }
.ecm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--night), rgb(11 20 36 / 0.8), rgb(11 20 36 / 0.1)), linear-gradient(to top, var(--night), rgb(11 20 36 / 0.1) 50%, rgb(11 20 36 / 0.9)); }
.ecm-hero__content { max-width: 48rem; animation: ecm-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ecm-hero .ecm-eyebrow, .ecm-pagehero .ecm-eyebrow, .ecm-section--night .ecm-eyebrow, .ecm-gen .ecm-eyebrow { color: var(--sky); }
.ecm-hero__title { margin-top: 1.25rem !important; font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.ecm-hero__title em, .ecm-h2 em { font-style: normal; color: var(--sky); }
.ecm-hero__lead { margin-top: 1.5rem !important; max-width: 42rem; font-size: clamp(1rem, 1.6vw, 1.125rem); color: rgb(255 255 255 / 0.75); }
.ecm-hero .ecm-actions { margin-top: 2rem !important; }
.ecm-hero__search { margin-top: 3rem !important; }
@media (max-width: 639px) { .ecm-hero .ecm-actions .wp-block-button { flex: 1 1 100%; } .ecm-hero .ecm-actions .wp-block-button__link { width: 100%; } }
@keyframes ecm-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Recherche rapide */
.ecm-search { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; padding: 0.75rem; border-radius: 1rem; background: rgb(255 255 255 / 0.96); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5); color: var(--night); }
.ecm-search__field span { display: block; padding: 0 0.25rem 0.25rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ecm-search__field select { width: 100%; min-width: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; font-size: 0.875rem; font-weight: 500; }
.ecm-search__submit { grid-column: 1 / -1; align-self: end; border-radius: 0.75rem; padding-block: 0.85rem; }
@media (min-width: 1024px) { .ecm-search { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0.75rem; padding: 0.875rem; } .ecm-search__submit { grid-column: auto; } }

/* Héros des pages intérieures */
.ecm-pagehero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; padding: 7rem 0 3.5rem; }
@media (min-width: 640px) { .ecm-pagehero { padding: 8rem 0 5rem; } }
.ecm-pagehero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at top right, rgb(61 130 246 / 0.25), transparent 55%); }
.ecm-pagehero.has-image::before { background: linear-gradient(to right, var(--night), rgb(11 20 36 / 0.85), rgb(11 20 36 / 0.3)); }
.ecm-pagehero > .ecm-pagehero__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.ecm-pagehero > .ecm-pagehero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.ecm-pagehero__content > * { max-width: 48rem; }
.ecm-crumbs-p { font-size: 0.75rem; color: rgb(255 255 255 / 0.6); margin-bottom: 2rem !important; }
.ecm-crumbs-p a { color: rgb(255 255 255 / 0.6); text-decoration: none; }
.ecm-crumbs-p a:hover { color: #fff; }
.ecm-pagehero__title { margin-top: 1rem !important; font-size: clamp(2.25rem, 5vw, 3.4rem); line-height: 1.06; font-weight: 700; }
.ecm-pagehero__intro { margin-top: 1.25rem !important; font-size: clamp(1rem, 1.5vw, 1.125rem); color: rgb(255 255 255 / 0.72); max-width: 42rem; }
.ecm-pagehero .ecm-actions { margin-top: 2rem !important; }
.ecm-pagehero--center { text-align: center; padding-top: 10rem; padding-bottom: 7rem; }
.ecm-pagehero--center .ecm-pagehero__content > * { margin-inline: auto; }
.ecm-pagehero--center .ecm-actions { justify-content: center; }

/* Sections */
.ecm-section { padding: 4rem 0; }
@media (min-width: 640px) { .ecm-section { padding: 5rem 0; } }
@media (min-width: 1024px) { .ecm-section { padding: 7rem 0; } }
.ecm-section--tight { padding-top: 3rem; }
.ecm-section--mist { background: var(--mist); }
.ecm-section--night { background: var(--night); color: #fff; }
.ecm-head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .ecm-head { margin-bottom: 3.5rem; } }
@media (min-width: 1024px) { .ecm-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.ecm-head__text { max-width: 42rem; }
.ecm-head--center { align-items: center; text-align: center; }
.ecm-head--center .ecm-head__text { margin-inline: auto; }
.ecm-h2 { margin-top: 1rem !important; font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.1; font-weight: 700; color: var(--night); }
.ecm-section--night .ecm-h2, .ecm-gen .ecm-h2 { color: #fff; }
.ecm-intro { margin-top: 1.25rem !important; font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--muted); }
.ecm-section--night .ecm-intro, .ecm-gen .ecm-intro { color: rgb(255 255 255 / 0.7); }

/* Cartes d'avantages / caractéristiques */
.ecm-features { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .ecm-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ecm-features--4 { grid-template-columns: repeat(4, 1fr); } .ecm-features--3 { grid-template-columns: repeat(3, 1fr); } }
.ecm-feature { position: relative; padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.ecm-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ecm-feature::before { content: ""; display: block; width: 3rem; height: 3rem; border-radius: 1rem; background: var(--night); margin-bottom: 1.5rem; }
.ecm-feature::after { content: ""; position: absolute; top: 1.75rem; left: 1.75rem; width: 3rem; height: 3rem; background: #fff; -webkit-mask: var(--ecm-i) center / 1.3rem no-repeat; mask: var(--ecm-i) center / 1.3rem no-repeat; }
.ecm-feature:hover::before { background: var(--electric); }
.ecm-feature--soft::before { background: rgb(61 130 246 / 0.1); }
.ecm-feature--soft::after { background: var(--electric); }
.ecm-feature--soft:hover::before { background: rgb(61 130 246 / 0.16); }
.ecm-feature--dark { background: var(--night); color: #fff; border-color: transparent; }
.ecm-feature--dark::before { background: transparent; width: auto; height: 1.5rem; margin-bottom: 1.25rem; }
.ecm-feature--dark::after { top: 1.75rem; width: 1.5rem; height: 1.5rem; background: var(--sky); -webkit-mask-size: contain; mask-size: contain; }
.ecm-feature--dark p { color: rgb(255 255 255 / 0.65) !important; }
.ecm-feature--glass { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.1); box-shadow: none; color: #fff; }
.ecm-feature--glass::before { background: transparent; width: auto; height: 1.5rem; margin-bottom: 1rem; }
.ecm-feature--glass::after { width: 1.5rem; height: 1.5rem; background: var(--sky); -webkit-mask-size: contain; mask-size: contain; }
.ecm-feature--glass p { color: rgb(255 255 255 / 0.65) !important; }
.ecm-feature--accent { background: var(--electric); color: #fff; border-color: transparent; }
.ecm-feature--accent::before { background: transparent; height: 1.5rem; width: auto; margin-bottom: 1rem; }
.ecm-feature--accent::after { width: 1.5rem; height: 1.5rem; background: #fff; -webkit-mask-size: contain; mask-size: contain; }
.ecm-feature--accent p { color: #fff !important; font-weight: 500; }
.ecm-feature h3 { font-size: 1.125rem; font-weight: 700; }
.ecm-feature p { margin-top: 0.75rem !important; font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.ecm-feature .ecm-num { position: absolute; top: 1.6rem; right: 1.6rem; margin: 0 !important; font-family: var(--display); font-weight: 800; font-size: 0.875rem; color: var(--line); }
.ecm-feature .ecm-num--big { font-size: 1.9rem; color: var(--mist); }

/* Bloc « nouvelle génération » (image + texte sombre) */
.ecm-gen { display: grid; background: var(--night); color: #fff; overflow: hidden; }
@media (min-width: 1024px) { .ecm-gen { grid-template-columns: 1fr 1fr; } }
.ecm-gen > .ecm-gen__media { position: relative; min-height: 320px; margin: 0; }
@media (min-width: 640px) { .ecm-gen > .ecm-gen__media { min-height: 420px; } }
.ecm-gen > .ecm-gen__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ecm-gen > .ecm-gen__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(11 20 36 / 0.7), transparent 60%); }
@media (min-width: 1024px) { .ecm-gen > .ecm-gen__media::after { background: linear-gradient(to right, transparent 60%, var(--night)); } }
.ecm-gen__text { padding: 4rem var(--gutter); }
@media (min-width: 1024px) { .ecm-gen__text { padding: 7rem 4rem; } }
.ecm-gen__list { display: grid; gap: 1.5rem; margin-top: 2.5rem !important; }
@media (min-width: 640px) { .ecm-gen__list { grid-template-columns: 1fr 1fr; } }
.ecm-gen__item { position: relative; padding-left: 3.5rem; }
.ecm-gen__item::before { content: ""; position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; border: 1px solid rgb(255 255 255 / 0.15); background: rgb(255 255 255 / 0.05); }
.ecm-gen__item::after { content: ""; position: absolute; left: 0.6rem; top: 0.6rem; width: 1.3rem; height: 1.3rem; background: var(--sky); -webkit-mask: var(--ecm-i) center / contain no-repeat; mask: var(--ecm-i) center / contain no-repeat; }
.ecm-gen__item h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.ecm-gen__item p { margin-top: 0.25rem !important; font-size: 0.875rem; color: rgb(255 255 255 / 0.6); }

/* Étapes */
.ecm-steps { position: relative; display: grid; gap: 2rem; }
@media (min-width: 768px) { .ecm-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ecm-steps { grid-template-columns: repeat(4, 1fr); } .ecm-steps::before { content: ""; position: absolute; top: 1.75rem; left: 12%; right: 12%; height: 1px; background: linear-gradient(to right, transparent, rgb(61 130 246 / 0.4), transparent); } }
.ecm-step-item { position: relative; }
.ecm-step-item::before { content: ""; position: relative; z-index: 1; display: block; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--electric); box-shadow: 0 12px 30px -12px rgb(61 130 246 / 0.8); }
.ecm-step-item::after { content: ""; position: absolute; z-index: 2; top: 0; left: 0; width: 3.5rem; height: 3.5rem; background: #fff; -webkit-mask: var(--ecm-i) center / 1.5rem no-repeat; mask: var(--ecm-i) center / 1.5rem no-repeat; }
.ecm-step-num { margin-top: 1.5rem !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: var(--electric); }
.ecm-step-item h3 { margin-top: 0.5rem !important; font-size: 1.125rem; font-weight: 700; color: var(--night); }
.ecm-step-item p:last-child { margin-top: 0.5rem !important; font-size: 0.875rem; color: var(--muted); }

/* Section image + texte */
.ecm-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .ecm-split { grid-template-columns: 1fr 1fr; gap: 4rem; } .ecm-split--reverse > .ecm-split__media { order: 2; } }
.ecm-split > .ecm-split__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.75rem; box-shadow: var(--shadow-lift); }
.ecm-split > .ecm-split__media.is-tall { aspect-ratio: 4 / 5; }
.ecm-split > .ecm-split__media img { width: 100%; height: 100%; object-fit: cover; }
.ecm-split > .ecm-split__media figcaption { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgb(255 255 255 / 0.9); color: var(--night); font-size: 0.75rem; font-weight: 600; }
.ecm-split__text .ecm-h2 { font-size: clamp(1.875rem, 3vw, 2.25rem); }
.ecm-split__text > p:not(.ecm-eyebrow) { margin-top: 1.25rem !important; color: var(--muted); }
.ecm-split__text .ecm-actions { margin-top: 2rem !important; }
.ecm-split__text > .ecm-pills, .ecm-split__text > .ecm-linkcards { margin-top: 2rem; }

.ecm-checks { list-style: none; padding: 0; margin-top: 2rem !important; display: grid; gap: 1rem; }
.ecm-checks li { position: relative; padding-left: 1.75rem; font-size: 0.875rem; line-height: 1.6; color: rgb(17 24 39 / 0.8); }
.ecm-checks li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 1rem; height: 1rem; background: var(--electric); -webkit-mask: var(--ecm-i, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")) center / contain no-repeat; mask: var(--ecm-i, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")) center / contain no-repeat; }
.ecm-checks strong { color: var(--night); }
.ecm-section--night .ecm-checks li { color: rgb(255 255 255 / 0.8); }

/* Liens rapides */
.ecm-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ecm-pills a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.75rem; font-weight: 600; color: var(--night); text-decoration: none; transition: 0.2s; }
.ecm-pills a:hover { border-color: var(--electric); color: var(--electric); }
.ecm-linkcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .ecm-linkcards { grid-template-columns: 1fr 1fr; } }
.ecm-linkcards a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; text-decoration: none; transition: 0.2s; }
.ecm-linkcards a.is-dashed { border-style: dashed; }
.ecm-linkcards a:hover { border-color: var(--electric); }
.ecm-linkcards strong { display: block; color: var(--night); }
.ecm-linkcards small { color: var(--muted); font-size: 0.75rem; }
.ecm-linkcards .ecm-i { color: var(--muted); }

/* Appel à l'action */
.ecm-cta-wrap { padding: 0 0 4rem; }
@media (min-width: 640px) { .ecm-cta-wrap { padding-bottom: 6rem; } }
.ecm-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 2rem; padding: 3.5rem 1.5rem; border-radius: 2rem; background: var(--premium); color: #fff; }
@media (min-width: 640px) { .ecm-cta { padding: 5rem 3rem; } }
@media (min-width: 1024px) { .ecm-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 5rem; } }
.ecm-cta::before { content: ""; position: absolute; z-index: -1; top: -6rem; right: -6rem; width: 20rem; height: 20rem; border-radius: 50%; background: rgb(61 130 246 / 0.4); filter: blur(64px); }
.ecm-cta::after { content: ""; position: absolute; z-index: -1; bottom: -8rem; left: -5rem; width: 20rem; height: 20rem; border-radius: 50%; background: rgb(11 20 36 / 0.6); filter: blur(64px); }
.ecm-cta__text { max-width: 42rem; }
.ecm-cta > .ecm-actions { flex: none; }
.ecm-cta h2 { font-size: clamp(1.875rem, 3.4vw, 2.25rem); }
.ecm-cta p { margin-top: 1rem !important; color: rgb(255 255 255 / 0.75); font-size: clamp(1rem, 1.4vw, 1.125rem); }

/* Témoignages */
.ecm-testimonials { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .ecm-testimonials { grid-template-columns: repeat(3, 1fr); } }
.ecm-testimonial { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ecm-testimonial::before { content: "“"; font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--electric); }
.ecm-testimonial.is-demo { border: 1px dashed rgb(17 24 39 / 0.2); background: rgb(255 255 255 / 0.6); box-shadow: none; }
.ecm-testimonial.is-demo::before { color: rgb(17 24 39 / 0.2); }
.ecm-demo-badge { position: absolute; top: 1rem; right: 1rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: #fef3c7; color: #78350f; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ecm-testimonial__text { flex: 1; margin-top: 0.75rem !important; font-size: 0.875rem; line-height: 1.65; color: rgb(17 24 39 / 0.8); }
.ecm-testimonial.is-demo .ecm-testimonial__text { color: var(--muted); font-style: italic; }
.ecm-testimonial__author { margin-top: 1.5rem !important; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.ecm-testimonial.is-demo .ecm-testimonial__author { border-top-style: dashed; }

/* FAQ (blocs Détails) */
.ecm-faq { max-width: 56rem; margin-inline: auto; }
.ecm-faq__list { margin-top: 2rem !important; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ecm-faq-item { border-top: 1px solid var(--line); padding: 0 1.25rem; }
@media (min-width: 640px) { .ecm-faq-item { padding: 0 1.75rem; } }
.ecm-faq-item:first-child { border-top: 0; }
.ecm-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-weight: 600; color: var(--night); }
.ecm-faq-item summary::-webkit-details-marker { display: none; }
.ecm-faq-item summary::after { content: ""; flex: none; width: 1.25rem; height: 1.25rem; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.2s; }
.ecm-faq-item[open] summary::after { transform: rotate(180deg); }
.ecm-faq-item > p { padding-bottom: 1.5rem; font-size: 0.875rem; line-height: 1.7; color: rgb(17 24 39 / 0.75); }
.ecm-center { text-align: center; }
.ecm-center .ecm-actions, .ecm-actions.is-center { justify-content: center; }
.ecm-faq + .ecm-actions, .ecm-after { margin-top: 3rem !important; }
.ecm-small-note { margin-top: 1.5rem !important; font-size: 0.75rem; line-height: 1.6; color: var(--muted); max-width: 60rem; }

/* Coûts */
.ecm-costs { list-style: none; padding: 0; margin-top: 2rem !important; border: 1px solid var(--line); border-radius: var(--radius); counter-reset: cost; }
.ecm-costs li { counter-increment: cost; display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: rgb(17 24 39 / 0.8); }
.ecm-costs li:first-child { border-top: 0; }
.ecm-costs li::before { content: counter(cost); flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--mist); color: var(--premium); font-size: 0.7rem; font-weight: 700; }
.ecm-costs li::after { content: "chiffré au devis"; margin-left: auto; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

/* Mise en page contact / devis */
.ecm-two { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .ecm-two { grid-template-columns: 7fr 5fr; } .ecm-two--quote { grid-template-columns: 8fr 4fr; } }
.ecm-panel { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); padding: 1.25rem; }
@media (min-width: 640px) { .ecm-panel { padding: 2rem; } }
.ecm-panel > h2 { font-size: 1.5rem; font-weight: 700; color: var(--night); }
.ecm-panel > p { margin: 0.5rem 0 2rem !important; font-size: 0.875rem; color: var(--muted); }
.ecm-aside { display: grid; gap: 1.25rem; align-content: start; }
.ecm-darkcard { border-radius: var(--radius); background: var(--night); color: #fff; padding: 1.75rem; }
.ecm-darkcard > h2 { font-size: 1.25rem; font-weight: 700; }
.ecm-darkcard > .ecm-contactcard { margin-top: 1.5rem; }
.ecm-card-plain { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 1.75rem; }
.ecm-card-plain h2, .ecm-card-plain h3 { font-size: 1.1rem; font-weight: 700; color: var(--night); }
.ecm-card-plain p { margin-top: 0.5rem !important; font-size: 0.875rem; color: var(--muted); }
.ecm-card-plain p a { color: var(--electric); font-weight: 600; text-decoration: none; }
.ecm-mini { position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; border-radius: var(--radius); border: 1px solid var(--line); }
.ecm-mini::before { content: ""; position: absolute; left: 1.25rem; top: 1.25rem; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: rgb(61 130 246 / 0.1); }
.ecm-mini::after { content: ""; position: absolute; left: 1.25rem; top: 1.25rem; width: 2.5rem; height: 2.5rem; background: var(--electric); -webkit-mask: var(--ecm-i) center / 1.15rem no-repeat; mask: var(--ecm-i) center / 1.15rem no-repeat; }
.ecm-mini h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--night); }
.ecm-mini p { margin-top: 0.25rem !important; font-size: 0.875rem; color: var(--muted); }
.ecm-softcard { border-radius: var(--radius); background: var(--mist); padding: 1.25rem; font-size: 0.875rem; }
.ecm-softcard h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--night); }
.ecm-softcard .ecm-checks { margin-top: 0.75rem !important; gap: 0.5rem; }

/* Pages légales */
.ecm-legal { max-width: 48rem; margin-inline: auto; font-size: 0.975rem; line-height: 1.75; color: rgb(17 24 39 / 0.82); }
.ecm-legal h2 { margin: 3rem 0 1rem !important; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.ecm-legal h3 { margin: 2rem 0 0.75rem !important; font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.ecm-legal p { margin: 1rem 0 !important; }
.ecm-legal ul { margin: 1rem 0 !important; padding-left: 1.25rem; }
.ecm-legal li { margin: 0.4rem 0; }
.ecm-legal a { color: var(--electric); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.ecm-notice { margin-bottom: 2.5rem !important; padding: 1.25rem; border: 1px solid #fde68a; border-radius: 1rem; background: #fffbeb; color: #78350f; font-size: 0.875rem; line-height: 1.6; }
.ecm-todo { padding: 0.1em 0.4em; border-radius: 0.25rem; background: #fef3c7; color: #78350f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8em; }
.ecm-updated { margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   5. Composants dynamiques (extension EuroChina Core)
   ════════════════════════════════════════════════════════════ */
/* Badges */
.ecm-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ecm-badge { padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); background: rgb(255 255 255 / 0.95); color: var(--night); }
.ecm-badge--nouveau { background: var(--night); color: #fff; }
.ecm-badge--electrique { background: var(--electric); color: #fff; }
.ecm-badge--hybride { background: #059669; color: #fff; }
.ecm-badge--disponible { color: #047857; box-shadow: inset 0 0 0 1px #a7f3d0; }
.ecm-badge--sur_commande { box-shadow: inset 0 0 0 1px rgb(11 20 36 / 0.1); }

/* Grille de cartes */
.ecm-grid-cards { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .ecm-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ecm-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1279px) { .ecm-grid-cards--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ecm-grid-cards--favorites .ecm-card { display: none; }
.ecm-favorites.is-ready .ecm-grid-cards--favorites .ecm-card:not([hidden]) { display: flex; }

/* Carte véhicule */
.ecm-card { container-type: inline-size; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.ecm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ecm-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--mist); }
.ecm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.ecm-card:hover .ecm-card__media img { transform: scale(1.04); }
.ecm-card__nophoto { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 0.875rem; }
.ecm-card__top { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; padding: 0.875rem; pointer-events: none; }
.ecm-card__top button { pointer-events: auto; }
.ecm-fav { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.9); color: rgb(17 24 39 / 0.7); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); cursor: pointer; font-size: 1.1rem; transition: transform 0.2s; }
.ecm-fav:hover { transform: scale(1.06); color: var(--ink); }
.ecm-fav[aria-pressed="true"] { color: #e11d48; }
.ecm-fav[aria-pressed="true"] .ecm-i { --ecm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5'/%3E%3C/svg%3E"); }
.ecm-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
@media (min-width: 640px) { .ecm-card__body { padding: 1.5rem; } }
.ecm-card__meta { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ecm-card__meta span + span { letter-spacing: 0; text-transform: none; }
.ecm-card__title { margin-top: 0.5rem !important; font-size: 1.25rem; font-weight: 700; color: var(--night); }
.ecm-card__title a { text-decoration: none; }
.ecm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ecm-card__version { margin-top: 0.25rem !important; font-size: 0.875rem; color: var(--muted); }
.ecm-card__facts { list-style: none; padding: 1.25rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; font-size: 0.875rem; color: rgb(17 24 39 / 0.8); }
.ecm-card__facts li { display: flex; align-items: center; gap: 0.6rem; }
.ecm-card__facts .ecm-i { color: var(--electric); }
.ecm-card__facts .ecm-i.is-green { color: #059669; }
.ecm-card__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 0.75rem; margin-top: auto; padding-top: 1.5rem; }
.ecm-card__price-label { display: block; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ecm-card__price { display: block; font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--night); white-space: nowrap; }
@container (min-width: 340px) { .ecm-card__price { font-size: 1.125rem; } }
.ecm-cmp { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 500; color: var(--muted); cursor: pointer; user-select: none; }
.ecm-cmp input { width: 1rem; height: 1rem; accent-color: var(--electric); margin: 0; }
.ecm-card__actions { position: relative; z-index: 2; display: grid; gap: 0.625rem; margin-top: 1.25rem; }
.ecm-card__actions .ecm-btn { padding-inline: 0.75rem; }
@container (min-width: 330px) { .ecm-card__actions { grid-template-columns: 1fr 1fr; } }
.ecm-tip { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; padding: 0.3rem 0.55rem; border-radius: 0.4rem; background: var(--ink); color: #fff; font-size: 0.7rem; white-space: nowrap; }

/* Catalogue */
.ecm-catalog { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .ecm-catalog { grid-template-columns: 280px minmax(0, 1fr); } }
.ecm-catalog__panel { position: sticky; top: calc(var(--header-h) + 2rem); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.ecm-catalog__panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.ecm-catalog__panel-head p { font-family: var(--display); font-weight: 700; color: var(--night); }
.ecm-catalog__close, .ecm-catalog__panel-foot, .ecm-catalog__open { display: none; }
.ecm-filter { border: 0; margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--line); min-width: 0; }
.ecm-filter--search { border-top: 0; padding-top: 0; }
.ecm-filter legend, .ecm-filter--search > label { display: block; padding: 0; margin-bottom: 0.75rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--night); }
.ecm-filter ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.ecm-filter ul label { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: rgb(17 24 39 / 0.8); cursor: pointer; }
.ecm-filter ul label span { display: flex; align-items: center; gap: 0.6rem; }
.ecm-filter ul small { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ecm-filter input[type="checkbox"] { width: 1rem; height: 1rem; margin: 0; accent-color: var(--electric); }
.ecm-filter input[type="search"], .ecm-filter input[type="number"] { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 0.75rem; font-size: 0.875rem; background: #fff; }
.ecm-filter__range { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ecm-filter__range small { display: block; margin-bottom: 0.25rem; font-size: 0.75rem; color: var(--muted); }
.ecm-filter__check { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; font-size: 0.875rem; color: rgb(17 24 39 / 0.8); cursor: pointer; }
.ecm-filter__check input { margin-top: 0.2rem; accent-color: var(--electric); }
.ecm-catalog__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.ecm-catalog__toolbar strong { color: var(--night); }
.ecm-catalog__tools { display: flex; align-items: center; gap: 0.5rem; }
.ecm-sort { display: flex; align-items: center; gap: 0.5rem; }
.ecm-sort span { display: none; }
@media (min-width: 640px) { .ecm-sort span { display: inline; } }
.ecm-sort select { padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.875rem; font-weight: 600; color: var(--night); }
[data-ecm-active-count] { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; border-radius: 999px; background: var(--electric); color: #fff; font-size: 0.65rem; }
.ecm-chips-active { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.ecm-chip-active { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem 0.3rem 0.8rem; border: 0; border-radius: 999px; background: rgb(11 20 36 / 0.05); color: var(--night); font-size: 0.75rem; font-weight: 500; cursor: pointer; }
.ecm-chip-active span:last-child { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; }
.ecm-chip-active:hover span:last-child { background: rgb(11 20 36 / 0.1); }
@media (max-width: 1023px) {
  .ecm-catalog__open { display: inline-flex; }
  .ecm-catalog__filters { position: fixed; inset: 0; z-index: 70; background: rgb(11 20 36 / 0.5); display: none; }
  .ecm-catalog__filters.is-open { display: block; }
  .ecm-catalog__panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 24rem; display: flex; flex-direction: column; border-radius: 0; border: 0; padding: 0; }
  .ecm-catalog__panel-head { margin: 0; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
  .ecm-catalog__panel form { flex: 1; overflow-y: auto; padding: 1.25rem; }
  .ecm-catalog__close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: none; font-size: 1.25rem; cursor: pointer; }
  .ecm-catalog__panel-foot { display: block; padding: 1rem; border-top: 1px solid var(--line); }
}

/* État vide */
.ecm-empty { padding: 4rem 1.5rem; border: 1px dashed rgb(17 24 39 / 0.2); border-radius: var(--radius); background: rgb(243 245 248 / 0.6); text-align: center; color: var(--muted); font-size: 0.875rem; }
.ecm-empty > .ecm-i { font-size: 2.5rem; color: var(--electric); }
.ecm-empty__title { margin-top: 0.5rem !important; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--night); }
.ecm-empty p:not(.ecm-empty__title) { max-width: 28rem; margin: 0.75rem auto 0 !important; }
.ecm-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }

/* Fiche véhicule */
.ecm-vehicle__top { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3rem; }
.admin-bar .ecm-vehicle__top { padding-top: calc(var(--header-h) + 4rem); }
.ecm-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; color: var(--muted); }
.ecm-crumbs li + li::before { content: "›"; margin-right: 0.4rem; opacity: 0.6; }
.ecm-crumbs a { text-decoration: none; }
.ecm-crumbs a:hover { color: var(--ink); }
.ecm-crumbs [aria-current] { color: var(--ink); }
.ecm-vehicle__hero { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .ecm-vehicle__hero { grid-template-columns: 7fr 5fr; gap: 3rem; } .ecm-vehicle__panel { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.ecm-gallery__main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1.5rem; background: var(--mist); }
.ecm-gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.35s; }
.ecm-gallery__slide.est-actif { opacity: 1; z-index: 1; }
.ecm-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.ecm-gallery__nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.9); color: var(--night); box-shadow: var(--shadow); cursor: pointer; font-size: 1.2rem; }
.ecm-gallery__nav.is-prev { left: 0.75rem; }
.ecm-gallery__nav.is-next { right: 0.75rem; }
@media (min-width: 640px) { .ecm-gallery__nav { opacity: 0; transition: opacity 0.2s; } .ecm-gallery__main:hover .ecm-gallery__nav, .ecm-gallery__nav:focus-visible { opacity: 1; } }
.ecm-gallery__count { position: absolute; z-index: 2; left: 0.75rem; bottom: 0.75rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgb(255 255 255 / 0.9); color: var(--night); font-size: 0.75rem; font-weight: 600; }
.ecm-gallery__full { position: absolute; z-index: 2; right: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border: 0; border-radius: 999px; background: rgb(11 20 36 / 0.7); color: #fff; font-size: 0.75rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.ecm-gallery__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ecm-gallery__tabs button { padding: 0.4rem 1rem; border: 0; border-radius: 999px; background: var(--mist); color: rgb(17 24 39 / 0.7); font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.ecm-gallery__tabs button[aria-selected="true"] { background: var(--night); color: #fff; }
.ecm-gallery__thumbs { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; }
@media (min-width: 640px) { .ecm-gallery__thumbs { grid-template-columns: repeat(5, 1fr); } }
.ecm-gallery__thumbs button { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 0.75rem; overflow: hidden; background: var(--mist); cursor: pointer; opacity: 0.75; transition: 0.2s; }
.ecm-gallery__thumbs button:hover { opacity: 1; }
.ecm-gallery__thumbs button[aria-current] { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--electric); }
.ecm-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ecm-vehicle__brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.ecm-vehicle__brand { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ecm-vehicle__title { margin-top: 0.75rem !important; font-size: clamp(2.25rem, 4.5vw, 3rem); font-weight: 800; color: var(--night); line-height: 1.05; }
.ecm-vehicle__sub { margin-top: 0.5rem !important; color: var(--muted); }
.ecm-vehicle__tagline { margin-top: 1.25rem !important; color: rgb(17 24 39 / 0.8); }
.ecm-pricebox { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1.25rem; border-radius: 1rem; background: var(--mist); }
.ecm-pricebox__label { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ecm-pricebox__price { margin-top: 0.25rem !important; font-family: var(--display); font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; color: var(--night); }
.ecm-pricebox__note { margin-top: 0.25rem !important; font-size: 0.75rem; color: var(--muted); }
.ecm-pill { flex: none; white-space: nowrap; padding: 0.35rem 0.75rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.75rem; font-weight: 600; color: var(--night); }
.ecm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.25rem; }
.ecm-facts div { padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; }
.ecm-facts dt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); }
.ecm-facts dt .ecm-i { color: var(--electric); font-size: 0.9rem; }
.ecm-facts dd { margin: 0.4rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--night); }
.ecm-vehicle__actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .ecm-vehicle__actions { grid-template-columns: 1fr 1fr; } .ecm-vehicle__actions .is-wide { grid-column: 1 / -1; } }
.ecm-subnav { position: sticky; top: var(--header-h); z-index: 30; border-block: 1px solid var(--line); background: rgb(255 255 255 / 0.95); backdrop-filter: blur(12px); }
.admin-bar .ecm-subnav { top: calc(var(--header-h) + 32px); }
.ecm-subnav ul { list-style: none; margin-block: 0; display: flex; gap: 0.25rem; overflow-x: auto; padding-block: 0.5rem; scrollbar-width: none; }
.ecm-subnav ul::-webkit-scrollbar { display: none; }
.ecm-subnav a { display: block; padding: 0.5rem 0.875rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: rgb(17 24 39 / 0.7); text-decoration: none; white-space: nowrap; }
.ecm-subnav a:hover { background: var(--mist); color: var(--night); }
.ecm-vehicle__content { padding-block: 3.5rem; }
@media (min-width: 640px) { .ecm-vehicle__content { padding-block: 5rem; } }
.ecm-vsec, .ecm-vblock { scroll-margin-top: 10rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.ecm-vsec:first-child { border-top: 0; padding-top: 0; }
.ecm-vsec { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .ecm-vsec { grid-template-columns: 200px minmax(0, 1fr); } }
.ecm-vsec__aside { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .ecm-vsec__aside { display: block; } .ecm-vsec__aside .ecm-eyebrow { margin-top: 1.25rem; } }
.ecm-vsec__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 1rem; background: var(--mist); color: var(--premium); font-size: 1.15rem; }
.ecm-vsec h2, .ecm-vblock h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); font-weight: 700; color: var(--night); }
.ecm-vblock h2 { margin-top: 0.75rem !important; }
.ecm-vsec__body > p { margin-top: 1rem !important; line-height: 1.7; color: rgb(17 24 39 / 0.75); }
.ecm-checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .ecm-checklist { grid-template-columns: 1fr 1fr; } }
.ecm-checklist li { display: flex; gap: 0.6rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: rgb(243 245 248 / 0.7); font-size: 0.875rem; color: rgb(17 24 39 / 0.8); }
.ecm-checklist .ecm-i { color: var(--electric); margin-top: 0.15rem; }
.ecm-note { margin-top: 0.75rem !important; font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.ecm-lead-text { margin-top: 0.75rem !important; max-width: 48rem; font-size: 0.875rem; line-height: 1.65; color: var(--muted); }
.ecm-specs { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .ecm-specs { grid-template-columns: 1fr 1fr; } }
.ecm-specs__group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ecm-specs__group h3 { padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--line); background: rgb(243 245 248 / 0.7); font-size: 0.875rem; font-weight: 700; color: var(--night); letter-spacing: 0; }
.ecm-specs__group dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
.ecm-specs__group dl div:first-child { border-top: 0; }
.ecm-specs__group dt { color: var(--muted); }
.ecm-specs__group dd { margin: 0; text-align: right; font-weight: 600; color: var(--night); }
.is-tbc { font-size: 0.75rem; font-weight: 500 !important; color: #b45309 !important; }
.ecm-box { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.875rem; }
.ecm-box--muted { border: 0; background: var(--mist); }
.ecm-box__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--night); }
.ecm-box__title .ecm-i { color: var(--electric); }
.ecm-box__title span { font-weight: 400; color: var(--muted); }
.ecm-box > p:not(.ecm-box__title) { margin-top: 0.4rem !important; color: rgb(17 24 39 / 0.75); line-height: 1.65; }
.ecm-sources { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.35rem; }
.ecm-sources a { color: var(--electric); text-decoration: none; }
.ecm-sources a:hover { color: var(--electric-dark); }
.ecm-cards3 { display: grid; gap: 1.25rem; margin: 2rem 0 1.5rem; }
@media (min-width: 768px) { .ecm-cards3 { grid-template-columns: repeat(3, 1fr); } }
.ecm-infocard { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.ecm-infocard > .ecm-i { font-size: 1.5rem; color: var(--electric); }
.ecm-infocard h3 { margin-top: 1rem !important; font-size: 1rem; font-weight: 700; color: var(--night); letter-spacing: 0; }
.ecm-infocard p { margin-top: 0.5rem !important; font-size: 0.875rem; line-height: 1.65; color: var(--muted); }
.ecm-vehicle__quote { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .ecm-vehicle__quote { grid-template-columns: 5fr 7fr; } }
.ecm-vehicle__quote-text > p:not(.ecm-eyebrow) { margin-top: 1rem !important; color: rgb(17 24 39 / 0.75); line-height: 1.7; }
.ecm-vehicle__quote-text .ecm-checklist { grid-template-columns: 1fr; }
.ecm-vehicle__quote-text .ecm-checklist li { background: none; padding: 0; }
.ecm-anchor { position: absolute; top: -10rem; }
.ecm-similar { padding: 4rem 0; background: var(--mist); }
@media (min-width: 1024px) { .ecm-similar { padding: 6rem 0; } }
.ecm-similar h2 { margin-bottom: 2.5rem; font-size: clamp(1.75rem, 3vw, 2rem); font-weight: 700; color: var(--night); }

/* Visionneuse */
.ecm-lightbox { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgb(11 20 36 / 0.96); color: #fff; }
.ecm-lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; font-size: 0.875rem; }
.ecm-lightbox__bar button, .ecm-lightbox__stage button { display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: #fff; font-size: 1.4rem; cursor: pointer; }
.ecm-lightbox__stage { position: relative; flex: 1; min-height: 0; }
.ecm-lightbox__stage img { width: 100%; height: 100%; object-fit: contain; }
.ecm-lightbox__stage .is-prev { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); }
.ecm-lightbox__stage .is-next { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); }
.ecm-lightbox__caption { padding: 0.75rem 1rem; text-align: center; font-size: 0.75rem; color: rgb(255 255 255 / 0.6); }

/* Formulaires */
.ecm-form { position: relative; display: grid; gap: 1.25rem; }
.ecm-form__grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .ecm-form__grid { grid-template-columns: 1fr 1fr; } }
.ecm-field label { display: block; margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: rgb(17 24 39 / 0.8); }
.ecm-field abbr { color: var(--danger); text-decoration: none; }
.ecm-field input, .ecm-field select, .ecm-field textarea { display: block; width: 100%; padding: 0.75rem 0.875rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; font-size: 0.95rem; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.03); transition: border-color 0.2s, box-shadow 0.2s; }
.ecm-field textarea { resize: vertical; min-height: 7rem; }
.ecm-field input:focus, .ecm-field select:focus, .ecm-field textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px rgb(61 130 246 / 0.15); }
.ecm-field [aria-invalid="true"] { border-color: var(--danger); }
.ecm-error { margin-top: 0.4rem !important; font-size: 0.75rem; font-weight: 500; color: var(--danger); }
.ecm-consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.8rem; line-height: 1.6; color: rgb(17 24 39 / 0.7); font-weight: 400 !important; letter-spacing: 0 !important; }
.ecm-consent input { width: 1rem !important; height: 1rem; flex: none; margin-top: 0.25rem; padding: 0 !important; accent-color: var(--electric); box-shadow: none !important; }
.ecm-consent a { color: var(--electric); font-weight: 500; }
.ecm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ecm-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ecm-chips legend { width: 100%; padding: 0; margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 600; color: rgb(17 24 39 / 0.8); }
.ecm-chip { padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: rgb(17 24 39 / 0.75); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: 0.2s; }
.ecm-chip:hover { border-color: rgb(17 24 39 / 0.3); }
.ecm-chip[aria-pressed="true"] { border-color: var(--night); background: var(--night); color: #fff; }
.ecm-form__vehicle { padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--mist); font-size: 0.875rem; color: rgb(17 24 39 / 0.8); }
.ecm-form__vehicle strong { color: var(--night); }
.ecm-form__note { text-align: center; font-size: 0.72rem; color: var(--muted); }
.ecm-alert { padding: 0.75rem 1rem; border: 1px solid #fecaca; border-radius: 0.75rem; background: #fef2f2; color: var(--danger); font-size: 0.875rem; }
.ecm-success { padding: 2rem; border: 1px solid #a7f3d0; border-radius: var(--radius); background: #ecfdf5; text-align: center; font-size: 0.875rem; color: rgb(17 24 39 / 0.7); }
.ecm-success > .ecm-i { font-size: 3rem; color: var(--success); }
.ecm-success__title { margin-top: 1rem !important; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--night); }
.ecm-success p { max-width: 28rem; margin: 0.5rem auto 0 !important; }
.ecm-success__ref { font-size: 0.75rem; }
.ecm-success__ref strong { font-family: ui-monospace, monospace; color: var(--ink); }
.ecm-turnstile:empty { display: none; }

/* Devis en étapes */
.ecm-wizard { padding: 0 !important; overflow: hidden; position: relative; }
.ecm-wizard__head { scroll-margin-top: 7rem; padding: 1.25rem; border-bottom: 1px solid var(--line); background: rgb(243 245 248 / 0.6); }
@media (min-width: 640px) { .ecm-wizard__head { padding: 1.25rem 2rem; } }
.ecm-wizard__progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.ecm-wizard__progress-label strong { color: var(--night); }
.ecm-wizard__bar { height: 6px; margin-top: 0.75rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.ecm-wizard__bar span { display: block; width: 14.28%; height: 100%; border-radius: inherit; background: var(--electric); transition: width 0.5s; }
.ecm-wizard__steps { display: none; list-style: none; padding: 0; margin: 1rem 0 0; }
@media (min-width: 640px) { .ecm-wizard__steps { display: flex; gap: 0.25rem; } .ecm-wizard__steps li { flex: 1; min-width: 0; } }
.ecm-wizard__steps button { width: 100%; padding: 0; border: 0; background: none; text-align: left; font-size: 0.7rem; font-weight: 500; color: var(--night); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecm-wizard__steps button:disabled { color: rgb(107 114 128 / 0.6); cursor: default; }
.ecm-wizard__steps button.is-current { color: var(--electric); }
.ecm-wizard__body { padding: 1.75rem 1.25rem; }
@media (min-width: 640px) { .ecm-wizard__body { padding: 2.25rem 2rem; } }
.ecm-step { display: none; }
.ecm-step.est-actif { display: block; }
.ecm-step h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; color: var(--night); outline: none; }
.ecm-step > * + * { margin-top: 1.5rem !important; }
.ecm-options { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .ecm-options { grid-template-columns: 1fr 1fr; } }
.ecm-option { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; text-align: left; cursor: pointer; transition: 0.2s; }
.ecm-option:hover { border-color: rgb(17 24 39 / 0.25); }
.ecm-option[aria-pressed="true"] { border-color: var(--electric); background: rgb(61 130 246 / 0.05); box-shadow: 0 0 0 3px rgb(61 130 246 / 0.15); }
.ecm-option strong { display: block; font-weight: 600; color: var(--night); }
.ecm-option small { font-size: 0.75rem; color: var(--muted); }
.ecm-option__logo { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 0.75rem; background: var(--night); color: #fff; font-family: var(--display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; }
.ecm-option__thumb { width: 5rem; height: 3.5rem; flex: none; overflow: hidden; border-radius: 0.5rem; background: var(--mist); display: grid; place-items: center; color: var(--premium); font-size: 1.2rem; }
.ecm-option__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ecm-option__check { position: absolute; top: 0.75rem; right: 0.75rem; display: none; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--electric); color: #fff; font-size: 0.7rem; }
.ecm-option[aria-pressed="true"] .ecm-option__check { display: grid; }
.ecm-recap { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--line); font-size: 0.875rem; }
@media (min-width: 640px) { .ecm-recap { grid-template-columns: 1fr 1fr; } }
.ecm-recap div { background: #fff; padding: 0.75rem 1rem; }
.ecm-recap dt { font-size: 0.75rem; color: var(--muted); }
.ecm-recap dd { margin: 0.15rem 0 0; font-weight: 500; color: var(--night); }
.ecm-recap .ecm-link { margin-top: 0.25rem; font-size: 0.75rem; }
.ecm-recap__msg { padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--mist); font-size: 0.875rem; white-space: pre-wrap; color: rgb(17 24 39 / 0.8); }
.ecm-wizard .ecm-alert { margin: 1.25rem 0 0 !important; }
.ecm-wizard__nav { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Comparateur */
.ecm-compare__add { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(243 245 248 / 0.6); }
@media (min-width: 640px) { .ecm-compare__add { flex-direction: row; align-items: center; } }
.ecm-compare__add label { font-size: 0.875rem; font-weight: 600; color: var(--night); }
.ecm-compare__add select { padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; font-size: 0.9rem; max-width: 24rem; width: 100%; }
.ecm-compare__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ecm-compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.875rem; }
.ecm-compare th, .ecm-compare td { padding: 1rem; text-align: left; vertical-align: top; }
.ecm-compare td, .ecm-compare thead th:not(.ecm-compare__label) { border-left: 1px solid var(--line); min-width: 200px; }
.ecm-compare td { font-weight: 500; color: var(--night); }
.ecm-compare tbody tr:nth-child(odd) { background: rgb(243 245 248 / 0.5); }
.ecm-compare__label { position: sticky; left: 0; z-index: 1; width: 11rem; background: #fff; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.ecm-compare tbody tr:nth-child(odd) .ecm-compare__label { background: #f8f9fb; }
.ecm-compare__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0.75rem; background: var(--mist); }
.ecm-compare__img img { width: 100%; height: 100%; object-fit: cover; }
.ecm-compare__img button { position: absolute; top: 0.5rem; right: 0.5rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.9); cursor: pointer; }
.ecm-compare thead small { display: block; margin-top: 0.75rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.ecm-compare thead a { font-family: var(--display); font-size: 1.125rem; font-weight: 700; color: var(--night); text-decoration: none; }
.ecm-compare td ul { margin: 0; padding-left: 1rem; font-size: 0.75rem; line-height: 1.5; font-weight: 400; }
.ecm-small { font-size: 0.75rem; font-weight: 400; line-height: 1.5; color: rgb(17 24 39 / 0.75); }
.ecm-compare > .ecm-note { margin-top: 1rem !important; }
.ecm-compare:not(.is-ready) .ecm-compare__scroll, .ecm-favorites:not(.is-ready) .ecm-empty { visibility: hidden; }
.ecm-favorites__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.ecm-favorites__bar strong { color: var(--night); }

/* Coordonnées */
.ecm-contactcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.ecm-contactcard li { display: flex; gap: 1rem; }
.ecm-contactcard__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.75rem; background: rgb(255 255 255 / 0.1); color: var(--sky); }
.ecm-contactcard small { display: block; font-size: 0.75rem; color: rgb(255 255 255 / 0.5); }
.ecm-contactcard a, .ecm-contactcard li > span > span { font-weight: 600; text-decoration: none; word-break: break-word; }
.ecm-contactcard a:hover { color: var(--sky); }
.ecm-contactcard > p { margin-top: 1rem !important; font-size: 0.875rem; line-height: 1.6; color: rgb(255 255 255 / 0.65); }
.ecm-contactcard__hours { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.875rem; }
.ecm-contactcard__hours p { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.ecm-contactcard__hours dl div { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.ecm-contactcard__hours dt { color: rgb(255 255 255 / 0.6); }
.ecm-contactcard__hours dd { margin: 0; }
.ecm-map { width: 100%; height: 18rem; margin-top: 1.5rem; border: 0; border-radius: 1rem; }
.ecm-social { display: flex !important; flex-wrap: wrap; gap: 0.5rem !important; margin-top: 1.5rem !important; }
.ecm-social a { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid rgb(255 255 255 / 0.15); border-radius: 999px; font-size: 0.75rem; font-weight: 500 !important; }
.ecm-contactcard--pied li { gap: 0.6rem; font-size: 0.875rem; }
.ecm-contactcard--pied .ecm-contactcard__icon { width: auto; height: auto; background: none; color: var(--electric); }
.ecm-contactcard--pied small { display: none; }
.ecm-contactcard--pied a, .ecm-contactcard--pied li > span > span { font-weight: 400; color: rgb(255 255 255 / 0.7); }
.ecm-contactcard--pied ul { gap: 0.75rem; }

/* Crédits photos */
.ecm-credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .ecm-credits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ecm-credits { grid-template-columns: repeat(3, 1fr); } }
.ecm-credits li { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ecm-credits img { width: 6rem; height: 4rem; flex: none; object-fit: cover; border-radius: 0.5rem; }
.ecm-credits span { min-width: 0; font-size: 0.75rem; line-height: 1.6; }
.ecm-credits a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--night); text-decoration: none; }
.ecm-credits small { display: block; font-size: 0.75rem; color: var(--muted); }
.ecm-credits small a { display: inline; color: var(--electric); font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   6. Pied de page
   ════════════════════════════════════════════════════════════ */
.ecm-footer { background: var(--night); color: rgb(255 255 255 / 0.7); }
.ecm-footer__top { display: grid; gap: 3rem; padding-block: 4rem; }
@media (min-width: 1024px) { .ecm-footer__top { grid-template-columns: 4fr 8fr; padding-block: 5rem; } }
.ecm-footer .ecm-logo a { color: #fff; }
.ecm-footer__about { margin-top: 1.5rem !important; max-width: 24rem; font-size: 0.875rem; line-height: 1.7; }
.ecm-footer__nl-title { margin-top: 2rem !important; font-size: 0.875rem; font-weight: 600; color: #fff; }
.ecm-footer__nl-text { margin-top: 0.25rem !important; max-width: 24rem; font-size: 0.75rem; color: rgb(255 255 255 / 0.5); }
.ecm-footer__cols { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .ecm-footer__cols { grid-template-columns: repeat(3, 1fr); } }
.ecm-footer__title { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.ecm-footer__links { list-style: none; padding: 0; margin-top: 1.25rem !important; display: grid; gap: 0.75rem; font-size: 0.875rem; }
.ecm-footer a { text-decoration: none; }
.ecm-footer a:hover { color: #fff; }
.ecm-footer__col > .ecm-contactcard { margin-top: 1.25rem; }
.ecm-footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.1); }
.ecm-footer__bar { display: flex; flex-direction: column; gap: 1.25rem; padding-block: 1.75rem; font-size: 0.75rem; }
@media (min-width: 1024px) { .ecm-footer__bar { flex-direction: row; justify-content: space-between; align-items: center; } }
.ecm-footer__legal { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.ecm-footer__disclaimer { padding-bottom: 2rem; font-size: 0.7rem; line-height: 1.6; color: rgb(255 255 255 / 0.4); }
.ecm-newsletter { margin-top: 1rem; max-width: 24rem; }
.ecm-newsletter__row { display: flex; gap: 0.5rem; }
.ecm-newsletter input[type="email"] { flex: 1; min-width: 0; padding: 0.65rem 1rem; border: 1px solid rgb(255 255 255 / 0.15); border-radius: 999px; background: rgb(255 255 255 / 0.05); color: #fff; font-size: 0.875rem; }
.ecm-newsletter input[type="email"]::placeholder { color: rgb(255 255 255 / 0.4); }
.ecm-newsletter input[type="email"]:focus { outline: none; border-color: var(--electric); }
.ecm-newsletter button { padding: 0.65rem 1rem; border: 0; border-radius: 999px; background: var(--electric); color: #fff; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.ecm-newsletter button:hover { background: var(--electric-dark); }
.ecm-newsletter__consent { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.75rem; font-size: 0.72rem; line-height: 1.4; color: rgb(255 255 255 / 0.5); }
.ecm-newsletter__consent input { margin-top: 0.15rem; accent-color: var(--electric); }
.ecm-newsletter__consent a { text-decoration: underline !important; }
.ecm-newsletter__msg { margin-top: 0.75rem !important; padding: 0.6rem 0.9rem; border-radius: 0.75rem; background: rgb(255 255 255 / 0.05); font-size: 0.8rem; color: #6ee7b7; }
.ecm-newsletter__msg.is-error { color: #fda4af; }

/* ════════════════════════════════════════════════════════════
   7. Éléments flottants
   ════════════════════════════════════════════════════════════ */
.ecm-wa { position: fixed; right: 1rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25d366; color: #fff; font-size: 1.6rem; box-shadow: 0 12px 28px -8px rgb(37 211 102 / 0.7); text-decoration: none; transition: transform 0.2s, bottom 0.2s; }
.ecm-wa:hover { transform: scale(1.05); }
@media (min-width: 640px) { .ecm-wa { right: 1.5rem; bottom: 1.5rem; } }
.has-cmpbar .ecm-wa { bottom: 6rem; }
.ecm-cmpbar { position: fixed; inset: auto 0 0; z-index: 40; border-top: 1px solid var(--line); background: rgb(255 255 255 / 0.96); backdrop-filter: blur(16px); box-shadow: 0 -12px 32px -16px rgb(11 20 36 / 0.25); }
.ecm-cmpbar .ecm-wrap { display: flex; align-items: center; gap: 1rem; padding-block: 0.75rem; }
.ecm-cmpbar__icon { display: none; color: var(--electric); font-size: 1.25rem; }
@media (min-width: 640px) { .ecm-cmpbar__icon { display: block; } }
.ecm-cmpbar ul { list-style: none; padding: 0; margin: 0; display: flex; flex: 1; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.ecm-cmpbar li { display: flex; flex: none; align-items: center; gap: 0.5rem; padding: 0.25rem 0.375rem 0.25rem 0.25rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.75rem; font-weight: 600; color: var(--night); }
.ecm-cmpbar li img { width: 2.25rem; height: 1.75rem; object-fit: cover; border-radius: 999px; }
.ecm-cmpbar li button { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.ecm-cmpbar li button:hover { background: var(--mist); color: var(--ink); }
.ecm-cmpbar [data-ecm-cmpbar-clear] { display: none; color: var(--muted); font-weight: 500; }
@media (min-width: 640px) { .ecm-cmpbar [data-ecm-cmpbar-clear] { display: inline-flex; } }
.ecm-consent-panel { position: fixed; inset: auto 0.75rem 0.75rem; z-index: 60; max-width: 36rem; margin-inline: auto; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: var(--shadow-lift); color: var(--ink); }
@media (min-width: 640px) { .ecm-consent-panel { inset: auto 1.5rem 1.5rem auto; padding: 1.5rem; } }
.ecm-consent-panel__head { display: flex; gap: 0.75rem; align-items: flex-start; }
.ecm-consent-panel__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; background: var(--mist); color: var(--premium); }
.ecm-consent-panel__title { font-family: var(--display); font-weight: 700; color: var(--night); }
.ecm-consent-panel__head p + p { margin-top: 0.4rem !important; font-size: 0.82rem; line-height: 1.6; color: var(--muted); }
.ecm-consent-panel__head a { color: var(--electric); font-weight: 500; }
.ecm-consent-panel__settings { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.ecm-consent-panel__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; font-size: 0.875rem; cursor: pointer; }
.ecm-consent-panel__row small { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--muted); }
.ecm-consent-panel__row em { flex: none; font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--success); }
.ecm-consent-panel__row input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--electric); }
.ecm-consent-panel__actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .ecm-consent-panel__actions { flex-direction: row; justify-content: flex-end; } }

/* Vidéos embarquées éventuelles */
.wp-block-embed { margin: 0; }
