/* ======================================================
   PrintMi — Pages Additionnelles CSS
   ====================================================== */

/* ── Flash Messages ── */
.flash-message {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s var(--ease-out);
}
.flash-success { background: #0d3320; color: #6ee7b7; border: 1px solid #065f46; }
.flash-error { background: #3b1215; color: #fca5a5; border: 1px solid #7f1d1d; }
.flash-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 18px; padding: 0 4px; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Page Headers ── */
.page-header {
    background: var(--white);
    padding: 160px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}
.page-header-sm { padding: 140px 0 30px; }
.page-header .page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.page-header .page-title em { font-style: italic; color: var(--gold); }
.page-header .page-desc { color: var(--gray-600); font-size: 18px; }
.page-header .section-tag { color: var(--gold); margin-bottom: 16px; }

.breadcrumb { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--black); }

/* ── Nav Cart Badge ── */
.nav-cart-link { position: relative; font-size: 18px !important; }
.cart-badge {
    position: absolute;
    top: -2px; right: 4px;
    background: var(--gold);
    color: var(--white);
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.nav-link.active { color: var(--gold) !important; }

/* ── Catalogue Filters ── */
.catalogue-filters { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.catalogue-filters > * { min-width: 0; max-width: 100%; } /* un élément flex ne doit jamais être plus large que l'écran (les onglets défilent au doigt sur mobile) */
.filter-tab {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px; font-weight: 500;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}
.filter-tab:hover, .filter-tab.active {
    background: var(--black);
    color: var(--gold);
    border-color: var(--black);
}
.sort-select {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--white);
    cursor: pointer;
}

/* ── Products Grid (Catalogue page — light bg) ── */
.page-catalogue .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}
.page-catalogue .product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.page-catalogue .product-card:hover {
    border-color: rgba(26, 63, 186, 0.3);
    box-shadow: var(--shadow-lg);
}
.page-catalogue .product-name { color: var(--black); }
.page-catalogue .product-info { padding: 20px; }
.product-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; line-height: 1.6; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 14px; color: var(--gray-500); }
.product-price strong { color: var(--gold); font-size: 16px; }
.product-colors { display: flex; gap: 4px; }
.color-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.color-dot-lg { width: 28px; height: 28px; cursor: pointer; transition: transform 0.2s ease; }
.color-dot-lg:hover { transform: scale(1.15); }
.color-dot-sm { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.product-customize-btn {
    margin: 0 20px 20px;
    text-align: center;
}
.btn-sm { padding: 10px 20px; font-size: 13px; }
.page-catalogue .btn-outline {
    color: var(--black);
    border-color: var(--gray-300);
}
.page-catalogue .btn-outline:hover {
    background: var(--black);
    color: var(--gold);
    border-color: var(--black);
}

/* ── Product Detail ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-main-image {
    position: relative;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-img { width: 85%; height: 85%; object-fit: contain; }
.detail-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}
.detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}
.detail-desc { color: var(--gray-500); margin-bottom: 30px; line-height: 1.8; }
.detail-section { margin-bottom: 24px; }
.detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.detail-colors { display: flex; gap: 8px; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-tag {
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.finish-tags { display: flex; gap: 12px; }
.finish-tag-badge { padding: 8px 16px; background: var(--gold-subtle); color: var(--gold-dark); border-radius: 8px; font-size: 13px; font-weight: 600; }

/* Badge positionné sur la galerie produit */
.detail-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

/* Espacement avant les produits similaires */
.related-products {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--gray-200);
}

/* ── Customizer ── */
.customizer-section { padding-top: 80px; background: var(--white); min-height: 100vh; }
.customizer-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: calc(100vh - 80px); }
.customizer-panel, .customizer-preview { min-width: 0; }
.customizer-preview {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    padding: 30px;
}
.preview-container { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; max-width: 600px; }
.preview-mockup {
    /* Aperçu fluide : carré, 600 px au maximum. Toutes les tailles internes (motif, texte) sont exprimées en
       « unités de 600 px » via --mk (= largeur réelle / 600, posé par le script) pour garder la même composition
       sur téléphone, tablette et ordinateur. */
    --mk: 1px;
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.preview-product-img {
    max-width: 92%; max-height: 92%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Draggable + Resizable overlays */
.draggable-overlay {
    position: absolute;
    top: 35%; left: 50%;
    transform: translate(-50%, -50%);
    width: calc(120 * var(--mk, 1px)); height: calc(80 * var(--mk, 1px));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
    border: 2px dashed transparent;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}
/* Design overlay : droite, taille ajustée */
#designOverlay {
    left: 61%;
    top: 36%;
    width: calc(100 * var(--mk, 1px));
    height: calc(80 * var(--mk, 1px));
}
/* Texte overlay : gauche, même hauteur */
#textOverlay {
    left: 38%;
    top: 36%;
}
.draggable-overlay:hover {
    border-color: rgba(26, 63, 186, 0.6);
}
.draggable-overlay.dragging,
.draggable-overlay.resizing {
    cursor: grabbing;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(26, 63, 186, 0.4);
    z-index: 20;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    width: 14px; height: 14px;
    background: var(--gold);
    border: 2px solid var(--black);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 30;
}
.draggable-overlay:hover .resize-handle,
.draggable-overlay.dragging .resize-handle,
.draggable-overlay.resizing .resize-handle {
    opacity: 1;
}
.resize-handle-br { bottom: -7px; right: -7px; cursor: nwse-resize; }
.resize-handle-bl { bottom: -7px; left: -7px; cursor: nesw-resize; }
.resize-handle-tr { top: -7px; right: -7px; cursor: nesw-resize; }
.resize-handle-tl { top: -7px; left: -7px; cursor: nwse-resize; }
.resize-handle:hover {
    transform: scale(1.3);
    background: #fff;
}
/* Écrans tactiles : pas de survol, donc poignées toujours visibles et assez grandes pour le doigt */
@media (hover: none) {
    .draggable-overlay { border-color: rgba(26, 63, 186, 0.45); }
    .resize-handle { opacity: 1; width: 24px; height: 24px; border-radius: 6px; }
    .resize-handle-br { bottom: -12px; right: -12px; }
    .resize-handle-bl { bottom: -12px; left: -12px; }
    .resize-handle-tr { top: -12px; right: -12px; }
    .resize-handle-tl { top: -12px; left: -12px; }
}

.drag-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.drag-hint.visible { opacity: 1; }
.drag-hint span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: rgba(26, 63, 186, 0.15);
    color: var(--gold);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.design-preview-img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0.9; pointer-events: none; }
.preview-mockup #textPreviewSpan { font-size: calc(16 * var(--mk, 1px)); }
.preview-text-overlay span#textPreviewSpan {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.step-price-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.text-hint { font-size: 11px; color: var(--gray-400); margin-top: 6px; font-style: italic; }

/* Text color selector */
.text-color-row { margin-top: 10px; margin-bottom: 8px; }
.text-color-label { font-size: 12px; font-weight: 500; color: var(--gray-500); display: block; margin-bottom: 6px; }
.text-color-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.text-color-option { cursor: pointer; }
.text-color-option input { display: none; }
.text-color-swatch {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.text-color-option:hover .text-color-swatch { transform: scale(1.15); }
.text-color-option.active .text-color-swatch {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    transform: scale(1.1);
}
.preview-side-toggle { display: flex; gap: 8px; }
.side-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #bbb;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}
.side-btn.active, .side-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.preview-price-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    margin-top: 16px;
}
.preview-price-label { color: #555; font-size: 14px; }
.preview-price-value { color: var(--black); font-size: 22px; font-weight: 700; font-family: var(--font-display); }

.customizer-panel {
    background: var(--cream);
    padding: 40px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}
.panel-header { margin-bottom: 30px; }
.panel-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.panel-subtitle { color: var(--gray-500); font-size: 14px; }
.panel-step { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); }
.panel-step-final { border-bottom: none; }
.step-label { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--black); display: flex; align-items: center; gap: 8px; }
.selected-value { color: var(--gold); font-weight: 400; font-size: 13px; }

.color-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.color-option {
    cursor: pointer; position: relative;
}
.color-option input { display: none; }
.color-swatch {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.color-option.active .color-swatch,
.color-option:hover .color-swatch {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--gold);
}

.size-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.size-option { cursor: pointer; }
.size-option input { display: none; }
.size-label {
    display: block;
    padding: 10px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 48px;
}
.size-option.active .size-label, .size-option:hover:not(.out-of-stock) .size-label { background: var(--black); color: var(--gold); border-color: var(--black); }

/* ── Rupture de stock ── */
.color-option.out-of-stock { cursor: not-allowed; }
.color-option.out-of-stock .color-swatch {
    opacity: 0.45;
    box-shadow: none;
}
.color-option.out-of-stock .color-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 42%, #ef4444 42%, #ef4444 58%, transparent 58%);
    pointer-events: none;
}
.color-option.out-of-stock input { pointer-events: none; }

.size-option.out-of-stock { cursor: not-allowed; }
.size-option.out-of-stock .size-label {
    opacity: 0.45;
    border-color: #fca5a5;
    background: #fff5f5;
    color: #ef4444;
    text-decoration: line-through;
    position: relative;
}
.size-option.out-of-stock .size-label::after {
    content: '✕';
    position: absolute;
    top: -6px; right: -6px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.size-option.out-of-stock input { pointer-events: none; }

.design-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
.design-option { cursor: pointer; }
.design-option input { display: none; }
.design-thumb {
    width: 100%; aspect-ratio: 1;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; transition: all 0.3s ease;
    position: relative;
    /* Fond damier : rend visibles les motifs blancs ou semi-transparents */
    background-color: #e0e0e0;
    background-image:
        linear-gradient(45deg, #b0b0b0 25%, transparent 25%),
        linear-gradient(-45deg, #b0b0b0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #b0b0b0 75%),
        linear-gradient(-45deg, transparent 75%, #b0b0b0 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}
.design-thumb img { width: 80%; height: 80%; object-fit: contain; }
.design-none { font-size: 12px; color: var(--gray-400); background: var(--white); background-image: none; }
.design-option.active .design-thumb, .design-option:hover .design-thumb { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,168,76,0.2); }
.design-name { display: block; font-size: 11px; margin-top: 4px; text-align: center; color: var(--gray-500); }
.design-price {
    position: absolute; bottom: 4px; right: 4px;
    background: var(--gold); color: var(--white);
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
}

/* Upload design option */
.design-upload {
    border-style: dashed !important;
    flex-direction: column;
    gap: 4px;
    color: var(--gold);
    position: relative;
}
.design-upload svg { stroke: var(--gold); width: 20px; height: 20px; }
.upload-label { font-size: 10px; font-weight: 600; color: var(--gold); }
.upload-thumb-preview {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 6px;
    border-radius: var(--radius);
}
.upload-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(26, 63, 186, 0.08);
    border: 1px solid rgba(26, 63, 186, 0.2);
    border-radius: 8px;
}
.upload-filename { font-size: 12px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.upload-remove {
    background: none; border: none; cursor: pointer;
    color: #999; font-size: 14px; padding: 2px 6px;
    border-radius: 4px; transition: all 0.2s;
}
.upload-remove:hover { background: rgba(255,0,0,0.1); color: #e33; }

.panel-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--white);
    transition: border-color 0.3s ease;
}
.panel-input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.panel-select { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; font-family: var(--font-body); background: var(--white); margin-top: 8px; cursor: pointer; }

.application-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-option { cursor: pointer; }
.app-option input { display: none; }
.app-card {
    padding: 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}
.app-option.active .app-card, .app-option:hover .app-card { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.app-icon { display: block; font-size: 24px; margin-bottom: 6px; }
.app-name { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.app-desc { display: block; font-size: 12px; color: var(--gray-400); }
.app-price { display: block; font-size: 13px; font-weight: 600; color: var(--gold); margin-top: 6px; }

.quantity-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.quantity-selector { display: flex; align-items: center; gap: 0; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.quantity-selector-sm { transform: scale(0.9); }
.qty-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); border: none;
    cursor: pointer; font-size: 18px; font-weight: 600;
    transition: background 0.2s ease;
}
.qty-btn:hover { background: var(--gold); color: var(--white); }
.qty-input {
    width: 48px; height: 40px;
    text-align: center; border: none;
    font-size: 16px; font-weight: 600;
    font-family: var(--font-body);
    background: var(--white);
}
.qty-input:focus { outline: none; }
.qty-display { width: 48px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 600; background: var(--white); }

/* ── Cart ── */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.cart-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-image { width: 100px; height: 100px; border-radius: 8px; overflow: hidden; background: var(--gray-100); flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; }
.cart-item-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cart-item-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.spec { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-500); padding: 4px 10px; background: var(--gray-100); border-radius: 50px; }
.cart-item-actions { display: flex; align-items: center; gap: 16px; }
.cart-remove-btn { background: none; border: none; color: #ef4444; font-size: 13px; cursor: pointer; font-weight: 500; }
.cart-remove-btn:hover { text-decoration: underline; }
.cart-item-price { text-align: right; flex-shrink: 0; }
.price-unit { display: block; font-size: 12px; color: var(--gray-400); }
.price-total { display: block; font-size: 18px; font-weight: 700; color: var(--gold); }

/* Cart preview customization image */
.cart-item-image { position: relative; }
.cart-preview-img { cursor: zoom-in; transition: transform 0.2s ease; }
.cart-preview-img:hover { transform: scale(1.05); }
.preview-badge {
    position: absolute; bottom: 4px; left: 4px;
    background: var(--gold); color: var(--white);
    font-size: 8px; font-weight: 700; text-transform: uppercase;
    padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
}
.cart-modify-btn {
    background: none; border: 1px solid var(--gold); color: var(--gold);
    font-size: 12px; font-weight: 600; padding: 4px 12px;
    border-radius: 6px; cursor: pointer; transition: all 0.2s;
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.cart-modify-btn:hover { background: var(--gold); color: var(--white); }

/* Preview Modal */
.preview-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 9999;
    justify-content: center; align-items: center;
}
.preview-modal.active { display: flex; animation: fadeIn 0.3s ease; }
.preview-modal-content { position: relative; max-width: 500px; max-height: 80vh; }
.preview-modal-content img { width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.preview-modal-close {
    position: absolute; top: -12px; right: -12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gold); color: var(--white); border: none;
    font-size: 14px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.2s;
}
.preview-modal-close:hover { transform: scale(1.1); }
.preview-modal-caption { text-align: center; color: #ccc; font-size: 13px; margin-top: 12px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.summary-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: 100px;
}
.summary-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--gray-600); }
.summary-note { color: var(--gray-400); font-size: 13px; }
.summary-divider { height: 1px; background: var(--gray-200); margin: 12px 0; }
.summary-total {
    display: flex; justify-content: space-between;
    padding: 16px 0; margin: 12px 0;
    font-size: 18px; font-weight: 700;
    border-top: 2px solid var(--black);
}
.summary-card .btn-outline {
    color: var(--black);
    border-color: var(--black);
}
.summary-card .btn-outline:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ── Checkout ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.checkout-block { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.checkout-block-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { 
    display: block; 
    position: static; 
    transform: none; 
    opacity: 1; 
    pointer-events: auto; 
    padding: 0; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--gray-600); 
    margin-bottom: 6px; 
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.delivery-options { display: grid; gap: 10px; }
.delivery-option { cursor: pointer; }
.delivery-option input { display: none; }
.delivery-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); transition: all 0.3s ease;
}
.delivery-option.active .delivery-card, .delivery-option:hover .delivery-card { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.delivery-fee { color: var(--gold); font-weight: 600; }

.payment-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.payment-option:last-child:nth-child(odd) { grid-column: span 2; }
.payment-option { cursor: pointer; }
.payment-option input { display: none; }
.payment-card {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); transition: all 0.25s ease;
    text-align: left; justify-content: flex-start;
    background: var(--white);
}
.payment-option.active .payment-card, .payment-option:hover .payment-card {
    border-color: var(--gold, #C9A84C);
    background: rgba(201,168,76,0.06);
    box-shadow: 0 4px 12px rgba(201,168,76,0.12);
}
.payment-logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.payment-card-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.payment-card-info strong {
    font-size: 14px;
    color: var(--black, #111827);
}
.payment-card-info small {
    font-size: 11px;
    color: var(--gray-400, #9CA3AF);
    margin-top: 2px;
}

.summary-item { display: flex; justify-content: space-between; align-items: start; padding: 8px 0; font-size: 13px; }
.summary-item-info strong { display: block; font-size: 14px; }
.summary-item-info span { color: var(--gray-400); font-size: 12px; }

/* ── Confirmation ── */
.confirmation-section { padding-top: 120px; padding-bottom: 80px; }
.confirmation-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}
.confirmation-icon { font-size: 64px; margin-bottom: 20px; }
.confirmation-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.confirmation-subtitle { color: var(--gray-500); margin-bottom: 28px; }
.order-number-badge {
    display: inline-flex; flex-direction: column;
    padding: 16px 32px;
    background: var(--gold-subtle); border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius); margin-bottom: 28px;
}
.order-number-badge span { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; }
.order-number-badge strong { font-size: 20px; color: var(--gold); font-family: var(--font-display); }
.confirmation-details { text-align: left; margin-bottom: 24px; }
.conf-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.conf-total { font-weight: 700; font-size: 16px; border-top: 2px solid var(--black); border-bottom: none; }
.conf-items { text-align: left; margin-bottom: 24px; }
.conf-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.conf-item-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--gray-100); }
.conf-item-info { flex: 1; }
.conf-item-info strong { display: block; font-size: 14px; }
.confirmation-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.confirmation-actions .btn { min-width: 190px; }
.confirmation-actions .btn-outline, .confirmation-card .btn-outline {
    color: var(--black, #111827);
    border: 1.5px solid var(--gray-300, #D1D5DB);
    background: var(--white, #FFFFFF);
    font-weight: 600;
}
.confirmation-actions .btn-outline:hover, .confirmation-card .btn-outline:hover {
    border-color: var(--gold, #C9A84C);
    color: var(--gold, #C9A84C);
    background: rgba(201,168,76,0.08);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-in_production { background: #dbeafe; color: #1e40af; }
.status-ready { background: #e0e7ff; color: #3730a3; }
.status-shipped { background: #fce7f3; color: #9d174d; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ── Tracking Timeline ── */
.tracking-section .container-sm { max-width: 700px; margin: 0 auto; }
.tracking-search { display: flex; gap: 12px; margin-bottom: 40px; }
.tracking-input { flex: 1; font-size: 16px !important; }
.tracking-result { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 40px; text-align: center; }
.tracking-timeline { display: flex; align-items: center; justify-content: center; gap: 0; margin: 30px 0; }
.timeline-step { text-align: center; flex-shrink: 0; opacity: 0.35; transition: opacity 0.3s ease; }
.timeline-step.active { opacity: 1; }
.timeline-step.current { opacity: 1; }
.timeline-step.current .timeline-icon { transform: scale(1.2); }
.timeline-icon { font-size: 28px; margin-bottom: 6px; }
.timeline-label { font-size: 11px; font-weight: 600; color: var(--gray-500); }
.timeline-line { width: 40px; height: 2px; background: var(--gray-200); margin: 0 4px; }
.timeline-line.active { background: var(--gold); }
.tracking-details { text-align: left; }

/* ── Account ── */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.account-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    position: sticky; top: 100px;
}
.account-avatar {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    font-size: 28px; font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.account-email { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav-link {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-600);
    transition: all 0.3s ease;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-body);
}
.account-nav-link:hover, .account-nav-link.active { background: var(--gold-subtle); color: var(--gold-dark); }
.account-logout { color: #ef4444 !important; }

.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.account-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.stat-value { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--gold); }
.stat-desc { display: block; font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.account-section-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 16px; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}
.order-row:hover { box-shadow: var(--shadow-sm); }
.order-row-info { flex: 1; }
.order-row-info strong { display: block; font-size: 14px; }
.order-row-info span { font-size: 12px; color: var(--gray-400); }
.order-row-items { font-size: 13px; color: var(--gray-500); }
.order-row-total { font-weight: 700; color: var(--gold); }

/* ── Order Cards (Account Dashboard) ── */
.order-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
    overflow: hidden;
}
.order-card-img {
    flex: 0 0 30%;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: zoom-in;
    min-width: 0;
}
.order-card-img img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    mix-blend-mode: darken;
}
.order-card-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.order-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.order-card-info {
    min-width: 0;
    flex: 1;
}
.order-card-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-card-date {
    margin: 0;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}
.order-card-product {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: var(--gold);
    font-weight: 700;
}
.order-card-price {
    text-align: right;
    flex-shrink: 0;
}
.order-card-total {
    font-size: 16px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 6px;
}
.order-card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--gray-100);
}
.btn-edit-design {
    border-color: #f59e0b;
    color: #d97706;
    background: #fffbeb;
    border-radius: 6px;
    text-decoration: none;
}

/* ── Auth Pages ── */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    padding: 40px 20px;
}
.auth-container { width: 100%; max-width: 420px; }
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { height: 80px; margin: 0 auto 20px; }
.auth-header h1 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.auth-header p { font-size: 14px; color: var(--gray-500); }
.auth-errors {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 8px; padding: 12px 16px;
    margin-bottom: 20px; font-size: 13px; color: #991b1b;
}
.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13px; }
.auth-remember { display: flex; align-items: center; gap: 6px; color: var(--gray-600); }
.auth-forgot { color: var(--gold); font-weight: 500; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--gray-500); }
.auth-footer a { color: var(--gold); font-weight: 600; }

/* ── Contact Page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-card {
    display: flex; gap: 16px; align-items: start;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.contact-card:hover { border-color: rgba(201,168,76,0.3); box-shadow: var(--shadow-sm); }
.contact-icon { width: 48px; height: 48px; background: var(--gold-subtle); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.contact-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-card p { font-size: 14px; color: var(--gray-500); }
.whatsapp-icon { background: #dcfce7 !important; color: #22c55e !important; }
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state-sm { padding: 40px 20px; }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); margin-bottom: 20px; }

/* ── Container small ── */
.container-sm { max-width: 700px; }

.product-card-link { display: block; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .page-header { padding: 120px 0 40px; }
    .catalogue-filters { flex-direction: column; align-items: stretch; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .customizer-layout { grid-template-columns: minmax(0, 1fr); }
    .customizer-preview { position: relative; height: auto; top: 0; padding: 20px 16px; }
    .customizer-panel { max-height: none; padding: 24px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { flex-direction: column; }
    .cart-item-price { text-align: left; }
    .checkout-layout { grid-template-columns: minmax(0, 1fr); width: 100%; gap: 24px; }
    .checkout-form { width: 100%; min-width: 0; }
    .checkout-summary { width: 100%; min-width: 0; }
    .checkout-block { padding: 20px 16px; width: 100%; min-width: 0; box-sizing: border-box; }
    .form-row { grid-template-columns: 1fr; }
    .payment-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .payment-option {
        padding: 0;
        min-width: 0;
    }
    .payment-option:last-child:nth-child(odd) {
        grid-column: span 2;
    }
    .payment-card {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 10px;
        min-width: 0;
        box-sizing: border-box;
    }
    .payment-logo-img {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        border-radius: 6px;
    }
    .payment-card-info {
        min-width: 0;
        overflow: hidden;
    }
    .payment-card-info strong {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .payment-card-info small {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tracking-search { flex-direction: column; }
    .tracking-timeline { flex-direction: column; align-items: flex-start; padding-left: 10px; gap: 0; margin-left: 20px; }
    .timeline-step { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; min-width: auto; }
    .timeline-icon { margin: 0; width: 35px; height: 35px; font-size: 16px; }
    .timeline-label { margin: 0; font-size: 15px; }
    .timeline-line { width: 3px; height: 25px; margin: 8px 0 8px 16px; background: var(--gray-200); }
    .account-grid { grid-template-columns: 1fr; gap: 20px; }
    .account-sidebar {
        position: static;
        padding: 20px;
        overflow: hidden;
    }
    .account-avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    .account-sidebar h3 {
        font-size: 16px;
    }
    .account-email {
        font-size: 12px;
        margin-bottom: 16px;
        word-break: break-all;
    }
    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 4px;
    }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav-link {
        flex-shrink: 0;
        width: auto;
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 20px;
        text-align: center;
    }
    .account-content {
        overflow: hidden;
        min-width: 0;
    }
    .account-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .account-stat-card {
        padding: 16px 8px;
    }
    .stat-value {
        font-size: 24px;
    }
    .stat-desc {
        font-size: 11px;
    }
    .account-section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { min-height: 300px; }
    .auth-card { padding: 32px 24px; }
    .order-row { flex-wrap: wrap; }
    .confirmation-card { padding: 32px 24px; }

    /* ── Order Cards Responsive ── */
    .order-card {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    .order-card-img {
        flex: none;
        width: 100%;
        max-height: 150px;
        padding: 12px;
    }
    .order-card-img img {
        max-height: 110px;
    }
    .order-card-header {
        flex-direction: column;
        gap: 6px;
    }
    .order-card-title {
        font-size: 14px;
        white-space: normal;
        word-break: break-all;
    }
    .order-card-price {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .order-card-total {
        font-size: 14px;
        margin-bottom: 0;
    }
    .order-card-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }
    .order-card-actions .btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    .custom-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .rtw-nav { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   CATALOGUE — Catégories Personnalisables
   ═══════════════════════════════════════════════════════════════ */
.custom-categories-section {
    padding-top: 40px;
}

.custom-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.custom-cat-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
    border: 2px solid var(--gray-200);
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
    color: inherit;
    display: block;
}

.custom-cat-card.available {
    cursor: pointer;
    border-color: var(--gold);
}

.custom-cat-card.available:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 63, 186, 0.12);
    border-color: var(--gold-light);
}

.custom-cat-card.coming-soon {
    cursor: default;
    opacity: 0.6;
}

.custom-cat-card.coming-soon .custom-cat-img-wrap img {
    filter: grayscale(0.5);
}

.custom-cat-img-wrap {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
}

.custom-cat-img-wrap img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out);
}

.custom-cat-card.available:hover .custom-cat-img-wrap img {
    transform: scale(1.08);
}

.custom-cat-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.custom-cat-info {
    padding: 20px;
    text-align: center;
}

.custom-cat-info h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.custom-cat-status {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-cat-status.available {
    background: var(--gold);
    color: var(--white);
}

.custom-cat-status.coming {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   CATALOGUE — Slider Prêt-à-porter
   ═══════════════════════════════════════════════════════════════ */
.rtw-section {
    border-top: 1px solid var(--gray-200);
}

.rtw-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 24px;
}

.rtw-header .section-title {
    text-align: left;
    margin-bottom: 8px;
}

.rtw-header .section-desc {
    text-align: left;
}

.btn-see-all {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.rtw-slider-wrap {
    position: relative;
}

.rtw-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.rtw-slider::-webkit-scrollbar {
    display: none;
}

.rtw-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.rtw-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-out);
}

.rtw-card-link:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.rtw-card-img {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--gray-100);
}

.rtw-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.rtw-card-link:hover .rtw-card-img img {
    transform: scale(1.05);
}

.rtw-card-img .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.rtw-card-info {
    padding: 18px;
}

.rtw-card-info h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--black);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.rtw-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

/* Slider Navigation Arrows */
.rtw-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--black);
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.rtw-nav:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.rtw-nav-prev { left: -22px; }
.rtw-nav-next { right: -22px; }
/* Sur mobile le slider se balaie au doigt : les flèches (qui sortaient de l'écran) sont masquées */
@media (max-width: 768px) { .rtw-nav { display: none; } }

/* ═══════ Mobile ═══════ */
@media (max-width: 600px) {
    .custom-categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .custom-cat-img-wrap { height: 180px; }
    .custom-cat-info h3 { font-size: 16px; }
    .custom-cat-status { font-size: 11px; padding: 5px 12px; }
    .rtw-header { flex-direction: column; align-items: flex-start; }
    .rtw-card { flex: 0 0 260px; }
    .rtw-card-img { height: 260px; }
}

@media (max-width: 480px) {
    /* ── Global Mobile Overflow Fix ── */
    main,
    section,
    .container,
    .account-section,
    .page-header,
    footer {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* ── Page Header ── */
    .page-header {
        padding: 100px 0 28px;
    }
    .page-header .page-title {
        font-size: clamp(28px, 8vw, 42px);
    }
    .page-header .page-desc {
        font-size: 14px;
        padding: 0 8px;
    }
    .breadcrumb {
        font-size: 12px;
        margin-bottom: 16px;
    }

    /* ── Catalogue Filters ── */
    .catalogue-filters {
        gap: 12px;
    }
    .filter-tabs {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .sort-select {
        width: 100%;
        padding: 10px 12px;
    }

    /* ── Products Grid ── */
    .page-catalogue .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-customize-btn {
        margin: 0 16px 16px;
    }

    /* ── Customizer ── */
    .customizer-preview {
        height: 320px;
    }
    .customizer-panel {
        padding: 20px 16px;
    }

    /* ── Cart ── */
    .cart-item-details h3 {
        font-size: 15px;
    }
    .cart-summary {
        padding: 20px;
    }

    /* ── Checkout ── */
    .checkout-section {
        padding: 30px 0 60px;
    }

    /* ── Auth ── */
    .auth-card {
        padding: 24px 20px;
        margin: 0 8px;
    }

    /* ── Contact ── */
    .contact-info-card {
        padding: 16px 20px;
    }
    .contact-form { 
        padding: 20px;
    }

    /* ── Categories ── */
    .custom-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .custom-cat-img-wrap {
        height: 140px;
    }
    .custom-cat-info {
        padding: 12px;
    }
    .custom-cat-info h3 {
        font-size: 14px;
    }

    /* ── Account ── */
    .account-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .order-card {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    .order-card-img {
        flex: none;
        width: 100%;
        max-height: 140px;
        padding: 10px;
    }
    .order-card-img img {
        max-height: 100px;
    }
    .order-card-header {
        flex-direction: column;
        gap: 6px;
    }
    .order-card-title {
        font-size: 13px;
        white-space: normal;
        word-break: break-all;
    }
    .order-card-price {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .order-card-total {
        font-size: 14px;
        margin-bottom: 0;
    }
    .order-card-actions {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }
    .order-card-actions .btn {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* ── Tracking ── */
    .tracking-result {
        padding: 20px;
    }

    /* ── RTW Slider ── */
    .rtw-card {
        flex: 0 0 220px;
    }
    .rtw-card-img {
        height: 220px;
    }
    .rtw-card-info h3 {
        font-size: 14px;
    }
    .rtw-section {
        padding: 40px 0;
    }

    /* ── Flash Messages ── */
    .flash-message {
        right: 10px;
        left: 10px;
        top: 80px;
        font-size: 13px;
        padding: 12px 16px;
    }

    /* ── Customizer Mobile ── */
    .customizer-section {
        padding-top: 70px;
    }
    .customizer-preview {
        position: relative;
        height: auto;
        min-height: 340px;
        top: 0;
        padding: 16px 12px;
    }
    .preview-mockup {
        width: 100%;
    }
    .preview-container {
        width: 100%;
        gap: 12px;
    }
    .preview-price-bar {
        padding: 10px 16px;
        font-size: 13px;
        margin-top: 10px;
    }
    .preview-price-value {
        font-size: 18px;
    }
    .preview-side-toggle {
        gap: 6px;
    }
    .side-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
    .drag-hint {
        font-size: 11px;
        padding: 6px 12px;
    }
    .customizer-panel {
        padding: 20px 16px;
    }
    .panel-header {
        margin-bottom: 20px;
    }
    .panel-title {
        font-size: 22px;
    }
    .panel-step {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .step-label {
        font-size: 13px;
    }
    .color-swatch {
        width: 32px;
        height: 32px;
    }
    .size-label {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 42px;
    }
    .design-gallery {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
    .customizer-submit-bar {
        padding: 16px;
    }
    .customizer-submit-bar .btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    /* ── Cart Mobile ── */
    .cart-section {
        padding-top: 100px;
    }
    .cart-layout {
        gap: 20px;
    }
    .cart-item {
        padding: 16px;
        gap: 12px;
    }
    .cart-item-img {
        width: 80px;
        height: 80px;
    }
    .cart-item-details h3 {
        font-size: 14px;
    }
    .cart-item-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .qty-control {
        gap: 0;
    }
    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .qty-value {
        width: 36px;
        font-size: 14px;
    }
    .cart-summary {
        padding: 20px;
    }
    .cart-summary-row {
        font-size: 14px;
    }

    /* ── Auth Pages Mobile ── */
    .auth-section {
        padding-top: 90px;
        padding-bottom: 40px;
        min-height: calc(100vh - 70px);
    }
    .auth-container {
        padding: 0 16px;
        max-width: 100%;
    }
    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }
    .auth-logo {
        height: 56px;
        margin-bottom: 14px;
    }
    .auth-header {
        margin-bottom: 24px;
    }
    .auth-header h1 {
        font-size: 20px;
    }
    .auth-header p {
        font-size: 13px;
    }
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 13px;
    }
    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }
    .form-group label {
        font-size: 12px;
    }

    /* ── Checkout Mobile ── */
    .checkout-section {
        padding: 20px 0 50px;
    }
    .checkout-layout {
        gap: 16px;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }
    .checkout-block {
        padding: 16px 14px;
        margin-bottom: 14px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    .checkout-block-title {
        font-size: 16px;
        margin-bottom: 14px;
    }
    .summary-card {
        padding: 18px 14px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    .delivery-card {
        padding: 12px 14px;
    }
    .order-review-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .payment-option {
        padding: 0;
        min-width: 0;
    }

    /* ── Confirmation Mobile ── */
    .confirmation-card {
        padding: 28px 20px;
        margin: 0;
    }
    .confirmation-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
    .confirmation-card h1 {
        font-size: 22px;
    }
    .confirmation-number {
        font-size: 14px;
        padding: 8px 16px;
    }
    .confirmation-items {
        padding: 16px;
    }
    .confirmation-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .confirmation-item-img {
        width: 60px;
        height: 60px;
    }

    /* ── Tracking Mobile ── */
    .tracking-search {
        gap: 10px;
    }
    .tracking-search input {
        padding: 12px 14px;
        font-size: 14px;
    }
    .tracking-result {
        padding: 16px;
    }

    /* ── Account Pages Mobile ── */
    .account-grid {
        gap: 20px;
    }
    .account-sidebar {
        padding: 20px;
        position: static;
    }
    .account-avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    .account-sidebar h3 {
        font-size: 16px;
    }
    .account-email {
        font-size: 12px;
        margin-bottom: 16px;
    }
    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 4px;
    }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav-link {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 20px;
        text-align: center;
    }
    .account-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 24px;
    }
    .account-stat-card {
        padding: 16px 8px;
    }
    .stat-value {
        font-size: 24px;
    }
    .stat-desc {
        font-size: 11px;
    }
    .account-section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* ── Order Cards Mobile ── */
    .order-card {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }
    .order-card-img {
        flex: none;
        width: 100%;
        max-height: 130px;
        padding: 10px;
    }
    .order-card-img img {
        max-height: 90px;
    }
    .order-card-header {
        flex-direction: column;
        gap: 4px;
    }
    .order-card-title {
        font-size: 12px;
        white-space: normal;
        word-break: break-all;
    }
    .order-card-date {
        font-size: 11px;
    }
    .order-card-price {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .order-card-total {
        font-size: 13px;
        margin-bottom: 0;
    }
    .order-card-actions {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }
    .order-card-actions .btn {
        font-size: 10px;
        padding: 5px 8px;
    }

    /* ── Orders List Mobile ── */
    .orders-list {
        gap: 10px;
    }
    .order-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 10px;
    }
    .order-row-info strong {
        font-size: 13px;
    }
    .order-row-info span {
        font-size: 11px;
    }
    .order-row-items {
        font-size: 12px;
    }
    .order-row-total {
        font-size: 15px;
    }

    /* ── Order Detail Mobile ── */
    .order-detail-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .order-detail-items {
        padding: 16px;
    }
    .order-detail-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .order-detail-item-img {
        width: 70px;
        height: 70px;
    }
    .order-detail-summary {
        padding: 16px;
    }
    .order-detail-actions {
        flex-direction: column;
        gap: 8px;
    }
    .order-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Profile Form Mobile ── */
    .profile-section h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    .profile-card {
        padding: 20px 16px;
    }

    /* ── Status Badge Mobile ── */
    .status-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* ── Page Header compact ── */
    .page-header-sm {
        padding: 100px 0 20px;
    }

    /* ── WhatsApp Button Mobile ── */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float img,
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Pages légales */
.legal-content { max-width: 820px; line-height: 1.75; }
.legal-content h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal-content p, .legal-content ul { margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.4rem; list-style: disc; }
.legal-content a { text-decoration: underline; }

/* Page Contact : coordonnées à gauche, formulaire à droite, carte pleine largeur dessous */
.contact-grid { grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-form-wrap { box-shadow: var(--shadow-sm); }
.contact-map.contact-map-full { margin-top: 48px; width: 100%; min-height: 0; }
.contact-map.contact-map-full iframe { display: block; width: 100%; height: 420px; min-height: 420px; border: 0; }
@media (max-width: 1100px) {
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .contact-map.contact-map-full { margin-top: 32px; }
    .contact-map.contact-map-full iframe { height: 320px; min-height: 320px; }
}

/* Personnalisateur sur téléphone : la bulle WhatsApp flottante recouvrait les boutons (quantité, tailles, ajout au panier).
   Le contact reste accessible par le menu et le pied de page. */
@media (max-width: 768px) {
    .page-customizer .whatsapp-float { display: none; }
}

/* ===== Accueil : slide des photos clients ===== */
.customer-photos { background: var(--cream, #fff); }
.cp-slider { position: relative; margin: 8px auto 0; max-width: 1100px; }
.cp-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px; }
.cp-track::-webkit-scrollbar { display: none; }
.cp-slide { position: relative; flex: 0 0 calc((100% - 32px) / 3); margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: #eee; box-shadow: var(--shadow-md); }
.cp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 14px; color: #fff; background: linear-gradient(transparent, rgba(10,20,53,.85)); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cp-name { font-weight: 700; }
.cp-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--black, #0A1435); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-md); }
.cp-prev { left: -8px; } .cp-next { right: -8px; }
.cp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cp-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; }
.cp-dot.active { background: var(--gold, #1A3FBA); transform: scale(1.3); }
.cp-cta { text-align: center; margin-top: 28px; }
.cp-flash { max-width: 700px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.cp-flash-ok { background: #ecfdf5; border: 1px solid #10b981; color: #065f46; }
.cp-flash-err { background: #fef2f2; border: 1px solid #ef4444; color: #991b1b; margin-bottom: 14px; }
.cp-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(10,20,53,.6); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.cp-modal[hidden] { display: none; }
.cp-modal-card { position: relative; background: #fff; border-radius: 16px; padding: 28px 24px 24px; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; }
.cp-modal-card h3 { margin: 0 28px 8px 0; font-size: 19px; }
.cp-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #64748b; }
.cp-note { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 14px; }
.cp-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.cp-label .panel-input { display: block; width: 100%; margin-top: 4px; font-weight: 400; box-sizing: border-box; }
.cp-label small { display: block; font-weight: 400; color: #94a3b8; margin-top: 3px; }
.cp-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #475569; margin-bottom: 14px; }
.cp-consent input { margin-top: 3px; }
@media (max-width: 900px) { .cp-slide { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .cp-slide { flex-basis: 82%; } .cp-prev { left: 2px; } .cp-next { right: 2px; } }
