/* ==========================================================================
   Yado Vinyl Configurator — Styles
   Thème : gris clair & or, cohérent avec le header du site
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ------------------------------------------------------------------ */
/*  Tokens — thème clair                                               */
/* ------------------------------------------------------------------ */
#yado-configurator {
    --bg:           #e8e8e8;
    --bg-card:      #f0f0f0;
    --bg-card-2:    #ffffff;
    --border:       #d0d0d0;
    --border-hover: #b8b8b8;
    --gold:         #d4af37;
    --gold-light:   #f0cc5a;
    --gold-dim:     rgba(212,175,55,0.18);
    --text:         #1a1a1a;
    --text-mid:     #5a5a5a;
    --text-dim:     #959595;
    --danger:       #c0392b;
    --success:      #27ae60;
    --radius:       6px;
    --radius-lg:    12px;
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --shadow:       0 4px 24px rgba(0,0,0,0.12);
    --shadow-gold:  0 0 24px rgba(212,175,55,0.25);
    --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ------------------------------------------------------------------ */
/*  Base                                                                */
/* ------------------------------------------------------------------ */
#yado-configurator,
#yado-configurator * {
    box-sizing: border-box;
}

#yado-configurator {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

/* Grain overlay supprimé pour thème clair */
#yado-configurator::before {
    display: none;
}

/* ------------------------------------------------------------------ */
/*  Progress bar                                                        */
/* ------------------------------------------------------------------ */
.yado-cfg__progress {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    position: relative;
    z-index: 1;
}

.yado-cfg__progress-track {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.yado-cfg__progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    background: var(--bg);
    transition: var(--transition);
    display: block;
}

.step-label {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.yado-cfg__progress-step.active .step-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.yado-cfg__progress-step.active .step-label {
    color: var(--gold);
}

.yado-cfg__progress-step.done .step-dot {
    background: var(--gold-dim);
    border-color: var(--gold);
}

.yado-cfg__progress-step.done .step-label {
    color: var(--text-mid);
}

.yado-cfg__progress-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-bottom: 18px;
}

/* ------------------------------------------------------------------ */
/*  Layout split                                                        */
/* ------------------------------------------------------------------ */
.yado-cfg__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Desktop : steps à gauche, preview à droite */
@media (min-width: 769px) {
    .yado-cfg__preview {
        grid-column: 2;
        grid-row: 1;
    }
    .yado-cfg__steps {
        grid-column: 1;
        grid-row: 1;
    }
}

/* ------------------------------------------------------------------ */
/*  Options 2-column grid (step 2)                                     */
/* ------------------------------------------------------------------ */
.yado-cfg__options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}

.yado-cfg__options-col {
    min-width: 0;
}

/* ------------------------------------------------------------------ */
/*  Steps                                                               */
/* ------------------------------------------------------------------ */
.yado-cfg__steps {
    padding: 40px 36px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .yado-cfg__steps {
        max-height: min(700px, 85vh);
    }
}

.yado-cfg__step {
    display: none;
    animation: stepIn 0.3s ease;
}

.yado-cfg__step.active {
    display: block;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.yado-cfg__step-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.04em;
    color: var(--text);
    margin: 0 0 28px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.step-num {
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.12em;
    border: 1px solid var(--gold-dim);
    padding: 2px 8px;
    border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/*  Format cards                                                        */
/* ------------------------------------------------------------------ */
.yado-cfg__format-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.yado-cfg__format-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.yado-cfg__format-card input[type="radio"] { display: none; }

.yado-cfg__format-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-2);
}

.yado-cfg__format-card.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 0 1px var(--gold);
}

/* Badge petit/grand trou */
.format-hole-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 2px;
}

.format-hole-small {
    background: rgba(100,100,100,0.1);
    color: var(--text-mid);
    border: 1px solid var(--border-hover);
}

.format-hole-large {
    background: rgba(212,175,55,0.12);
    color: #a07c10;
    border: 1px solid rgba(212,175,55,0.4);
}

.yado-cfg__format-card.selected .format-hole-small {
    background: rgba(0,0,0,0.08);
    color: #555;
    border-color: rgba(0,0,0,0.2);
}

.yado-cfg__format-card.selected .format-hole-large {
    background: rgba(212,175,55,0.25);
    color: #7a5c00;
    border-color: var(--gold);
}

.format-label {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.format-sub {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.format-duration {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.06);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-mid);
    white-space: nowrap;
    transition: var(--transition);
}

.yado-cfg__format-card.selected .format-duration {
    background: rgba(212,175,55,0.2);
    color: var(--gold);
}

.dur-icon {
    font-size: 10px;
    opacity: 0.7;
}

.dur-value {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dur-label {
    opacity: 0.75;
    font-size: 10px;
}

/* ------------------------------------------------------------------ */
/*  RPM Toggle                                                          */
/* ------------------------------------------------------------------ */
.yado-cfg__rpm-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.rpm-label {
    font-size: 12px;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.rpm-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.rpm-opt {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.rpm-opt input { display: none; }

.rpm-opt.selected {
    background: var(--gold);
    color: #0e0e0e;
}

/* ------------------------------------------------------------------ */
/*  Option groups                                                       */
/* ------------------------------------------------------------------ */
.yado-cfg__option-group {
    margin-bottom: 28px;
}

.option-group-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mid);
    font-weight: 500;
    margin-bottom: 12px;
}

.qty-display {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 0.06em;
}

/* Sous-choix couleur */
.yado-cfg__sub-colors {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.04);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    animation: stepIn 0.2s ease;
}

.sub-color-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-mid);
    font-weight: 500;
    margin-bottom: 10px;
}

.yado-cfg__sub-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yado-cfg__sub-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.yado-cfg__sub-swatch input { display: none; }

.yado-cfg__sub-swatch .swatch-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: block;
    transition: var(--transition);
}

.yado-cfg__sub-swatch:hover .swatch-preview {
    transform: scale(1.1);
    border-color: var(--border-hover);
}

.yado-cfg__sub-swatch.selected .swatch-preview {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.yado-cfg__sub-swatch .swatch-label {
    font-size: 10px;
    color: var(--text-dim);
}

.yado-cfg__sub-swatch.selected .swatch-label {
    color: var(--gold);
}
.yado-cfg__color-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.yado-cfg__color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.yado-cfg__color-swatch input { display: none; }

.swatch-preview {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: block;
    transition: var(--transition);
}

.yado-cfg__color-swatch:hover .swatch-preview {
    border-color: var(--border-hover);
    transform: scale(1.08);
}

.yado-cfg__color-swatch.selected .swatch-preview {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim), 0 0 12px rgba(212,175,55,0.3);
}

.swatch-label {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    white-space: nowrap;
}

.yado-cfg__color-swatch.selected .swatch-label {
    color: var(--gold);
}

/* ------------------------------------------------------------------ */
/*  Sleeve grid                                                         */
/* ------------------------------------------------------------------ */
.yado-cfg__sleeve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.yado-cfg__sleeve-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.yado-cfg__sleeve-card input { display: none; }

.yado-cfg__sleeve-card:hover {
    border-color: var(--border-hover);
}

.yado-cfg__sleeve-card.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.sleeve-icon { font-size: 20px; }

.sleeve-label {
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.3;
}

.yado-cfg__sleeve-card.selected .sleeve-label {
    color: var(--gold);
}

/* ------------------------------------------------------------------ */
/*  Quantity input                                                      */
/* ------------------------------------------------------------------ */
.yado-cfg__qty-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yado-cfg__qty-input {
    width: 110px;
    padding: 10px 14px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    -moz-appearance: textfield;
}

.yado-cfg__qty-input::-webkit-inner-spin-button,
.yado-cfg__qty-input::-webkit-outer-spin-button {
    opacity: 1;
}

.yado-cfg__qty-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-dim);
}

.qty-unit {
    font-size: 13px;
    color: var(--text-mid);
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                             */
/* ------------------------------------------------------------------ */
.yado-cfg__btn-next,
.yado-cfg__btn-back,
.yado-cfg__btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.yado-cfg__btn-next svg,
.yado-cfg__btn-back svg,
.yado-cfg__btn-cart svg {
    width: 16px;
    height: 16px;
}

.yado-cfg__btn-next {
    background: var(--gold);
    color: #0e0e0e;
    margin-left: auto;
}

.yado-cfg__btn-next:hover {
    background: var(--gold-light);
    transform: translateX(2px);
}

.yado-cfg__btn-back {
    background: transparent;
    color: var(--text-mid);
    border: 1px solid var(--border);
}

.yado-cfg__btn-back:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.yado-cfg__btn-cart {
    background: var(--gold);
    color: #0e0e0e;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    margin-left: auto;
}

.yado-cfg__btn-cart:hover {
    background: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.yado-cfg__btn-cart.success {
    background: var(--success);
    color: #fff;
}

.yado-cfg__btn-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.yado-cfg__nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    gap: 12px;
}

/* ------------------------------------------------------------------ */
/*  Audio upload                                                        */
/* ------------------------------------------------------------------ */
.yado-cfg__audio-drop {
    background: var(--bg-card);
    border: 2px dashed var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 20px;
    cursor: default;
}

.yado-cfg__audio-drop.drag-over {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.audio-drop-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--text-dim);
}

.audio-drop-icon svg {
    width: 100%;
    height: 100%;
}

.audio-drop-text {
    color: var(--text-mid);
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
}

.audio-drop-text span {
    color: var(--text-dim);
    font-size: 12px;
}

.yado-cfg__btn-upload {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.yado-cfg__btn-upload:hover {
    background: var(--gold-dim);
}

.audio-formats {
    font-size: 11px;
    color: var(--text-dim);
    margin: 0;
    letter-spacing: 0.06em;
}

/* Audio result */
.yado-cfg__audio-result {
    background: var(--bg-card);
    border: 1px solid var(--success);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.audio-result-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-result-icon {
    width: 32px;
    height: 32px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.audio-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audio-filename {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    word-break: break-all;
}

.audio-meta {
    font-size: 11px;
    color: var(--text-mid);
}

.audio-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: var(--transition);
}

.audio-remove:hover { color: var(--danger); }

/* Waveform */
.yado-waveform {
    width: 100%;
    display: block;
    margin-top: 10px;
    border-radius: 4px;
}

/* Upload progress */
.yado-cfg__upload-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.upload-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.1s linear;
    width: 0%;
}

#yadoUploadPct {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

/* ------------------------------------------------------------------ */
/*  Summary                                                             */
/* ------------------------------------------------------------------ */
.yado-cfg__summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

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

.summary-key {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    flex-shrink: 0;
}

.summary-val {
    font-size: 14px;
    color: var(--text);
    text-align: right;
}

/* Price block */
.yado-cfg__price-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
}

/* Résumé : layout flex pour que le prix reste visible */
[data-step="3"].active {
    display: flex;
    flex-direction: column;
    height: 100%;
}
[data-step="3"].active .yado-cfg__summary {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
[data-step="3"].active .yado-cfg__price-block,
[data-step="3"].active .yado-cfg__nav-row {
    flex-shrink: 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
}

.price-row:last-child { border-bottom: none; }
.price-tva { color: var(--text-dim); font-size: 12px; }

.price-total {
    background: var(--gold-dim);
    font-weight: 600;
    font-size: 16px;
    color: var(--gold) !important;
}

/* ------------------------------------------------------------------ */
/*  Preview panel (vinyl 3D)                                           */
/* ------------------------------------------------------------------ */
.yado-cfg__preview {
    background: #d2d2d2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 12px 16px;
    position: relative;
    overflow: hidden;
}

/* Radial glow behind vinyl */
.yado-cfg__preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 55% 45%, rgba(212,175,55,0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.yado-cfg__vinyl-stage {
    position: relative;
    z-index: 1;
    cursor: pointer;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.yado-cfg__vinyl-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.yado-cfg__vinyl-stage:hover canvas {
    /* pas de transform — le canvas est fluid */
}

/* Sur desktop : transparent, les enfants se comportent normalement */
.yado-cfg__preview-right {
    display: contents;
}

.yado-cfg__preview-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    z-index: 1;
}

.preview-format {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.06em;
    color: var(--text);
}

.preview-rpm {
    font-size: 12px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.06em;
}

/* Price badge */
.yado-cfg__price-badge {
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 8px;
    padding: 12px 20px;
    text-align: center;
    margin-top: 20px;
    z-index: 1;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.yado-cfg__price-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.price-badge-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 4px;
}

.price-badge-value {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 0.04em;
    color: #1a1a1a;
}

/* ------------------------------------------------------------------ */
/*  Image upload zones (macarons / pochette)                           */
/* ------------------------------------------------------------------ */
.yado-cfg__img-upload {
    background: var(--bg-card);
    border: 2px dashed var(--border-hover);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.yado-cfg__img-upload:hover,
.yado-cfg__img-upload.drag-over {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.img-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.img-upload-icon { font-size: 22px; display: flex; align-items: center; justify-content: center; }
.img-upload-icon svg { width: 28px; height: 28px; display: block; opacity: 0.6; }

.img-upload-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
}

.img-upload-sub {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

/* Result */
.yado-cfg__img-result {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 10px;
    margin-top: 8px;
}

.img-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.img-result-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.img-filename {
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    flex-shrink: 0;
    transition: var(--transition);
}

.img-remove:hover { color: var(--danger); }

/* ================================================================== */
/*  RESPONSIVE                                                          */
/* ================================================================== */

/* --- Tablette paysage (≤ 1024px) ---------------------------------- */
@media (max-width: 1024px) {
    .yado-cfg__steps {
        padding: 28px 24px;
    }
    .yado-cfg__preview {
        padding: 28px 20px;
    }
    .yado-cfg__vinyl-stage canvas {
        width: 340px;
        height: 340px;
    }
    .yado-cfg__options-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Tablette portrait (≤ 768px) ---------------------------------- */






/* --- Smartphone (≤ 480px) ----------------------------------------- */
@media (max-width: 480px) {

    /* Preview bandeau encore plus compact */
    .yado-cfg__preview {
        padding: 12px 14px;
        gap: 14px;
    }

    .yado-cfg__vinyl-stage canvas {
        width: 110px;
        height: 110px;
    }

    .vinyl-shadow { width: 90px; }

    .preview-format    { font-size: 16px; }
    .preview-rpm       { font-size: 10px; padding: 2px 8px; }
    .price-badge-label { font-size: 9px; }
    .price-badge-value { font-size: 17px; }
    .yado-cfg__price-badge { padding: 6px 12px; }

    /* Progress : masque les labels, dots plus petits */
    .step-label { display: none; }
    .step-dot   { width: 10px; height: 10px; }
    .yado-cfg__progress { padding: 10px 14px; }
    .yado-cfg__progress-track { gap: 0; }

    /* Steps */
    .yado-cfg__steps { padding: 16px 14px; }

    .yado-cfg__step-title {
        font-size: 19px;
        margin-bottom: 14px;
    }

    /* Format cards */
    .yado-cfg__format-grid { gap: 6px; }

    .yado-cfg__format-card {
        padding: 10px 6px;
        gap: 3px;
    }

    .format-label    { font-size: 17px; }
    .format-sub      { font-size: 10px; }
    .format-duration { padding: 3px 7px; font-size: 10px; }
    .format-hole-badge { font-size: 9px; padding: 2px 6px; }

    /* RPM toggle */
    .rpm-opt { padding: 6px 12px; font-size: 12px; }

    /* Couleurs */
    .yado-cfg__color-grid { gap: 6px; }
    .swatch-preview { width: 34px; height: 34px; }
    .swatch-label   { font-size: 10px; }

    /* Pochette */
    .yado-cfg__sleeve-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .sleeve-label { font-size: 11px; }

    /* Audio */
    .yado-cfg__audio-drop { padding: 20px 14px; }
    .audio-drop-icon { width: 44px; height: 44px; }
    .audio-drop-text { font-size: 13px; }

    /* Résumé */
    .summary-row {
        flex-direction: column;
        gap: 2px;
        padding: 10px 12px;
    }
    .summary-val { text-align: left; }

    /* Boutons */
    .yado-cfg__btn-next,
    .yado-cfg__btn-back,
    .yado-cfg__btn-cart {
        padding: 10px 14px;
        font-size: 13px;
    }

    .yado-cfg__btn-next svg,
    .yado-cfg__btn-back svg,
    .yado-cfg__btn-cart svg {
        width: 14px;
        height: 14px;
    }

    /* Image upload */
    .yado-cfg__img-upload { padding: 12px 8px; }
    .img-upload-icon { font-size: 18px; }
}

/* --- Très petit smartphone (≤ 360px) ------------------------------ */
@media (max-width: 360px) {
    .yado-cfg__vinyl-stage canvas {
        width: 90px;
        height: 90px;
    }
    .vinyl-shadow { width: 75px; }
    .format-label { font-size: 15px; }
    .yado-cfg__btn-next,
    .yado-cfg__btn-back,
    .yado-cfg__btn-cart {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* ------------------------------------------------------------------ */
/*  Galerie splatter (front)                                           */
/* ------------------------------------------------------------------ */
.yado-cfg__splatter-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    margin-top: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.splatter-design-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    text-align: center;
}

.splatter-design-card input { display: none; }

.splatter-design-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
    background: #111;
}

.splatter-design-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.splatter-design-name {
    font-size: 9px;
    line-height: 1.2;
    color: var(--text-dim);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.splatter-design-price {
    font-size: 9px;
    color: var(--gold);
    font-weight: 600;
}

.splatter-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.75);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.splatter-design-card:has(input:checked) .splatter-design-thumb {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-dim);
}

.splatter-design-card:has(input:checked) .splatter-check {
    opacity: 1;
}

.splatter-design-name {
    font-size: 11px;
    color: var(--text-mid);
    font-weight: 500;
    line-height: 1.2;
}

.splatter-design-price {
    font-size: 10px;
    color: var(--gold);
    font-weight: 600;
}

.splatter-empty-msg {
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    padding: 8px 0;
}

/* ------------------------------------------------------------------ */
/*  Step 2 — layout vertical en sections                              */
/* ------------------------------------------------------------------ */

/* Supprime l'ancienne grille 2 colonnes du step 2 */
.yado-cfg__options-grid { display: block; }
.yado-cfg__options-col  { display: block; }

/* Section */
.yado-cfg__section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 14px;
}

.yado-cfg__section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-hint {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* Quantité + double album sur la même ligne */
.yado-cfg__qty-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Double album toggle */
.yado-cfg__double-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.yado-cfg__double-toggle input[type="checkbox"] { display: none; }

.double-toggle-box {
    width: 40px;
    height: 22px;
    background: var(--border-hover);
    border-radius: 11px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.double-toggle-box::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.yado-cfg__double-toggle input:checked ~ .double-toggle-box {
    background: var(--gold);
}

.yado-cfg__double-toggle input:checked ~ .double-toggle-box::after {
    transform: translateX(18px);
}

.double-toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.double-badge {
    font-size: 10px;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Bloc disque */
.yado-cfg__disc-block {
    margin-bottom: 12px;
}

.disc-block-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gold-dim);
}

/* Grille des faces — 4 colonnes par défaut, 2 pour pochette */
.yado-cfg__faces-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.yado-cfg__faces-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.yado-cfg__face-upload {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.face-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Compact upload dans la grille faces */
.yado-cfg__faces-grid .yado-cfg__img-upload {
    padding: 10px 6px;
}

.yado-cfg__faces-grid .img-upload-icon { font-size: 16px; }
.yado-cfg__faces-grid .img-upload-text { font-size: 10px; }
.yado-cfg__faces-grid .img-upload-sub  { font-size: 9px; }

.yado-cfg__faces-grid .yado-cfg__img-result {
    padding: 6px 8px;
}

.yado-cfg__faces-grid .img-thumb {
    width: 36px;
    height: 36px;
}

.yado-cfg__faces-grid .img-filename {
    font-size: 10px;
    max-width: 80px;
}

/* Responsive faces */
@media (max-width: 600px) {
    .yado-cfg__faces-grid { grid-template-columns: repeat(2, 1fr); }
    .yado-cfg__faces-grid--2col { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/*  Album type cards (simple / double)                                 */
/* ------------------------------------------------------------------ */
.yado-cfg__album-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.yado-cfg__album-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 12px;
    background: var(--bg-card-2);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.yado-cfg__album-card input[type="radio"] { display: none; }

.yado-cfg__album-card:hover {
    border-color: var(--border-hover);
}

.yado-cfg__album-card.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 0 1px var(--gold);
}

.album-card-icon {
    font-size: 18px;
    color: var(--text-mid);
    letter-spacing: -4px;
    margin-bottom: 2px;
}

.yado-cfg__album-card.selected .album-card-icon {
    color: var(--gold);
}

.album-card-label {
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.04em;
    color: var(--text);
}

.album-card-sub {
    font-size: 11px;
    color: var(--text-dim);
}

.yado-cfg__album-card.selected .album-card-sub {
    color: var(--gold);
    opacity: 0.8;
}

/* Face preview button */
.face-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    padding: 4px 10px;
    opacity: 0.75;
    transition: var(--transition);
    vertical-align: middle;
    letter-spacing: 0.02em;
}
.face-preview-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    flex-shrink: 0;
}
.face-preview-btn:hover,
.face-preview-btn.active {
    opacity: 1;
    background: rgba(212,175,55,0.22);
    border-color: rgba(212,175,55,0.7);
    box-shadow: 0 0 8px rgba(212,175,55,0.2);
}
.face-preview-btn.active {
    background: rgba(212,175,55,0.28);
    color: #111;
}

/* ------------------------------------------------------------------ */
/*  Bouton edit sur les images uploadées                               */
/* ------------------------------------------------------------------ */
.img-edit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    opacity: 0.6;
    transition: var(--transition);
}
.img-edit:hover { opacity: 1; }

/* ------------------------------------------------------------------ */
/*  Modal éditeur d'image                                              */
/* ------------------------------------------------------------------ */
.yado-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Décale sous la barre admin WordPress (32px) si présente */
    padding-top: var(--wp-admin--admin-bar--height, 0px);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.yado-editor-overlay[hidden] { display: none !important; }

.yado-editor-modal {
    background: #fff;
    border-radius: 12px;
    width: min(780px, 96vw);
    max-height: calc(80vh - 50px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.yado-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
    flex-shrink: 0;
}

.yado-editor-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

.yado-editor-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}
.yado-editor-close:hover { background: #f0f0f0; color: #333; }

.yado-editor-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Contrôles AU-DESSUS du stage */
.yado-editor-controls {
    padding: 12px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.yado-editor-stage {
    position: relative;
    background: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1;
    min-height: 160px;
    cursor: grab;
}

.yado-editor-stage:active { cursor: grabbing; }

#yadoEditorCanvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.yado-editor-guide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.yado-editor-guide::before {
    /* Fond sombre autour du guide */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    z-index: 1;
}

.yado-editor-guide::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(212,175,55,1);
    box-shadow:
        0 0 0 1px rgba(212,175,55,0.3),
        inset 0 0 0 1px rgba(212,175,55,0.2);
    z-index: 2;
    aspect-ratio: 1;
    /* Taille fixée par JS via --guide-size sur le stage */
    width:  var(--guide-size, 360px);
    height: var(--guide-size, 360px);
    background: transparent;
}

.yado-editor-guide.circle::after  { border-radius: 50%; }
.yado-editor-guide.square::after  { border-radius: 6px; }
.yado-editor-guide.rect::after    { border-radius: 6px; width: calc(var(--guide-size, 360px) * 2) !important; height: var(--guide-size, 360px) !important; }
/* Tranche 8×314mm — ratio 1:39.25, très étroite */
.yado-editor-guide.tranche::after { border-radius: 3px; width: calc(var(--guide-size, 360px) * 0.0255) !important; height: var(--guide-size, 360px) !important; min-width: 8px; }
/* CD tray card 151×117mm — ratio 1.29:1 (avec spines latéraux) */
.yado-editor-guide.cd-tray::after { border-radius: 4px; width: calc(var(--guide-size, 360px) * 1.291) !important; height: var(--guide-size, 360px) !important; }

.yado-editor-controls {
    padding: 16px 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editor-ctrl-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    font-weight: 600;
    margin-bottom: 6px;
}

.editor-ctrl-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.editor-btn:hover { background: #f0f0f0; border-color: #bbb; }

.editor-slider {
    flex: 1;
    accent-color: #c89a00;
    height: 4px;
}

.editor-val {
    font-size: 12px;
    color: #555;
    font-weight: 600;
    min-width: 38px;
    text-align: right;
}

.editor-hint {
    font-size: 11px;
    color: #aaa;
    margin: 0;
    text-align: center;
}

.yado-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #eee;
}

.yado-dpi-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
    flex: 1;
    justify-content: center;
}
.yado-dpi-badge.dpi-bad  { background: #fff0f0; border-color: #e57373; color: #c62828; }
.yado-dpi-badge.dpi-ok   { background: #fffde7; border-color: #f9a825; color: #e65100; }
.yado-dpi-badge.dpi-good { background: #f0fff4; border-color: #66bb6a; color: #1b5e20; }

#yadoDpiIcon { font-size: 10px; }
#yadoDpiValue { font-size: 13px; }
#yadoDpiLabel { font-size: 11px; font-weight: 400; opacity: 0.8; }

.yado-editor-btn-reset {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #666;
    transition: all 0.15s;
}
.yado-editor-btn-reset:hover { background: #f5f5f5; }

.yado-editor-btn-apply {
    background: #c89a00;
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.yado-editor-btn-apply:hover { background: #a07800; }

/* ------------------------------------------------------------------ */
/*  Séparateur disque 1 / disque 2                                     */
/* ------------------------------------------------------------------ */
.disc-block-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 18px 0 16px;
    opacity: 0.5;
}

.disc-block-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Type de vinyle disque 2 */
.disc2-vinyl-type {
    margin-bottom: 4px;
}

.disc2-vinyl-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------ */
/*  Picture Disc                                                        */
/* ------------------------------------------------------------------ */
.picture-disc-hint {
    font-size: 12px;
    color: var(--text-mid);
    margin: 0 0 10px;
    padding: 8px 12px;
    background: var(--gold-dim);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
}

/* ------------------------------------------------------------------ */
/*  Gatefold                                                            */
/* ------------------------------------------------------------------ */
.sleeve-sub {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 2px;
    display: block;
}

.face-hint {
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 400;
    margin-left: 4px;
    letter-spacing: 0;
    text-transform: none;
}

/* ================================================================== */
/*  Audio multi-face                                                    */
/* ================================================================== */
.yado-audio-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}
.yado-audio-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.yado-audio-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.yado-audio-panel { display: none; }
.yado-audio-panel.active { display: block; }

/* Barre durée */
.yado-audio-duration-bar {
    margin-bottom: 12px;
}
.duration-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--text-dim);
}
.duration-used { font-weight: 700; color: var(--text); }
.duration-bar-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.duration-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 3px;
    transition: width .3s, background .3s;
}
.duration-bar-fill.over { background: #e05555; }

/* Dropzone */
.yado-audio-dropzone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: 14px;
    color: var(--text-dim);
}
.yado-audio-dropzone svg {
    width: 44px; height: 44px;
    margin: 0 auto 10px;
    display: block;
    opacity: .5;
}
.yado-audio-dropzone p { font-size: 13px; margin: 0 0 4px; }
.yado-audio-dropzone.drag-over {
    border-color: var(--gold);
    background: rgba(212,175,55,0.05);
}
.yado-audio-browse {
    color: var(--gold);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}
.audio-formats-hint { font-size: 11px; color: var(--text-dim); }

/* Liste fichiers */
.yado-audio-filelist {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.yado-audio-file {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    cursor: grab;
    transition: box-shadow .15s, opacity .15s;
    user-select: none;
}
.yado-audio-file.dragging { opacity: .4; }
.yado-audio-file.drag-over-item { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,.3); }
.file-order {
    width: 22px; height: 22px;
    background: var(--gold);
    color: #1a1a1a;
    border-radius: 50%;
    font-weight: 700;
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.file-drag-handle { color: var(--text-dim); font-size: 14px; cursor: grab; flex-shrink: 0; }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-duration { color: var(--text-dim); flex-shrink: 0; font-size: 11px; }
.file-status { font-size: 11px; flex-shrink: 0; }
.file-status.uploading { color: var(--gold); font-size: 0.82em; font-weight: 600; min-width: 36px; text-align: right; }
.file-status.done { color: #4caf50; }
.file-status.error { color: #e05555; }
.file-remove {
    background: none; border: none;
    color: var(--text-dim); cursor: pointer;
    font-size: 14px; padding: 0 2px;
    flex-shrink: 0;
    transition: color .15s;
}
.file-remove:hover { color: #e05555; }

/* Upload progress */
.yado-audio-upload-progress {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px; font-size: 12px; color: var(--text-dim);
}
.yado-audio-upload-progress .upload-progress-bar {
    flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}

/* ------------------------------------------------------------------ */
/*  Bouton Réinitialiser                                               */
/* ------------------------------------------------------------------ */
.yado-cfg__progress {
    display: flex;
    align-items: center;
    gap: 16px;
}
.yado-cfg__progress-track { flex: 1; }
.yado-cfg__btn-reset {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-dim);
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    flex-shrink: 0;
}
.yado-cfg__btn-reset:hover {
    color: #e05555;
    border-color: #e05555;
}

/* ================================================================== */
/*  Sous-étapes (substeps) Step 2                                      */
/* ================================================================== */
.yado-cfg__substep {
    animation: fadeInStep 0.25s ease;
}
.yado-cfg__substep[hidden] { display: none; }

.yado-cfg__substep-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 6px;
    overflow: hidden;
}
.substep-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}
.yado-cfg__substep-title {
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
    margin-bottom: 16px;
    letter-spacing: .03em;
}

/* ================================================================== */
/*  Bouton zoom aperçu + Modal plein écran                            */
/* ================================================================== */
.yado-preview-zoom-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(212,175,55,0.95);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.92;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.yado-preview-zoom-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.yado-cfg__vinyl-stage:hover .yado-preview-zoom-btn { opacity: 1; }

.yado-preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInStep 0.2s ease;
}
.yado-preview-modal[hidden] { display: none !important; }

.yado-preview-modal-inner {
    position: relative;
    width: 94vw;
    height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#yadoVinylCanvasLarge {
    width: 100%;
    height: calc(94vh - 80px);
    object-fit: contain;
    cursor: grab;
    touch-action: none;
}
#yadoVinylCanvasLarge:active { cursor: grabbing; }

.yado-preview-modal-close {
    position: fixed;
    bottom: 300px;
    right: 30px;
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    z-index: 100001;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    letter-spacing: .02em;
}
.yado-preview-modal-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* Spinner overlay pour la 3D (s'affiche pendant le chargement) */
.yado-3d-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.25s;
}
.yado-3d-spinner[hidden] {
    display: none;
}
.yado-3d-spinner__ring {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(212,175,55,0.18);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: yado-3d-spin 0.85s linear infinite;
}
.yado-3d-spinner__text {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    letter-spacing: 0.4px;
    font-weight: 500;
}
@keyframes yado-3d-spin {
    to { transform: rotate(360deg); }
}

/* ================================================================== */
/*  Step 0 — Sélecteur de produit                                      */
/* ================================================================== */
.yado-cfg__product-selector {
    padding: 48px 40px;
    text-align: center;
}

.yado-cfg__product-selector-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.yado-cfg__product-selector-subtitle {
    color: var(--text-mid);
    font-size: 1em;
    margin-bottom: 40px;
}

.yado-cfg__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.yado-cfg__product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    text-align: center;
}

.yado-cfg__product-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.15);
}

.product-card-icon {
    font-size: 2.4em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-icon svg {
    width: 58px;
    height: 58px;
    display: block;
}

.product-card-label {
    font-weight: 700;
    font-size: 1em;
    color: var(--text-main);
}

.product-card-desc {
    font-size: 0.78em;
    color: var(--text-dim);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .yado-cfg__product-grid {
        grid-template-columns: 1fr 1fr;
    }
    .yado-cfg__product-selector {
        padding: 32px 20px;
    }
}

/* ── Mode Pochette Seule — responsive ─────────────────────────────── */
#yadoSleevePreview {
    padding: 16px !important;
}

#yadoSleevePreviewBox {
    transition: border-color 0.2s, box-shadow 0.2s;
}

#yadoSleevePreviewBox:hover {
    border-color: rgba(212,175,55,0.7) !important;
    box-shadow: 0 8px 40px rgba(212,175,55,0.2) !important;
}

/* Mobile : preview compacte, non fixe */

/* ================================================================== */
/*  MOBILE (≤ 768px) — preview intégrée au-dessus des questions       */
/* ================================================================== */


/* ================================================================== */
/*  Fix Divi — supprime les marges/padding du conteneur parent        */
/* ================================================================== */


/* FIX FINAL MOBILE — layout transparent, colonne unique sans espace */

/* ================================================================== */
/*  MOBILE ≤ 768px — NE TOUCHE PAS AU DESKTOP                        */
/* ================================================================== */

@media (max-width: 768px) {
    .yado-cfg__layout {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
        align-items: start !important;
        grid-template-rows: auto auto !important;
        grid-template-areas: "preview" "steps" !important;
    }
    .yado-cfg__preview { grid-area: preview !important; }
    .yado-cfg__steps { grid-area: steps !important; }
    /* Force la preview à ne PAS être fixed — écrase tout CSS externe */
    .yado-cfg__preview,
    #yadoPreviewPanel {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        grid-row: 1 !important;
        grid-column: 1 !important;
        align-self: start !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }
    .yado-cfg__steps {
        grid-row: 2 !important;
        grid-column: 1 !important;
        align-self: start !important;
        max-height: none !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
        border-right: none !important;
    }
    .yado-cfg__vinyl-stage { height: auto !important; flex: none !important; }
    .yado-cfg__vinyl-stage canvas { width: 65vw !important; height: 65vw !important; max-height: none !important; }
    .yado-cfg__progress { padding: 12px 16px; }
    .step-label { font-size: 10px; }
    .yado-cfg__format-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .yado-cfg__format-card { padding: 12px 8px; }
    .yado-cfg__options-grid { grid-template-columns: 1fr; gap: 0; }
    .yado-cfg__sleeve-grid { grid-template-columns: repeat(3, 1fr); }
    .yado-cfg__nav-row { margin-top: 20px; }
    .yado-cfg__step-title { font-size: 22px; margin-bottom: 16px; }
}

/* Fix espace mobile — supprime min-height sur layout ET sur steps */
@media (max-width: 768px) {
    #yado-configurator .yado-cfg__layout {
        min-height: 0 !important;
        height: auto !important;
    }
    #yado-configurator .yado-cfg__steps {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* Supprime l'ancien margin-top de compensation de preview fixe */
@media (max-width: 768px) {
    #yado-configurator .yado-cfg__steps {
        margin-top: 0 !important;
    }
}

/* Fix preview mobile — prix et label en dessous de l'image */
@media (max-width: 768px) {
    #yado-configurator .yado-cfg__preview {
        flex-direction: column !important;
        align-items: center !important;
    }
    #yado-configurator .yado-cfg__preview-right {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }
    #yado-configurator .yado-cfg__vinyl-stage {
        width: 100% !important;
        max-width: 280px !important;
    }
}

/* Mobile — progress bar : steps en haut, boutons en dessous */
@media (max-width: 768px) {
    .yado-cfg__progress {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 16px !important;
    }
    .yado-cfg__progress-track {
        order: 1;
        width: 100% !important;
    }
    .yado-cfg__btn-reset {
        order: 2;
        width: 100% !important;
        text-align: center !important;
    }
    /* Bouton "Changer de produit" aussi en dessous */
    #yadoBackToSelector {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        order: 2;
        width: 100% !important;
        text-align: center !important;
        margin-top: 4px !important;
    }
}

/* ================================================================== */
/*  CD — liste de fichiers audio                                       */
/* ================================================================== */
.yado-cd-audio-file {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 0.88em;
}
.audio-file-icon { font-size: 1.1em; flex-shrink: 0; }
.audio-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.audio-file-dur  { color: var(--text-dim); font-size: 0.85em; flex-shrink: 0; }
.audio-file-remove {
    background: none; border: none; color: var(--text-dim);
    cursor: pointer; font-size: 1em; padding: 0 4px;
    flex-shrink: 0;
}
.audio-file-remove:hover { color: var(--danger); }

/* CD canvas — ratio correct sur mobile */
#yadoCdCanvas {
    width: 450px;
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* ──────────────────────────────────────────────────────────────────────
   Encart d'information impression UV (Splatter / Picture Disc)
   ────────────────────────────────────────────────────────────────────── */
.yado-cfg__uv-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-left: 3px solid #d4af37;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 18px 0 6px;
    font-size: 0.9em;
    line-height: 1.45;
}
.yado-cfg__uv-notice[hidden] { display: none; }
.yado-cfg__uv-notice .uv-notice-icon {
    flex-shrink: 0;
    font-size: 1.3em;
    line-height: 1;
    margin-top: 1px;
}
.yado-cfg__uv-notice .uv-notice-text {
    flex: 1;
}
.yado-cfg__uv-notice .uv-notice-text strong {
    display: block;
    color: #b08e1f;
    margin-bottom: 4px;
    font-weight: 600;
}
.yado-cfg__uv-notice .uv-notice-text p {
    margin: 0;
    color: #5a4a20;
}
