/* ==========================================================
   GERMAN RETROFIT - STAGE PERFORMANCE
   Front Configurator
========================================================== */

.gr-sp-configurator {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 18px 70px;
    font-family: inherit;
    color: #0f172a;
}

/* ==========================================================
   HERO
========================================================== */

.gr-sp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 54px 42px;
    margin-bottom: 28px;
    background:
        radial-gradient(circle at 15% 20%, rgba(21, 155, 215, .28), transparent 34%),
        linear-gradient(135deg, #173b72 0%, #1f4b8f 52%, #102a52 100%);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.gr-sp-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.gr-sp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.gr-sp-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #bfeaff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gr-sp-hero h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    font-weight: 900;
}

.gr-sp-hero p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.7;
}


/* ==========================================================
   STEPPER — PREMIUM TIMELINE
========================================================== */

.gr-sp-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto 34px;
    padding: 34px 20px 18px;
}

.gr-sp-stepper::before {
    content: "";
    position: absolute;
    left: 70px;
    right: 70px;
    top: 55px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(23, 59, 114, .18),
        rgba(21, 155, 215, .22),
        rgba(23, 59, 114, .12)
    );
}

.gr-sp-step {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #64748b;
    text-align: center;
}

.gr-sp-step span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    box-shadow:
        0 14px 34px rgba(15, 23, 42, .12),
        inset 0 0 0 1px rgba(15, 23, 42, .08);
    transition: all .25s ease;
}

.gr-sp-step strong {
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    transition: color .25s ease;
}

.gr-sp-step.is-active {
    color: #173b72;
}

.gr-sp-step.is-active span {
    width: 54px;
    height: 54px;
    margin-top: -5px;
    background: linear-gradient(135deg, #173b72, #159bd7);
    color: #ffffff;
    box-shadow:
        0 0 0 8px rgba(21, 155, 215, .10),
        0 20px 45px rgba(21, 155, 215, .35);
}

.gr-sp-step.is-active strong {
    color: #173b72;
    font-weight: 900;
}

.gr-sp-step.is-complete {
    color: #173b72;
}

.gr-sp-step.is-complete span {
    background: #e8f7ff;
    color: transparent;
    box-shadow:
        0 14px 34px rgba(21, 155, 215, .18),
        inset 0 0 0 1px rgba(21, 155, 215, .22);
}

.gr-sp-step.is-complete span::before {
    content: "✓";
    position: absolute;
    color: #159bd7;
    font-size: 17px;
    font-weight: 900;
}

/* Mobile */
@media (max-width: 680px) {
    .gr-sp-stepper {
        display: flex;
        overflow-x: auto;
        gap: 26px;
        padding: 24px 18px 18px;
        margin-bottom: 24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .gr-sp-stepper::-webkit-scrollbar {
        display: none;
    }

    .gr-sp-stepper::before {
        left: 46px;
        right: auto;
        top: 45px;
        width: 540px;
        min-width: 540px;
    }

    .gr-sp-step {
        min-width: 82px;
        gap: 10px;
        scroll-snap-align: center;
    }

    .gr-sp-step span {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .gr-sp-step.is-active span {
        width: 46px;
        height: 46px;
        margin-top: -4px;
    }

    .gr-sp-step strong {
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
    }
}


/* ==========================================================
   SUMMARY — PREMIUM INLINE
========================================================== */

.gr-sp-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto 30px;
    padding: 18px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
    backdrop-filter: blur(14px);
}

.gr-sp-summary-item {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 28px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.gr-sp-summary-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 24px;
    transform: translateY(-50%);
    background: rgba(33, 61, 123, .16);
}

.gr-sp-summary-item span {
    color: #213D7B;
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.gr-sp-summary-item strong {
    color: #071426;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 950;
}

/* Mobile */
@media (max-width: 680px) {
    .gr-sp-summary {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
        border-radius: 18px;
    }

    .gr-sp-summary-item {
        justify-content: space-between;
        padding: 10px 4px;
        border-bottom: 1px solid rgba(33, 61, 123, .10);
    }

    .gr-sp-summary-item:not(:last-child)::after {
        display: none;
    }

    .gr-sp-summary-item:last-child {
        border-bottom: 0;
    }

    .gr-sp-summary-item strong {
        text-align: right;
        font-size: 17px;
    }
}

/* ==========================================================
   PANEL / SECTIONS
========================================================== */

.gr-sp-panel {
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 24px 80px rgba(15, 23, 42, .08);
}

.gr-sp-section {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    animation: grSpFadeUp .35s ease both;
}

.gr-sp-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.gr-sp-section-heading {
    margin-bottom: 24px;
}

.gr-sp-section-heading span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f7ff;
    color: #159bd7;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gr-sp-section-heading h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.15;
}

.gr-sp-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================
   BRANDS — PREMIUM
========================================================== */

.gr-sp-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.gr-sp-brand-card {
    cursor: pointer;
    min-height: 185px;
    padding: 18px 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: #0f172a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.gr-sp-brand-card:hover,
.gr-sp-brand-card.is-selected {
    transform: translateY(-6px);
    border-color: rgba(21, 155, 215, .48);
    box-shadow: 0 24px 60px rgba(23, 59, 114, .14);
}

.gr-sp-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    margin-bottom: 12px;
}

.gr-sp-brand-logo img {
    max-width: 120px;
    max-height: 96px;
    object-fit: contain;
    transition: transform .30s ease;
}

.gr-sp-brand-card:hover .gr-sp-brand-logo img,
.gr-sp-brand-card.is-selected .gr-sp-brand-logo img {
    transform: scale(1.10);
}

.gr-sp-brand-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: linear-gradient(135deg, #173b72, #159bd7);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.gr-sp-brand-card strong {
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 850;
    color: #1e293b;
    letter-spacing: .1px;
    transition: color .25s ease;
}

.gr-sp-brand-card:hover strong,
.gr-sp-brand-card.is-selected strong {
    color: #173b72;
}

/* ==========================================================
   MODELS — PREMIUM
========================================================== */

.gr-sp-model-group {
    margin-bottom: 30px;
}

.gr-sp-model-group h3,
.gr-sp-engine-group h3 {
    margin: 0 0 18px;
    color: #173b72;
    font-size: 22px;
    font-weight: 900;
}

.gr-sp-model-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gr-sp-model-card {
    cursor: pointer;
    min-height: 210px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: #0f172a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.gr-sp-model-card:hover,
.gr-sp-model-card.is-selected {
    transform: translateY(-6px);
    border-color: rgba(21, 155, 215, .48);
    box-shadow: 0 24px 60px rgba(23, 59, 114, .14);
}

.gr-sp-model-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 138px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #f8fafc;
    overflow: hidden;
}

.gr-sp-model-media img {
    width: 92%;
    max-width: 280px;
    max-height: 124px;
    object-fit: contain;
    transition: transform .3s ease;
}

.gr-sp-model-card:hover .gr-sp-model-media img,
.gr-sp-model-card.is-selected .gr-sp-model-media img {
    transform: scale(1.08);
}

/* Icônes / placeholders : on garde une taille maîtrisée */
.gr-sp-model-media i {
    color: #159bd7;
    font-size: 42px;
}

.gr-sp-model-media > strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #173b72, #159bd7);
    color: #ffffff;
    font-size: 24px;
}

.gr-sp-model-card > strong {
    display: block;
    text-align: center;
    color: #213D7B;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -.2px;
    transition: color .25s ease;
}

.gr-sp-model-card:hover > strong,
.gr-sp-model-card.is-selected > strong {
    color: #159BD7;
}


/* ==========================================================
   VERSIONS — PREMIUM V2
========================================================== */

.gr-sp-version-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.gr-sp-version-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 105px;
    padding: 20px 22px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    text-align: left;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
    transition: all .28s ease;
}

.gr-sp-version-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 4px;
    height: 34px;
    border-radius: 0 999px 999px 0;
    background: transparent;
    transition: .28s;
}

.gr-sp-version-card:hover,
.gr-sp-version-card.is-selected {
    transform: translateY(-5px);
    border-color: rgba(21,155,215,.45);
    box-shadow: 0 24px 60px rgba(23,59,114,.14);
}

.gr-sp-version-card:hover::before,
.gr-sp-version-card.is-selected::before {
    background: linear-gradient(180deg,#213D7B,#159BD7);
}

.gr-sp-version-card strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(33,61,123,.08);
    color: #213D7B;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.2px;
}

.gr-sp-version-card span {
    display: block;
    color: #64748B;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1200px){

    .gr-sp-version-grid{
        grid-template-columns:repeat(4,1fr);
    }

}

@media (max-width:992px){

    .gr-sp-version-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

@media (max-width:680px){

    .gr-sp-version-grid{
        grid-template-columns:repeat(2,1fr);
    }

}


/* ==========================================================
   ENGINES — PREMIUM LIKE VERSIONS
========================================================== */

.gr-sp-engine-group {
    margin-bottom: 34px;
}

.gr-sp-engine-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.gr-sp-engine-row {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 105px;
    padding: 20px 22px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
    transition: all .28s ease;
}

.gr-sp-engine-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 4px;
    height: 34px;
    border-radius: 0 999px 999px 0;
    background: transparent;
    transition: .28s;
}

.gr-sp-engine-row:hover,
.gr-sp-engine-row.is-selected {
    transform: translateY(-5px);
    border-color: rgba(21,155,215,.45);
    box-shadow: 0 24px 60px rgba(23,59,114,.14);
}

.gr-sp-engine-row:hover::before,
.gr-sp-engine-row.is-selected::before {
    background: linear-gradient(180deg,#213D7B,#159BD7);
}

.gr-sp-engine-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(33,61,123,.08);
    color: #213D7B;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.gr-sp-engine-row strong {
    display: block;
    color: #64748B;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1200px) {
    .gr-sp-engine-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .gr-sp-engine-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .gr-sp-engine-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================
   RESULT — PREMIUM TABLE
========================================================== */

.gr-sp-result-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 28px 80px rgba(23, 59, 114, .14);
}

.gr-sp-result-head {
    padding: 34px 38px;
    background:
        radial-gradient(circle at 88% 12%, rgba(21,155,215,.35), transparent 34%),
        linear-gradient(135deg, #213D7B 0%, #173b72 50%, #159BD7 100%);
    color: #ffffff;
}

.gr-sp-result-head span {
    display: inline-flex;
    margin-bottom: 10px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.gr-sp-result-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    font-weight: 950;
}

.gr-sp-result-table {
    padding: 24px;
}

.gr-sp-result-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(33, 61, 123, .10);
}

.gr-sp-result-row:not(.gr-sp-result-row-head) {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.gr-sp-result-row:last-child {
    border-bottom: 0;
}

.gr-sp-result-row-head {
    padding-top: 10px;
    padding-bottom: 18px;
    color: #213D7B;
    font-size: 13px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: .04em;
    background: transparent;
}

.gr-sp-result-row strong {
    color: #071426;
    font-size: 17px;
    font-weight: 950;
}

.gr-sp-result-row span {
    color: #334155;
    font-size: 16px;
    font-weight: 800;
}

.gr-sp-gain {
    color: #159BD7 !important;
    font-weight: 950 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Mobile */
@media (max-width: 680px) {
    .gr-sp-result-card {
        border-radius: 22px;
    }

    .gr-sp-result-head {
        padding: 30px 24px;
    }

    .gr-sp-result-head h3 {
        font-size: 42px;
    }

    .gr-sp-result-table {
        padding: 18px;
    }

    .gr-sp-result-row-head {
        display: none;
    }

    .gr-sp-result-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 0;
        border-bottom: 1px solid rgba(33, 61, 123, .12);
    }

    .gr-sp-result-row:last-child {
        border-bottom: 0;
    }

    .gr-sp-result-row strong,
    .gr-sp-result-row span {
        display: grid;
        grid-template-columns: 110px 1fr;
        align-items: center;
        gap: 14px;
        font-size: 16px;
    }

    .gr-sp-result-row strong::before,
    .gr-sp-result-row span::before {
        content: attr(data-label);
        color: #213D7B;
        font-size: 13px;
        font-weight: 900;
    }

    .gr-sp-gain {
        color: #159BD7 !important;
        font-weight: 950 !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
}


/* ==========================================================
   LOADER / EMPTY
========================================================== */

.gr-sp-loader,
.gr-sp-empty {
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed rgba(21, 155, 215, .35);
    color: #173b72;
    font-size: 15px;
    font-weight: 800;
}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes grSpFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {
    .gr-sp-brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gr-sp-model-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gr-sp-stepper,
    .gr-sp-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .gr-sp-version-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .gr-sp-configurator {
        padding: 26px 14px 50px;
    }

    .gr-sp-hero {
        padding: 36px 24px;
        border-radius: 22px;
    }

    .gr-sp-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .gr-sp-brands-grid,
    .gr-sp-model-grid,
    .gr-sp-version-grid,
    .gr-sp-summary {
        grid-template-columns: 1fr;
    }

    .gr-sp-result-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .gr-sp-result-row-head {
        display: none;
    }
}


/* ==========================================================
   PAGE 44490
   Masquer le Page Header Elementor
========================================================== */

body.page-id-44490 .cs-pageheader,
body.page-id-44490 .elementor-element-17641819 {
    display: none !important;
}

/* ==========================================================
   PAGE 44490
   Décaler le configurateur sous le header absolu du thème
========================================================== */

body.page-id-44490 .gr-sp-configurator {
    max-width: 100%;
    margin-top: 0 !important;
    padding: 0 0 70px !important;
}

/* ==========================================================
   PAGE 44490
   Hero plugin plein largeur
========================================================== */

body.page-id-44490 .gr-sp-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 0 !important;
    margin-bottom: 34px;
    border-radius: 0;
    padding: 165px 0 80px;
}

body.page-id-44490 .gr-sp-hero-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Garder le contenu sous le hero bien centré */
body.page-id-44490 .gr-sp-stepper,
body.page-id-44490 .gr-sp-summary,
body.page-id-44490 .gr-sp-panel {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}


body.page-id-44490 .page-content,
body.page-id-44490 .main-content,
body.page-id-44490 .main-content-wrap,
body.page-id-44490 #main {
    margin-top: -12px !important;
}