/**
 * Sea Dolphin CRM - Portal CSS v2.8
 * Mobile-first responsive design
 */

:root {
    --sd-primary: #2D6EB5;
    --sd-primary-light: #AECDF4;
    --sd-primary-lighter: #D9E9FF;
    --sd-primary-dark: #1a4d8f;
    --sd-success: #22c55e;
    --sd-success-light: #dcfce7;
    --sd-warning: #f59e0b;
    --sd-warning-light: #fef3c7;
    --sd-danger: #ef4444;
    --sd-danger-light: #fee2e2;
    --sd-neutral: #6b7280;
    --sd-neutral-light: #f3f4f6;
    --sd-text: #1f2937;
    --sd-text-light: #6b7280;
    --sd-bg: #f0f7ff;
    --sd-white: #ffffff;
    --sd-radius: 16px;
    --sd-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ========== BASE (MOBILE) ========== */
* {
    box-sizing: border-box;
}

.sd-portal-wrap {
    font-family: 'Comfortaa', -apple-system, sans-serif;
    min-height: 100vh;
    color: var(--sd-text);
    line-height: 1.5;
    font-size: 14px;
}

/* ========== HEADER (MOBILE) ========== */
.sd-portal-header {
    padding: 16px 16px 0;
}

.sd-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.sd-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sd-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-greeting {
    font-size: 14px;
    font-weight: 500;
    color: var(--sd-text);
}

.sd-header-right .sd-badge {
    font-size: 11px;
    padding: 4px 10px;
}

.sd-voyage-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: var(--sd-neutral-light);
    color: var(--sd-text);
    font-size: 12px;
    font-family: inherit;
    max-width: 180px;
}

.sd-logout {
    color: var(--sd-text-light);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.sd-logout:hover {
    color: var(--sd-primary);
    background: var(--sd-primary-lighter);
}

/* ========== CONTENT (MOBILE) ========== */
.sd-portal-content {
    padding: 16px;
}

/* ========== VOYAGE HEADER (MOBILE) ========== */
.sd-voyage-header {
    background: var(--sd-white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-voyage-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: var(--sd-text);
}

.sd-voyage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.sd-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sd-text-light);
    font-size: 13px;
}

.sd-meta-item svg {
    color: var(--sd-primary);
    flex-shrink: 0;
}

/* Badges */
.sd-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.sd-badge-success { background: var(--sd-success-light); color: #166534; }
.sd-badge-warning { background: var(--sd-warning-light); color: #92400e; }
.sd-badge-danger { background: var(--sd-danger-light); color: #991b1b; }
.sd-badge-neutral { background: var(--sd-neutral-light); color: var(--sd-neutral); }
.sd-badge-info { background: var(--sd-primary-lighter); color: var(--sd-primary-dark); }

/* ========== PROGRESS (MOBILE) ========== */
.sd-progress-section {
    background: var(--sd-white);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sd-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.sd-step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sd-neutral-light);
    color: var(--sd-neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.sd-step.done .sd-step-icon {
    background: var(--sd-success);
    color: white;
}

.sd-step-label {
    font-size: 10px;
    color: var(--sd-text-light);
    text-align: center;
}

.sd-step.done .sd-step-label {
    color: var(--sd-success);
    font-weight: 600;
}

.sd-progress-bar {
    height: 4px;
    background: var(--sd-neutral-light);
    border-radius: 2px;
    overflow: hidden;
}

.sd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sd-success), #4ade80);
    border-radius: 2px;
    transition: width 0.5s;
}

.sd-progress-text {
    text-align: center;
    font-size: 12px;
    color: var(--sd-text-light);
    margin-top: 8px;
}

/* ========== GRID (MOBILE = STACK) ========== */
.sd-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========== CARDS (MOBILE) ========== */
.sd-card {
    background: var(--sd-white);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
    overflow: hidden;
}

.sd-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sd-neutral-light);
}

.sd-card-header svg {
    color: var(--sd-primary);
    flex-shrink: 0;
}

.sd-card-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.sd-card-body {
    padding: 16px;
}

/* ========== PAYMENT (MOBILE) ========== */
.sd-payment-summary {
    margin-bottom: 16px;
}

.sd-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.sd-payment-row.paid strong {
    color: var(--sd-success);
}

.sd-payment-divider {
    height: 1px;
    background: var(--sd-neutral-light);
    margin: 8px 0;
}

.sd-payment-row.total strong {
    color: var(--sd-primary);
    font-size: 18px;
}

.sd-payment-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sd-payment-done {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--sd-success-light);
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
    font-size: 14px;
}

.sd-payment-done svg {
    color: var(--sd-success);
}

/* ========== CHECKLIST (MOBILE) ========== */
.sd-checklist {
    display: flex;
    flex-direction: column;
}

.sd-check-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sd-neutral-light);
}

.sd-check-item:last-child {
    border-bottom: none;
}

.sd-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sd-neutral-light);
    color: var(--sd-neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.sd-check-item.done .sd-check-icon {
    background: var(--sd-success);
    color: white;
}

.sd-check-label {
    flex: 1;
    font-size: 14px;
    min-width: 100px;
}

.sd-check-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.sd-check-btn {
    font-size: 12px;
    color: var(--sd-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sd-check-btn:hover {
    background: var(--sd-primary-lighter);
}

.sd-check-btn-danger {
    color: var(--sd-danger);
}

.sd-check-btn-danger:hover {
    background: var(--sd-danger-light);
}

.sd-check-info {
    font-size: 11px;
    color: var(--sd-text-light);
    padding: 4px 8px;
    background: var(--sd-neutral-light);
    border-radius: 4px;
}

.sd-check-info.locked {
    font-style: italic;
}

.sd-check-divider {
    height: 1px;
    background: var(--sd-neutral-light);
    margin: 4px 0;
}

/* ========== FLIGHTS (MOBILE) ========== */
.sd-flight-box {
    background: var(--sd-neutral-light);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.sd-flight-box:last-child {
    margin-bottom: 0;
}

.sd-flight-box.done {
    background: var(--sd-success-light);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.sd-flight-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sd-flight-dir {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sd-text-light);
}

.sd-flight-date {
    font-size: 12px;
    color: var(--sd-text-light);
}

.sd-flight-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

/* ========== FORMS (MOBILE) ========== */
.sd-form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sd-form-group {
    margin-bottom: 14px;
}

.sd-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--sd-text);
}

.sd-form-group input,
.sd-form-group select,
.sd-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px; /* Prevent zoom on iOS */
    font-family: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.sd-form-group input:focus,
.sd-form-group select:focus {
    outline: none;
    border-color: var(--sd-primary);
    box-shadow: 0 0 0 3px rgba(45, 110, 181, 0.1);
}

.sd-form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.sd-form-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--sd-primary);
    flex-shrink: 0;
}

.sd-form-check label {
    font-size: 13px;
    cursor: pointer;
}

/* Save indicator */
.sd-save-indicator {
    text-align: center;
    font-size: 12px;
    padding: 8px;
}

.sd-save-indicator .sd-saving {
    color: var(--sd-text-light);
}

.sd-save-indicator .sd-saved {
    color: var(--sd-success);
    display: none;
}

.sd-save-indicator.saved .sd-saving { display: none; }
.sd-save-indicator.saved .sd-saved { display: inline; }

/* ========== BUTTONS (MOBILE) ========== */
.sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

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

.sd-btn-primary:hover,
.sd-btn-primary:active {
    background: var(--sd-primary-dark);
}

.sd-btn-secondary {
    background: var(--sd-neutral-light);
    color: var(--sd-text);
}

.sd-btn-secondary:hover,
.sd-btn-secondary:active {
    background: #e5e7eb;
}

.sd-btn-block {
    width: 100%;
}

.sd-btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

/* ========== ALERTS ========== */
.sd-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.sd-alert-warning {
    background: var(--sd-warning-light);
    color: #92400e;
}

.sd-error-box {
    background: var(--sd-danger-light);
    color: #991b1b;
    padding: 20px;
    border-radius: var(--sd-radius);
    text-align: center;
}

/* ========== MODALS (MOBILE-FIRST) ========== */
.sd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: flex-end; /* Slide from bottom on mobile */
    justify-content: center;
}

.sd-modal.active {
    display: flex;
}

.sd-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.sd-modal-box {
    position: relative;
    background: var(--sd-white);
    border-radius: 16px 16px 0 0;
    padding: 24px 20px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sd-modal-medium,
.sd-modal-large {
    max-width: 100%;
}

.sd-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sd-neutral-light);
    border: none;
    font-size: 22px;
    color: var(--sd-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.sd-modal-close:active {
    background: var(--sd-danger-light);
    color: var(--sd-danger);
}

.sd-modal-box h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-right: 40px;
}

/* ========== RIB (MOBILE) ========== */
.sd-rib-card {
    background: var(--sd-neutral-light);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.sd-rib-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

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

.sd-rib-row:active {
    background: rgba(0,0,0,0.05);
}

.sd-rib-label {
    width: 70px;
    font-size: 11px;
    color: var(--sd-text-light);
    flex-shrink: 0;
}

.sd-rib-value {
    flex: 1;
    font-weight: 600;
    font-size: 13px;
    word-break: break-all;
}

.sd-rib-copy {
    font-size: 16px;
    opacity: 0.5;
    margin-left: 8px;
}

.sd-rib-ref {
    text-align: center;
    padding: 16px;
    background: var(--sd-primary-lighter);
    border-radius: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sd-rib-ref:active {
    opacity: 0.8;
}

.sd-rib-ref p {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: var(--sd-text-light);
}

.sd-rib-ref strong {
    font-size: 15px;
    color: var(--sd-primary);
}

/* ========== UPLOAD (MOBILE) ========== */
.sd-upload-zone {
    border: 2px dashed var(--sd-neutral-light);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.sd-upload-zone.dragover {
    border-color: var(--sd-primary);
    background: var(--sd-primary-lighter);
}

.sd-upload-zone svg {
    color: var(--sd-neutral);
    margin-bottom: 10px;
}

.sd-upload-zone p {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.sd-upload-zone span {
    display: block;
    color: var(--sd-text-light);
    font-size: 12px;
    margin-bottom: 12px;
}

.sd-upload-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--sd-neutral-light);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.sd-upload-preview button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--sd-danger);
    padding: 4px 8px;
}

/* ========== PREVIEW (MOBILE) ========== */
.sd-preview-content {
    min-height: 300px;
}

.sd-preview-content iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

.sd-preview-content img {
    max-width: 100%;
    border-radius: 8px;
}

/* ========== ASSURANCE (MOBILE) ========== */
.sd-assurance-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-assurance-card {
    border: 2px solid var(--sd-neutral-light);
    border-radius: 12px;
    padding: 16px;
}

.sd-assurance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sd-assurance-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.sd-assurance-benefits li {
    font-size: 12px;
    color: var(--sd-text-light);
    padding: 4px 0 4px 20px;
    position: relative;
}

.sd-assurance-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sd-success);
}

.sd-assurance-separator {
    text-align: center;
    color: var(--sd-text-light);
    font-size: 12px;
}

.sd-assurance-own {
    background: var(--sd-neutral-light);
}

.sd-assurance-own p {
    margin: 8px 0 14px 0;
    font-size: 12px;
}

/* ========== STRIPE PLACEHOLDER ========== */
.sd-stripe-placeholder {
    text-align: center;
    padding: 16px;
}

.sd-stripe-placeholder p {
    margin-bottom: 16px;
    font-size: 14px;
}

/* ========== TOAST (MOBILE) ========== */
.sd-toast {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    background: var(--sd-text);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.sd-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ========== EMPTY STATE ========== */
.sd-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--sd-white);
    border-radius: var(--sd-radius);
    box-shadow: var(--sd-shadow);
}

.sd-empty-state h2 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.sd-empty-state p {
    color: var(--sd-text-light);
    margin-bottom: 20px;
}

/* ========== LOGIN (MOBILE) ========== */
.sd-login-form {
    max-width: 100%;
    margin: 20px 16px;
    padding: 24px 20px;
    background: var(--sd-white);
    border-radius: 16px;
    box-shadow: var(--sd-shadow);
}

.sd-login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* ========== UTILITIES ========== */
.sd-text-muted {
    color: var(--sd-text-light);
    font-size: 12px;
}

/* =============================================
   DESKTOP STYLES (min-width: 768px)
   ============================================= */
@media (min-width: 768px) {
    .sd-portal-wrap {
        font-size: 15px;
    }
    
    .sd-portal-header {
        padding: 24px 24px 0;
    }
    
    .sd-header-inner {
        max-width: 1000px;
        margin: 0 auto;
        padding: 12px 24px;
    }
    
    .sd-header-left {
        gap: 12px;
    }
    
    .sd-greeting {
        font-size: 15px;
    }
    
    .sd-voyage-select {
        font-size: 13px;
        max-width: none;
    }
    
    .sd-portal-content {
        max-width: 1000px;
        margin: 0 auto;
        padding: 24px;
    }
    
    .sd-voyage-header {
        padding: 20px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    
    .sd-voyage-title {
        font-size: 1.25rem;
        margin: 0;
        flex-shrink: 1;
    }
    
    .sd-voyage-meta {
        flex-shrink: 0;
        gap: 20px;
    }
    
    .sd-progress-section {
        padding: 20px 24px;
    }
    
    .sd-step-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .sd-step-label {
        font-size: 12px;
    }
    
    .sd-progress-bar {
        height: 6px;
    }
    
    /* 2 columns grid on desktop */
    .sd-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sd-card-header {
        padding: 16px 20px;
    }
    
    .sd-card-body {
        padding: 20px;
    }
    
    .sd-form-row {
        flex-direction: row;
        gap: 12px;
    }
    
    .sd-form-row > .sd-form-group {
        flex: 1;
    }
    
    .sd-form-group input,
    .sd-form-group select,
    .sd-form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Modal centered on desktop */
    .sd-modal {
        align-items: center;
    }
    
    .sd-modal-box {
        border-radius: 16px;
        max-width: 420px;
        padding: 28px;
        animation: modalFadeIn 0.3s ease;
    }
    
    @keyframes modalFadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .sd-modal-medium {
        max-width: 520px;
    }
    
    .sd-modal-large {
        max-width: 700px;
    }
    
    .sd-preview-content iframe {
        height: 500px;
    }
    
    .sd-toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(20px);
        min-width: 200px;
        max-width: 400px;
    }
    
    .sd-toast.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .sd-login-form {
        max-width: 400px;
        margin: 60px auto;
        padding: 32px;
    }
}

/* ========== PAYMENT ENHANCEMENTS ========== */

/* Badge "sans frais" sur le bouton */
.sd-btn-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.sd-btn-primary .sd-btn-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* Note sous les boutons de paiement */
.sd-payment-note {
    font-size: 12px;
    color: var(--sd-text-light);
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sd-neutral-light);
}
.sd-payment-note.sd-payment-locked {
    color: var(--sd-warning, #D97706);
    font-weight: 500;
}

/* ========== MODAL STRIPE ========== */
.sd-modal-stripe {
    max-width: 440px;
}

.sd-stripe-amount {
    background: linear-gradient(135deg, var(--sd-primary) 0%, var(--sd-primary-dark) 100%);
    color: white;
    padding: 20px;
    border-radius: var(--sd-radius);
    text-align: center;
    margin-bottom: 20px;
}

.sd-stripe-amount span {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.sd-stripe-amount strong {
    font-size: 28px;
    font-weight: 700;
}

.sd-stripe-options-title {
    font-size: 13px;
    color: var(--sd-text-light);
    margin-bottom: 12px;
}

.sd-stripe-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--sd-neutral-light);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sd-stripe-option:hover {
    background: var(--sd-primary-lighter);
}

.sd-stripe-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--sd-primary);
    margin: 0;
}

.sd-stripe-option:has(input:checked) {
    background: var(--sd-primary-lighter);
    border-color: var(--sd-primary);
}

.sd-stripe-option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sd-stripe-option-title {
    font-weight: 600;
    font-size: 14px;
}

.sd-stripe-option-detail {
    font-size: 13px;
    color: var(--sd-text-light);
    margin-top: 2px;
}

.sd-stripe-option-badge {
    display: inline-block;
    background: var(--sd-warning-light);
    color: #b45309;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    align-self: flex-start;
}

.sd-stripe-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--sd-neutral-light);
    padding: 12px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 12px;
    color: var(--sd-text-light);
}

.sd-stripe-info svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--sd-neutral);
}

.sd-stripe-alt {
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.sd-stripe-alt a {
    color: var(--sd-primary);
    text-decoration: underline;
}

.sd-btn-stripe {
    font-size: 16px;
    padding: 14px 24px;
}

.sd-stripe-secure {
    text-align: center;
    font-size: 12px;
    color: var(--sd-text-light);
    margin-top: 12px;
}

/* Spinner pour chargement */
.sd-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive pour modal Stripe */
@media (min-width: 768px) {
    .sd-modal-stripe {
        max-width: 460px;
    }
    
    .sd-stripe-amount strong {
        font-size: 32px;
    }
}

/* ========================================
   LOGIN FORM - Mon Espace
   ======================================== */
.sd-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.sd-login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(45, 110, 181, 0.12);
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.sd-login-logo {
    margin-bottom: 20px;
}
.sd-login-logo img {
    max-width: 160px;
    height: auto;
}

.sd-login-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2D6EB5;
    margin: 0 0 6px;
}

.sd-login-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 28px;
}

.sd-login-field {
    margin-bottom: 18px;
    text-align: left;
}
.sd-login-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 6px;
}
.sd-login-field input {
    width: 100%;
    border: 2px solid #e0eaf4;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #f8fbfe;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}
.sd-login-field input:focus {
    border-color: #2D6EB5;
    box-shadow: 0 0 0 3px rgba(45, 110, 181, 0.15);
    background: #ffffff;
}

/* v2.42.0 : Login adaptatif steps */
.sd-login-step { display: none; }
.sd-login-step.active { display: block; animation: sdFadeIn 0.3s ease; }

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

.sd-login-step-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
}

.sd-login-readonly {
    background: #f1f5f9 !important;
    color: #64748b !important;
    cursor: default;
}

.sd-login-sent-icon {
    margin: 8px 0 16px;
}

.sd-login-sent-title {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 8px;
}

.sd-login-sent-text {
    font-size: 15px;
    color: #374151;
    margin: 0 0 6px;
}

.sd-login-sent-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px;
}

.sd-login-message {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    text-align: left;
}

.sd-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #2D6EB5, #1a9cd4);
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(45, 110, 181, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.sd-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45, 110, 181, 0.4);
}
.sd-login-btn:active {
    transform: translateY(0);
}

.sd-login-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.sd-login-links {
    margin-top: 20px;
}
.sd-login-links a {
    color: #2D6EB5;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s;
}
.sd-login-links a:hover {
    color: #1a4d8f;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .sd-login-card {
        padding: 28px 20px;
    }
}

/* ========== GROUP TABS ========== */
.sd-group-tabs {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sd-group-tabs-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sd-text-secondary, #64748b);
    white-space: nowrap;
}

.sd-group-tabs-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sd-group-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sd-text-secondary, #64748b);
    background: var(--sd-bg-light, #f1f5f9);
    text-decoration: none;
    transition: all .15s ease;
    border: 2px solid transparent;
}

.sd-group-tab:hover {
    color: var(--sd-primary, #0369a1);
    background: var(--sd-primary-light, #e0f2fe);
}

.sd-group-tab.active {
    color: var(--sd-primary, #0369a1);
    background: var(--sd-primary-light, #e0f2fe);
    border-color: var(--sd-primary, #0369a1);
    font-weight: 600;
}

.sd-group-tab svg {
    color: var(--sd-warning, #f59e0b);
}

@media (max-width: 600px) {
    .sd-group-tabs {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }
    
    .sd-group-tabs-nav {
        width: 100%;
    }
    
    .sd-group-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
}
