/* ==================================================================
 * EmiliaParts V2 — assets/css/layout.css (étape 2)
 *
 * Layout, header/menu, hero, sections, grilles, footer.
 * Suppose theme.css (étape 1) déjà chargé pour les variables --ep-*,
 * --it-* (drapeau italien), --fr-* (drapeau français), couleurs neutres.
 * Suppose components.css déjà chargé pour .btn, .badge, etc.
 *
 * Charte A4 — mémo §13 :
 *   primaire : --ep-primary (rouge italien profond)
 *   accent   : --ep-accent  (or)
 *   surface  : --ep-surface
 *   typo     : Inter
 *
 * Toute valeur en dur ici doit pouvoir être surchargée en étape 3
 * via theme.css (la séparation est volontaire).
 * ================================================================== */

/* ---- Reset léger ------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ep-text, #1a1a1a);
    background: var(--ep-surface, #ffffff);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--ep-accent, #d4a017); outline-offset: 2px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---- Boutons (étape 2 — alias non préfixés, indépendants de components.css) ---- */
/* L'étape 1 expose .ep-btn / .ep-btn-primary etc. — on garde la compatibilité
 * mais on fournit aussi .btn / .btn-primary pour les vues étape 2 qui utilisent
 * le naming court (sera réharmonisé en étape 3). */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    background: #fff;
    color: var(--ep-text, #1a1a1a);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
    font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: var(--ep-primary, #8B0000);
    color: #fff;
    border-color: var(--ep-primary, #8B0000);
}
.btn-primary:hover {
    background: var(--ep-primary-dark, #6b0000);
    border-color: var(--ep-primary-dark, #6b0000);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--ep-text, #1a1a1a);
    border-color: var(--ep-text, #1a1a1a);
}
.btn-outline:hover {
    background: var(--ep-text, #1a1a1a);
    color: #fff;
    border-color: var(--ep-text, #1a1a1a);
}
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---- Drapeaux ---------------------------------------------------- */
.flag-strip {
    display: flex;
    width: 100%;
    height: 4px;
}
.flag-strip-it .flag-band-green { background: var(--it-green, #008C45); }
.flag-strip-it .flag-band-white { background: var(--it-white, #F4F5F0); }
.flag-strip-it .flag-band-red   { background: var(--it-red,   #CD212A); }
.flag-strip-fr .flag-band-blue  { background: var(--fr-blue,  #002654); }
.flag-strip-fr .flag-band-white { background: var(--fr-white, #FFFFFF); }
.flag-strip-fr .flag-band-red   { background: var(--fr-red,   #ED2939); }
.flag-band { flex: 1; }

/* ---- Header / menu ---------------------------------------------- */
.ep-header {
    background: #fff;
    border-bottom: 1px solid var(--ep-border, #e8e8e8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.ep-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.ep-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}
.ep-logo:hover { text-decoration: none; }

/* Logo image (mémo §57 — session 4 mai 2026 : remplacement carré rouge "EP"
   par EmiliaParts-Logo.jpg + tagline marketing avec marques en couleurs).
   Hauteur fixe 64px, largeur auto pour respecter les proportions. */
.ep-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* Tagline 2 lignes : ligne 1 = accroche commerciale, ligne 2 = marques avec
   couleurs italiennes (rouge Ferrari, bleu Maserati, vert Alfa Romeo). */
.ep-logo-tagline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}
.ep-tagline-main {
    font-size: 12px;
    font-weight: 700;
    color: var(--ep-text, #1A1A1A);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.ep-tagline-brands {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--ep-text, #1A1A1A);
    text-transform: uppercase;
}
.ep-tagline-brands .ep-brand-ferrari  { color: var(--ep-red,   #CD212A); }
.ep-tagline-brands .ep-brand-maserati { color: var(--ep-blue,  #0055A4); }
.ep-tagline-brands .ep-brand-alfa     { color: var(--ep-green, #008C45); }
.ep-tagline-brands .ep-brand-asterisk {
    color: var(--ep-text-muted, #6B6B6B);
    font-weight: 600;
}

/* Responsive : sur mobile (< 600px), on cache la tagline pour économiser
   la largeur. Le logo seul reste visible. */
@media (max-width: 600px) {
    .ep-logo-tagline { display: none; }
    .ep-logo-img { width: 48px; height: 48px; }
}

/* Tablet intermédiaire : on garde tout mais en plus compact */
@media (max-width: 900px) and (min-width: 601px) {
    .ep-tagline-main { font-size: 11px; }
    .ep-tagline-brands { font-size: 12px; }
}

/* Search dans le header */
.ep-header-search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}
/* Wrapper anchor pour autocomplete (mémo §51, ajout 3 mai 2026)
   - flex: 1 pour prendre toute la largeur dispo (l'input n'est plus
     enfant direct du flex container .ep-header-search)
   - position: relative pour ancrer le dropdown absolu */
.ep-header-search .ep-ac-anchor,
.ep-hero-search .ep-ac-anchor {
    flex: 1;
    position: relative;
    min-width: 0;
}
.ep-header-search .ep-ac-anchor input[type="search"],
.ep-hero-search .ep-ac-anchor input[type="search"] {
    width: 100%;
    box-sizing: border-box;
}
.ep-header-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--ep-border, #d8d8d8);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.ep-header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--ep-primary, #8B0000);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

/* ─── Dropdown autocomplete (mémo §51, ajout 3 mai 2026) ──────────
   Styles partagés navbar + hero + page recherche.
   Le wrapper .ep-ac-anchor doit être position:relative pour ancrer
   le dropdown absolu (déjà fait plus haut + dans search.php). */
.ep-ac-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--ep-border, #E5E5E5);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: left;
}
.ep-ac-item {
    display: grid;
    grid-template-columns: minmax(100px, 0.4fr) 1fr auto;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ep-border-soft, #F0F0F0);
    cursor: pointer;
    font-size: 13px;
    align-items: center;
}
.ep-ac-item:last-of-type { border-bottom: none; }
.ep-ac-item:hover,
.ep-ac-item.ep-ac-active {
    background: var(--ep-bg-soft, #FAFAFA);
}
.ep-ac-empty {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--ep-text-muted, #6B6B6B);
    text-align: center;
}
.ep-ac-ref {
    font-weight: 600;
    color: #1A1A1A;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
}
.ep-ac-desig {
    color: #1A1A1A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ep-ac-stock {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.ep-ac-stock.s-pos { color: #2D7A3D; }
.ep-ac-stock.s-cmd { color: var(--ep-text-muted, #6B6B6B); }
.ep-ac-mark {
    background: rgba(255, 230, 100, 0.5);
    padding: 0 1px;
    border-radius: 2px;
    font-weight: inherit;
    color: inherit;
}
.ep-ac-footer {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--ep-text-muted, #6B6B6B);
    background: var(--ep-bg-soft, #FAFAFA);
    cursor: pointer;
    text-align: center;
    border-top: 1px solid var(--ep-border, #E5E5E5);
    font-weight: 600;
}
.ep-ac-footer:hover {
    background: var(--ep-border-soft, #F0F0F0);
    color: #1A1A1A;
}

/* Switch langue */
.ep-header-actions { display: flex; align-items: center; }
.ep-lang-switch {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 4px;
}
.ep-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 32px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ep-text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ep-lang:hover { background: var(--ep-bg-muted, #f5f5f5); text-decoration: none; }
.ep-lang.is-current {
    background: var(--ep-primary, #8B0000);
    color: #fff;
}
.ep-lang.is-current:hover { background: var(--ep-primary, #8B0000); }

/* Burger mobile (hidden desktop) */
.ep-burger {
    display: none;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--ep-border, #d8d8d8);
    border-radius: 6px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
}
.ep-burger-bar {
    display: block;
    width: 22px; height: 2px;
    background: var(--ep-text, #1a1a1a);
    border-radius: 1px;
}

/* Nav principale */
.ep-nav {
    background: var(--ep-bg-muted, #fafafa);
    border-top: 1px solid var(--ep-border, #e8e8e8);
}
.ep-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.ep-nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ep-nav-link {
    display: inline-block;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-text, #1a1a1a);
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.ep-nav-link:hover {
    text-decoration: none;
    color: var(--ep-primary, #8B0000);
    border-bottom-color: var(--ep-accent, #d4a017);
}
.ep-nav-link.is-active {
    color: var(--ep-primary, #8B0000);
    border-bottom-color: var(--ep-primary, #8B0000);
    font-weight: 600;
}
.ep-nav-divider {
    width: 1px; height: 20px;
    background: var(--ep-border, #d8d8d8);
    margin: 0 8px;
}

/* Sous-menu marques produit */
.ep-nav-has-children { position: relative; }
.ep-nav-caret { font-size: 10px; margin-left: 4px; opacity: 0.6; }
.ep-nav-submenu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--ep-border, #e8e8e8);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 50;
}
.ep-nav-has-children:hover .ep-nav-submenu,
.ep-nav-has-children:focus-within .ep-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ep-nav-submenu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--ep-text, #1a1a1a);
}
.ep-nav-submenu li a:hover {
    background: var(--ep-bg-muted, #fafafa);
    color: var(--ep-primary, #8B0000);
    text-decoration: none;
}

/* Menu mobile */
.ep-mobile-menu {
    background: #fff;
    border-top: 1px solid var(--ep-border, #e8e8e8);
    padding: 12px 24px 24px;
}
.ep-mobile-menu[hidden] { display: none; }
.ep-mobile-list { list-style: none; margin: 0; padding: 0; }
.ep-mobile-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--ep-border, #e8e8e8);
    font-size: 16px;
    color: var(--ep-text, #1a1a1a);
}
.ep-mobile-sep {
    height: 1px;
    background: var(--ep-border, #d8d8d8);
    margin: 8px 0;
}

/* Responsive header */
@media (max-width: 960px) {
    .ep-header-inner { grid-template-columns: auto auto auto; gap: 12px; }
    .ep-header-search {
        order: 10;
        grid-column: 1 / -1;
        max-width: none;
        margin-top: 8px;
    }
    .ep-burger { display: flex; }
    .ep-nav { display: none; }
}

/* ---- Hero -------------------------------------------------------- */
.ep-hero {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    padding: 28px 24px 28px;
    border-bottom: 1px solid var(--ep-border, #e8e8e8);
}
.ep-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.ep-hero-eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--ep-text-muted, #666);
    margin: 0 0 12px;
    font-weight: 600;
}
.ep-hero-h1 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.ep-hero-subhead {
    font-size: 18px;
    color: var(--ep-text-muted, #555);
    margin: 0 0 24px;
}
/* Module recherche hero — refonte (mémo session 4 mai 2026 soir).
   Décisions : bloc resserré à 560px pour meilleur centrage visuel par
   rapport au subhead, bouton plus impactant avec ombre et taille fixe
   pour ne pas écraser, label plus gros, accent rouge italien sur focus. */
.ep-hero-search {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    align-items: stretch;
}
.ep-hero-search input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--ep-border, #d8d8d8);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    min-width: 0; /* permet à flex de réduire en dessous de la taille intrinsèque */
}
.ep-hero-search input[type="search"]:focus {
    outline: none;
    border-color: var(--ep-red, #CD212A);
    box-shadow: 0 0 0 3px rgba(205, 33, 42, 0.15);
}
/* Bouton "Lancer la recherche" : plus impactant que le btn-primary standard,
   avec largeur min pour éviter qu'il rétrécisse, ombre subtile, et hover
   plus prononcé. Reste sur la couleur --ep-primary pour cohérence avec
   le bouton "Rechercher" du header. */
.ep-hero-search button {
    flex-shrink: 0;
    min-width: 200px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.20);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.ep-hero-search button:hover {
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.30);
    transform: translateY(-1px);
}
.ep-hero-search button:active {
    transform: translateY(0);
}
@media (max-width: 600px) {
    .ep-hero-search { flex-direction: column; }
    .ep-hero-search button { min-width: 0; width: 100%; }
}

/* ---- Arguments hero (sous la barre de recherche) — 26/05/2026 -------
 * 5 arguments commerciaux en cards encadrées (fond blanc, bordure, coche
 * verte) — repris du style du bloc "Pourquoi choisir". Disposition 3 + 2
 * via grille à largeur fixe centrée. Remplace l'ancien sous-titre 478 000
 * + l'ancien bloc trust du bas. */
.ep-hero-args {
    list-style: none;
    margin: 20px auto 0;
    padding: 0;
    max-width: 940px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;        /* toutes les rangées à hauteur égale */
    gap: 10px;
}
.ep-hero-args li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--ep-text, #1a1a1a);
    background: #fff;
    border: 1px solid var(--ep-border, #e5e5e5);
    border-radius: var(--ep-radius-md, 8px);
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ep-hero-args-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ep-green, #008C45);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
/* Cascade responsive : 3 colonnes (large) → 2 (moyen) → 1 (étroit). */
@media (max-width: 880px) {
    .ep-hero-args { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ep-hero-args { grid-template-columns: 1fr; }
}


/* ---- Stats bar --------------------------------------------------- */
.ep-stats {
    background: var(--ep-primary, #8B0000);
    color: #fff;
    padding: 32px 24px;
}
.ep-stats-inner { max-width: 1280px; margin: 0 auto; }
.ep-stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.ep-stat dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}
.ep-stat dd {
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
}
@media (max-width: 600px) {
    .ep-stats-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Sections + grilles ----------------------------------------- */
.ep-section { padding: 56px 24px; }
.ep-section-alt { background: var(--ep-bg-muted, #fafafa); }
.ep-section-inner { max-width: 1280px; margin: 0 auto; }

.ep-eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--ep-text-muted, #666);
    font-weight: 600;
    margin: 0 0 12px;
}
.ep-h1 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.ep-h2 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}
.ep-lead {
    font-size: 17px;
    color: var(--ep-text-muted, #555);
    margin: 0 0 32px;
    max-width: 720px;
}
.ep-lead small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--ep-text-muted, #888);
    font-style: italic;
}
.ep-empty {
    padding: 32px;
    background: var(--ep-bg-muted, #fafafa);
    border: 1px dashed var(--ep-border, #d8d8d8);
    border-radius: 8px;
    text-align: center;
    color: var(--ep-text-muted, #666);
}

.ep-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.ep-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ep-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ep-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) {
    .ep-grid-3, .ep-grid-4, .ep-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ep-grid-3, .ep-grid-4, .ep-grid-5 { grid-template-columns: 1fr; }
}

/* ---- Cards ------------------------------------------------------- */
.ep-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ep-border, #e8e8e8);
    border-radius: 10px;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    height: 100%;
}
.ep-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--ep-primary, #8B0000);
    text-decoration: none;
}
.ep-card-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ep-text, #1a1a1a);
}
.ep-card-meta {
    display: block;
    font-size: 13px;
    color: var(--ep-text-muted, #666);
    margin-bottom: 12px;
}
.ep-card-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-primary, #8B0000);
}

/* Card spéciale brand véhicule */
.ep-card-brand {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}
.ep-card-mark {
    width: 56px; height: 56px;
    background: var(--ep-primary, #8B0000);
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
}
.ep-card-body { display: flex; flex-direction: column; }

/* ---- Boutons marques home (mémo §59 — 26/05/2026) ---------------
 * Composant dédié aux 2 grilles d'accueil (marques véhicules +
 * équipementiers). Classes neuves volontairement distinctes de
 * .ep-card-* pour éviter la collision de cascade avec les cartes
 * catégorie (.ep-card-title/.ep-card-cta redéfinis lignes ~911).
 * Couleur d'accent pilotée par --ep-brand-color, surchargée par
 * [data-brand] (véhicules) et [data-pbrand] (équipementiers, palette
 * --pb-* de theme.css). KISS : nom seul, pas de compteur.
 * NB (26/05) : bloc ré-injecté après écrasement accidentel du layout.css. */
.ep-brandbtn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ep-border, #e8e8e8);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ep-text, #1a1a1a);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.ep-brandbtn::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--ep-brand-color, var(--ep-border, #e8e8e8));
}
.ep-brandbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--ep-brand-color, var(--ep-text, #1a1a1a));
    text-decoration: none;
}
.ep-brandbtn-mark {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--ep-brand-color, var(--ep-text, #1a1a1a));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}
.ep-brandbtn-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}
.ep-brandbtn-arrow {
    margin-left: auto;
    color: var(--ep-text-subtle, #999);
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.15s, color 0.15s;
}
.ep-brandbtn:hover .ep-brandbtn-arrow {
    color: var(--ep-brand-color, var(--ep-text, #1a1a1a));
    transform: translateX(3px);
}

/* Accent par marque véhicule (charte franco-italienne) */
.ep-brandbtn[data-brand="ferrari"]    { --ep-brand-color: var(--ep-red,   #CD212A); }
.ep-brandbtn[data-brand="maserati"]   { --ep-brand-color: var(--ep-blue,  #0055A4); }
.ep-brandbtn[data-brand="alfa-romeo"] { --ep-brand-color: var(--ep-green, #008C45); }

/* Accent par équipementier (palette --pb-* de theme.css) */
.ep-brandbtn[data-pbrand="tubistyle"]        { --ep-brand-color: var(--pb-tubistyle,   #D4A93C); }
.ep-brandbtn[data-pbrand="capristo"]         { --ep-brand-color: var(--pb-capristo,    #3A3A40); }
.ep-brandbtn[data-pbrand="ansa"]             { --ep-brand-color: var(--pb-ansa,        #8B5A3C); }
.ep-brandbtn[data-pbrand="hill-engineering"] { --ep-brand-color: var(--pb-hill,        #2D3A4A); }
.ep-brandbtn[data-pbrand="accessoires"]      { --ep-brand-color: var(--pb-accessoires, #1A1A1A); }

/* ---- CTA --------------------------------------------------------- */
.ep-cta {
    background: var(--ep-primary, #8B0000);
    color: #fff;
    padding: 48px 24px;
    text-align: center;
}
.ep-cta-inner { max-width: 720px; margin: 0 auto; }

/* Variante DOUCE quand le bandeau est placé haut (entre arguments et
   carrousel). Fond clair, texte sombre, boutons rouges (le rouge devient
   le seul accent → attire vers l'action sans bande criarde). Une ligne :
   email à gauche, texte au centre, bouton à droite. (27/05/2026) */
.ep-cta-band {
    background: var(--ep-bg-section, #F5F5F5);
    color: var(--ep-text, #1a1a1a);
    border-top: 1px solid var(--ep-border, #e5e5e5);
    border-bottom: 1px solid var(--ep-border, #e5e5e5);
    padding: 10px 24px;
}
.ep-cta-band .ep-cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
/* Texte central : 3e "bouton" invisible — hérite de .btn .btn-lg (même
   hauteur/padding/alignement interne que les 2 vrais boutons) mais sans
   bordure, fond ni curseur. Alignement parfait car structure identique.
   (27/05/2026 — astuce Cedric pour régler l'alignement) */
.ep-cta-band .ep-cta-text {
    flex: 1;
    background: transparent !important;
    border-color: transparent !important;
    color: var(--ep-text, #1a1a1a);
    font-size: 19px;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
    user-select: none;
    pointer-events: none;
    box-shadow: none;
}
.ep-cta-band .btn {
    flex-shrink: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
}
/* Les DEUX boutons identiques (27/05/2026) : outline gold (contour + texte
   gold, fond blanc) au repos, fond gold plein au survol. Spécificité montée
   à .ep-cta.ep-cta-band pour battre .ep-cta .btn-primary défini plus bas. */
.ep-cta.ep-cta-band .btn-primary,
.ep-cta.ep-cta-band .ep-cta-mail {
    background: #fff;
    color: var(--pb-tubistyle-dark, #A8842D);
    border: 1px solid var(--pb-tubistyle, #D4A93C);
}
.ep-cta.ep-cta-band .btn-primary:hover,
.ep-cta.ep-cta-band .ep-cta-mail:hover {
    background: var(--pb-tubistyle, #D4A93C);
    color: #fff;
    border-color: var(--pb-tubistyle, #D4A93C);
}
@media (max-width: 768px) {
    .ep-cta-band .ep-cta-inner { flex-direction: column; gap: 14px; }
    .ep-cta-band .ep-cta-text { font-size: 18px; white-space: normal; text-align: center; }
}
.ep-cta p {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 24px;
}
.ep-cta .btn-primary {
    background: #fff;
    color: var(--ep-primary, #8B0000);
    border-color: #fff;
}
.ep-cta .btn-primary:hover {
    background: var(--ep-accent, #d4a017);
    color: #fff;
    border-color: var(--ep-accent, #d4a017);
}

/* ---- Search results --------------------------------------------- */
.ep-search-form {
    display: flex;
    gap: 8px;
    max-width: 640px;
    margin: 0 0 32px;
}
.ep-search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--ep-border, #d8d8d8);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}
.ep-search-results {
    list-style: none; margin: 0; padding: 0;
    border: 1px solid var(--ep-border, #e8e8e8);
    border-radius: 8px;
    overflow: hidden;
}
.ep-search-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ep-border, #e8e8e8);
    color: inherit;
}
.ep-search-results li:last-child .ep-search-row { border-bottom: 0; }
.ep-search-row:hover { background: var(--ep-bg-muted, #fafafa); text-decoration: none; }
.ep-search-ref {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--ep-primary, #8B0000);
    font-weight: 600;
}
.ep-search-name { color: var(--ep-text, #1a1a1a); }

/* ---- 404 --------------------------------------------------------- */
.ep-404 { text-align: center; padding: 48px 0; }
.ep-404-code {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 900;
    line-height: 1;
    color: var(--ep-primary, #8B0000);
    margin: 0 0 24px;
    letter-spacing: -0.05em;
    opacity: 0.85;
}

/* ---- Footer ------------------------------------------------------ */
.ep-footer {
    background: linear-gradient(180deg, #3C3C42 0%, #303035 100%);
    color: #E8E8E8;
    padding: 56px 24px 28px;
    margin-top: 64px;
    position: relative;
}
.ep-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 44px;
    text-align: center;
}
.ep-footer-brand .ep-logo-mark { background: var(--pb-tubistyle, #d4a93c); }
.ep-footer-brand strong { display: block; margin: 12px 0 8px; font-size: 16px; }
.ep-footer-address { list-style: none; margin: 0; padding: 0; font-size: 14px; opacity: 0.7; }
.ep-footer-address li { margin: 2px 0; }
.ep-footer-col h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    color: var(--pb-tubistyle, #d4a93c);
    font-weight: 700;
}
.ep-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ep-footer-col li { margin: 10px 0; }
.ep-footer-col a {
    color: #DCDCDC;
    font-size: 14px;
    text-decoration: none;
    transition: color var(--ep-tr, 0.2s ease);
}
.ep-footer-col a:hover { color: var(--pb-tubistyle, #d4a93c); }
.ep-footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #8A8A8A;
    text-align: center;
}
@media (max-width: 960px) {
    .ep-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .ep-footer-inner { grid-template-columns: 1fr; }
}

/* ---- Footer : signature franco-italienne + logo + coordonnées (26/05/2026) ----
 * Anthracite clair + accents gold (--pb-tubistyle). Filet drapeau italien
 * en haut (border-image). Logo posé tel quel sur pastille claire.
 * Colonne contact : adresse complète, tél, email en dur (identiques FR/EN/IT).
 * Disclaimer en bande pleine largeur sous les colonnes. */
.ep-footer {
    border-top: 3px solid transparent;
    border-image: linear-gradient(
        to right,
        var(--ep-green, #008C45) 0 33.33%,
        #ffffff 33.33% 66.66%,
        var(--ep-red, #CD212A) 66.66% 100%
    ) 1;
}
.ep-footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--ep-radius-md, 8px);
    padding: 8px;
    margin-bottom: 16px;
}
.ep-footer-logo {
    height: 48px;
    width: auto;
    display: block;
}
.ep-footer-contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    line-height: 1.5;
}
.ep-footer-contact strong {
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}
.ep-footer-contact span { color: #BDBDBD; }
.ep-footer-contact a {
    color: #DCDCDC;
    text-decoration: none;
    transition: color var(--ep-tr, 0.2s ease);
}
.ep-footer-contact a:hover { color: var(--pb-tubistyle, #d4a93c); }
.ep-footer-contact a[href^="tel"],
.ep-footer-contact a[href^="mailto"] { margin-top: 2px; }

/* Bande disclaimer pleine largeur sous les colonnes */
.ep-footer-disclaimer-bar {
    max-width: 1280px;
    margin: 36px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ep-footer-disclaimer-bar p {
    font-size: 12px;
    line-height: 1.7;
    color: #9A9A9A;
    margin: 0;
}

/* ---- Pages légales (mentions, CGV, confidentialité, cookies) -------
 * Contenu texte long et structuré. Largeur de lecture confortable. */
.ep-legal-content {
    max-width: 820px;
}
.ep-legal-content .ep-h2 {
    margin-top: 32px;
    margin-bottom: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--ep-border, #E5E5E5);
}
.ep-legal-content .ep-h3 {
    margin-top: 20px;
    margin-bottom: 6px;
}
.ep-legal-content p,
.ep-legal-content ul,
.ep-legal-content ol {
    margin-bottom: 12px;
}
.ep-legal-content ul,
.ep-legal-content ol {
    padding-left: 22px;
}
.ep-legal-content li { margin: 4px 0; }
.ep-legal-content a {
    color: var(--ep-blue, #0055A4);
    text-decoration: underline;
}
.ep-legal-content blockquote {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--ep-border-strong, #1A1A1A);
    background: var(--ep-bg-soft, #FAFAFA);
    font-style: italic;
}
.ep-legal-content .ep-legal-version {
    color: var(--ep-text-muted, #6B6B6B);
    font-size: 14px;
    margin-bottom: 24px;
}
.ep-legal-content .ep-legal-pending {
    background: var(--ep-orange-light, #FAEEDA);
    border: 1px solid var(--ep-orange, #F57C00);
    border-radius: var(--ep-radius, 6px);
    padding: 12px 16px;
    margin-bottom: 24px;
}
.ep-legal-content .ep-legal-pre {
    background: var(--ep-bg-section, #F5F5F5);
    border: 1px solid var(--ep-border, #E5E5E5);
    border-radius: var(--ep-radius, 6px);
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-x: auto;
    margin-bottom: 16px;
}

/* ================================================================
 * Étape 3A — Pages riches (vehicle_brand, category HUB)
 * ================================================================ */

/* ─── Hero spécifique pages internes (plus discret que home) ──── */
.ep-hero-brand,
.ep-hero-cat {
    padding: 48px 24px 32px;
    background: linear-gradient(180deg,
        rgba(140, 23, 35, 0.04) 0%,
        rgba(140, 23, 35, 0) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ep-hero-brand .ep-hero-h1,
.ep-hero-cat .ep-hero-h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--ep-text, #1a1a1a);
    margin: 8px 0 16px;
}

.ep-hero-eyebrow {
    font-size: 13px;
    color: var(--ep-text-muted, #6a6a6a);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ep-hero-eyebrow a {
    color: var(--ep-accent, #8c1723);
    text-decoration: none;
}

.ep-hero-eyebrow a:hover { text-decoration: underline; }

.ep-hero-intro,
.ep-hero-subhead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ep-text-muted, #4a4a4a);
    max-width: 720px;
    margin: 0 0 8px;
}

/* ─── Lead sous H2 ──────────────────────────────────────────── */
.ep-section-lead {
    color: var(--ep-text-muted, #6a6a6a);
    font-size: 15px;
    margin: -8px 0 24px;
    max-width: 640px;
}

/* ─── Cartes (modèle / catégorie / sous-catégorie) ──────────── */
.ep-card-model,
.ep-card-cat,
.ep-card-subcat,
.ep-card-model-cat {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    position: relative;
}

.ep-card-model:hover,
.ep-card-cat:hover,
.ep-card-subcat:hover,
.ep-card-model-cat:hover {
    border-color: var(--ep-accent, #8c1723);
    box-shadow: 0 2px 8px rgba(140, 23, 35, 0.1);
    transform: translateY(-1px);
}

.ep-card-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ep-text, #1a1a1a);
    margin: 0 0 4px;
}

.ep-card-meta {
    display: block;
    font-size: 13px;
    color: var(--ep-text-muted, #6a6a6a);
    margin: 0 0 8px;
}

.ep-card-count {
    display: block;
    font-size: 13px;
    color: var(--ep-accent, #8c1723);
    font-weight: 600;
    margin-top: 8px;
}

.ep-card-cta {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--ep-text-muted, #999);
    font-size: 18px;
    transition: color 0.15s;
}

.ep-card-model:hover .ep-card-cta,
.ep-card-cat:hover .ep-card-cta,
.ep-card-subcat:hover .ep-card-cta,
.ep-card-model-cat:hover .ep-card-cta {
    color: var(--ep-accent, #8c1723);
}

/* ─── Header listing produits ───────────────────────────────── */
.ep-listing-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ep-listing-meta {
    color: var(--ep-text-muted, #6a6a6a);
    font-size: 14px;
    margin: 0;
}

/* ─── Grille produits ───────────────────────────────────────── */
.ep-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.ep-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    height: 100%;
}

.ep-product-card:hover {
    border-color: var(--ep-accent, #8c1723);
    box-shadow: 0 4px 12px rgba(140, 23, 35, 0.12);
    transform: translateY(-2px);
}

.ep-product-card[data-stock="out"] {
    opacity: 0.85;
}

.ep-product-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f6f6f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.ep-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ep-product-ref {
    font-size: 12px;
    color: var(--ep-text-muted, #999);
    margin: 0;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.ep-product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ep-text, #1a1a1a);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-product-subcat {
    font-size: 12px;
    color: var(--ep-text-muted, #888);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ep-product-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ep-product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--ep-text, #1a1a1a);
}

.ep-product-price small {
    font-size: 11px;
    color: var(--ep-text-muted, #888);
    font-weight: 400;
}

.ep-stock-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.ep-stock-in {
    background: rgba(34, 139, 34, 0.12);
    color: #1d6b1d;
}

.ep-stock-low {
    background: rgba(255, 165, 0, 0.15);
    color: #aa6600;
}

.ep-stock-out {
    background: rgba(0, 0, 0, 0.06);
    color: #888;
}

/* ─── Pagination ─────────────────────────────────────────────── */
.ep-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding: 24px 0;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ep-page-link {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    text-decoration: none;
    color: var(--ep-text, #1a1a1a);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}

.ep-page-link:hover {
    border-color: var(--ep-accent, #8c1723);
    color: var(--ep-accent, #8c1723);
}

.ep-page-current {
    font-size: 14px;
    color: var(--ep-text-muted, #6a6a6a);
    font-weight: 500;
}

.ep-page-size {
    margin-left: auto;
    font-size: 13px;
    color: var(--ep-text-muted, #6a6a6a);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-page-size-link {
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--ep-text-muted, #6a6a6a);
    text-decoration: none;
    transition: all 0.15s;
}

.ep-page-size-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.ep-page-size-link.is-current {
    background: var(--ep-accent, #8c1723);
    color: #fff;
}

/* ─── États vides ────────────────────────────────────────────── */
.ep-empty {
    padding: 32px;
    text-align: center;
    color: var(--ep-text-muted, #888);
    background: #fafafa;
    border-radius: 8px;
    font-size: 15px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
    .ep-hero-brand .ep-hero-h1,
    .ep-hero-cat .ep-hero-h1 {
        font-size: 28px;
    }
    .ep-listing-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ep-pagination {
        flex-direction: column;
        gap: 12px;
    }
    .ep-page-size {
        margin-left: 0;
    }
}

/* ================================================================
 * Étape 3A patch 2 — états "vide" + page liste modèles
 * ================================================================ */

/* Cartes "vides" (greyed out, cliquables mais discrètes) */
.ep-card.is-empty {
    opacity: 0.5;
    background: #fafafa;
}

.ep-card.is-empty:hover {
    opacity: 0.75;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: none;
    transform: none;
}

.ep-card-count-empty {
    color: #aaa !important;
    font-style: italic;
    font-weight: 500 !important;
    font-size: 12px !important;
}

/* Listing header avec CTA aligné à droite (page marque modèles) */
.ep-listing-header .btn {
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

/* Page liste modèles : titres famille */
.ep-family-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ep-accent, #8c1723);
    display: inline-block;
}

@media (max-width: 720px) {
    .ep-family-title {
        font-size: 20px;
    }
}

/* ================================================================
 * Étape 3A patch 2c — Zone d'appel "Voir tous les modèles"
 * ================================================================ */

.ep-section-cta-models {
    padding: 56px 24px;
    background: linear-gradient(180deg,
        rgba(140, 23, 35, 0.03) 0%,
        rgba(140, 23, 35, 0.08) 100%);
}

.ep-cta-block {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.ep-cta-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--ep-text, #1a1a1a);
    margin: 0 0 12px;
    line-height: 1.2;
}

.ep-cta-lead {
    font-size: 17px;
    color: var(--ep-text-muted, #4a4a4a);
    margin: 0 0 28px;
    line-height: 1.5;
}

.btn-xl {
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(140, 23, 35, 0.25);
    transition: all 0.2s;
}

.btn-xl:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(140, 23, 35, 0.35);
}

.ep-cta-subtitle {
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ep-text-muted, #888);
    margin: 0 0 16px;
    font-weight: 600;
}

.ep-grid-models-popular {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 920px;
    margin: 0 auto;
}

.ep-chip-model {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    text-decoration: none;
    color: var(--ep-text, #1a1a1a);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    white-space: nowrap;
}

.ep-chip-model:hover {
    border-color: var(--ep-accent, #8c1723);
    background: rgba(140, 23, 35, 0.04);
    color: var(--ep-accent, #8c1723);
    transform: translateY(-1px);
}

.ep-chip-title {
    font-weight: 600;
}

.ep-chip-count {
    background: rgba(140, 23, 35, 0.1);
    color: var(--ep-accent, #8c1723);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .ep-section-cta-models { padding: 40px 16px; }
    .ep-cta-title { font-size: 24px; }
    .ep-cta-lead { font-size: 15px; }
    .btn-xl { padding: 14px 28px; font-size: 16px; width: 100%; }
}

/* ================================================================
 * Vue #1 — Page marque véhicule fidèle V1 (30/04/2026)
 * Style sobre, sans listing produits, sans modèles populaires.
 * ================================================================ */

/* Fil d'Ariane */
.ep-breadcrumb {
    font-size: 11px;
    line-height: 1.3;
    color: var(--ep-text-muted, #888);
    margin: -20px 0 10px;
}
.ep-breadcrumb a {
    color: var(--ep-accent, #8c1723);
    text-decoration: none;
}
.ep-breadcrumb a:hover {
    text-decoration: underline;
}

/* Titre page */
.ep-page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--ep-text, #1a1a1a);
    margin: 0 0 20px;
    line-height: 1.2;
}

/* Disclaimer / intro marque */
.ep-disclaimer {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--ep-text-muted, #555);
    line-height: 1.7;
}

/* Bouton CTA "Choisir votre modèle" (style V1) */
.ep-modele-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ep-text, #1a1a1a);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 32px;
    transition: background 0.15s, transform 0.15s;
}
.ep-modele-link:hover {
    background: var(--ep-accent, #8c1723);
    transform: translateY(-1px);
}
.ep-modele-link span[aria-hidden="true"] {
    color: var(--ep-accent, #d4a017);
    font-size: 18px;
}

/* Section "Catégories via Famille Pièces" — titre avec ligne */
.ep-section-title-line {
    font-size: 20px;
    font-weight: 700;
    color: var(--ep-text, #1a1a1a);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

/* Liste des catégories (style V1 vertical) */
.ep-cat-list-v1 {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 40px;
}

.ep-cat-link-v1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-decoration: none;
    color: var(--ep-text, #1a1a1a);
    font-size: 14px;
    transition: border-color 0.12s, box-shadow 0.12s, color 0.12s;
}
.ep-cat-link-v1:hover {
    border-color: var(--ep-accent, #8c1723);
    box-shadow: 0 2px 8px rgba(140, 23, 35, 0.08);
    color: var(--ep-accent, #8c1723);
}

.ep-cat-link-text {
    flex: 1;
}

.ep-cat-link-arrow {
    color: rgba(0, 0, 0, 0.25);
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 12px;
    transition: color 0.12s;
}
.ep-cat-link-v1:hover .ep-cat-link-arrow {
    color: var(--ep-accent, #8c1723);
}

/* Bloc SEO bas de page */
.ep-seo-block {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 24px;
    font-size: 14px;
    color: var(--ep-text-muted, #555);
    line-height: 1.8;
}
.ep-seo-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ep-text, #1a1a1a);
    margin: 0 0 12px;
}
.ep-seo-block p {
    margin: 0;
}

/* Responsive */
@media (max-width: 720px) {
    .ep-page-title { font-size: 26px; }
    .ep-modele-link { width: 100%; justify-content: center; }
}

/* ================================================================
 * Vues 2-7 — CSS minimal mode "fonctionnel brut" (30/04/2026)
 * Pas de polish — on cable, on teste, on polish après.
 * ================================================================ */

/* === Vue #2 : liste modèles (grille à plat + JS) === */

.ep-search-bar {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    font-family: inherit;
}
.ep-search-bar:focus {
    outline: none;
    border-color: var(--ep-accent, #8c1723);
}

.ep-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
}
.ep-alpha-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--ep-text-muted, #555);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}
.ep-alpha-btn:hover {
    background: #f5f5f5;
}
.ep-alpha-btn.active {
    background: var(--ep-text, #1a1a1a);
    color: #fff;
    border-color: var(--ep-text, #1a1a1a);
}

.ep-grid-models {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.ep-card-model-v1 {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: var(--ep-text, #1a1a1a);
    display: block;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ep-card-model-v1:hover {
    border-color: var(--ep-accent, #8c1723);
    box-shadow: 0 2px 12px rgba(140, 23, 35, 0.08);
}
.ep-card-name {
    font-size: 14px;
    font-weight: 600;
}

.ep-no-result {
    font-size: 14px;
    color: var(--ep-text-muted, #888);
    padding: 20px 0;
    display: none;
}

/* === Vue #3 : page famille (liste versions) === */

.ep-versions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}
.ep-version-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--ep-text, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ep-version-card:hover {
    border-color: var(--ep-accent, #8c1723);
    box-shadow: 0 2px 12px rgba(140, 23, 35, 0.08);
}
.ep-version-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ep-version-name {
    font-size: 16px;
    font-weight: 600;
}
.ep-version-meta {
    font-size: 12px;
    color: var(--ep-text-muted, #888);
}
.ep-version-arrow {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.25);
}

/* === Vue #4 : version (catégories pièces) === */

.ep-page-sub {
    font-size: 14px;
    color: var(--ep-text-muted, #888);
    margin: 0 0 8px;
}
.ep-page-desc {
    font-size: 14px;
    color: var(--ep-text-muted, #555);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 800px;
}

.ep-cat-row {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}
.ep-cat-row.is-empty {
    opacity: 0.5;
    background: #fafafa;
}

.ep-cat-link-v1.disabled {
    color: var(--ep-text-muted, #aaa);
    cursor: not-allowed;
    pointer-events: none;
}

.ep-cat-count {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    background: #f0faf4;
    color: #1a7a3a;
    margin-left: 8px;
}
.ep-cat-link-empty {
    font-size: 12px;
    font-style: italic;
    color: var(--ep-text-muted, #aaa);
    margin-left: auto;
}

.ep-cat-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 18px 12px;
}
.ep-cat-sub-link {
    font-size: 12px;
    color: var(--ep-accent, #8c1723);
    text-decoration: none;
    background: #fff8f5;
    border: 1px solid rgba(140, 23, 35, 0.15);
    border-radius: 6px;
    padding: 3px 10px;
    transition: background 0.1s;
}
.ep-cat-sub-link:hover {
    background: rgba(140, 23, 35, 0.08);
}

/* === Vues 5-6 : liste articles === */

.ep-articles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}
.ep-article-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--ep-text, #1a1a1a);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ep-article-card:hover {
    border-color: var(--ep-accent, #8c1723);
    box-shadow: 0 2px 12px rgba(140, 23, 35, 0.08);
}
.ep-art-info { min-width: 0; }
.ep-art-ref {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--ep-text-muted, #888);
    margin: 0 0 4px;
}
.ep-art-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}
.ep-art-montage {
    font-size: 12px;
    color: var(--ep-text-muted, #999);
    margin: 0;
}
.ep-art-right { text-align: right; }
.ep-art-price {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}
.ep-art-price small {
    font-size: 11px;
    font-weight: 400;
    color: var(--ep-text-muted, #888);
    margin-left: 4px;
}
.ep-art-stock {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}
.ep-art-stock.dispo { color: #1a7a3a; }
.ep-art-stock.low   { color: #c8761a; }
.ep-art-stock.rupture { color: #c0392b; }

.ep-souscat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.ep-souscat-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--ep-text-muted, #556);
    transition: all 0.15s;
}
.ep-souscat-btn:hover {
    border-color: var(--ep-accent, #8c1723);
    color: var(--ep-text, #1a1a1a);
    background: #fff8f5;
}

.ep-empty {
    font-size: 14px;
    color: var(--ep-text-muted, #888);
    padding: 20px 0;
}

/* === Vue #4/#7 : bloc contact bas === */

.ep-contact-block {
    background: var(--ep-text, #1a1a1a);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.ep-contact-text h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 6px;
}
.ep-contact-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}
.ep-contact-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.ep-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.ep-contact-btn.primary {
    background: var(--ep-accent, #d4a017);
    color: var(--ep-text, #1a1a1a);
}
.ep-contact-btn.primary:hover {
    background: #b8890d;
}

/* === Vue #7 : fiche produit === */

.ep-product-hero {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    margin-bottom: 32px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 24px;
}
.ep-product-hero-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #f5f5f5;
}
.ep-product-ref-big {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--ep-text-muted, #888);
    margin: 0 0 8px;
}
.ep-product-h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
}
.ep-product-short {
    font-size: 14px;
    color: var(--ep-text-muted, #555);
    line-height: 1.6;
    margin: 0 0 24px;
}
.ep-product-buybox {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
}
.ep-product-price-big {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}
.ep-product-price-big small {
    font-size: 13px;
    font-weight: 400;
    color: var(--ep-text-muted, #888);
    margin-left: 6px;
}
.ep-product-stock {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.ep-product-stock.dispo { color: #1a7a3a; }
.ep-product-stock.low   { color: #c8761a; }
.ep-product-stock.rupture { color: #c0392b; }

.ep-product-section {
    margin-bottom: 32px;
}
.ep-h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}
.ep-product-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ep-text-muted, #555);
}

.ep-compat-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}
.ep-compat-table th,
.ep-compat-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
}
.ep-compat-table th {
    background: #f9f9f9;
    font-size: 12px;
    font-weight: 600;
    color: var(--ep-text-muted, #555);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ep-compat-table tr:last-child td {
    border-bottom: none;
}
.ep-compat-table a {
    color: var(--ep-accent, #8c1723);
    text-decoration: none;
}
.ep-compat-table a:hover { text-decoration: underline; }

.ep-refs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ep-refs-list li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ep-refs-list li:last-child { border: none; }
.ep-refs-list code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* === Responsive === */

@media (max-width: 768px) {
    .ep-product-hero {
        grid-template-columns: 1fr;
    }
    .ep-product-hero-img {
        max-width: 280px;
        margin: 0 auto;
    }
    .ep-article-card {
        grid-template-columns: 1fr;
    }
    .ep-art-right {
        text-align: left;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding-top: 8px;
    }
    .ep-contact-block {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================================
 * CARROUSEL VITRINE HOME (mémo §52 — session 4 mai 2026)
 * Porté depuis index_preview_v3.html
 * Note : fallbacks inline sur var() au cas où theme.css ne définit
 *        pas encore les variables (cohérent avec le reste de layout.css)
 * ============================================================= */

.ep-showcase {
    background: var(--ep-bg-soft, #FAFAFA);
    border-bottom: 1px solid var(--ep-border, #E5E5E5);
    padding: 20px 0 40px;
    overflow: hidden;
}

.ep-showcase-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 56px;
    position: relative;
}

.ep-showcase-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ep-showcase-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ep-black, #111);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.ep-showcase-sub {
    font-size: 14px;
    color: var(--ep-text-muted, #6B6B6B);
}

.ep-showcase-controls {
    display: flex;
    gap: 8px;
}

/* Flèches dans les marges latérales du showcase-inner (à CÔTÉ des cards,
   pas dessus). L'inner a position:relative + padding 56px → on loge les
   flèches dans ces marges. (27/05/2026) */
.ep-arrow-prev,
.ep-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}
.ep-arrow-prev { left: 8px; }
.ep-arrow-next { right: 8px; }

.ep-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ep-border, #E5E5E5);
    background: var(--ep-white, #FFFFFF);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-text, #333);
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ep-arrow:hover {
    border-color: var(--ep-text, #333);
    background: var(--ep-text, #333);
    color: var(--ep-white, #FFFFFF);
}

.ep-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--ep-white, #FFFFFF);
    color: var(--ep-text, #333);
    border-color: var(--ep-border, #E5E5E5);
}

.ep-carousel-wrapper {
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.ep-carousel-wrapper:active {
    cursor: grabbing;
}

.ep-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease-out;
    will-change: transform;
    user-select: none;
}

.ep-piece-card {
    flex: 0 0 calc(20% - 13px);
    background: var(--ep-white, #FFFFFF);
    border: 1px solid var(--ep-border, #E5E5E5);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ep-text, #333);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.ep-piece-card:hover {
    transform: translateY(-3px);
    border-color: var(--ep-text, #333);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ep-piece-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--ep-bg-section, #F5F5F5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* object-fit: contain — l'image s'adapte ENTIÈREMENT sans rognage,
   cohérent avec product.php (.ep-product-photo-main), article_grid.php
   (.ep-card-img, .ep-list-thumb-img). Décision Cedric mai 2026 : adapter
   le code aux 100k photos hétérogènes (sources multiples) plutôt que
   retoucher chaque photo. Le fond gris-clair est volontaire. */
.ep-piece-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
    box-sizing: border-box;
}

.ep-piece-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ep-red, #C8102E);
    color: var(--ep-white, #FFFFFF);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

.ep-piece-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ep-piece-marque {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ep-piece-marque.ferrari  { color: var(--ep-red, #C8102E); }
.ep-piece-marque.maserati { color: var(--ep-blue, #0033A0); }
.ep-piece-marque.alfa     { color: var(--ep-green, #006B3C); }
.ep-piece-marque.generic  { color: var(--ep-text-muted, #6B6B6B); }

.ep-piece-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-black, #111);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.ep-piece-ref {
    font-size: 11px;
    color: var(--ep-text-muted, #6B6B6B);
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}

.ep-piece-compat {
    font-size: 11px;
    color: var(--ep-text-muted, #6B6B6B);
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.ep-piece-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--ep-border-soft, #F0F0F0);
}

.ep-piece-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ep-black, #111);
}

.ep-piece-price-ht {
    font-size: 10px;
    color: var(--ep-text-subtle, #999);
    font-weight: 400;
}

.ep-piece-stock {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.ep-piece-stock.ok  { background: var(--ep-green-light,  #DEF7EC); color: var(--ep-green-dark, #03543F); }
.ep-piece-stock.low { background: var(--ep-orange-light, #FEF3C7); color: #854F0B; }
.ep-piece-stock.out { background: var(--ep-red-light,    #FEE2E2); color: var(--ep-red-dark,   #991B1B); }

/* Cascade responsive carrousel : 5 (large) → 3 (tablette) → 2 → 1 (mobile). */
@media (max-width: 1100px) {
    .ep-piece-card { flex: 0 0 calc(33.333% - 11px); }
}
@media (max-width: 800px) {
    .ep-piece-card { flex: 0 0 calc(50% - 8px); }
    .ep-showcase { padding: 40px 0 48px; }
    .ep-showcase-inner { padding: 0 20px; }
}

@media (max-width: 500px) {
    .ep-piece-card { flex: 0 0 calc(85% - 8px); }
    .ep-showcase-title { font-size: 22px; }
}

/* ============================================================
   Sections SEO content + trust (mémo §58 — session 4 mai 2026)
   Bloc texte de référencement + bloc "pourquoi nous choisir".
   Insérés sur la home entre équipementiers et CTA contact.
   ============================================================ */

/* Bloc texte SEO principal */
.ep-seo-content {
    padding: 56px 0;
    background: #fff;
    border-top: 1px solid var(--ep-border, #e8e8e8);
}
.ep-seo-content .ep-section-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}
.ep-seo-content .ep-h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--ep-text, #1A1A1A);
    margin: 0 0 24px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.ep-seo-content .ep-h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ep-text, #1A1A1A);
    margin: 32px 0 12px;
    line-height: 1.3;
}
.ep-seo-content p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ep-text, #333);
    margin: 0 0 16px;
}

/* Bloc trust (pourquoi nous choisir) — fond légèrement teinté pour démarquer */
.ep-seo-trust {
    padding: 56px 0;
    background: var(--ep-bg-section, #F5F5F5);
    border-top: 1px solid var(--ep-border, #e8e8e8);
}
.ep-seo-trust .ep-section-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}
.ep-seo-trust .ep-h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--ep-text, #1A1A1A);
    margin: 0 0 24px;
    line-height: 1.25;
    text-align: center;
}
.ep-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.ep-trust-list li {
    background: #fff;
    border: 1px solid var(--ep-border, #e8e8e8);
    border-radius: 10px;
    padding: 18px 22px 18px 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ep-text, #1A1A1A);
    line-height: 1.4;
    position: relative;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ep-trust-list li::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 22px;
    height: 22px;
    background: var(--ep-green, #008C45);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.ep-trust-list li:hover {
    border-color: var(--ep-green, #008C45);
    box-shadow: 0 4px 12px rgba(0, 140, 69, 0.10);
}

/* Responsive SEO sections */
@media (max-width: 600px) {
    .ep-seo-content { padding: 40px 0; }
    .ep-seo-trust   { padding: 40px 0; }
    .ep-trust-list  { grid-template-columns: 1fr; }
}
