
/*
 * QUANTUM WS 2.0
 * P1 — HYBRID PREMIUM V5.6
 * CSS consolidé
 */

/* =========================================
   1. CONTENEUR
========================================= */

.qws2-detail.qws2-detail {
    background: #F7F8F9;
    border: 0;
    border-radius: 16px;
    padding: clamp(18px, 2vw, 28px);
    box-shadow: none;
}

/* =========================================
   2. DISPOSITION
========================================= */

.qws2-detail .qws2-p1-layout {
    --offer-accent: #EE7203;

    display: grid;
    grid-template-columns:
        minmax(270px, .9fr)
        minmax(0, 1.7fr);

    gap: 20px;
    align-items: start;
    margin: 14px 0 0;
}

.qws2-detail
.qws2-p1-layout[data-service="e85"] {
    --offer-accent: #10BF2C;
}

.qws2-detail .qws2-p1-layout[data-service="stage2"] {
    --offer-accent: #D83232;
}

.qws2-detail
.qws2-p1-layout[data-service="e85plus"] {
    --offer-accent: #008A50;
}

.qws2-detail .qws2-p1-layout[data-service="eflexfuel"] {
    --offer-accent: #1675B9;
}

.qws2-detail
.qws2-p1-layout[data-service="gearbox"] {
    --offer-accent: #667483;
}

.qws2-detail .qws2-p1 {
    min-width: 0;
    margin: 0;
}

/* =========================================
   3. TITRES
========================================= */

.qws2-detail .qws2-p1-title {
    margin: 0 0 18px;
    padding: 0;

    color: #191C21;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.35px;
}

.qws2-detail .qws2-p1-kicker {
    display: none;
}

.qws2-detail .qws2-p1-group {
    margin: 7px 0 3px;
    padding-top: 16px;

    border-top: 1px solid #E4E7EA;

    color: #64707E;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
}

.qws2-detail
.qws2-p1-choices
> .qws2-p1-group:first-child {
    margin-top: 0;
    padding-top: 0;
    border: 0;
}

/* =========================================
   4. PRESTATIONS
========================================= */

.qws2-detail .qws2-p1-choices {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.qws2-detail .qws2-p1-choice {
    --accent: #EE7203;

    appearance: none;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;
    column-gap: 10px;
    row-gap: 5px;

    width: 100%;
    min-width: 0;

    padding: 14px 16px;

    border: 1px solid #E3E6E9;
    border-left: 3px solid var(--accent);
    border-radius: 9px;

    background: #FFFFFF;
    color: #191C21;

    font-family: inherit;
    text-align: left;
    cursor: pointer;

    transition:
        background .16s ease,
        border-color .16s ease;
}

/* Couleurs des prestations */

.qws2-detail
.qws2-p1-choice[data-code="stage1"] {
    --accent: #EE7203;
}

.qws2-detail .qws2-p1-choice[data-code="stage2"] {
    --accent: #D83232;
}

.qws2-detail
.qws2-p1-choice[data-code="e85"] {
    --accent: #10BF2C;
}

.qws2-detail
.qws2-p1-choice[data-code="e85plus"] {
    --accent: #008A50;
}

.qws2-detail .qws2-p1-choice[data-code="eflexfuel"] {
    --accent: #1675B9;
}

.qws2-detail
.qws2-p1-choice[data-code="gearbox"] {
    --accent: #667483;
}

/* Survol */

.qws2-detail .qws2-p1-choice:hover {
    border-color: var(--accent);
}

/* Sélection */

.qws2-detail .qws2-p1-choice.is-selected {
    background: #191C21;
    color: #FFFFFF;
    border-color: var(--accent);
}

/* Accessibilité */

.qws2-detail .qws2-p1-choice:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* =========================================
   5. NOMS ET TARIFS
========================================= */

.qws2-detail .qws2-p1-choice-label {
    min-width: 0;

    color: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

/* Symbole + */

.qws2-detail .qws2-p1-plus {
    display: inline-block;

    margin-left: 2px;

    color: #008A50;
    font-size: 26px;
    font-weight: 900;
    line-height: .65;
    vertical-align: -4px;
}

.qws2-detail
.qws2-p1-choice.is-selected
.qws2-p1-plus {
    color: #4DDAA0;
}

/* Tarifs */

.qws2-detail .qws2-p1-choice-price {
    color: #191C21;

    font-size: 19px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.2px;

    white-space: nowrap;
}

.qws2-detail
.qws2-p1-choice.is-selected
.qws2-p1-choice-price {
    color: #FFFFFF;
}

/* Pièces supplémentaires */

.qws2-detail .qws2-p1-choice-extra {
    grid-column: 1 / -1;

    margin-top: 2px;

    color: #008A50;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.qws2-detail
.qws2-p1-choice.is-selected
.qws2-p1-choice-extra {
    color: #7DE1B3;
}

/* =========================================
   6. PANNEAU DE RÉSULTATS
========================================= */

.qws2-detail .qws2-p1-panel {
    min-width: 0;
    padding: 19px;

    background: #FFFFFF;
    border: 1px solid #E7EAED;
    border-radius: 13px;

    box-shadow: none;
}

.qws2-detail .qws2-p1-panel-kicker {
    margin: 0 0 15px;

    color: #64707E;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* =========================================
   7. CARTES DE PERFORMANCES
========================================= */

.qws2-detail
.qws2-p1-panel
.qws2-detail-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.qws2-detail
.qws2-p1-panel
.qws2-detail-grid[hidden] {
    display: none !important;
}

/* Règles communes */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;

    min-height: 190px;
    padding: 17px;

    border-radius: 10px;
}

/*
 * IMPORTANT :
 * Suppression des anciens pseudo-éléments
 * responsables de la superposition des bandes.
 *
 * On conserve les puces devant les titres,
 * qui sont des h3::before distincts.
 */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card::before {
    content: none !important;
    display: none !important;
}

/*
 * BANDE UNIQUE : 8 PX
 *
 * Les quatre cartes utilisent désormais
 * exactement la même épaisseur.
 */

/* D'origine — gris */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card:not(.stage1) {
    background: #FFFFFF;

    border: 1px solid #E5E8EC !important;
    border-top: 8px solid #C9D0D8 !important;

    box-shadow: none;
}

/* Stage 1 — orange */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card.stage1 {
    background: #20242B;

    border: 1px solid #EE7203 !important;
    border-top: 8px solid #EE7203 !important;

    box-shadow: none;
}

/* E85 — vert clair */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card.stage1.qws2-p1-e85 {
    border-color: #10BF2C !important;
    border-top: 8px solid #10BF2C !important;
}

/* E85 + — vert foncé */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card.stage1.qws2-p1-e85plus {
    border-color: #008A50 !important;
    border-top: 8px solid #008A50 !important;
}

/* Titres des cartes */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
}

/* Chiffres */

.qws2-detail
.qws2-p1-panel
.qws2-detail-number {
    font-size: clamp(23px, 2.35vw, 34px);
    letter-spacing: -.7px;
}

.qws2-detail
.qws2-p1-panel
.qws2-detail-number::before {
    margin-bottom: 8px;
    font-size: 9px;
}

/* Gains */

.qws2-detail
.qws2-p1-panel
.qws2-detail-gain {
    font-size: 12px;
}

/* =========================================
   8. PUCES ET GAINS E85
========================================= */

/* E85 — puce verte claire */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card.stage1.qws2-p1-e85 h3::before {
    background-color: #10BF2C;
    border-color: #10BF2C;
    color: #10BF2C;

    box-shadow:
        0 0 0 4px rgba(16, 191, 44, .15);
}

.qws2-detail
.qws2-p1-panel
.qws2-detail-card.stage1.qws2-p1-e85
.qws2-detail-gain {
    color: #55E58E;
    border-color: rgba(16, 191, 44, .36);
    background: rgba(16, 191, 44, .10);
}

/* E85 + — puce verte foncée */

.qws2-detail
.qws2-p1-panel
.qws2-detail-card.stage1.qws2-p1-e85plus h3::before {
    background-color: #008A50;
    border-color: #008A50;
    color: #008A50;

    box-shadow:
        0 0 0 4px rgba(0, 138, 80, .20);
}

.qws2-detail
.qws2-p1-panel
.qws2-detail-card.stage1.qws2-p1-e85plus
.qws2-detail-gain {
    color: #52D9A0;
    border-color: rgba(0, 138, 80, .42);
    background: rgba(0, 138, 80, .14);
}

/* =========================================
   9. INFORMATIONS TECHNIQUES
========================================= */

.qws2-detail .qws2-p1-summary {
    margin: 15px 0 0;
    padding: 12px 15px;

    background: #F7F8F9;
    border: 0;
    border-left: 2px solid var(--offer-accent);

    border-radius: 0 7px 7px 0;
}

.qws2-detail .qws2-p1-summary-label {
    color: #66717E;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
}

.qws2-detail .qws2-p1-note,
.qws2-detail .qws2-p1-parts {
    margin: 5px 0 0;

    color: #3B4652;
    font-size: 12px;
    line-height: 1.6;
}

.qws2-detail .qws2-p1-parts {
    color: #008A50;
    font-weight: 750;
}

/* Éléments masqués */

.qws2-detail .qws2-p1-summary[hidden],
.qws2-detail .qws2-p1-note[hidden],
.qws2-detail .qws2-p1-parts[hidden],
.qws2-detail .qws2-p1-more[hidden],
.qws2-detail .qws2-p1-gearbox-panel[hidden] {
    display: none !important;
}

/* =========================================
   10. INFORMATIONS COMMERCIALES
========================================= */

.qws2-detail .qws2-p1-commercial {
    margin-top: 19px;
    padding: 7px 0 3px 17px;

    background: transparent;

    border: 0;
    border-left: 2px solid var(--offer-accent);

    border-radius: 0;
    box-shadow: none;
}

/* Titre */

.qws2-detail .qws2-p1-commercial-title {
    margin: 0 0 8px;

    color: #191C21;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.15px;
}

/* Description */

.qws2-detail .qws2-p1-commercial-text {
    margin: 0 0 10px;

    color: #4D5865;
    font-size: 16px;
    line-height: 1.7;
}

/* Lien E85 */

.qws2-detail .qws2-p1-more {
    display: inline-block;

    margin: 0 0 10px;

    color: #007E48;
    font-size: 12px;
    font-weight: 750;

    text-decoration: none;

    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;

    transition: color .15s ease;
}

.qws2-detail .qws2-p1-more::after {
    content: " ↗";
    font-weight: 800;
}

.qws2-detail .qws2-p1-more:hover {
    color: #005F37;
}

/* Mention réglementaire */

.qws2-detail .qws2-p1-road-warning {
    margin: 10px 0 0;
    color: #536170;
    font-size: 12px;
    line-height: 1.6;
}

.qws2-detail .qws2-p1-commercial-legal {
    margin: 8px 0 0;
    padding-top: 10px;

    border-top: 1px solid #EDF0F2;

    color: #77818D;
    font-size: 11px;
    line-height: 1.6;
}

/* Masquer l'ancien avertissement répété */

.qws2-detail
> .qws2-p1-layout
~ .qws2-catalog-disclaimer {
    display: none;
}

/* =========================================
   11. STAGE BOÎTE DE VITESSES
========================================= */

.qws2-detail .qws2-p1-gearbox-panel {
    padding: 17px;

    border: 1px solid #E5E8EC;
    border-radius: 10px;

    background: #FAFAFB;
}

.qws2-detail .qws2-p1-gearbox-panel h3 {
    margin: 0 0 12px;

    color: #191C21;
    font-size: 17px;
    font-weight: 800;
}

.qws2-detail .qws2-p1-gearbox-panel p {
    margin: 0 0 10px;

    color: #4D5865;
    font-size: 13px;
    line-height: 1.65;
}

.qws2-detail
.qws2-p1-gearbox-panel
.qws2-p1-gearbox-caution {
    margin-bottom: 0;
    font-weight: 700;
}

/* =========================================
   12. TABLETTES
========================================= */

@media (max-width: 1000px) {

    .qws2-detail .qws2-p1-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .qws2-detail
    .qws2-p1-panel
    .qws2-detail-number {
        font-size: clamp(24px, 4vw, 35px);
    }
}

/* =========================================
   13. SMARTPHONES
========================================= */

@media (max-width: 700px) {

    .qws2-detail.qws2-detail {
        padding: 16px;
        border-radius: 12px;
    }

    .qws2-detail .qws2-p1-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .qws2-detail .qws2-p1-choice {
        padding: 13px;
    }

    .qws2-detail .qws2-p1-choice-label {
        font-size: 14px;
    }

    .qws2-detail .qws2-p1-choice-price {
        font-size: 17px;
        letter-spacing: -.2px;
    }

    .qws2-detail .qws2-p1-plus {
        font-size: 26px;
    }

    .qws2-detail .qws2-p1-panel {
        padding: 14px;
    }

    .qws2-detail
    .qws2-p1-panel
    .qws2-detail-grid {
        grid-template-columns: 1fr;
    }

    .qws2-detail
    .qws2-p1-panel
    .qws2-detail-card {
        min-height: 0;
        padding: 18px;
    }

    .qws2-detail
    .qws2-p1-panel
    .qws2-detail-number {
        font-size: 28px;
    }

    .qws2-detail .qws2-p1-commercial {
        padding-left: 13px;
    }

    .qws2-detail .qws2-p1-commercial-title {
        font-size: 15px;
    }
}


/* =========================================
   QUANTUM P1 — FICHE BOÎTE V2
   Présentation commerciale premium
========================================= */

/* Supprimer le deuxième texte commercial */
.qws2-detail
.qws2-p1-layout.qws2-gb-is-active
.qws2-p1-commercial {
    display: none !important;
}

/* Supprimer l'ancien encadré gris */
.qws2-detail
.qws2-p1-layout.qws2-gb-is-active
.qws2-p1-gearbox-panel {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Contenu */
.qws2-detail .qws2-gb-v2 {
    color: #191C21;
}

/* Titre */
.qws2-detail .qws2-gb-v2 .qws2-gb-title {
    margin: 0 0 9px;
    font-size: clamp(18px, 1.65vw, 22px);
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.25px;
}

/* Introduction */
.qws2-detail .qws2-gb-v2 .qws2-gb-lead {
    margin: 0 0 20px;
    color: #4D5865;
    font-size: 16px;
    line-height: 1.7;
}

/* Trois bénéfices */
.qws2-detail .qws2-gb-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 18px;
    padding: 16px 0;
    border-top: 1px solid #E7EAED;
    border-bottom: 1px solid #E7EAED;
}

.qws2-detail .qws2-gb-benefit {
    min-width: 0;
    padding: 0 13px;
    border-left: 1px solid #E7EAED;
}

.qws2-detail .qws2-gb-benefit:first-child {
    padding-left: 0;
    border-left: 0;
}

.qws2-detail .qws2-gb-benefit strong {
    display: block;
    margin-bottom: 7px;
    color: #20242B;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.qws2-detail .qws2-gb-benefit p {
    margin: 0;
    color: #64707E;
    font-size: 16px;
    line-height: 1.65;
}

/* Argument complémentaire */
.qws2-detail .qws2-gb-v2 .qws2-gb-plus {
    margin: 0 0 15px;
    padding: 2px 0 2px 13px;
    border-left: 2px solid #667483;
    color: #374151;
    font-size: 16px;
    line-height: 1.65;
}

/* Mention technique */
.qws2-detail .qws2-gb-v2 .qws2-gb-note {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #EDF0F2;
    color: #77818D;
    font-size: 11px;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 650px) {
    .qws2-detail .qws2-gb-benefits {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .qws2-detail .qws2-gb-benefit,
    .qws2-detail .qws2-gb-benefit:first-child {
        padding: 0 0 0 12px;
        border-left: 2px solid #D9DEE4;
    }
}

/* Quantum WS — Promotions : prix barré et tarif remisé, y compris sur mobile. */
.qws2-detail .qws2-p1-choice-price.qws2-p1-has-promo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: normal;
    text-align: right;
}
.qws2-detail .qws2-p1-choice-price-old {
    font-size: 13px;
    font-weight: 400;
    opacity: .72;
    text-decoration: line-through;
    white-space: nowrap;
}
.qws2-detail .qws2-p1-choice-price-sale {
    color: #EE7203;
    font-weight: 800;
    font-size: 19px;
    white-space: nowrap;
}
.qws2-detail .qws2-p1-choice.is-selected .qws2-p1-choice-price-sale { color: #fff; }
.qws2-detail .qws2-p1-choice-promotion {
    grid-column: 1 / -1;
    color: #B94D00;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.qws2-detail .qws2-p1-choice.is-selected .qws2-p1-choice-promotion { color: #FFBD85; }
@media (max-width: 480px) {
    .qws2-detail .qws2-p1-choice-price-sale { font-size: 17px; }
    .qws2-detail .qws2-p1-choice-price-old { font-size: 12px; }
}
