/**
 * PR-RECOMMANDE — Styles module Recommand\u00e9 Num\u00e9rique
 * Design TAGFLEET : division #0EA5E9, CTA #1260A8
 */

:root {
    --reco-primary: #1260A8;
    --reco-accent: #0EA5E9;
    --reco-dark: #0D1B2A;
    --reco-surface: #F4F7FA;
    --reco-border: #E8E8E8;
    --reco-text: #1A1A1A;
    --reco-text-secondary: #666666;
    --reco-success: #0F8A4F;
    --reco-error: #CC2936;
    --reco-warning: #D4760A;
    --reco-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Calibri', Arial, sans-serif;
    background: var(--reco-surface);
    color: var(--reco-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.reco-header {
    background: linear-gradient(135deg, var(--reco-accent) 0%, #0284C7 100%);
    color: white;
    padding: 24px 20px 20px;
    text-align: center;
}

.reco-header-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.reco-header-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.reco-header-sub {
    font-size: 13px;
    opacity: 0.85;
}

/* ── Stepper ── */
.reco-stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 20px 20px 0;
    max-width: 600px;
    margin: 0 auto;
}

.reco-step {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.reco-step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--reco-border);
    margin: 0 8px;
}

.reco-step.active:not(:last-child)::after {
    background: var(--reco-accent);
}

.reco-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--reco-border);
    color: var(--reco-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}

.reco-step.active .reco-step-dot {
    background: var(--reco-accent);
    color: white;
}

.reco-step.done .reco-step-dot {
    background: var(--reco-success);
    color: white;
}

.reco-step-label {
    font-size: 11px;
    color: var(--reco-text-secondary);
    display: none;
}

/* ── Container ── */
.reco-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Cards ── */
.reco-card {
    background: white;
    border: 1px solid var(--reco-border);
    border-radius: var(--reco-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.reco-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--reco-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reco-card-title svg {
    width: 20px;
    height: 20px;
    color: var(--reco-accent);
    flex-shrink: 0;
}

/* ── Form ── */
.reco-field {
    margin-bottom: 14px;
}

.reco-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--reco-text-secondary);
    margin-bottom: 6px;
}

.reco-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--reco-border);
    border-radius: 8px;
    font-family: 'Calibri', Arial, sans-serif;
    font-size: 15px;
    color: var(--reco-text);
    transition: border-color 0.2s;
    outline: none;
}

.reco-input:focus {
    border-color: var(--reco-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.reco-input::placeholder {
    color: #aaa;
}

.reco-row {
    display: flex;
    gap: 12px;
}

.reco-row .reco-field {
    flex: 1;
}

.reco-row .reco-field-small {
    flex: 0 0 120px;
}

/* ── Upload zone ── */
.reco-upload-zone {
    border: 2px dashed var(--reco-border);
    border-radius: var(--reco-radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.reco-upload-zone:hover {
    border-color: var(--reco-accent);
    background: rgba(14, 165, 233, 0.03);
}

.reco-upload-zone.has-file {
    border-style: solid;
    border-color: var(--reco-success);
    background: rgba(15, 138, 79, 0.03);
}

.reco-upload-icon {
    width: 48px;
    height: 48px;
    color: var(--reco-border);
    margin: 0 auto 12px;
}

.reco-upload-zone.has-file .reco-upload-icon {
    color: var(--reco-success);
}

.reco-upload-text {
    font-size: 15px;
    color: var(--reco-text-secondary);
    margin-bottom: 4px;
}

.reco-upload-hint {
    font-size: 12px;
    color: #aaa;
}

.reco-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--reco-surface);
    border-radius: 8px;
    margin-top: 12px;
}

.reco-file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--reco-dark);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reco-file-size {
    font-size: 12px;
    color: var(--reco-text-secondary);
}

.reco-file-remove {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(204, 41, 54, 0.1);
    color: var(--reco-error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Options recommand\u00e9 ── */
.reco-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reco-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--reco-border);
    border-radius: var(--reco-radius);
    cursor: pointer;
    transition: border-color 0.2s;
}

.reco-option.selected {
    border-color: var(--reco-accent);
    background: rgba(14, 165, 233, 0.03);
}

.reco-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--reco-border);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.reco-option.selected .reco-option-radio {
    border-color: var(--reco-accent);
}

.reco-option.selected .reco-option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--reco-accent);
    border-radius: 50%;
}

.reco-option-text {
    flex: 1;
}

.reco-option-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--reco-dark);
}

.reco-option-desc {
    font-size: 12px;
    color: var(--reco-text-secondary);
    margin-top: 2px;
}

.reco-option-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--reco-accent);
    flex-shrink: 0;
}

/* ── R\u00e9capitulatif ── */
.reco-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--reco-border);
    font-size: 14px;
}

.reco-summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 16px;
    color: var(--reco-dark);
    padding-top: 14px;
}

.reco-summary-label {
    color: var(--reco-text-secondary);
}

.reco-summary-value {
    color: var(--reco-text);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Boutons ── */
.reco-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--reco-radius);
    font-family: 'Calibri', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reco-btn-primary {
    background: var(--reco-primary);
    color: white;
}

.reco-btn-primary:hover {
    background: #0F4F8A;
}

.reco-btn-primary:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.reco-btn-secondary {
    background: white;
    color: var(--reco-text-secondary);
    border: 1px solid var(--reco-border);
}

.reco-btn-secondary:hover {
    background: var(--reco-surface);
}

.reco-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.reco-btn-row .reco-btn {
    flex: 1;
}

/* ── Confirmation ── */
.reco-confirmation {
    text-align: center;
    padding: 32px 20px;
}

.reco-confirmation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--reco-success);
}

.reco-confirmation-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--reco-dark);
    margin-bottom: 8px;
}

.reco-confirmation-sub {
    font-size: 14px;
    color: var(--reco-text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.reco-code-display {
    background: rgba(14, 165, 233, 0.08);
    border: 2px solid var(--reco-accent);
    border-radius: var(--reco-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.reco-code-label {
    font-size: 12px;
    color: var(--reco-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.reco-code-value {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--reco-accent);
    letter-spacing: 4px;
}

/* ── Page sections ── */
.reco-page {
    display: none;
}

.reco-page.active {
    display: block;
}

/* ── Footer ── */
.reco-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999;
}

.reco-footer a {
    color: var(--reco-accent);
    text-decoration: none;
}

/* ── Notification ── */
.reco-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.3s ease;
    max-width: 90%;
}

.reco-notification.show {
    transform: translateX(-50%) translateY(0);
}

.reco-notification.success {
    background: var(--reco-success);
    color: white;
}

.reco-notification.error {
    background: var(--reco-error);
    color: white;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .reco-container {
        padding: 16px;
    }

    .reco-card {
        padding: 16px;
    }

    .reco-row {
        flex-direction: column;
        gap: 0;
    }

    .reco-row .reco-field-small {
        flex: 1;
    }

    .reco-option-price {
        font-size: 16px;
    }

    .reco-code-value {
        font-size: 26px;
    }

    .reco-step-label {
        display: none;
    }
}
