
/* ===== Hide legacy verbose elements (scoped to refonted cards) ===== */
.ea-card-refonte .ea-pcard-description,
.ea-card-refonte .ea6-m-pcard-desc,
.ea-card-refonte .ea6-m-pcard-specs-inline,
.ea-card-refonte .ea-l2c-bullets,
.ea-card-refonte ul.ea-pcard-bullets,
.ea-card-refonte .ea-card-trust-badge,
.ea-card-refonte .ea-card-decoupe,
.ea-card-refonte .ea-card-pose-link,
.ea-card-refonte .ea-l2c-trust-pill {
    display: none !important;
}

/* ===== GLOBAL hide on L2 (outside .ea-card-refonte scope) =====
 * .ea-trust-pills : legacy trust pills row
 * .ea-l2-trust-chips : legacy chips contenant "Retour 16 j" obsolète
 * .ea-cr-trust-strip : ANCIEN per-card strip (v1.0.0-1.0.3), redondant avec hero trust banner
 * Le plugin CSS ne charge que sur les L2 véhicule, donc le hide est safe-scoped à ces pages.
 */
.ea-trust-pills,
.ea-l2-trust-chips,
.ea-cr-trust-strip {
    display: none !important;
}

/* ===== "compatible PDC" subtitle : style as compact chip ===== */
.ea-card-refonte .ea-card-subtitle {
    background: #ECFDF5 !important;
    color: #16A34A !important;
    padding: 3px 9px !important;
    border-radius: 99px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-block !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    width: fit-content !important;
}

/* ===== Card visual reset (FA-inspired clean look) ===== */
.ea-card-refonte {
    background: #FFFFFF;
    padding: 0 !important;
    /* Border + radius are on the OUTER .ea6-m-pcard, not on the body */
}
/* OUTER card wrapper styling for cohérence */
.ea6-m-pcard:has(.ea-card-refonte) {
    background: #FFFFFF;
    border: 1px solid #E6E8F2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(13,17,68,0.05);
    transition: box-shadow 0.18s, transform 0.18s;
}
.ea6-m-pcard:has(.ea-card-refonte):hover {
    box-shadow: 0 6px 24px rgba(13,17,68,0.10);
    transform: translateY(-1px);
}
.ea6-m-pcard:has(.ea-card-recommended) {
    border: 2px solid #16A34A;
    box-shadow: 0 4px 20px rgba(22,163,74,0.12);
}
/* Photo column breathing room */
.ea6-m-pcard:has(.ea-card-refonte) .ea6-m-pcard-media {
    padding: 14px !important;
}
@media (max-width: 768px) {
    .ea6-m-pcard:has(.ea-card-refonte) .ea6-m-pcard-media { padding: 12px !important; }
}

/* ===== Recommended banner ===== */
.ea-cr-rec-banner {
    background: linear-gradient(90deg, #16A34A, #15803D);
    color: #FFFFFF;
    text-align: center;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: Manrope, system-ui, sans-serif;
}

/* ===== v1.0.5 — Body content needs breathing room ===== */
.ea-card-refonte {
    padding: 20px 24px !important;
}
@media (max-width: 768px) {
    .ea-card-refonte { padding: 16px 18px !important; }
}

/* ===== Head row : photo + type/ref/status ===== */
.ea-cr-head {
    padding: 14px 16px 10px;
}
.ea-card-refonte .ea-compat-pill {
    background: #ECFDF5;
    color: #16A34A;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
    display: inline-block;
    border: 0;
}
.ea-card-refonte .ea6-m-pcard-topline {
    font-size: 11px;
    font-weight: 800;
    color: #6B7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    display: block;
}
.ea-card-refonte .ea6-m-pcard-title {
    font-size: 15px;
    font-weight: 800;
    color: #0D1144;
    line-height: 1.3;
    margin: 0 0 8px 0;
}
.ea-card-refonte .ea-cr-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #16A34A;
    font-weight: 800;
    font-size: 12px;
}
.ea-card-refonte .ea-cr-status svg { width: 13px; height: 13px; }

/* ===== Specs strip ===== */
.ea-cr-specs {
    border-top: 1px solid #E6E8F2;
    padding: 6px 0;
    margin: 14px 0 4px;   /* NO negative margin — stays inside body padding */
}
.ea-cr-specs .ea-cr-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 9px 0;        /* No horizontal padding here — body padding handles it */
    font-size: 13.5px;
    border-bottom: 1px solid #F0F2F8;
    font-family: Manrope, system-ui, sans-serif;
}
.ea-cr-specs .ea-cr-row:last-child { border-bottom: 0; }
.ea-cr-specs .ea-cr-label {
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ea-cr-specs .ea-cr-label svg {
    width: 16px;
    height: 16px;
    color: #0D1144;
    flex-shrink: 0;
    opacity: 0.7;
}
.ea-cr-specs .ea-cr-value {
    color: #0D1144;
    font-weight: 700;
}
.ea-cr-specs .ea-cr-value.is-alert  { color: #F59E0B; }
.ea-cr-specs .ea-cr-value.is-good   { color: #16A34A; }

/* ===== v1.0.9 — Tooltip "i" sur chaque spec ===== */
.ea-cr-specs .ea-cr-row {
    position: relative;
}
.ea-cr-specs .ea-cr-label {
    flex: 1;
    min-width: 0;
}
.ea-cr-info {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #C7CBD9;
    background: transparent;
    color: #6B7280;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 11px;
    line-height: 14px;
    padding: 0;
    margin: 0 0 0 4px;
    cursor: help;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    position: relative;
}
.ea-cr-info:hover,
.ea-cr-info:focus,
.ea-cr-info.is-open {
    color: #0D1144;
    border-color: #0D1144;
    background: #F0F2F8;
    outline: none;
}
.ea-cr-tooltip {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    background: #0D1144;
    color: #FFFFFF;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
    font-family: Manrope, system-ui, sans-serif;
    padding: 8px 11px;
    border-radius: 7px;
    max-width: 260px;
    min-width: 180px;
    box-shadow: 0 6px 20px rgba(13,17,68,0.18);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: normal;
}
.ea-cr-tooltip::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 14px;
    width: 10px;
    height: 10px;
    background: #0D1144;
    transform: rotate(45deg);
    border-radius: 1px;
}
.ea-cr-row.has-tooltip-open .ea-cr-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
@media (max-width: 480px) {
    .ea-cr-tooltip {
        max-width: calc(100vw - 60px);
        min-width: 160px;
        font-size: 11.5px;
    }
}

/* ===== Price + CTA block ===== */
.ea-card-refonte .ea6-m-pcard-price,
.ea-card-refonte .ea-pcard-price,
.ea-card-refonte .ea-l2c-price-wrap {
    background: transparent !important;
    border-top: 1px solid #E6E8F2 !important;
    padding: 16px 0 12px !important;
    margin: 4px 0 0 !important;
}
.ea-card-refonte .ea6-m-pcard-ctas {
    background: transparent !important;
    border-top: 0 !important;
    padding: 0 !important;
    margin: 12px 0 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}
.ea-card-refonte .ea6-m-pcard-ctas > * {
    margin: 0 !important;
}

/* ===== Trust strip 1 ligne ===== */
.ea-cr-trust-strip {
    background: #F9FAFC;
    border-top: 1px solid #E6E8F2;
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 11px;
    color: #6B7280;
    font-family: Manrope, system-ui, sans-serif;
}
.ea-cr-trust-strip .item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ea-cr-trust-strip .item svg {
    width: 11px;
    height: 11px;
    color: #16A34A;
    flex-shrink: 0;
}

/* ===== Bottom-of-listing single pose centre banner ===== */
.ea-cr-pose-banner {
    background: linear-gradient(135deg, #F9FAFC, #FFFFFF);
    border: 1px solid #E6E8F2;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 20px 0 28px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: Manrope, system-ui, sans-serif;
}
.ea-cr-pose-banner .icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #0D1144;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}
.ea-cr-pose-banner .icon svg { width: 20px; height: 20px; }
.ea-cr-pose-banner .copy { flex: 1; min-width: 0; }
.ea-cr-pose-banner .title {
    font-weight: 800;
    color: #0D1144;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
}
.ea-cr-pose-banner .sub {
    color: #6B7280;
    font-size: 12px;
}
.ea-cr-pose-banner a.cta {
    text-decoration: none;
    background: #FFFFFF;
    color: #0D1144;
    border: 1px solid #0D1144;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ea-cr-pose-banner a.cta:hover {
    background: #0D1144;
    color: #FFFFFF;
}

/* Mobile compact */
@media (max-width: 768px) {
    .ea-cr-head { padding: 12px 14px 8px; }
    .ea-cr-specs { padding: 4px 14px; }
    .ea-cr-specs .ea-cr-row { padding: 6px 0; font-size: 12.5px; }
    .ea-card-refonte .ea6-m-pcard-title { font-size: 14px; }
    .ea-card-refonte .ea6-m-pcard-price,
    .ea-card-refonte .ea-pcard-price { padding: 10px 14px !important; }
    .ea-card-refonte .ea6-m-pcard-ctas { padding: 0 14px 10px !important; }
    .ea-cr-pose-banner { padding: 14px; gap: 12px; }
    .ea-cr-pose-banner .title { font-size: 13px; }
    .ea-cr-pose-banner .sub { font-size: 11px; }
}
