/* ================================================================
   WP Configurateur Location – Stylesheet v1.0
   Design : dark industrial, rouge/gris, typo Barlow + Inter
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --wpc-bg: #17171C;
    --wpc-bg-card: #222222;
    --wpc-bg-preview: #1c1c1c;
    --wpc-bg-input: #23222A;
    --wpc-bg-item: #252525;
    --wpc-bg-item-hover: #2e2e2e;
    --wpc-border: #808080;
    --wpc-border-sel: #e53e3e;

    --wpc-red: #e53e3e;
    --wpc-red-dim: #c53030;
    --wpc-yellow: #FFED00;
    --wpc-blue: #3b82f6;
    --wpc-white: #E6E5D3;
    --wpc-muted: #808080;
    --wpc-hint: #666666;
    --wpc-grey: #808080;
    --wpc-black: #17171C;

    /* --wpc-font-display: 'Barlow', sans-serif; */
    --wpc-font-display: 'Clash Display';
    --wpc-font-body: 'Inter', sans-serif;
    --wpc-font-title: 'Clash Display';

    --wpc-radius: 6px;
    --wpc-radius-card: 10px;
    --wpc-transition: 0.2s ease;
}

/* ── Reset scoped ─────────────────────────────────────────────── */
#wpc-configurateur *,
#wpc-configurateur *::before,
#wpc-configurateur *::after {
    box-sizing: border-box;
    margin: 0;
    /* padding: 0; */
}

/* ── Wrap principal ───────────────────────────────────────────── */
#wpc-configurateur {
    font-family: var(--wpc-font-body);
    background: var(--wpc-bg);
    border: 1px solid var(--wpc-border);
    /* border-radius: var(--wpc-radius-card); */
    padding: 64px;
    overflow: hidden;
    color: var(--wpc-white);
    /* min-height: 420px; */
}

.wpc-wrap.step-5 .wpc-breadcrumb {
    display: none;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.wpc-breadcrumb {
    padding: 12px 0px;
    font-family: var(--wpc-font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--wpc-muted);
    text-transform: uppercase;
    /* border-bottom: 1px solid var(--wpc-border); */
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wpc-bc-item {
    cursor: pointer;
    transition: color var(--wpc-transition);
    font-size: 21px;
    font-family: var(--wpc-font-display);
}

.wpc-bc-item.wpc-bc-active {
    color: var(--wpc-white);
}

.wpc-bc-item.wpc-bc-link {
    color: var(--wpc-red);
    cursor: pointer;
    text-decoration: none;
}

.wpc-bc-item.wpc-bc-link:hover {
    color: #fc8181;
}

.wpc-bc-item:empty {
    display: none;
}

.wpc-bc-sep {
    color: var(--wpc-hint);
    font-size: 16px;
    line-height: 0.7;
}

.wpc-bc-sep:has(+ .wpc-bc-item:empty) {
    display: none;
}

/* ── Layout 2 colonnes ───────────────────────────────────────── */
.wpc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* min-height: 380px; */
    gap: 36px;
}

@media (max-width: 700px) {
    .wpc-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Colonne gauche ───────────────────────────────────────────── */
.wpc-col-list {
    padding: 0px 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding-right: 36px;
}


#wpc-list-subcats:hover>.wpc-item {
    opacity: .33;
}

/* L'élément survolé repasse à 100% */
#wpc-list-subcats>.wpc-item:hover {
    opacity: 1;
}

#wpc-step-4 {
    padding-top: 36px;
}

#wpc-step-3,
#wpc-step-3b {
    padding-top: 24px;
}

.wpc-items-list-wrapper,
.wpc-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpc-step-label {
    font-size: 24px;
    font-weight: 500;
    color: var(--wpc-white);
    margin-bottom: 16px;
    font-family: var(--wpc-font-display);
}

#wpc-recap-doc,
#wpc-recap-video {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 10%;
}

/* ── Items de liste ───────────────────────────────────────────── */
.wpc-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpc-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 36px 0 !important;
    border-bottom: 1px solid #808080;
    cursor: pointer;
    transition: background var(--wpc-transition);
    border-radius: 0;
    position: relative;
}

.wpc-item:first-child {
    padding-top: 4px;
}

.wpc-item:hover .wpc-item-name {
    color: var(--wpc-white);
}

.wpc-item.wpc-item-selected {
    opacity: 0.6;
}

.wpc-item-content {
    flex: 1;
    min-width: 0;
    gap: 16px;
    display: flex;
    flex-direction: column;
}

.wpc-item-name {
    font-family: var(--wpc-font-display);
    font-size: 36px;
    font-weight: 400;
    color: #dddddd;
    line-height: 1.2;
    transition: color var(--wpc-transition);
    letter-spacing: -0.01em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpc-recap {
    gap: 10px;
    padding: 32px 28px;
}

.wpc-item-desc {
    font-size: 16px;
    color: var(--wpc-muted);
    margin-top: 4px;
    font-weight: 500;
}

.wpc-item-arrow {
    flex-shrink: 0;
    margin-top: 6px;
    transition: transform var(--wpc-transition);
}

.wpc-item:hover .wpc-item-arrow {
    transform: translate(2px, -2px);
}

/* ── Kits ─────────────────────────────────────────────────────── */
.wpc-kit-item {
    background: #23222A;
    color: #808080;
    border-radius: 8px;
    padding: 24px !important;
    margin-bottom: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 36px;
    transition: border-color var(--wpc-transition), background var(--wpc-transition);
}

.wpc-kit-item:hover,
.wpc-kit-item.wpc-kit-selected {
    /* border-color: var(--wpc-red); */
    background: #E6E5D3;
    color: #23222A;
}

.wpc-kit-name {
    font-family: var(--wpc-font-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 10%;
}

.wpc-kit-dims {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--wpc-font-body);
    letter-spacing: 10%;
}

/* ── Champs / Formulaire ─────────────────────────────────────── */
.wpc-field-group {
    margin-top: 20px;
}

.wpc-label {
    font-size: 24px;
    font-weight: 500;
    color: var(--wpc-white);
}

.wpc-label-hint {
    text-transform: none;
    letter-spacing: 0;
}

.wpc-hint {
    font-size: 16px;
    color: var(--wpc-hint);
}

.wpc-input {
    width: 100%;
    background: var(--wpc-bg-input);
    border: 1px solid var(--wpc-border);
    border-radius: var(--wpc-radius);
    color: var(--wpc-white);
    font-family: var(--wpc-font-body);
    font-size: 24px;
    padding: 20px;
    outline: none;
    transition: border-color var(--wpc-transition);
    -webkit-appearance: none;
    appearance: none;
}

.wpc-input:focus {
    border-color: var(--wpc-red);
}

.wpc-input::placeholder {
    color: var(--wpc-hint);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.wpc-textarea {
    resize: vertical;
    min-height: 70px;
}

.wpc-form,
.wpc-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpc-form-wrapper {
    gap: 36px;
}

.wpc-form .wpc-input {
    margin-bottom: 8px;
}

/* ── Dimensions en ligne ──────────────────────────────────────── */
.wpc-dims-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.wpc-dim-input {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
}

.wpc-dim-sep {
    color: var(--wpc-muted);
    font-size: 18px;
    flex-shrink: 0;
}

/* ── Boutons ──────────────────────────────────────────────────── */
.wpc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--wpc-yellow) !important;
    color: var(--wpc-yellow) !important;
    font-family: var(--wpc-font-display);
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    padding: 36px;
    border-radius: var(--wpc-radius);
    cursor: pointer;
    transition: background var(--wpc-transition), color var(--wpc-transition) !important;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

.wpc-wrap.step-5 .wpc-col-preview {
    display: none;
}

.wpc-wrap.step-5 .wpc-layout {
    display: flex;
    width: 100%;
}

.wpc-wrap.step-5 .wpc-col-list {
    width: 100%;
}

.wpc-wrap.step-5 .wpc-success-msg {
    width: 100%;
    max-width: 100%;
}

.wpc-success {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.submit-view-a,
.submit-view-b {
    cursor: pointer;
}

.wpc-btn-primary:hover {
    background: transparent !important;
    opacity: .7;
}

.wpc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--wpc-border);
    color: var(--wpc-muted);
    font-family: var(--wpc-font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: var(--wpc-radius);
    cursor: pointer;
    transition: border-color var(--wpc-transition), color var(--wpc-transition);
    margin-top: 12px;
}

.wpc-btn-secondary:hover {
    border-color: var(--wpc-white);
    color: var(--wpc-white);
}

.wpc-mentions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpc-mentions-title {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 10%;
    color: white;
}

.wpc-mentions {
    font-size: 14px;
    color: var(--wpc-hint);
    margin-top: 10px;
    line-height: 1.5;
    letter-spacing: 10%;
}

/* ── Colonne droite : preview ─────────────────────────────────── */
.wpc-col-preview {
    background: #23222A;
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    height: 100%;
}

.wpc-preview-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: max-content;
    height: 100%;
}

/* Placeholder */
.wpc-preview-placeholder {
    text-align: center;
    padding: 40px 20px;
    height: 100%;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.wpc-preview-hint {
    font-family: var(--wpc-font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--wpc-muted);
    line-height: 2;
    letter-spacing: 0.02em;
}

.wpc-hint-tag {
    font-weight: 500;
}

.wpc-hint-red {
    color: var(--wpc-red);
}

.wpc-hint-yellow {
    color: var(--wpc-yellow);
}

.wpc-hint-blue {
    color: var(--wpc-blue);
}

/* Preview catégorie */
.wpc-preview-cat {
    text-align: center;
}

.wpc-preview-title {
    font-family: var(--wpc-font-display);
    font-size: 36px !important;
    font-weight: 300;
    color: var(--wpc-white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.wpc-preview-subtitle {
    font-size: 13px;
    color: var(--wpc-muted);
    font-weight: 300;
}

/* Preview modèle */
.wpc-preview-modele {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.wpc-preview-img-wrap {
    border-radius: var(--wpc-radius);
    overflow: hidden;
    background: var(--wpc-bg-item);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.wpc-preview-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.wpc-preview-usage-label {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wpc-white);
    margin-bottom: 6px;
}

.wpc-preview-desc {
    font-size: 12px;
    color: #bbbbbb;
    font-weight: 300;
    line-height: 1.6;
}

.wpc-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.wpc-link-doc,
.wpc-link-video {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity var(--wpc-transition);
}

.wpc-link-doc {
    color: #FFED00;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.wpc-link-doc>span {
    text-decoration: underline;
}

.wpc-link-video {
    color: #FFED00;
    padding: 24px 35px 24px 35px;
}

.wpc-link-doc:hover,
.wpc-link-video:hover {
    opacity: 0.75;
    color: #FFED00;
}

/* Récapitulatif */
h3.wpc-recap-title {
    font-family: var(--wpc-font-display);
    font-size: 20px !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em;
    color: var(--wpc-grey) !important;
    margin-bottom: 6px;
}

.wpc-recap-head {
    padding-bottom: 16px;
    border-bottom: 2px solid;
}

.wpc-recap-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpc-recap-key {
    font-size: 24px !important;
}

.wpc-recap-modele-link {
    display: flex;
    font-size: 12px;
    font-weight: 600;
    align-items: center;
    color: white;
    letter-spacing: 10%;
}

.wpc-form-group>label {
    color: var(--wpc-grey);
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
}

.wpc-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpc-recap-modele-link:hover {
    color: white;
}

.wpc-recap-desc-wrapper {
    padding-top: 10px;
    padding-bottom: 24px;
}

.wpc-recap-modele-name {
    font-family: var(--wpc-font-display);
    font-size: 22px !important;
    font-weight: 500;
    color: var(--wpc-white);
    margin-bottom: 6px;
}

.wpc-recap-desc {
    font-size: 14px;
    color: #808080;
    font-weight: 400;
    margin-bottom: 14px;
}

.wpc-recap-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wpc-recap-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 4px solid black;
}

.wpc-recap-row {
    display: grid;
    grid-template-columns: 157px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 4px solid black;
    align-items: start;
}

.wpc-recap-row:last-child {
    border-bottom: none;
}

.wpc-recap-key {
    font-size: 11px;
    font-weight: 400;
    color: var(--wpc-muted);
    letter-spacing: 0.03em;
    padding-top: 1px;
}

.wpc-recap-val {
    font-size: 16px;
    color: var(--wpc-white);
    font-weight: 400;
    line-height: 1.5;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--wpc-black);
}

.wpc-recap-dims {
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.wpc-recap-dim-row {
    font-size: 16px;
    font-weight: 500;
    color: var(--wpc-white);
    padding: 16px 0;
    border-bottom: 2px solid var(--wpc-black);
}

.wpc-recap-highlight .wpc-recap-val {
    font-family: var(--wpc-font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--wpc-white);
}

.wpc-recap-info .wpc-recap-key {
    padding-top: 2px;
}

.wpc-recap-info .wpc-recap-val {
    font-size: 16px;
    color: var(--wpc-white);
}

.wpc-recap-dim-row:first-child {
    padding-top: 0px;
}

/* ── Succès ───────────────────────────────────────────────────── */
.wpc-success {
    text-align: center;
    padding: 20px 10px;
}

.wpc-success-icon {
    width: 64px;
    height: 64px;
    border: 1px solid var(--wpc-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--wpc-red);
}

.wpc-success-title {
    font-family: var(--wpc-font-display);
    font-size: 24px;
    font-weight: 400;
    color: var(--wpc-white);
    margin-bottom: 12px;
}

.wpc-success-msg {
    font-size: 13px;
    color: var(--wpc-muted);
    font-weight: 300;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ── Utilitaires ──────────────────────────────────────────────── */
.wpc-hidden {
    display: none !important;
}

/* Loading skeleton */
.wpc-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wpc-muted);
    font-size: 12px;
    padding: 12px 0;
}

.wpc-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--wpc-border);
    border-top-color: var(--wpc-red);
    border-radius: 50%;
    animation: wpc-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.wpc-preview-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 36px;
}

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

/* Animations */
.wpc-step {
    animation: wpc-fadeIn 0.25s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@keyframes wpc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpc-preview-placeholder,
.wpc-preview-cat,
.wpc-preview-modele,
.wpc-recap {
    animation: wpc-fadeIn 0.3s ease;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 700px) {
    .wpc-col-list {
        border-right: none;
    }

    .wpc-item-name {
        font-size: 18px;
    }

    .wpc-preview-title {
        font-size: 26px;
    }

    .wpc-recap-modele-name {
        font-size: 18px;
    }
}