/* ============================================
   PHONEGUARD — CONFIGURATEUR
   Page Personnaliser ma coque (simplifié)
   ============================================ */

/* ---- Layout ---- */
.configurator {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.config-header {
    text-align: center;
    margin-bottom: 48px;
}

/* ---- Stepper ---- */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 56px;
    padding: 0 20px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cream-dark);
    border: 3px solid rgba(244, 160, 181, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.step-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray);
    transition: all 0.3s ease;
}

.step-check {
    display: none;
    color: white;
    font-size: 16px;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Active step */
.step-indicator.active .step-circle {
    background: var(--gradient);
    border-color: var(--rose);
    box-shadow: 0 4px 20px rgba(244, 160, 181, 0.4);
    transform: scale(1.1);
}

.step-indicator.active .step-num {
    color: white;
}

.step-indicator.active .step-label {
    color: var(--rose-dark);
    font-weight: 700;
}

/* Completed step */
.step-indicator.completed .step-circle {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #2ecc71;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.step-indicator.completed .step-num {
    display: none;
}

.step-indicator.completed .step-check {
    display: block;
}

.step-indicator.completed .step-label {
    color: #2ecc71;
}

/* Step line */
.step-line {
    flex: 1;
    max-width: 120px;
    height: 3px;
    background: rgba(244, 160, 181, 0.15);
    border-radius: 3px;
    margin: 0 12px;
    margin-bottom: 28px;
    overflow: hidden;
}

.step-line-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step-line.filled .step-line-fill {
    width: 100%;
}

/* ---- Step Panels ---- */
.steps-container {
    position: relative;
    min-height: 400px;
}

.step-panel {
    display: none;
    animation: panelFadeIn 0.5s ease forwards;
}

.step-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.panel-header {
    text-align: center;
    margin-bottom: 40px;
}

.panel-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.panel-header h2 i {
    color: var(--rose-dark);
    font-size: 0.85em;
}

.panel-header p {
    font-size: 15px;
    color: var(--gray);
}

/* ============================================
   ÉTAPE 1 : CHOIX OS + TYPE + MODÈLE
   ============================================ */
.device-os-section,
.device-type-section {
    max-width: 500px;
    margin: 0 auto 32px;
    text-align: center;
}

.device-os-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 16px;
}

.device-os-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.device-os-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 40px;
    background: white;
    border: 2px solid rgba(244, 160, 181, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    min-width: 140px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.device-os-btn i {
    font-size: 40px;
    color: var(--rose-dark);
    transition: var(--transition);
}

.device-os-btn:hover {
    border-color: var(--rose);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(244, 160, 181, 0.2);
}

.device-os-btn.active {
    border-color: var(--rose-dark);
    background: var(--rose-pastel);
    box-shadow: 0 8px 28px rgba(244, 160, 181, 0.3);
}

.device-os-btn.active i {
    color: var(--rose-dark);
}

.hidden {
    display: none !important;
}

/* ============================================
   ÉTAPE 1 : CHOIX DU MODÈLE (input simple)
   ============================================ */
.device-input-section {
    max-width: 600px;
    margin: 0 auto;
}

.device-input-card {
    background: white;
    border: 1px solid rgba(244, 160, 181, 0.12);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.device-input-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 30px rgba(244, 160, 181, 0.35);
}

.device-input-icon svg {
    stroke: white;
}

.device-input-wrapper {
    text-align: left;
    margin-bottom: 16px;
}

.device-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    padding-left: 4px;
}

.device-input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(244, 160, 181, 0.15);
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--dark);
    background: var(--cream);
    outline: none;
    transition: var(--transition);
}

.device-input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 160, 181, 0.1), 0 4px 16px rgba(244, 160, 181, 0.08);
    background: white;
}

.device-input::placeholder {
    color: var(--gray);
    font-size: 14px;
}

.device-hint {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    padding-left: 4px;
}

.device-hint svg {
    flex-shrink: 0;
    stroke: var(--rose);
}

/* ============================================
   ÉTAPE 2 : TYPE DE COQUE
   ============================================ */
.coque-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Toggle plusieurs personnages — design pro */
.multi-personnage-option {
    margin: 12px 0;
}

.multi-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 245, 247, 0.9), rgba(252, 228, 236, 0.7));
    border: 1.5px solid rgba(244, 160, 181, 0.3);
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.multi-toggle-label:hover {
    border-color: var(--rose);
    background: linear-gradient(135deg, rgba(255, 245, 247, 1), rgba(252, 228, 236, 0.95));
    box-shadow: 0 4px 14px rgba(244, 160, 181, 0.25);
}

.multi-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: left;
    min-width: 0;
}

.multi-toggle-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.multi-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.multi-toggle-text strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    white-space: normal;
}

.multi-toggle-text small {
    font-size: 10px;
    color: var(--gray);
    line-height: 1.4;
    white-space: normal;
}

.multi-toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.multi-toggle-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--rose-dark);
    white-space: nowrap;
    background: rgba(244, 160, 181, 0.25);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(244, 160, 181, 0.4);
}

/* Switch toggle */
.multi-toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.multi-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.multi-toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(200, 180, 190, 0.3);
    border-radius: 22px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.multi-toggle-track::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.multi-toggle-switch input:checked+.multi-toggle-track {
    background: linear-gradient(135deg, #F4A0B5, #E8789A);
}

.multi-toggle-switch input:checked+.multi-toggle-track::before {
    transform: translateX(18px);
}

/* Label activé */
.multi-toggle-label:has(input:checked) {
    border-color: var(--rose-dark);
    background: linear-gradient(135deg, rgba(255, 240, 245, 1), rgba(252, 220, 232, 1));
    box-shadow: 0 4px 16px rgba(244, 160, 181, 0.28);
}

[data-theme="dark"] .multi-toggle-label {
    background: rgba(40, 25, 30, 0.6);
    border-color: rgba(212, 135, 155, 0.2);
}

[data-theme="dark"] .multi-toggle-text strong {
    color: var(--dark);
}

.coque-type-card {
    background: white;
    border: 2px solid rgba(244, 160, 181, 0.1);
    border-radius: 20px;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.coque-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(244, 160, 181, 0.2);
    border-color: var(--rose);
}

.coque-type-card.active {
    border-color: var(--rose-dark);
    box-shadow: 0 8px 32px rgba(244, 160, 181, 0.3);
}

.coque-type-card.active .coque-type-check {
    opacity: 1;
    transform: scale(1);
}

/* Image container */
.coque-type-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.coque-example-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    color: var(--rose-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coque-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.coque-type-card:hover .coque-type-image img {
    transform: scale(1.05);
}

/* Placeholder when no image */
.coque-type-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--rose-dark);
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.coque-type-placeholder i {
    font-size: 48px;
    opacity: 0.5;
}

.coque-type-placeholder span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.6;
}

.coque-type-image.no-img .coque-type-placeholder {
    display: flex;
}

.coque-type-image.no-img img {
    display: none;
}

.coque-type-info {
    padding: 20px 24px 28px;
}

.coque-type-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.coque-type-info p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.coque-type-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--rose-dark);
    display: block;
    margin-bottom: 14px;
}

.coque-examples {
    text-align: left;
    margin-top: 4px;
}

.coque-examples-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.coque-examples-imgs {
    display: flex;
    gap: 6px;
}

.coque-examples-imgs {
    position: relative;
}

.coque-example-thumb {
    position: relative;
    width: 52px;
    height: 52px;
    cursor: zoom-in;
    flex-shrink: 0;
}

.coque-examples-imgs img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(244, 160, 181, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: zoom-in;
    display: block;
}

.coque-examples-imgs img:hover {
    transform: scale(1.12);
    border-color: var(--rose);
    box-shadow: 0 6px 18px rgba(244, 160, 181, 0.45);
    z-index: 5;
    position: relative;
}

.coque-example-thumb .thumb-zoom-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--rose-dark);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 6;
}

.coque-example-thumb:hover .thumb-zoom-icon {
    opacity: 1;
}

/* ============================================
   LIGHTBOX GALERIE MODÈLES
   ============================================ */

/* ============================================
   BOUTONS SUR LES CARTES TYPE
   ============================================ */
.coque-type-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.btn-choose-type,
.btn-choose-model {
    width: 100%;
    padding: 10px 16px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    margin-top: 10px;
}

.btn-choose-type {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(244, 160, 181, 0.35);
}

.btn-choose-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 160, 181, 0.45);
}

.btn-choose-model {
    background: white;
    color: var(--rose-dark);
    border: 2px solid rgba(244, 160, 181, 0.3);
}

.btn-choose-model:hover {
    background: var(--rose-pastel);
    border-color: var(--rose);
    transform: translateY(-2px);
}

/* ============================================
   LIGHTBOX GALERIE MODÈLES
   ============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-gallery-content {
    position: relative;
    max-width: 700px;
    width: 92%;
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    max-height: 85vh;
    overflow-y: auto;
}

.lightbox-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.lightbox-gallery-subtitle {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 28px;
}

.lightbox-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Carte dans la galerie (créée dynamiquement par JS) */
.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: visible;
    border: 2px solid rgba(244, 160, 181, 0.15);
    transition: var(--transition);
    aspect-ratio: 3/4;
    cursor: zoom-in;
}

.gallery-item img,
.gallery-item-overlay {
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover {
    border-color: var(--rose);
    box-shadow: 0 8px 28px rgba(244, 160, 181, 0.35);
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-zoom-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-dark);
    font-size: 15px;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.gallery-item:hover .gallery-zoom-hint {
    transform: scale(1.15);
}

.gallery-item-hint {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin: 6px 0 0 0;
    padding: 0;
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 10, 20, 0.8) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 12px;
    gap: 10px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

/* Zoom plein écran au clic sur image */
.gallery-zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.gallery-zoom-overlay.active {
    display: flex;
}

.gallery-zoom-overlay img {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-zoom-actions {
    display: flex;
    gap: 16px;
}

.gallery-zoom-actions button {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.gallery-zoom-actions .btn-choose-zoom {
    background: linear-gradient(135deg, #F4A0B5, #E8789A);
    color: white;
}

.gallery-zoom-actions .btn-back-zoom {
    background: white;
    color: #333;
    border: 2px solid #F4A0B5;
}

.gallery-zoom-actions button:hover {
    transform: scale(1.05);
}

.gallery-zoom-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-overlay span {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.btn-gallery-pick {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-gallery-pick:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(244, 160, 181, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--rose-pastel);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: var(--rose-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--rose);
    color: white;
    transform: scale(1.1);
}

/* ============================================
   ÉTAPE 3 : PERSONNALISATION LIBRE
   ============================================ */
.personalization-section {
    max-width: 760px;
    margin: 0 auto;
}

.personalization-card {
    background: white;
    border: 1px solid rgba(244, 160, 181, 0.12);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.personalization-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 30px rgba(244, 160, 181, 0.35);
}

.personalization-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.personalization-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 28px;
}

/* Textarea */
.personalization-textarea-wrapper {
    position: relative;
    text-align: left;
    margin-bottom: 32px;
}

.personalization-textarea-wrapper textarea {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid rgba(244, 160, 181, 0.15);
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--dark);
    background: var(--cream);
    resize: vertical;
    min-height: 150px;
    max-height: 300px;
    outline: none;
    transition: var(--transition);
    line-height: 1.7;
}

.personalization-textarea-wrapper textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 160, 181, 0.1);
    background: white;
}

.personalization-textarea-wrapper textarea::placeholder {
    color: var(--gray);
    font-style: italic;
}

.textarea-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

/* Tips */
.personalization-tips {
    text-align: left;
    background: var(--cream);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.personalization-tips h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.personalization-tips h4 i {
    color: #f0c040;
    font-size: 16px;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--dark-light);
    line-height: 1.5;
}

.tip-item i {
    color: var(--rose-dark);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

.tip-item strong {
    color: var(--dark);
}

/* Upload zone */
.inspiration-upload {
    text-align: left;
}

.inspiration-upload h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspiration-upload h4 i {
    color: var(--rose-dark);
    font-size: 14px;
}

.inspiration-upload>p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 14px;
}

.upload-zone {
    display: block;
    border: 2px dashed rgba(244, 160, 181, 0.3);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--cream);
}

.upload-zone:hover {
    border-color: var(--rose);
    background: rgba(244, 160, 181, 0.06);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-content i {
    font-size: 36px;
    color: var(--rose);
    opacity: 0.6;
}

.upload-content span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-light);
}

.upload-content small {
    font-size: 11px;
    color: var(--gray);
}

.upload-preview {
    position: relative;
    display: inline-block;
}

.upload-preview.hidden {
    display: none;
}

.upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.upload-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #e74c3c;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.upload-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* ============================================
   ÉTAPE 4 : RÉSUMÉ
   ============================================ */
.result-layout {
    max-width: 680px;
    margin: 0 auto;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Recap Card */
.recap-card {
    background: white;
    border-radius: 20px;
    padding: 36px;
    border: 1px solid rgba(244, 160, 181, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.recap-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

.recap-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(244, 160, 181, 0.1);
}

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

.recap-row-full {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.recap-label {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recap-label i {
    color: var(--rose);
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.recap-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    text-align: right;
    max-width: 55%;
}

.recap-has-image {
    color: #2ecc71;
}

.recap-has-image i {
    margin-right: 4px;
}

.recap-description {
    font-size: 14px;
    color: var(--dark-light);
    line-height: 1.6;
    background: var(--cream);
    padding: 16px 20px;
    border-radius: 12px;
    width: 100%;
    margin: 0;
    white-space: pre-wrap;
}

.recap-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.recap-price-row span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.recap-price {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--rose-dark);
}

.recap-price-note {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    font-style: italic;
}

/* Prix récapitulatif */
.recap-price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 245, 247, 0.9), rgba(252, 228, 236, 0.7));
    border: 1.5px solid rgba(244, 160, 181, 0.3);
    border-radius: 16px;
    padding: 18px 24px;
}

.recap-price-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.recap-price-value {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--rose-dark);
}

/* Infos livraison & retours */
.recap-info-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recap-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: white;
    border: 1px solid rgba(244, 160, 181, 0.15);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.recap-info-item svg {
    flex-shrink: 0;
    stroke: var(--rose-dark);
    margin-top: 2px;
}

.recap-info-item div {
    flex: 1;
}

.recap-info-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.recap-info-item ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: var(--gray);
    line-height: 1.7;
}

.recap-info-item p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

.recap-info-handmade {
    border-color: rgba(244, 160, 181, 0.25);
    background: linear-gradient(135deg, rgba(255, 245, 247, 0.9), rgba(252, 228, 236, 0.6));
}

.recap-info-handmade svg {
    stroke: var(--rose-dark);
}

.recap-info-handmade strong {
    color: var(--rose-dark);
    font-size: 14px;
}

.recap-info-handmade ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
    font-size: 12px;
    color: var(--gray);
    line-height: 1.8;
    list-style: disc;
}

.recap-info-warning {
    border-color: rgba(230, 120, 100, 0.2);
    background: rgba(255, 248, 246, 0.8);
}

.recap-info-warning svg {
    stroke: #e07060;
}

.recap-info-warning strong {
    color: #c0503a;
}

[data-theme="dark"] .recap-info-item {
    background: var(--cream-dark);
    border-color: rgba(212, 135, 155, 0.12);
}

[data-theme="dark"] .recap-price-block {
    background: rgba(40, 25, 30, 0.6);
    border-color: rgba(212, 135, 155, 0.2);
}

/* Result Actions */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-btn {
    width: 100%;
    justify-content: center;
}

.result-btn i.fa-whatsapp {
    font-size: 20px;
}



/* Guarantees */
.result-guarantees {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
}

.guarantee-item i {
    color: #2ecc71;
    font-size: 14px;
}

/* ============================================
   CONFIG NAV BUTTONS
   ============================================ */
.config-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(244, 160, 181, 0.1);
}

.config-nav .hidden {
    visibility: hidden;
}

.btn-config-prev,
.btn-config-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-config-prev {
    background: white;
    color: var(--dark-light);
    border: 2px solid rgba(244, 160, 181, 0.2);
}

.btn-config-prev:hover {
    background: var(--rose-pastel);
    border-color: var(--rose);
    color: var(--rose-dark);
}

.btn-config-next {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 24px rgba(244, 160, 181, 0.35);
    margin-left: auto;
}

.btn-config-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(244, 160, 181, 0.45);
}

.btn-config-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   TOAST (réutilisé)
   ============================================ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 320px;
    max-width: 420px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-success .toast-icon {
    color: #2ecc71;
}

.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-text {
    flex: 1;
}

.toast-text strong {
    display: block;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 2px;
}

.toast-text p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--dark);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
}

.toast-progress-bar {
    height: 100%;
    background: var(--gradient);
    animation: toastCountdown 4.5s linear forwards;
}

@keyframes toastCountdown {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */
[data-theme="dark"] .device-input-card,
[data-theme="dark"] .coque-type-card,
[data-theme="dark"] .recap-card,
[data-theme="dark"] .personalization-card {
    background: var(--cream-dark);
    border-color: rgba(212, 135, 155, 0.12);
}

[data-theme="dark"] .device-input {
    background: var(--cream-dark);
    border-color: rgba(212, 135, 155, 0.15);
    color: var(--dark);
}

[data-theme="dark"] .btn-config-prev {
    background: var(--cream-dark);
    border-color: rgba(212, 135, 155, 0.15);
}

[data-theme="dark"] .personalization-textarea-wrapper textarea {
    background: var(--cream-dark);
    border-color: rgba(212, 135, 155, 0.15);
    color: var(--dark);
}

[data-theme="dark"] .personalization-tips,
[data-theme="dark"] .upload-zone,
[data-theme="dark"] .recap-description {
    background: rgba(30, 30, 40, 0.5);
}

[data-theme="dark"] .upload-zone {
    border-color: rgba(212, 135, 155, 0.2);
}

[data-theme="dark"] .toast {
    background: var(--cream-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .coque-types-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }

    .stepper {
        padding: 0 8px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
    }

    .step-line {
        max-width: 60px;
    }

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

@media (max-width: 640px) {
    .coque-types-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .configurator {
        padding: 100px 0 60px;
    }

    .device-input-card {
        padding: 28px 20px;
    }

    .stepper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .step-line {
        display: none;
    }

    .step-indicator {
        flex: 1;
        min-width: 70px;
    }

    .personalization-card {
        padding: 28px 20px;
    }

    .config-nav {
        flex-direction: column;
        gap: 12px;
    }

    .config-nav .hidden {
        display: none;
    }

    .btn-config-prev,
    .btn-config-next {
        width: 100%;
        justify-content: center;
    }

    .result-guarantees {
        flex-direction: column;
        align-items: center;
    }

    .recap-card {
        padding: 24px 20px;
    }
}
}