/**
 * Feuille de styles pour l'Espace Dépôt d'Annonces Régions - Pharma Cession Conseil
 * Respect strict de la charte de marque blanche et de la règle "Zéro Emoji en UI".
 * Icônes vectorielles Material Symbols Outlined.
 */

:root {
    --pcc-blue: #195de6;
    --pcc-blue-dark: #1244ab;
    --pcc-blue-light: #eff6ff;
    --pcc-green: #60b12d;
    --pcc-green-dark: #4d8f24;
    --pcc-green-light: #f0fdf4;
    --pcc-bg-page: #f8fafc;
    --pcc-card-bg: #ffffff;
    --pcc-text-main: #0f172a;
    --pcc-text-muted: #64748b;
    --pcc-border: #e2e8f0;
    --pcc-border-focus: #195de6;
    --pcc-radius-lg: 16px;
    --pcc-radius-md: 10px;
    --pcc-radius-sm: 6px;
    --pcc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --pcc-shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    --pcc-shadow-lg: 0 10px 30px -5px rgba(15, 23, 42, 0.12);
}

.pcc-depot-wrapper {
    font-family: inherit;
    color: var(--pcc-text-main);
    background-color: var(--pcc-bg-page);
    padding: 30px 15px 60px 15px;
    min-height: 70vh;
    box-sizing: border-box;
}

.pcc-depot-container {
    max-width: 960px;
    margin: 0 auto;
}

/* Material Symbols Base */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

/* Material Symbols dans l'Espace Dépôt et les Badges */
.pcc-depot-wrapper .material-symbols-outlined,
.pcc-status-badge .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}

/* Alignement parfait des icônes clés CA et Prix de vente dans le bandeau Hero Divi */
.et_pb_text p[style*="font-size: 2em"] .material-symbols-outlined,
.et_pb_text_inner p[style*="font-size: 2em"] .material-symbols-outlined {
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

/* --- BANDEAU AUTHENTIFICATION / LOGIN --- */
.pcc-auth-card {
    max-width: 480px;
    margin: 40px auto;
    background: var(--pcc-card-bg);
    border-radius: var(--pcc-radius-lg);
    box-shadow: var(--pcc-shadow-lg);
    border: 1px solid var(--pcc-border);
    padding: 40px 35px;
    text-align: center;
}

.pcc-auth-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--pcc-blue-light);
    color: var(--pcc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.pcc-auth-badge-icon .material-symbols-outlined {
    font-size: 32px;
}

.pcc-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pcc-text-main);
    margin: 0 0 10px 0;
}

.pcc-auth-desc {
    font-size: 14px;
    color: var(--pcc-text-muted);
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.pcc-auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pcc-auth-input-wrapper {
    position: relative;
    text-align: left;
}

.pcc-auth-input-wrapper input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1px solid var(--pcc-border);
    border-radius: var(--pcc-radius-md);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pcc-auth-input-wrapper input:focus {
    border-color: var(--pcc-border-focus);
    box-shadow: 0 0 0 3px rgba(25, 93, 230, 0.15);
}

.pcc-auth-submit-btn {
    background: var(--pcc-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--pcc-radius-md);
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.pcc-auth-submit-btn:hover {
    background: var(--pcc-blue-dark);
}

/* --- BANDEAU SUPERIEUR CONNECTÉ --- */
.pcc-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pcc-card-bg);
    border: 1px solid var(--pcc-border);
    border-radius: var(--pcc-radius-md);
    padding: 12px 20px;
    margin-bottom: 25px;
    box-shadow: var(--pcc-shadow-sm);
}

.pcc-user-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pcc-text-main);
}

.pcc-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--pcc-green);
    display: inline-block;
}

.pcc-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--pcc-text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--pcc-radius-sm);
    transition: background 0.15s, color 0.15s;
}

.pcc-logout-link:hover {
    background: #f1f5f9;
    color: #ef4444;
}

/* --- EN-TÊTE PRINCIPAL DE PAGE --- */
.pcc-header-card {
    background: linear-gradient(135deg, #195de6 0%, #0f3ba1 100%);
    border-radius: var(--pcc-radius-lg);
    padding: 35px 30px;
    color: #ffffff;
    margin-bottom: 30px;
    box-shadow: var(--pcc-shadow-md);
    position: relative;
    overflow: hidden;
}

.pcc-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.pcc-header-title,
.pcc-depot-wrapper h1.pcc-header-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.pcc-header-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
    max-width: 700px;
    line-height: 1.5;
}

/* --- ALERTES NOTIFICATIONS --- */
.pcc-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--pcc-radius-md);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.pcc-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.pcc-alert-danger .material-symbols-outlined {
    color: #dc2626;
    font-size: 22px;
}

.pcc-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.pcc-alert-success .material-symbols-outlined {
    color: var(--pcc-green);
    font-size: 22px;
}

/* --- SECTIONS DU FORMULAIRE --- */
.pcc-form-card {
    background: var(--pcc-card-bg);
    border-radius: var(--pcc-radius-lg);
    box-shadow: var(--pcc-shadow-md);
    border: 1px solid var(--pcc-border);
    padding: 35px 30px;
    margin-bottom: 25px;
}

.pcc-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pcc-border);
}

.pcc-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--pcc-blue-light);
    color: var(--pcc-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pcc-text-main);
    margin: 0;
}

.pcc-section-desc {
    font-size: 13px;
    color: var(--pcc-text-muted);
    margin: 0;
}

/* --- GRILLES & CHAMPS --- */
.pcc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pcc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pcc-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.pcc-field-group.full-width {
    grid-column: 1 / -1;
}

.pcc-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pcc-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pcc-label .required-star {
    color: #ef4444;
}

.pcc-help-text {
    font-size: 12px;
    color: var(--pcc-text-muted);
    margin: 2px 0 0 0;
    line-height: 1.4;
}

.pcc-input,
.pcc-select,
.pcc-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--pcc-border);
    border-radius: var(--pcc-radius-sm);
    font-size: 14px;
    color: var(--pcc-text-main);
    background-color: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.pcc-input:focus,
.pcc-select:focus,
.pcc-textarea:focus {
    border-color: var(--pcc-border-focus);
    box-shadow: 0 0 0 3px rgba(25, 93, 230, 0.12);
    outline: none;
}

.pcc-input:disabled,
.pcc-select:disabled,
.pcc-textarea:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.pcc-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

/* Groupe avec suffixe / préfixe */
.pcc-input-adornment-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pcc-input-adornment-wrapper .pcc-input {
    padding-right: 48px;
}

.pcc-input-adornment {
    position: absolute;
    right: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pcc-text-muted);
    pointer-events: none;
}

/* Checkbox personnalisée */
.pcc-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--pcc-text-main);
}

.pcc-checkbox-container input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--pcc-blue);
}

/* Boîte Upload Photo */
.pcc-upload-card {
    border: 2px dashed var(--pcc-border);
    border-radius: var(--pcc-radius-md);
    padding: 24px;
    text-align: center;
    background: #fafbfd;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
    cursor: pointer;
}

.pcc-upload-card:hover {
    border-color: var(--pcc-blue);
    background-color: var(--pcc-blue-light);
}

.pcc-upload-icon {
    font-size: 36px;
    color: var(--pcc-blue);
    margin-bottom: 8px;
}

.pcc-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--pcc-text-main);
    margin: 0 0 4px 0;
}

.pcc-upload-subtext {
    font-size: 12px;
    color: var(--pcc-text-muted);
    margin: 0;
}

.pcc-upload-card input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.pcc-file-preview-info {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pcc-green-dark);
}

/* Encart d'aide SEO */
.pcc-seo-callout {
    background: #f8fafc;
    border-left: 4px solid var(--pcc-green);
    padding: 14px 18px;
    border-radius: 0 var(--pcc-radius-sm) var(--pcc-radius-sm) 0;
    margin-bottom: 16px;
}

.pcc-seo-callout-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pcc-green-dark);
    margin: 0 0 4px 0;
}

.pcc-seo-callout-desc {
    font-size: 12px;
    color: var(--pcc-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Barre de soumission */
.pcc-submit-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pcc-border);
}

.pcc-submit-button {
    background: linear-gradient(135deg, var(--pcc-green) 0%, var(--pcc-green-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--pcc-radius-md);
    padding: 15px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(96, 177, 45, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}

.pcc-submit-button:hover {
    box-shadow: 0 6px 18px rgba(96, 177, 45, 0.45);
    transform: translateY(-1px);
}

.pcc-submit-button:active {
    transform: translateY(0);
}

.pcc-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Page / Carte de Succès */
.pcc-success-card {
    background: var(--pcc-card-bg);
    border-radius: var(--pcc-radius-lg);
    box-shadow: var(--pcc-shadow-md);
    border: 1px solid var(--pcc-border);
    padding: 45px 35px;
    text-align: center;
    margin: 30px auto;
}

.pcc-success-badge-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--pcc-green-light);
    color: var(--pcc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.pcc-success-badge-icon .material-symbols-outlined {
    font-size: 40px;
}

.pcc-success-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--pcc-text-main);
    margin: 0 0 10px 0;
}

.pcc-success-subtitle {
    font-size: 15px;
    color: var(--pcc-text-muted);
    max-width: 600px;
    margin: 0 auto 25px auto;
    line-height: 1.5;
}

.pcc-success-summary-box {
    background: var(--pcc-bg-page);
    border: 1px solid var(--pcc-border);
    border-radius: var(--pcc-radius-md);
    padding: 20px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.pcc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--pcc-border);
    font-size: 14px;
}

.pcc-summary-row:last-child {
    border-bottom: none;
}

.pcc-summary-label {
    font-weight: 600;
    color: var(--pcc-text-muted);
}

.pcc-summary-value {
    font-weight: 700;
    color: var(--pcc-text-main);
}

.pcc-btn-secondary {
    background: var(--pcc-blue);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--pcc-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.pcc-btn-secondary:hover {
    background: var(--pcc-blue-dark);
}

/* Responsiveness */
@media (max-width: 768px) {
    .pcc-grid-2,
    .pcc-grid-4 {
        grid-template-columns: 1fr;
    }
    .pcc-form-card {
        padding: 25px 20px;
    }
    .pcc-header-card {
        padding: 25px 20px;
    }
    .pcc-header-title {
        font-size: 22px;
    }
    .pcc-submit-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .pcc-submit-button {
        justify-content: center;
    }
}

/* ==========================================================================
   NOUVEAUX COMPOSANTS : ACCORDÉON & BADGES DE STATUT PCC
   ========================================================================== */

/* --- ACCORDÉON CARACTÉRISTIQUES COMPLÉMENTAIRES --- */
.pcc-accordion-card {
    cursor: pointer;
    transition: background-color 0.2s;
}

.pcc-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.pcc-accordion-chevron {
    font-size: 28px;
    color: var(--pcc-text-muted);
    transition: transform 0.3s ease;
}

.pcc-accordion-card.is-open .pcc-accordion-chevron {
    transform: rotate(180deg);
    color: var(--pcc-blue);
}

/* --- BADGES DE STATUT SUR FICHE SINGULIÈRE (SOUS COMPROMIS / VENDUE) --- */
.pcc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: pccBadgeFade 0.5s ease-out;
}

@keyframes pccBadgeFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pcc-status-badge .material-symbols-outlined {
    font-size: 20px;
}

.pcc-status-badge-compromis {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    border: 1px solid #60a5fa;
}

.pcc-status-badge-vendu {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    color: #ffffff;
    border: 1px solid #34d399;
}

/* --- DISPOSITION PLEINE LARGEUR & SUPPRESSION DE LA SIDEBAR DIVI --- */
body.page-id-1767 #sidebar,
body:has(.pcc-depot-wrapper) #sidebar {
    display: none !important;
}

body.page-id-1767 #left-area,
body:has(.pcc-depot-wrapper) #left-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

body.page-id-1767 #main-content .container:before,
body:has(.pcc-depot-wrapper) #main-content .container:before {
    display: none !important;
}

