/* =========================================================
   DPEITECH — CONFIGURATEUR
   ========================================================= */

:root {
    --blue: #0a6dff;
    --blue-dark: #0754c9;
    --ink: #172033;
    --muted: #6b778d;
    --line: #e3e9f2;
    --surface: #f5f7fb;
    --white: #ffffff;
    --success: #22a06b;
    --danger: #ef4444;
    --orange: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
}


/* =========================================================
   HEADER
   ========================================================= */

.config-header {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: var(--white);
    border-bottom: 1px solid var(--line);

    position: sticky;
    top: 0;
    z-index: 100;
}


/* LOGO */

.config-logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;

}

.config-logo-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: linear-gradient(
        145deg,
        #1478ff,
        #0754c9
    );

    color: white;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 8px 18px rgba(10, 109, 255, 0.22);
}

.config-logo-text strong {
    display: block;

    color: var(--ink);

    font-size: 16px;
    line-height: 1;

    letter-spacing: -0.4px;
}

.config-logo-text small {
    display: block;

    margin-top: 2px;

    color: var(--blue);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.6px;
}


/* NAVIGATION */

.config-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.config-nav a {
    position: relative;

    padding: 28px 0;

    color: #4e5c73;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s;
}

.config-nav a:hover {
    color: var(--blue);
}

.config-nav a.active {
    color: var(--blue);
}

.config-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: var(--blue);

    border-radius: 3px 3px 0 0;
}


/* ACTIONS */

.config-actions {
    min-width: 235px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;
}

.config-actions button {
    height: 40px;

    padding: 0 16px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.save-button {
    background: #172033;

    border: 1px solid #172033;

    color: white;
}

.save-button:hover {
    background: #0f172a;
}

.quote-button {
    background: var(--blue);

    border: 1px solid var(--blue);

    color: white;

    box-shadow:
        0 7px 16px rgba(10, 109, 255, 0.18);
}

.quote-button:hover {
    background: #005edc;
}


/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */

.configurator {
    display: grid;

    grid-template-columns: 155px minmax(420px, 1fr) minmax(390px, 1.15fr);

    gap: 14px;

    padding: 20px 18px 14px;
}


/* =========================================================
   SIDEBAR PRODUITS
   ========================================================= */

.product-sidebar {
    min-height: 570px;

    padding: 18px 8px;

    background: transparent;
}

.sidebar-title {
    padding: 4px 12px 18px;
}

.sidebar-title h2 {
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.2px;
}


/* MENU */

.product-menu {
    display: grid;

    gap: 5px;
}

.product-option {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 12px;

    border-radius: 8px;

    color: #344158;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition: 0.2s;
}

.product-option:hover {
    background: #eaf2ff;

    color: var(--blue);
}

.product-option.active {
    background: var(--blue);

    color: white;

    box-shadow:
        0 8px 18px rgba(10, 109, 255, 0.20);
}

.product-icon {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    font-size: 16px;
}


/* =========================================================
   CARTES
   ========================================================= */

.configuration-card,
.preview-card,
.project-table-card,
.summary-card {
    background: var(--white);

    border: 1px solid var(--line);

    border-radius: 10px;

    box-shadow:
        0 5px 18px rgba(27, 50, 85, 0.035);
}


/* =========================================================
   CONFIGURATION
   ========================================================= */

.configuration-card {
    min-height: 0;
    padding: 14px 16px;
}

.configuration-header {
    margin-bottom: 12px;
}

.section-label {
    display: block;

    margin-bottom: 7px;

    color: var(--blue);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.configuration-header h1 {
    font-size: 17px;

    font-weight: 800;

    letter-spacing: -0.3px;
}


/* FORM */

.configuration-form {
    display: grid;
    gap: 8px;
}

.empty-state {
    min-height: 300px;

    display: grid;
    place-items: center;

    border: 1px dashed #d9e1ed;

    border-radius: 9px;

    color: #9aa6b8;

    font-size: 12px;
}


/* =========================================================
   APERÇU
   ========================================================= */

.preview-card {
    min-height: 285px;
    overflow: hidden;
}

.preview-header {
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    border-bottom: 1px solid var(--line);
}

.preview-header .section-label {
    margin: 0;
}

.preview-status {
    padding: 5px 10px;

    border-radius: 20px;

    background: #e9f9f0;

    color: var(--success);

    font-size: 9px;
    font-weight: 700;
}

.preview-image {
    height: 195px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #f4f6fa;

.preview-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}
    border-radius: 8px;
}

.preview-info {
    padding: 15px 18px;

    border-top: 1px solid var(--line);
}

.preview-info strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}

.preview-info span {
    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   TABLEAU DU PROJET
   ========================================================= */

.project-table-section {
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    height: 100%;
}

.project-table-card {
    overflow: hidden;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    border-bottom: 1px solid var(--line);
}

.project-header h2 {
    font-size: 15px;

    font-weight: 800;
}

.project-actions {
    display: flex;

    gap: 8px;
}

.project-actions button {
    height: 34px;

    padding: 0 12px;

    background: white;

    border: 1px solid #d9e1ec;

    border-radius: 7px;

    color: #35435a;

    font-family: inherit;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.project-actions button:hover {
    border-color: var(--blue);

    color: var(--blue);
}


/* TABLE */

.table-wrapper {
    overflow-x: auto;
}

.project-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}

.project-table th,
.project-table td {
    padding: 11px 12px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    text-align: left;

    font-size: 10px;
}

.project-table th {
    background: #f8fafc;

    color: #344158;

    font-weight: 700;
}

.project-table td {
    color: #4d5b71;
}

.project-table th:nth-child(1) {
    width: 45px;
}

.project-table th:nth-child(4) {
    width: 90px;
}

.project-table th:nth-child(5) {
    width: 120px;
}

.project-table th:nth-child(6) {
    width: 100px;
}

.empty-row td {
    height: 85px;

    text-align: center;

    color: #a0aabd;
}
/* =========================================================
   TABLEAU — OCCUPE TOUTE LA HAUTEUR DISPONIBLE
========================================================= */

.project-table-section {
    align-self: stretch;
    height: 100%;
}

.project-table-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-wrapper {
    flex: 1;
    overflow-x: auto;
}

/* FOOTER TABLE */

.project-footer {
    display: flex;

    align-items: center;

    gap: 28px;

    padding: 14px 18px;

    color: #67748a;

    font-size: 10px;
}

.project-footer strong {
    color: var(--ink);
}


/* =========================================================
   RÉCAPITULATIF
   ========================================================= */

.summary-area {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.summary-card {
    padding: 16px 18px;
    min-height: 0;
    box-sizing: border-box;
}

.summary-lines {
    display: grid;

    gap: 12px;

    margin-top: 18px;
}

.summary-lines div,
.summary-total {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.summary-lines span,
.summary-lines strong {
    font-size: 11px;
}

.summary-lines span {
    color: #637086;
}

.summary-total {
    margin-top: 18px;

    padding-top: 17px;

    border-top: 1px solid var(--line);
}

.summary-total span {
    color: var(--blue);

    font-size: 13px;
    font-weight: 800;
}

.summary-total strong {
    color: var(--blue);

    font-size: 15px;
}


/* INFO LIVRAISON */

.delivery-info {
    display: grid;

    gap: 5px;

    margin-top: 18px;

    padding: 12px;

    border: 1px solid #e2e8f1;

    border-radius: 8px;

    background: #fbfcfe;
}

.delivery-info strong {
    font-size: 10px;
}

.delivery-info span {
    color: #69768a;

    font-size: 9px;

    line-height: 1.5;
}


/* BOUTONS */

.add-project-button,
.request-quote-button {
    width: 100%;

    height: 42px;

    margin-top: 12px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.add-project-button {
    background: var(--blue);

    border: 1px solid var(--blue);

    color: white;

    box-shadow:
        0 7px 16px rgba(10, 109, 255, 0.16);
}

.add-project-button:hover {
    background: #005edc;
}

.request-quote-button {
    background: white;

    border: 1px solid var(--blue);

    color: var(--blue);
}

.request-quote-button:hover {
    background: #eef5ff;
}
.summary-cart-items {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.summary-cart-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
}

.summary-cart-item > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.summary-cart-item strong {
    font-weight: 600;
}

.summary-cart-item small {
    font-size: 12px;
    line-height: 1.4;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .configurator {
        grid-template-columns:
            200px
            minmax(380px, 1fr)
            minmax(340px, 1fr);
    }

    .config-nav {
        gap: 20px;
    }

    .config-actions {
        min-width: auto;
    }

}


@media (max-width: 1000px) {

    .config-header {
        padding: 0 18px;
    }

    .config-logo {
        min-width: auto;
    }

    .config-logo-text {
        display: none;
    }

    .config-nav {
        gap: 15px;
    }

    .config-nav a {
        font-size: 11px;
    }

    .configurator {
        grid-template-columns: 190px 1fr;
    }

    .preview-area {
        grid-column: 2;
    }

    .project-table-section {
        grid-column: 1 / 3;
    }

    .summary-area {
        grid-column: 1 / 3;
        grid-row: auto;
    }

}


@media (max-width: 700px) {

    .config-header {
        height: 65px;
    }

    .config-nav {
        display: none;
    }

    .save-button {
        display: none;
    }

    .config-actions {
        margin-left: auto;
    }

    .configurator {
        grid-template-columns: 1fr;

        padding: 12px;
    }

    .product-sidebar {
        min-height: auto;
    }

    .product-menu {
        display: flex;

        overflow-x: auto;

        padding-bottom: 5px;
    }

    .product-option {
        min-width: max-content;
    }

    .configuration-card,
    .preview-card {
        min-height: auto;
    }

    .preview-image {
        height: 300px;
    }

    .project-table-section,
    .summary-area,
    .preview-area {
        grid-column: 1;
    }

    .summary-area {
        grid-row: auto;
    }

    .project-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

}
/* =========================================================
   FORMULAIRE CONFIGURATION — REPÈRE DE CÂBLE
========================================================= */

.configuration-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Chaque bloc de configuration */

.form-section {
    padding-bottom: 8px;
    border-bottom: 1px solid #edf1f6;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Titre de section */

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.form-section-title > span {
    width: 26px;
    height: 26px;

    display: grid;
    place-items: center;

    border-radius: 7px;

    background: #eaf2ff;
    color: #0a6dff;

    font-size: 9px;
    font-weight: 800;
}

.form-section-title strong {
    display: block;

    color: #162033;

    font-size: 12px;
    font-weight: 700;
}

.form-section-title small {
    display: block;

    margin-top: 3px;

    color:  #0b46a7;

    font-size: 10px;
}

/* =========================================================
   OPTIONS
========================================================= */

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.option-card {
    min-height: 48px;

    border: 1px solid #dfe6ef;
    border-radius: 8px;

    background: #fff;

    padding: 9px 10px;

    text-align: left;

    cursor: pointer;

    transition: .2s;
}

.option-card strong {
    display: block;

    color: #26334a;

    font-size: 11px;
    font-weight: 700;
}

.option-card span {
    display: block;

    margin-top: 5px;

    color: #8995a8;

    font-size: 9px;
}

.option-card:hover {
    border-color: #9fc4ff;
}

.option-card.selected {
    border-color: #0a6dff;

    background: #f4f8ff;

    box-shadow: 0 0 0 1px #0a6dff;
}

/* =========================================================
   MATIÈRE
========================================================= */

.material-option {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 60px;

    border: 1px solid #dfe6ef;
    border-radius: 10px;

    padding: 10px 12px;

    background: #fff;

    cursor: pointer;
}

.material-option.selected {
    border-color: #0a6dff;
    background: #f7faff;
}

.material-preview {
    width: 42px;
    height: 32px;

    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #eeeeee 0%,
            #bfc3c8 48%,
            #f5f5f5 100%
        );

    border: 1px solid #c8ced6;

    position: relative;

    overflow: hidden;
}


.material-option strong {
    display: block;

    color: #26334a;

    font-size: 11px;
}

.material-option small {
    display: block;

    margin-top: 4px;

    color: #5f6b7a;

    font-size: 10px;
}

.material-option > b {
    margin-left: auto;

    color: #0a6dff;

    font-size: 15px;
}

/* =========================================================
   CHAMPS
========================================================= */

.field-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;
}

.field {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.field > span {
    color: #536078;

    font-size: 10px;
    font-weight: 700;
}

.field input {
    width: 100%;

    height: 42px;

    border: 1px solid #d8e0eb;

    border-radius: 8px;

    background: #fff;

    padding: 0 11px;

    color: #162033;

    font-family: inherit;

    font-size: 11px;

    outline: none;

    transition: .2s;
}

.field input:focus {
    border-color: #0a6dff;

    box-shadow:
        0 0 0 3px rgba(10,109,255,.08);
}

.input-unit {
    position: relative;
}

.input-unit input {
    padding-right: 38px;
}

.input-unit b {
    position: absolute;

    right: 11px;
    top: 50%;

    transform: translateY(-50%);

    color: #8a96a9;

    font-size: 9px;
    font-weight: 600;
}

/* Champ texte pleine largeur */

.full-field {
    width: 100%;
}

.full-field input {
    height: 40px;
}

/* =========================================================
   QUANTITÉ
========================================================= */

.quantity-control {
    display: flex;

    align-items: center;

    width: 150px;

    height: 38px;

    border: 1px solid #d8e0eb;

    border-radius: 8px;

    overflow: hidden;

    background: #fff;
}

.quantity-control button {
    width: 40px;
    height: 100%;

    border: 0;

    background: #f8fafc;

    color: #506078;

    font-size: 17px;

    cursor: pointer;

    transition: .2s;
}

.quantity-control button:hover {
    background: #edf4ff;

    color: #0a6dff;
}

.quantity-control input {
    width: 70px;
    height: 100%;

    border: 0;

    border-left: 1px solid #e5eaf1;
    border-right: 1px solid #e5eaf1;

    text-align: center;

    color: #162033;

    font-family: inherit;

    font-size: 11px;

    outline: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .option-grid {
        grid-template-columns: 1fr;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

}
.add-configuration-button {
    margin-left: auto;
    display: block;
    margin-top: -42px;
    margin-bottom: 10px;

    height: 44px;
    padding: 0 20px;

    border: none;
    border-radius: 8px;

    background: #0d6efd;
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.add-configuration-button:hover {
    background: #0056d6;
}

.add-configuration-button:active {
    transform: translateY(1px);
}

.thermo-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}

.thermo-options .option-card {
    flex: 1 1 0;
    min-width: 0;
    width: 0;

    height: 54px;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 6px;

    text-align: center;
}

.thermo-options .option-card strong {
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
}
/* =========================================================
   COULEURS — GAINE THERMO
========================================================= */

.thermo-colors .option-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* BLANC */

.thermo-colors
.option-card[data-thermo-color="blanc"].selected {

    background: #ffffff;
    color: #172033;

    border: 2px solid #1677ff;

    box-shadow:
        0 0 0 2px rgba(22, 119, 255, 0.15),
        0 4px 12px rgba(22, 119, 255, 0.12);
}


/* JAUNE */

.thermo-colors
.option-card[data-thermo-color="jaune"].selected {

    background: #ffd83d;
    color: #172033;

    border: 2px solid #d6a900;

    box-shadow:
        0 0 0 2px rgba(214, 169, 0, 0.18),
        0 4px 12px rgba(214, 169, 0, 0.15);
}


/* INDICATEUR BLANC */

.thermo-colors
.option-card[data-thermo-color="blanc"].selected::after {

    content: "✓";

    position: absolute;
    top: 8px;
    right: 10px;

    font-size: 14px;
    font-weight: 700;

    color: #1677ff;
}


/* INDICATEUR JAUNE */

.thermo-colors
.option-card[data-thermo-color="jaune"].selected::after {

    content: "✓";

    position: absolute;
    top: 8px;
    right: 10px;

    font-size: 14px;
    font-weight: 700;

    color: #172033;
}
/* =========================================================
   COULEURS — REPÈRE DE CÂBLE
========================================================= */

.cable-colors .option-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* BLANC / NOIR */

.cable-colors
.option-card[data-cable-color="blanc-noir"].selected {

    background: #ffffff;
    color: #172033;

    border: 2px solid #1677ff;

    box-shadow:
        0 0 0 2px rgba(22, 119, 255, 0.15),
        0 4px 12px rgba(22, 119, 255, 0.12);
}


/* ROUGE / BLANC */

.cable-colors
.option-card[data-cable-color="rouge-blanc"].selected {

    background: #d71920;
    color: #ffffff !important;

    border: 2px solid #b51218;

    box-shadow:
        0 0 0 2px rgba(215, 25, 32, 0.18),
        0 4px 12px rgba(215, 25, 32, 0.15);
}


/* VERT / BLANC */

.cable-colors
.option-card[data-cable-color="vert-blanc"].selected {

    background: #00843d;
    color: #ffffff !important;
    border: 2px solid #006b31;

    box-shadow:
        0 0 0 2px rgba(0, 132, 61, 0.18),
        0 4px 12px rgba(0, 132, 61, 0.15);
}


/* BLEU / BLANC */

.cable-colors
.option-card[data-cable-color="bleu-blanc"].selected {

    background: #0057b8;
    color: #ffffff !important;

    border: 2px solid #00438f;

    box-shadow:
        0 0 0 2px rgba(0, 87, 184, 0.18),
        0 4px 12px rgba(0, 87, 184, 0.15);
}


/* JAUNE / NOIR */

.cable-colors
.option-card[data-cable-color="jaune-noir"].selected {

    background: #ffd500;
    color: #172033;

    border: 2px solid #d6a900;

    box-shadow:
        0 0 0 2px rgba(214, 169, 0, 0.18),
        0 4px 12px rgba(214, 169, 0, 0.15);
}
/* =========================================================
   TEXTE DES COULEURS CÂBLE
========================================================= */

.cable-colors
.option-card[data-cable-color="rouge-blanc"].selected,
.cable-colors
.option-card[data-cable-color="rouge-blanc"].selected *,

.cable-colors
.option-card[data-cable-color="vert-blanc"].selected,
.cable-colors
.option-card[data-cable-color="vert-blanc"].selected *,

.cable-colors
.option-card[data-cable-color="bleu-blanc"].selected,
.cable-colors
.option-card[data-cable-color="bleu-blanc"].selected * {

    color: #ffffff !important;
}

/* =========================================================
   INDICATEUR ✓
========================================================= */

.cable-colors
.option-card[data-cable-color="blanc-noir"].selected::after {

    content: "✓";

    position: absolute;
    top: 8px;
    right: 10px;

    font-size: 14px;
    font-weight: 700;

    color: #1677ff;
}


.cable-colors
.option-card[data-cable-color="rouge-blanc"].selected::after,
.cable-colors
.option-card[data-cable-color="vert-blanc"].selected::after,
.cable-colors
.option-card[data-cable-color="bleu-blanc"].selected::after {

    content: "✓";

    position: absolute;
    top: 8px;
    right: 10px;

    font-size: 14px;
    font-weight: 700;

    color: #ffffff;
}


.cable-colors
.option-card[data-cable-color="jaune-noir"].selected::after {

    content: "✓";

    position: absolute;
    top: 8px;
    right: 10px;

    font-size: 14px;
    font-weight: 700;

    color: #172033;
}
/* =========================================================
   GAINE THERMO — SECTION FILERIE
========================================================= */

#thermoSection {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    background: #ffffff;
    color: #172033;

    border: 1px solid #cfd8e6;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    box-sizing: border-box;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#thermoSection:hover {
    border-color: #aebbd0;
}


#thermoSection:focus {
    outline: none;

    border-color: #1677ff;

    box-shadow:
        0 0 0 3px rgba(22, 119, 255, 0.12);
}



/* Espacement entre les champs */

.cable-form .field-group {
    margin-bottom: 10px;
}


/* Espace avant l'étape suivante */

.cable-form .cable-recommendation {
    margin-bottom: 12px;
}

/* =========================================================
   RECOMMANDATION
========================================================= */

.thermo-recommendation {
    margin-top: 10px;

    padding: 12px 14px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    background: #f7f9fc;

    border: 1px solid #e1e7f0;
    border-radius: 8px;

    box-sizing: border-box;
}


.thermo-recommendation strong {
    display: block;

    color: #172033;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}


.thermo-recommendation span {
    display: block;

    color: #607089;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   NOTE H07V-K
========================================================= */

.thermo-reference-note {
    display: block;

    margin-top: 8px;

    color: #7b8799;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}
/* Label du champ section */

.form-section #thermoSection {
    margin-top: 5px;
}

.form-section label[for="thermoSection"] span,
.form-section .full-field > span {
    display: block;

    margin-bottom: 8px;

    color: #26344a;

    font-size: 12px;
    font-weight: 600;
}
/* =========================================================
   GAINE THERMO — TYPOGRAPHIE FORMULAIRE
========================================================= */

/* Titres des étapes */

.configuration-form .form-section-title strong {
    font-size: 14px;
    font-weight: 700;
    color: #172033;
}

.configuration-form .form-section-title small {
    font-size: 12px;
    line-height: 1.4;
    color: #5d6474;
}


/* Numéros des étapes */

.configuration-form .form-section-title > span {
    font-size: 12px;
    font-weight: 700;
}


/* Labels des champs */

.configuration-form .field > span {
    font-size: 12px;
    font-weight: 600;
    color: #26344a;
}


/* Champs texte */

.configuration-form input[type="text"],
.configuration-form input[type="number"],
.configuration-form select {
    font-size: 16px;
}


/* Texte des cartes de sélection */

.thermo-options .option-card strong,
.thermo-colors .option-card strong {
    font-size: 14px;
    font-weight: 600;
}


/* Sous-informations éventuelles des cartes */

.thermo-options .option-card span,
.thermo-colors .option-card span {
    font-size: 12px;
}


/* Note H07V-K */

.thermo-reference-note {
    font-size: 11px;
}
/* =========================================================
   APERÇU — GAINE THERMO
========================================================= */

.thermo-preview {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 240px;

    padding: 30px;
    box-sizing: border-box;
}


/* Gaine */

.thermo-preview-tube {
    position: relative;

    width: 85%;
    max-width: 360px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #cfd5df;
    border-radius: 4px;

    box-shadow:
        0 8px 20px rgba(23, 32, 51, 0.08);

    transition:
        background-color 0.2s ease,
        width 0.2s ease,
        height 0.2s ease;
}


/* Texte */

.thermo-preview-text {
    color: #111827;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 0.4px;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 90%;
}
/* =========================================================
   RÉCAPITULATIF — POSITIONNEMENT
========================================================= */

.summary-area {
    align-self: stretch;
}

.summary-card {
    margin-top: 0;
}
/* =========================================================
   RÉCAPITULATIF — FINITION
========================================================= */

.summary-card {
    padding: 22px 24px;
}

.summary-lines {
    margin-top: 16px;
}

.summary-lines > div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 6px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 10px;
    padding-top: 16px;

    border-top: 1px solid #e5e7eb;
}

.summary-total strong {
    font-size: 20px;
    font-weight: 800;
}

.delivery-info {
    margin-top: 16px;
    padding: 12px 14px;

    border-radius: 8px;
}

.add-project-button,
.request-quote-button {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
}

/* =========================================================
   LIGNE 2 — TABLEAU + RÉCAPITULATIF
========================================================= */

.summary-area {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    height: 100%;
}

.project-table-card,
.summary-card {
    height: 100%;
    box-sizing: border-box;
}
/* =========================================================
   COLONNE DROITE — APERÇU + TABLEAU
========================================================= */

.right-column {
    grid-column: 3;
    grid-row: 1 / 3;

    display: grid;
    grid-template-rows: auto 1fr;

    gap: 14px;

    min-width: 0;
    min-height: 0;
}


/* APERÇU */

.right-column .preview-area {
    grid-column: auto !important;
    grid-row: auto !important;
}


/* TABLEAU */

.right-column .project-table-section {
    grid-column: auto !important;
    grid-row: auto !important;

    min-height: 0;
    height: 100%;
}
.project-table-text {
    max-width: 180px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
}

/* Carte du tableau */

.right-column .project-table-card {
    height: 100%;

    display: flex;
    flex-direction: column;
}


/* Zone du tableau */

.right-column .table-wrapper {
    flex: 1;
    min-height: 0;
    overflow-x: auto;
}
/* =========================================================
   CONFIGURATION — COMPACTAGE
========================================================= */

.configuration-card {
    padding: 12px 14px;
}

.configuration-header {
    margin-bottom: 8px;
}

.configuration-form {
    gap: 4px;
}

.form-section-title {
    margin-bottom: 6px;
}

.option-card {
    min-height: 44px;
    padding: 8px 11px;
}

input,
select,
textarea {
    min-height: 44px;
}

.form-section {
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.summary-title {
    display: block;
    margin-bottom: 0;

    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.summary-subtitle {
    display: block;
    margin-top: 5px;
    margin-bottom: 16px;

    color: #8a96a9;
    font-size: 10px;
    font-weight: 400;
}
/* =========================================================
   REPÈRE DE CÂBLE — CHAMPS CONDUCTEURS / SECTION
========================================================= */

.full-field {
    margin-bottom: 10px;
}

.full-field > span {
    display: block;
    margin-bottom: 6px;
}

.full-field select {
    width: 100%;
    height: 44px;
    min-height: 44px;

    padding: 0 12px;

    font-size: 14px;
    line-height: 1.2;

    border: 1px solid #cfd6e2;
    border-radius: 6px;

    box-sizing: border-box;

    /* RECOMMANDATION */
}
.cable-recommendation {
    margin-top: 6px;
    margin-bottom: 12px;
}

.cable-recommendation strong {
    display: block;
    margin-bottom: 3px;
}

.cable-recommendation span {
    display: block;
}
.gravoply-preview {
    width: 64px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.gravoply-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* =========================================================
   PLAQUE — ÉPAISSEUR
   ========================================================= */

#plaqueThickness {
    width: 100%;
    height: 42px;

    padding: 0 38px 0 12px;

    border: 1px solid #cfd8e6;
    border-radius: 8px;

    background: #ffffff;

    color: #162033;

    font-size: 14px;
    font-weight: 500;

    outline: none;

    cursor: pointer;
}

#plaqueThickness:focus {
    border-color: #0b6cff;

    box-shadow:
        0 0 0 3px
        rgba(11, 108, 255, 0.10);
}
.plaque-fixation-options .option-card strong {
    font-size: 12px;
}

.plaque-fixation-options .option-card span {
    font-size: 10px;
    color: #667085;
}
/* =========================================================
   PLAQUE — COULEURS
   ========================================================= */

.plaque-color-option {
    position: relative;

    display: flex;
    align-items: center;

    gap: 10px;
}

.plaque-color-swatch {
    width: 34px;
    height: 24px;

    flex: 0 0 34px;

    border-radius: 5px;

    border: 1px solid #cbd5e1;

    background:
        linear-gradient(
            to bottom,
            var(--surface) 0%,
            var(--surface) 72%,
            var(--engraving) 72%,
            var(--engraving) 100%
        );
}

.plaque-color-option strong {
    font-size: 12px;
    font-weight: 600;
}

.plaque-color-check {
    margin-left: auto;

    color: #0b6cff;

    font-size: 16px;
    font-weight: 800;

    opacity: 0;
}

.plaque-color-option.selected
.plaque-color-check {
    opacity: 1;
}
/* =====================================================
   IMPRESSION 3D — CHAMPS
===================================================== */

/* Commentaires / textarea */

.configuration-form textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;

    padding: 14px 16px;

    border: 1px solid #cfd7e3;
    border-radius: 8px;

    background: #ffffff;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;

    color: #172033;

    box-sizing: border-box;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.configuration-form textarea:focus {
    border-color: #1677ff;

    box-shadow:
        0 0 0 3px rgba(22, 119, 255, 0.12);
}


/* =====================================================
   CASE À COCHER
===================================================== */

.checkbox-field {
    display: flex;
    align-items: center;

    margin-top: 14px;

    cursor: pointer;
}

.checkbox-field > span {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    color: #4b5563;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: #1677ff;

    cursor: pointer;

    flex: 0 0 auto;
}


/* =====================================================
   CHAMPS FICHIERS
===================================================== */

.configuration-form input[type="file"] {
    width: 100%;

    padding: 10px;

    border: 1px solid #cfd7e3;
    border-radius: 8px;

    background: #ffffff;

    font-family: inherit;
    font-size: 13px;

    box-sizing: border-box;

    cursor: pointer;
}

.configuration-form input[type="file"]::file-selector-button {
    margin-right: 12px;

    padding: 8px 12px;

    border: 1px solid #cfd7e3;
    border-radius: 6px;

    background: #f5f7fa;

    color: #172033;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.configuration-form input[type="file"]::file-selector-button:hover {
    background: #eef2f7;
    border-color: #b8c2d1;
}


/* =====================================================
   AIDE SOUS LES FICHIERS
===================================================== */

.configuration-form .field-help {
    display: block;

    margin-top: 7px;

    font-size: 12px;
    line-height: 1.4;

    color: #7b8798;
}
/* =====================================================
   ACTIONS HEADER
===================================================== */

.config-actions {
    min-width: 235px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;
}

.config-actions button {
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-radius: 9px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    line-height: 1;
    white-space: nowrap;

    box-sizing: border-box;
    flex: 0 0 auto;
}

/* CGV */
.config-actions .save-button {
    width: 72px;
}

/* Demander un devis */
.config-actions .quote-button:not(.view-cart-button) {
    width: 145px;
}

/* Voir votre panier */
.config-actions .view-cart-button {
    width: 145px;
}
/* =====================================================
   ACTIONS — TABLEAU DES ÉLÉMENTS
===================================================== */

.table-comment,
.table-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    margin: 2px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.15s ease;
}

.table-comment {
    color: #0a6dff;
    background: #ffffff;
    border: 1px solid #0a6dff;
}

.table-comment:hover {
    background: #0a6dff;
    color: #ffffff;
}

.table-delete {
    color: #dc2626;
    background: #ffffff;
    border: 1px solid #dc2626;
}

.table-delete:hover {
    background: #dc2626;
    color: #ffffff;
}
/* =====================================================
   BOUTONS — DEMANDE DE DEVIS
===================================================== */

.request-quote-button {
    width: 100%;
    height: 44px;

    margin-top: 10px;

    border: none;
    border-radius: 8px;

    background: #0d6efd;
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.request-quote-button:hover {
    background: #0056d6;
}

.request-quote-button:active {
    transform: translateY(1px);
}

.request-quote-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
/* =====================================================
   ALERTES DPEITECH
===================================================== */

#dpeitechAlert {
    position: fixed;

    top: 26px;
    left: 50%;

    width: min(700px, calc(100% - 40px));
    min-height: 70px;

    padding: 22px 28px;

    background: #ffffff;

    color: #b42318;

    border: 2px solid #f04438;
    border-left: 8px solid #d92d20;

    border-radius: 12px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.18);

    font-size: 18px;
    font-weight: 600;

    line-height: 1.55;

    text-align: center;

    z-index: 99999;

    opacity: 0;

    transform:
        translate(-50%, -20px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

#dpeitechAlert.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}
/* =====================================================
   SÉLECTEUR DE LANGUE — CONFIGURATEUR
===================================================== */

.language-selector {
    position: relative;

    display: flex;
    align-items: center;
}

.language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 125px;
    height: 40px;

    padding: 0 14px;

    border: 1px solid #d8e0eb;
    border-radius: 8px;

    background: #ffffff;
    color: #162033;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.language-button:hover {
    background: #f8fafc;
    border-color: #b8c4d6;
}

.language-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 170px;

    padding: 6px;

    background: #ffffff;

    border: 1px solid #d8e0eb;
    border-radius: 10px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.12);

    z-index: 10000;
}

.language-menu[hidden] {
    display: none;
}

.language-menu button {
    display: block;

    width: 100%;

    padding: 10px 12px;

    border: none;
    border-radius: 7px;

    background: transparent;
    color: #162033;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.15s ease;
}

.language-menu button:hover {
    background: #f1f5f9;
}
#languageButton {
    height: 32px;
    padding: 0 9px;
    font-size: 11px;
    border-radius: 7px;
    line-height: 1;
}