.pconf {
    --p-bg: #f3f4f6;
    --p-card: #ffffff;
    --p-text: #111827;
    --p-muted: #4b5563;
    --p-line: #d1d5db;
    --p-accent: #0b63b6;
    --p-accent-soft: #e8f2fd;
    --p-price: #0f172a;
    max-width: 1200px;
    margin: 16px auto;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--p-text);
}

/* Nettoie les métadonnées d'article affichées juste après le shortcode. */
.entry-content .pconf + p:empty,
.entry-content .pconf ~ .wp-block-post-date {
    display: none !important;
}

.pconf__form {
    display: grid;
    gap: 12px;
}

.pconf__header {
    border: 1px solid var(--p-line);
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(140deg, #fbfcfd, #edf2f7);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.pconf__header h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.pconf__header p {
    margin: 0;
    color: var(--p-muted);
}

.pconf__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    align-items: start;
}

.pconf__steps {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.pconf__steps span {
    border: 1px solid var(--p-line);
    border-radius: 999px;
    padding: 7px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--p-muted);
    background: #fff;
}

.pconf__steps span.is-active {
    border-color: var(--p-accent);
    color: #08437d;
    background: var(--p-accent-soft);
}

.pconf__steps span.is-done {
    border-color: #9ac6ef;
    color: #0a4f8e;
    background: #eff7ff;
}

.pconf__main {
    display: grid;
    gap: 12px;
}

.pconf__card {
    border: 1px solid var(--p-line);
    border-radius: 14px;
    padding: 14px;
    background: var(--p-card);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    min-width: 0;
}

.pconf__card--substep {
    border-left: 4px solid #d6e6f7;
    padding-left: 14px;
}

.pconf__card h3,
.pconf__sticky h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.pconf__dropzone {
    display: block;
    border: 2px dashed #b8c4cf;
    border-radius: 12px;
    padding: 16px;
    background: var(--p-bg);
    text-align: center;
    cursor: pointer;
    transition: 180ms ease;
}

.pconf__dropzone[hidden],
#pconf-upload-help[hidden],
.pconf__preview[hidden] {
    display: none !important;
}

.pconf__dropzone:hover {
    border-color: var(--p-accent);
    background: #edf4fb;
}

.pconf__dropzone.is-over {
    border-color: var(--p-accent);
    background: var(--p-accent-soft);
}

.pconf__dropzone input[type="file"] {
    display: none;
}

.pconf__dropzone-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
}

.pconf__dropzone-subtitle {
    display: block;
    margin-top: 5px;
    color: var(--p-muted);
    font-size: 14px;
}

.pconf__dropzone-file {
    display: inline-block;
    margin-top: 11px;
    font-size: 13px;
    font-weight: 600;
    color: #0d4f8b;
    background: #deecfa;
    border-radius: 99px;
    padding: 5px 10px;
}

.pconf__preview {
    margin-top: 12px;
    border: 1px solid #c5d4e4;
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(160deg, #f7fbff 0%, #f3f8ff 55%, #eef4fc 100%);
    box-shadow: 0 8px 24px rgba(17, 42, 71, 0.06);
}

.pconf__preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.pconf__preview-head-side {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.pconf__preview-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pconf__preview-head-side canvas {
    width: 128px;
    height: 96px;
    border: 1px solid #bed0e4;
    border-radius: 12px;
    background: #2f3f66;
    display: block;
    box-shadow: 0 6px 16px rgba(24, 46, 79, 0.2);
}

.pconf__preview-tool {
    border: 1px solid #b8cadb;
    border-radius: 10px;
    background: #fff;
    color: #2a4760;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 160ms ease;
}

.pconf__preview-tool:hover {
    border-color: #8ab4da;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(28, 73, 117, 0.12);
}

.pconf__preview-tool.is-active {
    border-color: #2e7abf;
    color: #0b5da5;
    background: #ebf4fd;
}

.pconf__preview-head strong {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.pconf__preview-head span {
    font-size: 13px;
    font-weight: 700;
    color: #2f516d;
    background: #dfeaf7;
    border-radius: 999px;
    padding: 8px 12px;
}

#pconf-preview-canvas {
    width: 100%;
    height: 320px;
    display: block;
    border: 1px solid #d9e4ee;
    border-radius: 8px;
    background: #f5f8fb;
}

.pconf__preview-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pconf__preview-meta span {
    font-size: 14px;
    font-weight: 600;
    color: #35516a;
    border: 1px solid #cad8e7;
    background: rgba(255, 255, 255, 0.76);
    border-radius: 10px;
    padding: 8px 10px;
}

.pconf__help {
    margin: 8px 0 0;
    color: var(--p-muted);
    font-size: 13px;
}

.pconf__help--loading:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pconf__spinner:not([hidden]) {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 2px solid var(--p-line);
    border-top-color: var(--p-accent);
    border-radius: 50%;
    animation: pconf-spin 0.7s linear infinite;
}

@keyframes pconf-spin {
    to { transform: rotate(360deg); }
}

.pconf__trust {
    margin-top: 10px;
    border: 1px solid #cfe0f1;
    background: #f5f9fd;
    border-radius: 8px;
    padding: 10px;
}

.pconf__trust p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #3b556d;
}

.pconf__trust p:last-child {
    margin-bottom: 0;
}

.pconf__option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pconf__option-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pconf__preset-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pconf__preset-btn {
    text-align: left;
    border: 1px solid #cbd6e2;
    border-radius: 12px;
    padding: 12px;
    background: #fbfdff;
    color: #172033;
    cursor: pointer;
    transition: all 160ms ease;
}

.pconf__preset-btn strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 4px;
}

.pconf__preset-btn span {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #495669;
}

.pconf__preset-btn:hover {
    border-color: #8fb3d5;
    background: #f3f8fd;
}

.pconf__preset-btn.is-active {
    border-color: var(--p-accent);
    background: var(--p-accent-soft);
    box-shadow: inset 0 0 0 1px #8ebcec;
}

.pconf__preset-help {
    margin: 10px 0 0;
    padding: 9px 11px;
    border: 1px solid #d8e4f0;
    border-radius: 9px;
    background: #f7fbff;
    color: #35516a;
    font-size: 13px;
    line-height: 1.4;
}

.pconf__choice {
    position: relative;
    cursor: pointer;
}

.pconf__choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pconf__choice span {
    display: block;
    border: 1px solid var(--p-line);
    border-radius: 10px;
    background: #f9fbfd;
    padding: 11px 12px;
    font-weight: 600;
    text-align: center;
    transition: 160ms ease;
    overflow: hidden;
}

.pconf__choice-img {
    display: block;
    width: calc(100% + 24px);
    height: 110px;
    object-fit: contain;
    background: #fff;
    padding: 6px 0;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
    margin: -11px -12px 8px;
}

.pconf__choice input:checked + span {
    border-color: var(--p-accent);
    background: var(--p-accent-soft);
    color: #08437d;
    box-shadow: inset 0 0 0 1px #8ebcec;
}

.pconf__choice input:disabled + span {
    cursor: not-allowed;
    background: #f1f4f8;
    border-color: var(--p-line);
}

.pconf__choice input:disabled + span .pconf__choice-normal {
    display: none;
}

.pconf__choice input:disabled + span .pconf__choice-unavailable {
    display: block;
    color: #7a8ba1;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
}

.pconf__choice input:not(:disabled) + span .pconf__choice-unavailable {
    display: none;
}

.pconf__stack {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
}

.pconf__stack:last-child {
    margin-bottom: 0;
}

.pconf__option-help {
    display: grid;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid #d8e4f0;
    border-radius: 8px;
    background: #f7fbff;
}

.pconf__option-help p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #4a637a;
}

.pconf__option-help strong {
    color: #18324a;
}

.pconf__quality-details {
    align-items: start;
}

.pconf__quality-detail {
    display: grid;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid #d8e4f0;
    border-radius: 8px;
    background: #f7fbff;
}

.pconf__quality-detail p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #4a637a;
}

.pconf__quality-detail strong {
    color: #18324a;
}

.pconf__quality-detail ul {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.4;
    color: #4a637a;
}

.pconf__quality-bar {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.pconf__quality-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #18324a;
}

.pconf__quality-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #dbe3ec;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
}

.pconf__quality-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--p-accent), var(--p-price));
}

.pconf__future-block {
    display: grid;
    gap: 7px;
    border: 1px dashed #c7d6e6;
    border-radius: 9px;
    background: #f6fbff;
    padding: 10px;
}

.pconf__future-block p {
    margin: 0;
    font-size: 13px;
    color: #2f4f6b;
}

.pconf__inline-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pconf__check-choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.pconf__check-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pconf__check-choice span {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--p-line);
    border-radius: 999px;
    background: #fff;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 600;
    color: #2f4a63;
    transition: 140ms ease;
}

.pconf__check-choice input:checked + span {
    border-color: var(--p-accent);
    background: var(--p-accent-soft);
    color: #08437d;
}

.pconf__check-choice input:disabled + span {
    opacity: .45;
    cursor: not-allowed;
}

.pconf__stack label {
    font-weight: 600;
}

.pconf__stack input,
.pconf__stack select,
.pconf__stack textarea {
    width: 100%;
    border: 1px solid var(--p-line);
    border-radius: 9px;
    padding: 10px;
}

.pconf__stack input.is-invalid {
    border-color: #d63b3b;
    box-shadow: 0 0 0 2px rgba(214, 59, 59, 0.12);
}

/* Champ facteur d'echelle: saisie manuelle sans fleches. */
#pconf-scale-custom-factor::-webkit-outer-spin-button,
#pconf-scale-custom-factor::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#pconf-scale-custom-factor[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.pconf__scale-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pconf__scale-dims {
    margin-top: 8px;
    border: 1px solid #d8e4f0;
    border-radius: 8px;
    background: #f7fbff;
    padding: 10px;
}

.pconf__scale-dims p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #35516a;
}

.pconf__scale-dims p:last-child {
    margin-bottom: 0;
}

.pconf__color-categories {
    display: grid;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.pconf__color-group {
    min-width: 0;
    overflow: hidden;
}

.pconf__color-group h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #36536d;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pconf__color-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.pconf__color-choice {
    position: relative;
    cursor: pointer;
}

.pconf__color-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pconf__color-choice span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 36px;
    border: 1px solid #bfd0e1;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    padding: 5px 8px;
    font-weight: 700;
    font-size: 12px;
    color: #28465f;
    transition: all 160ms ease;
    box-shadow: 0 2px 0 rgba(20, 51, 84, 0.04);
}

.pconf__color-choice span i {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #9cb1c7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 2px 6px rgba(20, 51, 84, 0.14);
    flex: 0 0 18px;
}

.pconf__color-choice:hover span {
    border-color: #8fb3d5;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(20, 51, 84, 0.12);
}

.pconf__color-choice input:checked + span {
    border-color: #1fa853;
    box-shadow: 0 0 0 2px rgba(31, 168, 83, 0.24), 0 6px 14px rgba(14, 92, 47, 0.16);
    background: linear-gradient(180deg, #f5fff9 0%, #ecf9f1 100%);
    color: #165436;
}

.pconf__color-choice input:focus + span {
    outline: none;
    border-color: #2e7abf;
    box-shadow: 0 0 0 2px rgba(46, 122, 191, 0.25);
}

.pconf__sidebar {
    position: relative;
    align-self: start;
    min-height: 1px;
}

.pconf__sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--pconf-sticky-top, 20px);
    max-height: calc(100vh - var(--pconf-sticky-top, 20px) - 16px);
    overflow: hidden;
    border: 1px solid var(--p-line);
    border-radius: 14px;
    background: var(--p-card);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.admin-bar .pconf__sticky {
    top: var(--pconf-sticky-top, 52px);
}

.pconf__sticky.is-fixed {
    position: fixed !important;
}

.pconf__sticky.is-bottom {
    position: absolute !important;
    top: auto !important;
    bottom: 0;
}

.pconf__summary {
    display: grid;
    gap: 8px;
    flex: 0 0 auto;
}

.pconf__summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--p-line);
    border-radius: 8px;
    padding: 9px 10px;
    background: #f8fbfe;
}

.pconf__summary span {
    color: var(--p-muted);
    font-size: 13px;
}

.pconf__summary-trigger {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--p-muted);
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    text-align: left;
}

.pconf__summary-trigger:hover,
.pconf__summary-trigger:focus {
    color: #0b63b6;
    text-decoration: underline;
    outline: none;
}

.pconf__price {
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(140deg, #0f2b46, var(--p-price));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pconf__price[hidden] {
    display: none;
}

#pconf-weight-row {
    background: linear-gradient(140deg, #1c3d33, #2f6e57);
}

#pconf-weight-row strong {
    font-size: 18px;
}

.pconf__price strong {
    font-size: 26px;
    line-height: 1;
}

.pconf__price-value {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pconf__price-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: pconf-spin 0.7s linear infinite;
    flex: 0 0 auto;
}

.pconf__price-spinner[hidden] {
    display: none;
}

@keyframes pconf-spin {
    to {
        transform: rotate(360deg);
    }
}

.pconf__assistant {
    border: 1px solid #bcd4ea;
    border-radius: 12px;
    padding: 12px 12px 10px;
    background: linear-gradient(180deg, #f2f8ff 0%, #e9f3ff 100%);
    box-shadow: 0 6px 18px rgba(17, 53, 87, 0.08);
    flex: 1 1 auto;
    min-height: 90px;
    overflow: auto;
}

.pconf__assistant h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #0f2e49;
    letter-spacing: 0.01em;
}

.pconf__assistant p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #2f4e68;
}

.pconf__assistant-intro {
    white-space: pre-line;
}

.pconf__cta {
    margin-top: 0;
    border: 0;
    border-radius: 12px;
    width: 100%;
    padding: 11px 14px;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, #0f172a, #0f2b46);
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
}

.pconf__cta--alt {
    background: linear-gradient(135deg, #374151, #1f2937);
}

.pconf__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.pconf__cta:focus-visible,
.pconf__choice input:focus + span,
.pconf__color-choice input:focus + span {
    outline: 2px solid rgba(11, 99, 182, 0.35);
    outline-offset: 1px;
}

.pconf__notice {
    margin: 10px 0 0;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.pconf__notice--warning {
    background: #fff3d7;
    border: 1px solid #ffce75;
    color: #6a4e16;
}

.pconf__error {
    margin: 8px 0 0;
    font-size: 13px;
    color: #b62323;
    font-weight: 600;
}

.pconf__cta.is-disabled,
.pconf__cta:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.pconf__help.is-success {
    color: #10663d;
    font-weight: 700;
}

.pconf__help.is-error {
    color: #b62323;
    font-weight: 700;
}

.pconf__viewer-modal[hidden] {
    display: none !important;
}

.pconf__viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.pconf__viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 14, 25, 0.58);
}

.pconf__viewer-dialog {
    position: relative;
    width: min(1120px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    margin: 14px auto;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #9aa5b8;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.pconf__viewer-head {
    background: #f4f6f9;
    border-bottom: 1px solid #c8d1de;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pconf__viewer-close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #32465f;
    cursor: pointer;
}

.pconf__viewer-body {
    position: relative;
    background: #2b3b62;
}

#pconf-preview-canvas-modal {
    display: block;
    width: 100%;
    height: min(70vh, 620px);
    background: #2b3b62;
}

.pconf__viewer-panel {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 150px;
    background: rgba(18, 28, 47, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 8px;
    color: #e4edf8;
    font-size: 12px;
    backdrop-filter: blur(2px);
}

.pconf__viewer-row {
    display: grid;
    gap: 2px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pconf__viewer-row:last-child {
    border-bottom: 0;
}

.pconf__viewer-row span {
    color: #c8d8ec;
}

.pconf__viewer-row strong {
    color: #fff;
    font-weight: 700;
}

.pconf__viewer-btn {
    border: 1px solid rgba(196, 216, 241, 0.5);
    background: rgba(32, 48, 75, 0.75);
    color: #ecf3ff;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pconf__viewer-btn.is-active {
    background: #0f6cbd;
    border-color: #6db0ea;
}

#pconf-viewer-section-slider {
    width: 100%;
    accent-color: #6db0ea;
    cursor: pointer;
}

#pconf-viewer-section-slider:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pconf__viewer-row small {
    color: #d5e0ef;
    line-height: 1.35;
}

.pconf__viewer-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid #c8d1de;
    background: #f7f9fc;
    font-size: 13px;
    color: #24374e;
}

@media (max-width: 980px) {
    .pconf__layout {
        grid-template-columns: 1fr;
    }

    .pconf__sidebar {
        order: 2;
    }

    .pconf__sticky {
        position: static;
        max-height: none;
        overflow: visible;
        display: block;
    }

    .pconf__main {
        order: 1;
    }

    .pconf__viewer-panel {
        display: none;
    }

    .pconf__preview-head {
        flex-direction: column;
        align-items: stretch;
    }

    .pconf__preview-head strong {
        font-size: 24px;
    }

    .pconf__preview-head-side {
        justify-content: space-between;
    }

    .pconf__preview-head-side canvas {
        width: 110px;
        height: 82px;
    }

    .pconf__viewer-foot {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pconf__preset-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pconf {
        margin: 12px;
    }

    .pconf__header h2 {
        font-size: 24px;
    }

    .pconf__option-grid,
    .pconf__option-grid--4 {
        grid-template-columns: 1fr 1fr;
    }

    .pconf__quality-details {
        grid-template-columns: 1fr;
    }

    /* Mobile: force des boutons cote a cote strictement alignes. */
    .pconf__option-grid .pconf__choice span,
    .pconf__option-grid--4 .pconf__choice span {
        height: 84px;
        min-height: 84px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
        padding: 8px 10px;
    }

    .pconf__option-grid .pconf__choice--has-img span,
    .pconf__option-grid--4 .pconf__choice--has-img span {
        height: auto;
        min-height: unset;
        display: block;
        padding: 8px 8px;
    }

    .pconf__choice--has-img .pconf__choice-img {
        width: calc(100% + 16px);
        margin: -8px -8px 6px;
    }

    .pconf__steps {
        grid-template-columns: 1fr 1fr;
    }

    .pconf__color-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pconf__color-choice span {
        min-height: 34px;
        font-size: 11px;
        padding: 4px 6px;
        gap: 5px;
    }

    .pconf__color-choice span i {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        flex: 0 0 16px;
    }

    .pconf__scale-grid {
        grid-template-columns: 1fr;
    }

    .pconf__price strong {
        font-size: 24px;
    }
}
