/**
 * PBG MON ESPACE - CSS REDESIGN
 * Version: 1.5.2
 */

/* ========================================
   VARIABLES
======================================== */
:root {
    --pbg-primary: #8A9A7B;
    --pbg-primary-dark: #7A8A6B;
    --pbg-black: #000;
    --pbg-white: #FFF;
    --pbg-gray: #666;
    --pbg-light: #F8F9FA;
}

/* ========================================
   PAGE LAYOUT
======================================== */
.pbg-mon-espace-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #F0FAFA 0%, #FFFFFF 100%);
    font-family: 'Inter', sans-serif;
}

.pbg-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px 80px;
}

/* ========================================
   TOPBAR
======================================== */
.pbg-topbar {
    display: flex;
    justify-content: flex-end;
    padding: 25px 40px;
    gap: 15px;
}

.pbg-btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--pbg-white);
    border: 3px solid var(--pbg-black);
    border-radius: 50px;
    color: var(--pbg-black);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pbg-btn-logout:hover {
    background: var(--pbg-black);
    color: var(--pbg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pbg-btn-logout svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.pbg-btn-logout:hover svg {
    transform: translateX(3px);
}

/* ========================================
   HEADER
======================================== */
.pbg-header {
    text-align: center;
    margin-bottom: 60px;
}

.pbg-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(138, 154, 123, 0.15);
    border: 2px solid var(--pbg-primary);
    border-radius: 50px;
    color: var(--pbg-primary-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.pbg-header-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 72px;
    font-weight: 400;
    color: var(--pbg-black);
    line-height: 0.95;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.pbg-header-title span {
    color: var(--pbg-primary);
    position: relative;
}

.pbg-header-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(138, 154, 123, 0.3);
    z-index: -1;
}

.pbg-header-subtitle {
    font-size: 18px;
    color: var(--pbg-gray);
    font-weight: 500;
    margin: 0;
}

/* ========================================
   CARDS GRID
======================================== */
.pbg-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ========================================
   CARD
======================================== */
.pbg-card {
    background: var(--pbg-white);
    border: 3px solid var(--pbg-black);
    border-radius: 20px;
    padding: 35px 30px;
    text-decoration: none;
    color: var(--pbg-black);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.pbg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--pbg-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pbg-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--pbg-primary);
}

.pbg-card:hover::before {
    transform: scaleX(1);
}

/* Card Icon */
.pbg-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(138, 154, 123, 0.15) 0%, rgba(138, 154, 123, 0.05) 100%);
    border: 2px solid var(--pbg-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.pbg-card:hover .pbg-card-icon {
    background: var(--pbg-primary);
    transform: scale(1.05) rotate(-3deg);
}

.pbg-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--pbg-primary);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s;
}

.pbg-card:hover .pbg-card-icon svg {
    stroke: white;
}

/* Card Title */
.pbg-card-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

/* Card Description */
.pbg-card-description {
    font-size: 15px;
    color: var(--pbg-gray);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Card Reminder */
.pbg-card-reminder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(138, 154, 123, 0.1);
    border-left: 3px solid var(--pbg-primary);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--pbg-primary-dark);
}

/* Card Arrow */
.pbg-card-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--pbg-light);
    border: 2px solid var(--pbg-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pbg-card:hover .pbg-card-arrow {
    background: var(--pbg-black);
    transform: translateX(5px);
}

.pbg-card-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--pbg-black);
    stroke-width: 2.5;
    fill: none;
    transition: all 0.3s;
}

.pbg-card:hover .pbg-card-arrow svg {
    stroke: white;
}

/* ========================================
   FOOTER
======================================== */
.pbg-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed #E0E0E0;
}

.pbg-footer p {
    font-size: 15px;
    color: var(--pbg-gray);
    margin: 0;
}

.pbg-footer a {
    color: var(--pbg-primary);
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

.pbg-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pbg-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.pbg-footer a:hover::after {
    transform: scaleX(1);
}

/* ========================================
   PAGE MON COMPTE
======================================== */
.pbg-mon-compte-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #F0FAFA 0%, #FFFFFF 100%);
    font-family: 'Inter', sans-serif;
}

.pbg-mon-compte-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.pbg-mon-compte-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: var(--pbg-black);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.pbg-mon-compte-subtitle {
    font-size: 18px;
    color: var(--pbg-gray);
    font-weight: 500;
    margin: 0;
}

/* Sections */
.pbg-section {
    background: var(--pbg-white);
    border: 3px solid var(--pbg-black);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 25px;
}

.pbg-section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pbg-section-icon {
    width: 40px;
    height: 40px;
    background: var(--pbg-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Profile Rows */
.pbg-profile-card {
    background: var(--pbg-light);
    border-radius: 12px;
    overflow: hidden;
}

.pbg-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 2px solid #E8E8E8;
}

.pbg-profile-row:last-child {
    border-bottom: none;
}

.pbg-profile-label {
    font-size: 14px;
    color: var(--pbg-gray);
    font-weight: 600;
}

.pbg-profile-value {
    font-size: 15px;
    color: var(--pbg-black);
    font-weight: 700;
}

/* Badges */
.pbg-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pbg-badge-auto_entrepreneur,
.pbg-badge-auto-entrepreneur {
    background: #E0F2FE;
    color: #0369A1;
}

.pbg-badge-societe,
.pbg-badge-société {
    background: #F3E8FF;
    color: #7C3AED;
}

.pbg-badge-portage_salarial {
    background: #FEF3C7;
    color: #D97706;
}

/* Documents List */
.pbg-documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pbg-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--pbg-light);
    border-radius: 12px;
    border-left: 4px solid #E5E5E5;
    transition: all 0.2s;
}

.pbg-document-item:hover {
    transform: translateX(5px);
}

.pbg-document-item.pbg-doc-validated {
    border-left-color: #22C55E;
}

.pbg-document-item.pbg-doc-pending {
    border-left-color: #F59E0B;
}

.pbg-document-item.pbg-doc-refused {
    border-left-color: #EF4444;
}

.pbg-document-item.pbg-doc-missing {
    border-left-color: #CBD5E1;
}

.pbg-document-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pbg-document-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--pbg-black);
}

.pbg-document-expiry {
    font-size: 12px;
    color: var(--pbg-gray);
    margin-top: 4px;
}

.pbg-status-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 50px;
}

.pbg-status-validated {
    background: #DCFCE7;
    color: #166534;
}

.pbg-status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.pbg-status-refused {
    background: #FEE2E2;
    color: #991B1B;
}

.pbg-status-missing {
    background: #F1F5F9;
    color: #64748B;
}

/* Buttons */
.pbg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid var(--pbg-black);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pbg-btn-primary {
    background: var(--pbg-primary);
    color: var(--pbg-black);
}

.pbg-btn-primary:hover {
    background: var(--pbg-black);
    color: var(--pbg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pbg-btn-back {
    background: var(--pbg-white);
    color: var(--pbg-black);
}

.pbg-btn-back:hover {
    background: var(--pbg-primary);
    border-color: var(--pbg-primary);
}

.pbg-documents-cta {
    margin-top: 25px;
    text-align: center;
}

/* Form */
.pbg-password-form {
    max-width: 450px;
}

.pbg-form-group {
    margin-bottom: 20px;
}

.pbg-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--pbg-black);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pbg-input-wrapper {
    position: relative;
}

.pbg-input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 3px solid var(--pbg-black);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.2s;
}

.pbg-input-wrapper input:focus {
    outline: none;
    border-color: var(--pbg-primary);
    box-shadow: 0 0 0 4px rgba(138, 154, 123, 0.2);
}

.pbg-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbg-toggle-password svg {
    width: 22px;
    height: 22px;
    stroke: var(--pbg-gray);
    transition: stroke 0.2s;
}

.pbg-toggle-password:hover svg {
    stroke: var(--pbg-primary);
}

.pbg-form-actions {
    margin-top: 30px;
}

/* Alerts */
.pbg-alert {
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid;
}

.pbg-alert-success {
    background: #DCFCE7;
    color: #166534;
    border-color: #86EFAC;
}

.pbg-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
    .pbg-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pbg-header-title {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .pbg-container {
        padding: 20px 20px 60px;
    }
    
    .pbg-topbar {
        padding: 20px;
    }
    
    .pbg-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pbg-header-title {
        font-size: 42px;
    }
    
    .pbg-card {
        min-height: auto;
        padding: 30px 25px;
    }
    
    .pbg-mon-compte-title {
        font-size: 36px;
    }
    
    .pbg-profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pbg-document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pbg-section {
        padding: 25px 20px;
    }
}