/* ===========================================
   ESPACE CLIENT — RENEUF LAB  2026
   =========================================== */

.rl-acc-page {
    min-height: 100vh;
    background: #f5f7fa;
    padding-top: var(--lpt_header_height, 80px);
    font-family: 'Baloo Thambi 2', sans-serif;
}

/* ══ GUEST AUTH ══════════════════════════════ */
.rl-acc-auth {
    min-height: calc(100vh - var(--lpt_header_height, 80px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.rl-acc-auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.rl-acc-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.rl-acc-auth-logo img {
    max-height: 50px;
    width: auto;
}
.rl-acc-auth-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    color: #0f1f3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
}
.rl-acc-auth-sub {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin: 0 0 28px;
}
.rl-acc-redirect-notice {
    background: rgba(253,80,17,.06);
    border: 1px solid rgba(253,80,17,.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #fd5011;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* ── TABS ─────────────────────────────────── */
.rl-auth-tabs {
    display: flex;
    gap: 4px;
    background: #f0f2f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}
.rl-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    font-family: inherit;
    white-space: nowrap;
}
.rl-auth-tab i { font-size: 13px; }
.rl-auth-tab.active { background: #fff; color: #0f1f3d; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.rl-auth-tab:hover:not(.active) { color: #0f1f3d; }

/* ── PANELS ───────────────────────────────── */
.rl-auth-panel { display: none; }
.rl-auth-panel.active { display: block; }

/* ── FIELDS ───────────────────────────────── */
.rl-auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rl-auth-field label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.8px;
    text-transform: uppercase; color: #0f1f3d; opacity: .6;
}
.rl-req { color: #fd5011; }
.rl-auth-field input[type="text"],
.rl-auth-field input[type="email"],
.rl-auth-field input[type="password"],
.rl-auth-field input[type="tel"] {
    height: 50px;
    border: 1.5px solid rgba(0,0,0,.12); border-radius: 10px;
    padding: 0 16px; font-size: 14px; color: #0f1f3d;
    background: #f8fafc; outline: none;
    transition: border-color .2s, background .2s;
    box-sizing: border-box; font-family: inherit; width: 100%;
}
.rl-auth-field input:focus { border-color: #fd5011; background: #fff; }

/* Password show/hide */
.rl-auth-password-wrap { position: relative; display: flex; align-items: center; }
.rl-auth-password-wrap input { padding-right: 46px; flex: 1; }
.rl-auth-eye {
    position: absolute; right: 14px;
    background: none; border: none; cursor: pointer;
    color: #aaa; font-size: 15px; padding: 0; line-height: 1;
    transition: color .15s;
}
.rl-auth-eye:hover { color: #fd5011; }

/* 2-column grid */
.rl-auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Remember + lost password */
.rl-auth-row-between {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.rl-auth-checkbox {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: #555; cursor: pointer; user-select: none;
}
.rl-auth-checkbox input[type="checkbox"] { accent-color: #fd5011; width: 15px; height: 15px; }
.rl-auth-lost { font-size: 12px; font-weight: 700; color: #888; text-decoration: none; transition: color .15s; }
.rl-auth-lost:hover { color: #fd5011; }

/* Info note */
.rl-auth-note {
    display: flex; align-items: flex-start; gap: 9px;
    background: rgba(253,80,17,.05); border: 1px solid rgba(253,80,17,.15);
    border-radius: 8px; padding: 12px 14px;
    font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 20px;
}
.rl-auth-note i { color: #fd5011; margin-top: 1px; flex-shrink: 0; }

/* Submit button */
.rl-auth-submit-btn {
    width: 100%; height: 54px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #fd5011; color: #fff;
    font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    border: none; border-radius: 10px; cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(253,80,17,.25);
    font-family: inherit; margin-bottom: 16px;
}
.rl-auth-submit-btn:hover { background: #e04610; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(253,80,17,.35); }

/* Switch link */
.rl-auth-switch { text-align: center; font-size: 13px; color: #888; margin: 0; }
.rl-auth-switch-btn {
    background: none; border: none; font-size: 13px; font-weight: 700;
    color: #fd5011; cursor: pointer; padding: 0; font-family: inherit;
    text-decoration: underline; text-underline-offset: 2px;
}
.rl-auth-switch-btn:hover { color: #c43d08; }

/* WC notices */
.rl-acc-auth .woocommerce-error,
.rl-acc-auth .woocommerce-message,
.rl-acc-auth .woocommerce-info {
    list-style: none; padding: 12px 16px; border-radius: 10px;
    font-size: 13px; font-weight: 600; margin: 0 0 20px;
    display: flex; align-items: center; gap: 8px;
}
.rl-acc-auth .woocommerce-error  { background: rgba(239,68,68,.08);  color: #dc2626; border: 1px solid rgba(239,68,68,.2); }
.rl-acc-auth .woocommerce-message{ background: rgba(34,197,94,.08);  color: #15803d; border: 1px solid rgba(34,197,94,.2); }
.rl-acc-auth .woocommerce-info   { background: rgba(59,130,246,.08); color: #1d4ed8; border: 1px solid rgba(59,130,246,.2); }

@media (max-width: 480px) {
    .rl-auth-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .rl-auth-tab span { display: none; }
}

/* (legacy WC form classes — kept for safety) */
.rl-acc-auth .col2-set,
.rl-acc-auth .u-column1,
.rl-acc-auth .u-column2 { display: none !important; }


/* ══ LOGGED-IN LAYOUT ════════════════════════ */
.rl-acc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ══ SIDEBAR ═════════════════════════════════ */
.rl-acc-sidebar {
    background: #0f1f3d;
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: calc(var(--lpt_header_height, 80px) + 20px);
}
.rl-acc-user {
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    gap: 12px;
}
.rl-acc-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.2);
    object-fit: cover;
}
.rl-acc-user-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 168px;
}
.rl-acc-user-text span {
    font-size: 11px;
    color: rgba(255,255,255,.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 168px;
    display: block;
}
.rl-acc-nav { padding: 10px 0; }
.rl-acc-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .15s, background .15s;
    border-left: 3px solid transparent;
}
.rl-acc-nav-item i { width: 16px; text-align: center; font-size: 14px; flex-shrink: 0; }
.rl-acc-nav-item:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.04); }
.rl-acc-nav-item.active { color: #fff; background: rgba(253,80,17,.1); border-left-color: #fd5011; }
.rl-acc-nav-logout {
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 14px;
    color: rgba(255,255,255,.28);
}
.rl-acc-nav-logout:hover { color: #ff8080 !important; background: rgba(255,80,80,.05) !important; }

/* ══ MAIN CONTENT ════════════════════════════ */
.rl-acc-main { min-width: 0; }

.rl-acc-section {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.rl-acc-section-header {
    padding: 28px 32px 22px;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.rl-acc-section-header h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f1f3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rl-acc-section-header h2 i { color: #fd5011; font-size: 17px; }
.rl-acc-section-header p { font-size: 13px; color: #999; margin: 0; }

/* Stats strip */
.rl-acc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.rl-acc-stat {
    padding: 24px 28px;
    text-align: center;
    border-right: 1px solid rgba(0,0,0,.05);
}
.rl-acc-stat:last-child { border-right: none; }
.rl-acc-stat-num {
    font-size: 38px;
    font-weight: 800;
    color: #fd5011;
    line-height: 1;
    margin-bottom: 6px;
}
.rl-acc-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0,0,0,.35);
}
.rl-acc-stat-sub {
    font-size: 14px;
    font-weight: 700;
    color: #0f1f3d;
    margin-top: 4px;
}

/* Content blocks */
.rl-acc-block {
    padding: 28px 32px;
    border-top: 1px solid rgba(0,0,0,.04);
}
.rl-acc-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.rl-acc-block-header h3 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f1f3d;
    margin: 0;
}
.rl-acc-block-header a { font-size: 12px; font-weight: 700; color: #fd5011; text-decoration: none; }
.rl-acc-block-header a:hover { text-decoration: underline; }

/* Table */
.rl-acc-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(0,0,0,.06); }
.rl-acc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rl-acc-table th {
    background: #f8f9fb;
    padding: 11px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0,0,0,.38);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.rl-acc-table td {
    padding: 13px 16px;
    color: rgba(0,0,0,.7);
    border-bottom: 1px solid rgba(0,0,0,.04);
    vertical-align: middle;
}
.rl-acc-table tbody tr:last-child td { border-bottom: none; }
.rl-acc-table tbody tr:hover td { background: rgba(0,0,0,.015); }

/* Status badges */
.rl-acc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.rl-acc-badge--pending,
.rl-acc-badge--on-hold   { background: rgba(234,179,8,.12);  color: #92400e; }
.rl-acc-badge--accepted,
.rl-acc-badge--processing,
.rl-acc-badge--completed { background: rgba(34,197,94,.12);  color: #15803d; }
.rl-acc-badge--rejected,
.rl-acc-badge--cancelled,
.rl-acc-badge--failed    { background: rgba(239,68,68,.1);   color: #dc2626; }
.rl-acc-badge--expired,
.rl-acc-badge--draft,
.rl-acc-badge--default   { background: rgba(0,0,0,.05);      color: rgba(0,0,0,.4); }

/* Table action link */
.rl-acc-table-action {
    font-size: 11px;
    font-weight: 700;
    color: #fd5011;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .15s;
    white-space: nowrap;
}
.rl-acc-table-action:hover { gap: 8px; }

/* Empty state */
.rl-acc-empty {
    padding: 60px 32px;
    text-align: center;
}
.rl-acc-empty > i {
    font-size: 52px;
    color: rgba(0,0,0,.1);
    margin-bottom: 16px;
    display: block;
}
.rl-acc-empty p { font-size: 15px; color: #999; margin: 0 0 24px; }

/* Button */
.rl-acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fd5011;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
    font-family: inherit;
}
.rl-acc-btn:hover { background: #e04610; transform: translateY(-2px); }

/* Notice */
.rl-acc-notice {
    margin: 20px 32px 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rl-acc-notice--success { background: rgba(34,197,94,.1); color: #15803d; }
.rl-acc-notice--error   { background: rgba(239,68,68,.1); color: #dc2626; }

/* Form */
.rl-acc-form { padding: 28px 32px; }
.rl-acc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.rl-acc-field { display: flex; flex-direction: column; gap: 6px; }
.rl-acc-field--full { grid-column: 1 / -1; }
.rl-acc-field label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(0,0,0,.4);
}
.rl-acc-field input {
    height: 48px;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    color: #0f1f3d;
    background: #fff;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.rl-acc-field input:focus { border-color: #fd5011; }

/* Interlocuteur */
.rl-acc-contact-card {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    border: 1px solid rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.rl-acc-contact-avatar {
    width: 68px;
    height: 68px;
    background: #0f1f3d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 26px;
}
.rl-acc-contact-info h3 { font-size: 18px; font-weight: 800; color: #0f1f3d; margin: 0 0 4px; }
.rl-acc-contact-role { font-size: 13px; color: #888; margin: 0 0 20px; }
.rl-acc-contact-methods { display: flex; flex-direction: column; gap: 10px; }
.rl-acc-contact-method {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f1f3d;
    text-decoration: none;
    transition: color .15s;
}
.rl-acc-contact-method i { color: #fd5011; width: 16px; text-align: center; }
.rl-acc-contact-method:hover { color: #fd5011; }
.rl-acc-contact-method--wa i { color: #25d366; }
.rl-acc-contact-method--wa:hover { color: #25d366; }
.rl-acc-contact-hours {
    background: rgba(253,80,17,.04);
    border-radius: 10px;
    border: 1px solid rgba(253,80,17,.1);
    padding: 18px 22px;
}
.rl-acc-contact-hours h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fd5011;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.rl-acc-contact-hours p { font-size: 13px; color: #555; margin: 0 0 4px; }

/* ══ NATIVE WC CONTENT ═══════════════════════ */
.rl-acc-wc-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.rl-acc-wc-content h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f1f3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 24px;
}
.rl-acc-wc-content .woocommerce-Message { background: rgba(34,197,94,.08); border-color: #22c55e; border-radius: 8px; font-size: 13px; }
/* WC orders table */
.rl-acc-wc-content .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
}
.rl-acc-wc-content .woocommerce-orders-table th {
    background: #f8f9fb;
    padding: 11px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0,0,0,.38);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.rl-acc-wc-content .woocommerce-orders-table td {
    padding: 13px 16px;
    color: rgba(0,0,0,.7);
    border-bottom: 1px solid rgba(0,0,0,.04);
    vertical-align: middle;
}
.rl-acc-wc-content .woocommerce-orders-table .woocommerce-button {
    font-size: 11px;
    font-weight: 700;
    color: #fd5011;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid #fd5011;
    border-radius: 6px;
    transition: background .15s, color .15s;
    background: transparent;
}
.rl-acc-wc-content .woocommerce-orders-table .woocommerce-button:hover { background: #fd5011; color: #fff; }
/* WC edit-account form */
.rl-acc-wc-content .woocommerce-form-row { margin-bottom: 16px; }
.rl-acc-wc-content .woocommerce-form-row label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(0,0,0,.4);
    margin-bottom: 6px;
}
.rl-acc-wc-content .woocommerce-form-row input:not([type="checkbox"]) {
    width: 100%;
    height: 48px;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    color: #0f1f3d;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.rl-acc-wc-content .woocommerce-form-row input:focus { border-color: #fd5011; }
.rl-acc-wc-content .woocommerce-form-row p { font-size: 12px; color: #888; margin: 4px 0 0; }
.rl-acc-wc-content .woocommerce-Button,
.rl-acc-wc-content button[type="submit"],
.rl-acc-wc-content .button {
    display: inline-flex;
    align-items: center;
    background: #fd5011 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit !important;
}
.rl-acc-wc-content .woocommerce-Button:hover,
.rl-acc-wc-content button[type="submit"]:hover { background: #e04610 !important; }

/* ══ PRODUCT PAGE — LOGIN GATE ════════════════ */
.spp-cta-login-gate {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    background: #0f1f3d;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}
.spp-cta-login-gate:hover { background: #1a3260; transform: translateY(-2px); color: #fff !important; }
.spp-login-gate-sub {
    text-align: center;
    font-size: 12px;
    color: rgba(0,0,0,.45);
    margin: 0;
    padding: 0;
}
.spp-login-gate-sub a { color: #fd5011; text-decoration: underline; }

/* ══ RESPONSIVE ══════════════════════════════ */
@media (max-width: 960px) {
    .rl-acc-inner { grid-template-columns: 1fr; padding: 24px 16px 60px; }
    .rl-acc-sidebar { position: static; }
    .rl-acc-nav { display: flex; flex-wrap: wrap; padding: 10px; gap: 4px; }
    .rl-acc-nav-item {
        flex-direction: column; align-items: center; text-align: center;
        padding: 10px 12px; gap: 4px; font-size: 11px; border-radius: 8px;
        border-left: none; flex: 1; min-width: 64px;
    }
    .rl-acc-nav-item.active { border-left: none; border-bottom: 3px solid #fd5011; }
    .rl-acc-nav-logout { border-top: 1px solid rgba(255,255,255,.06); margin: 0; padding: 10px 12px; }
}
@media (max-width: 640px) {
    .rl-acc-auth-card { padding: 28px 20px; }
    .rl-acc-section-header { padding: 20px; }
    .rl-acc-block { padding: 20px; }
    .rl-acc-form { padding: 20px; }
    .rl-acc-form-grid { grid-template-columns: 1fr; }
    .rl-acc-field--full { grid-column: 1; }
    .rl-acc-wc-content { padding: 20px; }
    .rl-acc-stats { grid-template-columns: 1fr; }
    .rl-acc-stat { border-right: none; border-bottom: 1px solid rgba(0,0,0,.05); }
    .rl-acc-stat:last-child { border-bottom: none; }
    .rl-acc-contact-card { flex-direction: column; gap: 16px; padding: 20px; }
    .rl-acc-notice { margin: 16px 20px 0; }
}
