/* ============================================
   FC Custom Product - Configurateur
   Phase 3 : Design premium
   ============================================ */

/* --- Utilitaires accessibilité --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fc-cp-configurator {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 48px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- En-tête --- */
.fc-cp-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.fc-cp-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2a9daf, #3ba55c);
    border-radius: 2px;
}

.fc-cp-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.fc-cp-title span {
    color: #2a9daf;
}

.fc-cp-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    margin: 0 auto;
    line-height: 1.5;
    max-width: 600px;
}

/* --- Bandeau prix temps réel --- */
.fc-cp-price-bar {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease;
}

.fc-cp-price-bar:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.fc-cp-price-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.2s ease;
}

.fc-cp-price-bar-header:hover {
    background: #f8f9fb;
}

.fc-cp-price-bar-header:focus-visible {
    outline: 2px solid #2a9daf;
    outline-offset: -2px;
    border-radius: 14px;
}

.fc-cp-price-bar-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fc-cp-price-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-cp-price-bar-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2a9daf;
    letter-spacing: -0.01em;
}

.fc-cp-price-bar-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-cp-price-bar-arrow.open {
    transform: rotate(-135deg);
}

/* Détail dépliable */
.fc-cp-price-bar-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 20px;
}

.fc-cp-price-bar-detail.open {
    max-height: 300px;
    padding: 0 20px 16px;
    border-top: 1px solid #e5e7eb;
}

.fc-cp-price-detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.82rem;
    color: #6b7280;
}

.fc-cp-price-detail-line:first-child {
    padding-top: 14px;
}

.fc-cp-price-detail-line span:last-child {
    font-weight: 700;
    white-space: nowrap;
    margin-left: 16px;
    color: #1a1a2e;
}

.fc-cp-price-detail-included span:last-child {
    font-weight: 500;
    color: #9ca3af;
    font-style: italic;
}

.fc-cp-price-detail-base {
    color: #9ca3af;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

/* --- Barre de progression --- */
.fc-cp-progress {
    margin-bottom: 36px;
    padding: 24px 28px;
    background: #f8f9fb;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.fc-cp-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.fc-cp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2a9daf, #35b8a0);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(42, 157, 175, 0.3);
}

.fc-cp-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.fc-cp-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.2s ease;
    font-size: 0.85rem;
    padding: 4px 0;
}

.fc-cp-progress-step:hover {
    opacity: 0.7;
}

.fc-cp-progress-step:focus-visible {
    outline: 2px solid #2a9daf;
    outline-offset: 2px;
    opacity: 1;
    border-radius: 6px;
}

.fc-cp-progress-step.active,
.fc-cp-progress-step.completed {
    opacity: 1;
}

.fc-cp-progress-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.fc-cp-progress-step.active .fc-cp-progress-step-number {
    background: #2a9daf;
    color: #fff;
    border-color: #2a9daf;
    box-shadow: 0 0 0 4px rgba(42, 157, 175, 0.15);
    transform: scale(1.1);
}

.fc-cp-progress-step.completed .fc-cp-progress-step-number {
    background: #3ba55c;
    color: #fff;
    border-color: #3ba55c;
}

.fc-cp-progress-step-name {
    color: #1a1a2e;
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.2s ease;
}

.fc-cp-progress-step.active .fc-cp-progress-step-name {
    color: #2a9daf;
    font-weight: 600;
}

.fc-cp-progress-step.completed .fc-cp-progress-step-name {
    color: #3ba55c;
}

/* --- Étapes --- */
.fc-cp-step {
    display: none;
}

.fc-cp-step.active {
    display: block;
    animation: fcCpFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fc-cp-step-header {
    margin-bottom: 28px;
}

.fc-cp-step-title-row {
    display: flex;
    align-items: last baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.fc-cp-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.fc-cp-step-number {
    display: block;
    font-size: 0.75rem;
    color: #2a9daf;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.fc-cp-step-description {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

.fc-cp-required-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8913a, #f0a54e);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 3px rgba(232, 145, 58, 0.25);
    align-self: end;
    margin-bottom: 1px;
    flex-shrink: 0;
}

/* --- Grille d'options (select + image) --- */
.fc-cp-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.fc-cp-image-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* --- Carte d'option --- */
.fc-cp-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, background 0.25s ease;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.fc-cp-option-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.fc-cp-option-card:focus-visible,
.fc-cp-option-card:has(.fc-cp-option-input:focus-visible) {
    outline: 2px solid #2a9daf;
    outline-offset: 2px;
    border-color: #2a9daf;
    box-shadow: 0 0 0 4px rgba(42, 157, 175, 0.15);
}

.fc-cp-option-card.selected {
    border-color: #2a9daf;
    box-shadow: 0 4px 16px rgba(42, 157, 175, 0.2), 0 2px 4px rgba(42, 157, 175, 0.1);
    transform: translateY(-2px);
    background: rgba(42, 157, 175, 0.02);
}

.fc-cp-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fc-cp-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.fc-cp-option-color {
    display: inline-block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1.5px #e5e7eb, 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.fc-cp-option-card:hover .fc-cp-option-color {
    transform: scale(1.05);
}

.fc-cp-option-card.selected .fc-cp-option-color {
    box-shadow: 0 0 0 2px #2a9daf, 0 2px 8px rgba(42, 157, 175, 0.3);
    transform: scale(1.08);
}

.fc-cp-option-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fb;
}

.fc-cp-option-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-cp-option-card:hover .fc-cp-option-image {
    transform: scale(1.05);
}

.fc-cp-option-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
    line-height: 1.3;
}

.fc-cp-option-card.selected .fc-cp-option-name {
    color: #2a9daf;
}

.fc-cp-option-description {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.4;
}

/* Checkmark */
.fc-cp-option-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.fc-cp-option-card:hover .fc-cp-option-check {
    border-color: #d1d5db;
}

.fc-cp-option-card.selected .fc-cp-option-check {
    background: #2a9daf;
    border-color: #2a9daf;
    box-shadow: 0 2px 6px rgba(42, 157, 175, 0.3);
    transform: scale(1.05);
}

.fc-cp-option-card.selected .fc-cp-option-check::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- Badge prix option --- */
.fc-cp-option-price {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2a9daf;
    background: rgba(42, 157, 175, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    letter-spacing: 0.01em;
}

.fc-cp-option-card:hover .fc-cp-option-price {
    transform: scale(1.03);
}

.fc-cp-option-card.selected .fc-cp-option-price {
    color: #3ba55c;
    background: rgba(59, 165, 92, 0.1);
}

/* --- Dropdown (liste déroulante) --- */
.fc-cp-dropdown-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

#fc-cp-configurator .fc-cp-dropdown-wrapper {
    max-width: 520px;
    position: relative;
}

#fc-cp-configurator .fc-cp-step-content .fc-cp-dropdown-wrapper select.fc-cp-dropdown-select {
    display: block;
    position: relative;
    opacity: 1;
    visibility: visible;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 14px 44px 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    color: #1a1a2e;
    z-index: 2;
    pointer-events: auto;
    clip: auto;
    clip-path: none;
    overflow: visible;
    margin: 0;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

#fc-cp-configurator .fc-cp-step-content .fc-cp-dropdown-wrapper select.fc-cp-dropdown-select:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

#fc-cp-configurator .fc-cp-step-content .fc-cp-dropdown-wrapper select.fc-cp-dropdown-select:focus {
    border-color: #2a9daf;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 157, 175, 0.15), 0 1px 3px rgba(0, 0, 0, 0.04);
}

#fc-cp-configurator .fc-cp-dropdown-select option[value=""] {
    color: #9ca3af;
}

/* --- Champ texte --- */
.fc-cp-text-input-wrapper {
    max-width: 640px;
}

.fc-cp-text-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.fc-cp-text-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    resize: vertical;
    color: #1a1a2e;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    line-height: 1.5;
    font-family: inherit;
}

.fc-cp-text-input::placeholder {
    color: #9ca3af;
}

.fc-cp-text-input:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fc-cp-text-input:focus {
    border-color: #2a9daf;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 157, 175, 0.15), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fc-cp-text-help {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.4;
}

/* --- Étape Dimension --- */
.fc-cp-dimension-wrapper {
    max-width: 640px;
    border: none;
    padding: 0;
    margin: 0;
}

.fc-cp-dimension-help {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fc-cp-dimension-fields {
    display: flex;
    gap: 20px;
}

.fc-cp-dimension-field {
    flex: 1;
}

.fc-cp-dim-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.fc-cp-dimension-field input[type="number"] {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -moz-appearance: textfield;
    color: #1a1a2e;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.fc-cp-dimension-field input[type="number"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.fc-cp-dimension-field input[type="number"]:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fc-cp-dimension-field input[type="number"]:focus {
    border-color: #2a9daf;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 157, 175, 0.15), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fc-cp-dim-hint {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.3;
}

/* --- Empreinte capillaire --- */
.fc-cp-empreinte-wrapper {
    width: 100%;
}

.fc-cp-empreinte-preview {
    text-align: center;
}

.fc-cp-empreinte-image {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
}

.fc-cp-empreinte-info {
    margin-top: 12px;
    font-size: 1rem;
    color: #1a1a2e;
    font-weight: 600;
    text-align: center;
}

.fc-cp-empreinte-majo {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2a9daf;
    background: rgba(42, 157, 175, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 8px;
    letter-spacing: 0.01em;
}

.fc-cp-empreinte-message {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.fc-cp-empreinte-message p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #1a1a2e;
    line-height: 1.5;
}

.fc-cp-empreinte-message--login {
    background: linear-gradient(135deg, #f0f9ff, #e8f4fd);
    border: 1.5px solid rgba(42, 157, 175, 0.2);
}

.fc-cp-empreinte-message--empty {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px solid rgba(232, 145, 58, 0.2);
}

.fc-cp-empreinte-message-hint {
    font-size: 0.85rem !important;
    color: #9ca3af !important;
}

/* --- Erreur --- */
.fc-cp-step-error {
    background: linear-gradient(135deg, #fef2f2, #fde8e8);
    border: 1.5px solid rgba(217, 66, 53, 0.2);
    color: #d94235;
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(217, 66, 53, 0.06);
}

/* --- Navigation --- */
.fc-cp-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.fc-cp-btn-prev,
.fc-cp-btn-next,
.fc-cp-btn-add-to-cart {
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    letter-spacing: 0.01em;
    line-height: 1;
    font-family: inherit;
}

.fc-cp-btn-prev {
    background: #f8f9fb;
    color: #1a1a2e;
    border: 1.5px solid #e5e7eb;
}

.fc-cp-btn-prev:hover {
    background: #eef0f4;
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fc-cp-btn-prev:focus-visible {
    outline: 2px solid #2a9daf;
    outline-offset: 2px;
}

.fc-cp-btn-prev:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fc-cp-btn-next {
    background: linear-gradient(135deg, #2a9daf, #2bb5a0);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(42, 157, 175, 0.25);
}

.fc-cp-btn-next:hover {
    background: linear-gradient(135deg, #237f8f, #249e8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(42, 157, 175, 0.35);
}

.fc-cp-btn-next:focus-visible {
    outline: 2px solid #1a1a2e;
    outline-offset: 2px;
}

.fc-cp-btn-next:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(42, 157, 175, 0.2);
}

.fc-cp-btn-add-to-cart {
    background: linear-gradient(135deg, #3ba55c, #45c468);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(59, 165, 92, 0.25);
}

.fc-cp-btn-add-to-cart:hover {
    background: linear-gradient(135deg, #33914f, #3db55c);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(59, 165, 92, 0.35);
}

.fc-cp-btn-add-to-cart:focus-visible {
    outline: 2px solid #1a1a2e;
    outline-offset: 2px;
}

.fc-cp-btn-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 165, 92, 0.2);
}

.fc-cp-btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #d1d5db;
}

/* --- Résumé --- */
.fc-cp-summary-product {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 14px;
    margin-bottom: 28px;
    border: 1px solid #e5e7eb;
}

.fc-cp-summary-product-image {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fc-cp-summary-product-info h3 {
    font-size: 1.15rem;
    margin: 0 0 6px 0;
    color: #1a1a2e;
    font-weight: 700;
}

.fc-cp-summary-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2a9daf;
}

.fc-cp-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.fc-cp-summary-table th,
.fc-cp-summary-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f3;
    text-align: left;
    font-size: 0.92rem;
}

.fc-cp-summary-table th {
    width: 40%;
    color: #6b7280;
    font-weight: 600;
    background: transparent;
}

.fc-cp-summary-table td {
    color: #1a1a2e;
    font-weight: 500;
}

.fc-cp-summary-table thead th {
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding-bottom: 10px;
}

.fc-cp-summary-table tbody tr:last-child th,
.fc-cp-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.fc-cp-summary-table tbody tr {
    transition: background 0.15s ease;
}

.fc-cp-summary-table tbody tr:hover {
    background: #f8f9fb;
}

.fc-cp-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0faf3 0%, #e6f5ea 100%);
    border-radius: 14px;
    margin-top: 24px;
    border: 1px solid rgba(59, 165, 92, 0.15);
    box-shadow: 0 2px 8px rgba(59, 165, 92, 0.08);
}

.fc-cp-summary-total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}

.fc-cp-summary-total-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #3ba55c;
    letter-spacing: -0.02em;
}

/* --- Bouton page produit --- */
.fc-cp-product-cta {
    margin: 20px 0;
    text-align: center;
}

.fc-cp-configure-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2a9daf, #2bb5a0);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(42, 157, 175, 0.25);
    letter-spacing: 0.01em;
}

.fc-cp-configure-btn:hover {
    background: linear-gradient(135deg, #237f8f, #249e8b);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(42, 157, 175, 0.35);
}

.fc-cp-configure-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(42, 157, 175, 0.2);
}

.fc-cp-configure-icon {
    font-size: 1.2rem;
}

.fc-cp-configure-hint {
    color: #9ca3af;
    font-size: 0.82rem;
    margin-top: 10px;
    line-height: 1.4;
}

/* --- Responsive 768px --- */
@media (max-width: 768px) {
    .fc-cp-configurator {
        padding: 20px 16px;
    }

    .fc-cp-title {
        font-size: 1.5rem;
    }

    .fc-cp-subtitle {
        font-size: 0.95rem;
    }

    .fc-cp-header {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .fc-cp-progress {
        padding: 16px 18px;
        border-radius: 12px;
    }

    .fc-cp-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fc-cp-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fc-cp-option-card {
        padding: 14px 10px;
        border-radius: 10px;
    }

    .fc-cp-option-card:hover {
        transform: none;
    }

    .fc-cp-option-card.selected {
        transform: none;
    }

    .fc-cp-progress-step-name {
        display: none;
    }

    .fc-cp-progress-step-number {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .fc-cp-navigation {
        gap: 12px;
        margin-top: 32px;
        padding-top: 20px;
    }

    .fc-cp-btn-prev,
    .fc-cp-btn-next,
    .fc-cp-btn-add-to-cart {
        padding: 13px 24px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .fc-cp-summary-product {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .fc-cp-summary-product-image {
        width: 72px;
        height: 72px;
    }

    .fc-cp-step-title {
        font-size: 1.3rem;
    }

    .fc-cp-price-bar {
        border-radius: 12px;
    }

    .fc-cp-summary-total {
        padding: 16px 18px;
        border-radius: 12px;
    }

    .fc-cp-summary-total-price {
        font-size: 1.3rem;
    }

    .fc-cp-dimension-fields {
        gap: 16px;
    }
}

/* --- Responsive 480px --- */
@media (max-width: 480px) {
    .fc-cp-configurator {
        padding: 16px 12px;
    }

    .fc-cp-title {
        font-size: 1.35rem;
    }

    .fc-cp-options-grid,
    .fc-cp-image-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .fc-cp-option-card {
        flex-direction: row;
        text-align: left;
        padding: 14px;
        gap: 12px;
    }

    .fc-cp-option-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .fc-cp-option-color {
        width: 36px;
        height: 36px;
    }

    .fc-cp-option-check {
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
    }

    .fc-cp-option-card.selected .fc-cp-option-check {
        transform: translateY(-50%) scale(1.05);
    }

    .fc-cp-image-card {
        flex-direction: column;
        text-align: center;
    }

    .fc-cp-image-card .fc-cp-option-content {
        flex-direction: column;
        align-items: center;
    }

    .fc-cp-image-card .fc-cp-option-image-wrapper {
        width: 80px;
        height: 80px;
        aspect-ratio: 1;
        flex-shrink: 0;
        margin: 0 auto;
    }

    .fc-cp-btn-prev,
    .fc-cp-btn-next,
    .fc-cp-btn-add-to-cart {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .fc-cp-dimension-fields {
        flex-direction: column;
        gap: 16px;
    }

    .fc-cp-progress {
        padding: 14px;
    }

    .fc-cp-progress-steps {
        justify-content: center;
    }

    .fc-cp-summary-table th,
    .fc-cp-summary-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

/* --- Fallback noscript --- */
.fc-cp-noscript-content {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    line-height: 1.6;
    color: #1a1a2e;
}

.fc-cp-noscript-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.fc-cp-noscript-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2a9daf;
    margin: 20px 0 8px;
}

.fc-cp-noscript-content ul {
    padding-left: 20px;
    margin: 8px 0;
}

.fc-cp-noscript-content li {
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #4b5563;
}
