/* ==========================================================================
   Gestion Compte Prestataire HTIC - Styles
   ========================================================================== */

/* Variables */
:root {
    --gcph-primary: #000000;
    --gcph-white: #ffffff;
    --gcph-gray-100: #f9f9f9;
    --gcph-gray-200: #e5e5e5;
    --gcph-gray-300: #d4d4d4;
    --gcph-gray-400: #a3a3a3;
    --gcph-gray-500: #737373;
    --gcph-gray-600: #525252;
    --gcph-error: #dc2626;
    --gcph-success: #16a34a;
    --gcph-info: #2563eb;
    --gcph-border-radius: 8px;
    --gcph-transition: all 0.3s ease;
}

/* Bouton compte dans le header */
.gcph-account-btn-wrapper {
    display: inline-block;
}

.gcph-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gcph-primary);
    color: var(--gcph-white);
    border: none;
    border-radius: var(--gcph-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gcph-transition);
    text-decoration: none;
}

.gcph-account-btn:hover {
    background: var(--gcph-gray-600);
    transform: translateY(-2px);
}

.gcph-account-btn svg {
    width: 20px;
    height: 20px;
}

.gcph-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

/* Dropdown Menu */
.gcph-dropdown-wrapper {
    position: relative;
}

.gcph-dropdown-trigger {
    cursor: pointer;
}

.gcph-dropdown-wrapper.active .gcph-chevron {
    transform: rotate(180deg);
}

.gcph-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--gcph-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.gcph-dropdown-wrapper.active .gcph-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gcph-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gcph-gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid var(--gcph-gray-200);
}

.gcph-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.gcph-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.gcph-dropdown-item:hover {
    background: var(--gcph-gray-100);
    color: var(--gcph-primary);
}

.gcph-dropdown-item svg {
    width: 16px;
    height: 16px;
}

.gcph-dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Modales */
.gcph-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gcph-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.gcph-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="rgba(0,0,0,0.3)"/></svg>');
    background-size: cover;
    background-position: center;
}

.gcph-modal-content {
    position: relative;
    background: var(--gcph-white);
    border-radius: 16px;
    max-width: 620px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 1;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gcph-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--gcph-gray-500);
    cursor: pointer;
    transition: var(--gcph-transition);
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcph-modal-close:hover {
    color: var(--gcph-primary);
    transform: rotate(90deg);
}

.gcph-modal-body {
    padding: 60px 50px 40px;
}

.gcph-modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: var(--gcph-primary);
}

.gcph-modal-subtitle {
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--gcph-gray-500);
    line-height: 1.5;
    text-align: center;
}

/* Formulaires */
.gcph-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gcph-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gcph-form-group {
    position: relative;
}

.gcph-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gcph-gray-600);
}

.gcph-form-group input[type="text"],
.gcph-form-group input[type="email"],
.gcph-form-group input[type="password"] {
    width: 100%;
    padding: 25px 16px;
    border: 1px solid var(--gcph-gray-300);
    border-radius: var(--gcph-border-radius);
    font-size: 15px;
    transition: var(--gcph-transition);
    background: var(--gcph-white);
}

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

.gcph-form-group input.error {
    border-color: var(--gcph-error);
}

.gcph-password-field {
    position: relative;
}

.gcph-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gcph-gray-400);
    transition: var(--gcph-transition);
    padding: 4px;
}

.gcph-toggle-password:hover {
    color: var(--gcph-primary);
}

.gcph-field-hint {
    display: block;
    font-size: 12px;
    color: var(--gcph-gray-500);
    margin-top: 4px;
}

.gcph-error-message {
    display: none;
    color: var(--gcph-error);
    font-size: 13px;
    margin-top: 4px;
}

.gcph-error-message.show {
    display: block;
}

/* Checkboxes */
.gcph-checkbox-group {
    margin: 10px 0;
}

.gcph-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.gcph-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Messages */
.gcph-form-messages {
    display: none;
    padding: 12px 16px;
    border-radius: var(--gcph-border-radius);
    font-size: 14px;
    margin-bottom: 10px;
}

.gcph-form-messages.show {
    display: block;
}

.gcph-form-messages.success {
    background: #dcfce7;
    color: var(--gcph-success);
    border: 1px solid var(--gcph-success);
}

.gcph-form-messages.error {
    background: #fee2e2;
    color: var(--gcph-error);
    border: 1px solid var(--gcph-error);
}

/* Boutons */
.gcph-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gcph-primary);
    color: var(--gcph-white);
    border: none;
    border-radius: var(--gcph-border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gcph-transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gcph-submit-btn:hover:not(:disabled) {
    background: var(--gcph-gray-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gcph-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gcph-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
}

.gcph-forgot-password {
    font-size: 13px;
    color: var(--gcph-gray-600);
    text-decoration: none;
    transition: var(--gcph-transition);
}

.gcph-forgot-password:hover {
    color: var(--gcph-primary);
}

.gcph-switch-modal {
    width: 100%;
    padding: 16px;
    background: #D8A807;
    color: var(--gcph-white);
    border: none;
    border-radius: var(--gcph-border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gcph-transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gcph-switch-modal:hover:not(:disabled) {
    background: var(--gcph-gray-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gcph-switch-modal a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--gcph-transition);
}

.gcph-switch-modal a:hover {
    text-decoration: underline;
}

/* Dashboard Mon Compte */
/* ==========================================
   PAGE MON COMPTE - DESIGN AVEC SIDEBAR
========================================== */

.gcph-account-wrapper {
    display: flex;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
    min-height: 600px;
}

/* Sidebar */
.gcph-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: var(--gcph-white);
    padding: 30px 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
    position: sticky;
    top: 23%;
}

.gcph-sidebar-header {
    text-align: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gcph-user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: #f0f0f0;
}

.gcph-user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gcph-user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--gcph-white);
}

.gcph-user-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.gcph-sidebar-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 12px;
    background: rgba(251, 146, 60, 0.2);
    border: 1px solid rgba(251, 146, 60, 0.4);
    border-radius: 20px;
    font-size: 12px;
    color: #fed7aa;
}

.gcph-sidebar-warning svg {
    width: 14px;
    height: 14px;
}

.gcph-sidebar-nav {
    padding: 20px 0;
}

.gcph-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.gcph-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gcph-white);
}

.gcph-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gcph-white);
    border-left-color: #4f46e5;
}

.gcph-nav-item svg {
    width: 20px;
    height: 20px;
}

.gcph-nav-logout {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.gcph-nav-logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content */
.gcph-main-content {
    flex: 1;
    min-width: 0;
}

.gcph-content-section {
    display: none;
}

.gcph-content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gcph-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gcph-primary);
    margin-bottom: 30px;
}

.gcph-content-card {
    background: var(--gcph-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.gcph-content-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gcph-primary);
    margin-bottom: 20px;
}

/* Notifications */
.gcph-notification {
    padding: 16px 20px;
    border-radius: var(--gcph-border-radius);
    margin-bottom: 30px;
    font-size: 15px;
}

.gcph-notification-success {
    background: #dcfce7;
    color: var(--gcph-success);
    border: 1px solid var(--gcph-success);
}

.gcph-notification-info {
    background: #dbeafe;
    color: var(--gcph-info);
    border: 1px solid var(--gcph-info);
}

.gcph-notification-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Stats pour fiches */
.gcph-fiches-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.gcph-stat-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: var(--gcph-white);
}

.gcph-stat-icon {
    font-size: 36px;
}

.gcph-stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--gcph-white);
}

.gcph-stat-content p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* Sous-titres dans les formulaires */
.gcph-subsection-title-form {
    font-size: 18px;
    font-weight: 600;
    color: var(--gcph-primary);
    margin-top: 30px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gcph-gray-200);
}

.gcph-subsection-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--gcph-gray-600);
    margin-top: 20px;
    margin-bottom: 12px;
}

/* Tabs Navigation (Sous-onglets) */
.gcph-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gcph-gray-200);
}

.gcph-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--gcph-gray-600);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.gcph-tab-btn:hover {
    color: var(--gcph-primary);
    background: var(--gcph-gray-100);
}

.gcph-tab-btn.active {
    color: white;
    background: #D8A807;
}

.gcph-tab-btn svg {
    width: 18px;
    height: 18px;
}

.gcph-tab-content {
    display: none;
}

.gcph-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* Responsive */
@media (max-width: 1024px) {
    .gcph-account-wrapper {
        gap: 20px;
    }

    .gcph-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .gcph-account-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
        margin: 20px auto;
    }

    .gcph-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .gcph-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }

    .gcph-nav-item {
        flex: 1;
        min-width: calc(50% - 5px);
        padding: 12px 15px;
        border-left: none;
        border-radius: 8px;
        justify-content: center;
        font-size: 14px;
    }

    .gcph-nav-item svg {
        width: 18px;
        height: 18px;
    }

    .gcph-nav-logout {
        margin-top: 0;
        padding-top: 12px;
        border-top: none;
        width: 100%;
    }

    .gcph-section-title {
        font-size: 24px;
    }

    .gcph-content-card {
        padding: 20px;
    }
}

/* Old Dashboard Styles - Keep for backward compatibility */
.gcph-dashboard-header {
    margin-bottom: 40px;
}

.gcph-dashboard-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gcph-primary);
}

.gcph-subtitle {
    font-size: 16px;
    color: var(--gcph-gray-500);
}

.gcph-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gcph-dashboard-card {
    background: var(--gcph-white);
    border: 1px solid var(--gcph-gray-200);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--gcph-transition);
}

.gcph-dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gcph-dashboard-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gcph-primary);
}

.gcph-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gcph-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gcph-gray-200);
}

.gcph-info-item:last-child {
    border-bottom: none;
}

.gcph-info-item .label {
    font-weight: 500;
    color: var(--gcph-gray-600);
    font-size: 14px;
}

.gcph-info-item .value {
    font-weight: 600;
    color: var(--gcph-primary);
    font-size: 14px;
}

.gcph-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.gcph-stat-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: var(--gcph-gray-100);
    border-radius: var(--gcph-border-radius);
}

.gcph-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--gcph-primary);
    margin-bottom: 4px;
}

.gcph-stat-label {
    display: block;
    font-size: 13px;
    color: var(--gcph-gray-600);
}

.gcph-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gcph-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gcph-gray-100);
    color: var(--gcph-primary);
    border: none;
    border-radius: var(--gcph-border-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gcph-transition);
    text-decoration: none;
    width: 100%;
}

.gcph-action-btn:hover {
    background: var(--gcph-gray-200);
    transform: translateX(4px);
}

.gcph-action-btn.gcph-logout {
    color: var(--gcph-error);
}

.gcph-action-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.gcph-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--gcph-border-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--gcph-transition);
    text-align: center;
}

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

.gcph-btn-primary:hover {
    background: var(--gcph-gray-600);
    transform: translateY(-2px);
}

.gcph-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--gcph-gray-100);
    color: var(--gcph-primary);
    border: 1px solid var(--gcph-gray-300);
    border-radius: var(--gcph-border-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--gcph-transition);
    text-align: center;
    cursor: pointer;
}

.gcph-btn-secondary:hover {
    background: var(--gcph-gray-200);
    border-color: var(--gcph-primary);
}

.gcph-btn-danger {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gcph-error);
    color: var(--gcph-white);
    border: none;
    border-radius: var(--gcph-border-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--gcph-transition);
    text-align: center;
    cursor: pointer;
}

.gcph-btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Formulaires dans le compte */
.gcph-form-account {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gcph-form-row-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gcph-form-group-account {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gcph-form-group-account label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gcph-gray-600);
}

.gcph-form-group-account input,
.gcph-form-group-account select,
.gcph-form-group-account textarea {
    padding: 25px 16px;
    border: 1px solid var(--gcph-gray-300);
    border-radius: var(--gcph-border-radius);
    font-size: 15px;
    transition: var(--gcph-transition);
    font-family: inherit;
    background: var(--gcph-white);
}

.gcph-form-group-account input:focus,
.gcph-form-group-account select:focus,
.gcph-form-group-account textarea:focus {
    outline: none;
    border-color: var(--gcph-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.gcph-form-group-account select {
    cursor: pointer;
    background-color: var(--gcph-white);
}

.gcph-form-group-account textarea {
    resize: vertical;
    min-height: 100px;
}

.gcph-form-group-account small {
    font-size: 12px;
    color: var(--gcph-gray-500);
}

.gcph-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gcph-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gcph-gray-200);
}

.gcph-subsection-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gcph-gray-600);
    margin-top: 16px;
    margin-bottom: 8px;
}

.gcph-card-large {
    grid-column: 1 / -1;
}

.gcph-form-messages-account {
    display: none;
    padding: 12px 16px;
    border-radius: var(--gcph-border-radius);
    font-size: 14px;
}

.gcph-form-messages-account.show {
    display: block;
}

.gcph-form-messages-account.success {
    background: #dcfce7;
    color: var(--gcph-success);
    border: 1px solid var(--gcph-success);
}

.gcph-form-messages-account.error {
    background: #fee2e2;
    color: var(--gcph-error);
    border: 1px solid var(--gcph-error);
}

.gcph-error-message-account {
    display: none;
    font-size: 12px;
    color: var(--gcph-error);
}

.gcph-error-message-account.show {
    display: block;
}

/* Zone dangereuse */
.gcph-danger-zone {
    border: 2px solid var(--gcph-error);
    background: #fef2f2;
}

/* Responsive */
@media (max-width: 768px) {
    .gcph-modal-body {
        padding: 40px 30px;
    }

    .gcph-form-row {
        grid-template-columns: 1fr;
    }

    .gcph-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .gcph-stats {
        flex-direction: column;
    }
}



/* ========================================
   MES FICHES - CSS
   À ajouter dans le CSS du plugin Gestion Compte
   ======================================== */

/* Statistiques */
.gcph-fiches-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gcph-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.gcph-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.gcph-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gcph-stat-published .gcph-stat-icon {
    background: linear-gradient(135deg, #d5f4e6 0%, #b3e5d1 100%);
    color: #00a32a;
}

.gcph-stat-pending .gcph-stat-icon {
    background: linear-gradient(135deg, #fcf3cf 0%, #f9e79f 100%);
    color: #f0b429;
}

.gcph-stat-draft .gcph-stat-icon {
    background: linear-gradient(135deg, #f0f0f1 0%, #d4d4d5 100%);
    color: #646970;
}

.gcph-stat-total .gcph-stat-icon {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce5ff 100%);
    color: #2271b1;
}

.gcph-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}

.gcph-stat-label {
    font-size: 14px;
    color: #646970;
    margin-top: 4px;
}

/* Filtres et recherche */
.gcph-fiches-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gcph-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gcph-filter-btn {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.gcph-filter-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
    background: #f0f6fc;
}

.gcph-filter-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.gcph-search-box {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.gcph-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

#search-fiches {
    width: 100%;
    padding: 10px 14px 10px 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

#search-fiches:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Bouton créer */
.gcph-create-btn-container {
    margin-bottom: 24px;
}

.gcph-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.gcph-btn-primary:hover {
    background: linear-gradient(135deg, #135e96 0%, #0e4776 100%);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    transform: translateY(-1px);
}

/* Grid des fiches */
.gcph-fiches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Loading */
.gcph-fiches-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.gcph-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.gcph-fiches-loading p {
    color: #646970;
    font-size: 14px;
}

/* Aucune fiche */
.gcph-no-fiches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
}

.gcph-no-fiches svg {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.gcph-no-fiches h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1d2327;
}

.gcph-no-fiches p {
    margin: 0 0 24px 0;
    color: #646970;
    font-size: 14px;
}

/* Card de fiche */
.gcph-fiche-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.gcph-fiche-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #2271b1;
}

/* Image */
.gcph-fiche-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.gcph-fiche-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gcph-fiche-card:hover .gcph-fiche-image img {
    transform: scale(1.05);
}

/* Badges */
.gcph-fiche-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gcph-fiche-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-featured {
    background: rgba(255, 193, 7, 0.95);
    color: #856404;
}

.badge-inactive {
    background: rgba(108, 117, 125, 0.95);
    color: #fff;
}

/* Status */
.gcph-fiche-status {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gcph-fiche-card[data-status="published"] .gcph-fiche-status {
    background: rgba(0, 163, 42, 0.95);
    color: #fff;
}

.gcph-fiche-card[data-status="pending"] .gcph-fiche-status {
    background: rgba(240, 180, 41, 0.95);
    color: #fff;
}

.gcph-fiche-card[data-status="draft"] .gcph-fiche-status {
    background: rgba(108, 117, 125, 0.95);
    color: #fff;
}

/* Content */
.gcph-fiche-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gcph-fiche-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Catégories */
.gcph-fiche-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gcph-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0f6fc;
    border: 1px solid #d0e4f7;
    border-radius: 6px;
    font-size: 11px;
    color: #135e96;
    font-weight: 500;
}

/* Résumé */
.gcph-fiche-resume {
    margin: 0;
    font-size: 13px;
    color: #646970;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.gcph-fiche-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.gcph-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #646970;
}

.gcph-meta-item svg {
    color: #9ca3af;
    flex-shrink: 0;
}

/* Actions */
.gcph-fiche-actions {
    display: flex;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.gcph-btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.gcph-btn-action:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}

.btn-edit:hover {
    background: #e7f3ff;
    color: #2271b1;
}

.btn-view:hover {
    background: #d5f4e6;
    color: #00a32a;
}

.btn-delete {
    max-width: 80px;
}

.btn-delete:hover {
    background: #fee;
    color: #d63638;
}

/* Responsive */
@media (max-width: 768px) {
    .gcph-fiches-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .gcph-search-box {
        max-width: 100%;
    }

    .gcph-fiches-grid {
        grid-template-columns: 1fr;
    }

    .gcph-fiches-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .gcph-btn-action span {
        display: none;
    }
}

@media (max-width: 480px) {
    .gcph-fiches-stats {
        grid-template-columns: 1fr;
    }
}


.gcph-fiche-card[data-status="pending"] .btn-edit {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

.gcph-fiche-card[data-status="pending"] .btn-edit:hover {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

/* Ajouter une info-bulle explicative */
.gcph-fiche-card[data-status="pending"] .btn-edit {
    position: relative;
}

.gcph-fiche-card[data-status="pending"] .btn-edit::after {
    content: "En attente de validation";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.gcph-fiche-card[data-status="pending"] .btn-edit:hover::after {
    opacity: 1;
}

/* Flèche du tooltip */
.gcph-fiche-card[data-status="pending"] .btn-edit::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.gcph-fiche-card[data-status="pending"] .btn-edit:hover::before {
    opacity: 1;
}

.gcph-input-disabled {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
}

.gcph-input-disabled:hover {
    background-color: #f5f5f5 !important;
}