/* Portail auteur Feng Huang Editorial */

.fhe-portal {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.fhe-portal h1 {
    color: #8b0000;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.fhe-portal-notice {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.fhe-portal-notice p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Stats grid (dashboard) */
.fhe-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}

.fhe-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fhe-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fhe-stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #8b0000;
    margin-bottom: 4px;
}

.fhe-stat-label {
    font-size: 0.85em;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.fhe-portal-nav {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fhe-portal-nav .button {
    background: #fff;
    border: 1px solid #8b0000;
    color: #8b0000;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95em;
    transition: background 0.2s, color 0.2s;
}

.fhe-portal-nav .button:hover {
    background: #8b0000;
    color: #fff;
}

/* Tables */
.fhe-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fhe-table thead {
    background: #f5f0e8;
}

.fhe-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fhe-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.fhe-table tbody tr:last-child td {
    border-bottom: none;
}

.fhe-table tbody tr:hover {
    background: #fafafa;
}

/* Formulaire profil */
.fhe-profile .form-table {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fhe-profile .form-table th {
    width: 180px;
    padding: 10px 0;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.fhe-profile .form-table input[type="text"],
.fhe-profile .form-table input[type="email"],
.fhe-profile .form-table textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.fhe-profile .form-table input:focus,
.fhe-profile .form-table textarea:focus {
    border-color: #8b0000;
    outline: none;
    box-shadow: 0 0 0 1px #8b0000;
}

.fhe-profile h3 {
    color: #8b0000;
    margin-top: 30px;
    font-size: 1.1em;
}

.fhe-profile code {
    background: #f5f0e8;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .fhe-portal {
        padding: 10px;
    }

    .fhe-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fhe-stat-card {
        padding: 12px;
    }

    .fhe-stat-value {
        font-size: 1.4em;
    }

    .fhe-table {
        font-size: 0.85em;
    }

    .fhe-table th,
    .fhe-table td {
        padding: 8px;
    }

    .fhe-portal-nav {
        flex-direction: column;
    }

    .fhe-portal-nav .button {
        text-align: center;
    }

    .fhe-profile .form-table th {
        width: auto;
        display: block;
        padding-bottom: 4px;
    }

    .fhe-profile .form-table input,
    .fhe-profile .form-table textarea {
        max-width: 100%;
    }
}

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

    .fhe-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
