.client-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.client-nav a,
.client-nav button {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.client-nav a.active,
.client-nav button.active {
    background: #111827;
    border-color: #111827;
    color: white;
}

.client-nav form {
    margin: 0;
}

.account-page {
    max-width: 980px;
}

.account-hero,
.account-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.account-hero {
    padding: 26px;
    margin-bottom: 18px;
    text-align: center;
}

.account-hero h1,
.account-panel h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: 0;
    line-height: 1.1;
}

.account-hero p,
.account-panel p,
.account-panel-header p {
    margin: 0;
    color: #6b7280;
    line-height: 1.55;
}

.account-narrow {
    max-width: 520px;
    margin: 0 auto;
}

.account-panel {
    padding: 22px;
    margin-bottom: 18px;
}

.account-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.account-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-form {
    display: grid;
    gap: 14px;
}

.account-form label {
    display: grid;
    gap: 6px;
    color: #111827;
    font-weight: 800;
}

.account-form input,
.account-form textarea,
.account-form select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    background: white;
}

.account-form textarea {
    min-height: 150px;
    resize: vertical;
}

.account-form label span,
.account-error {
    color: #b91c1c;
}

.account-form button,
.account-secondary-link,
.account-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #111827;
    color: white;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.account-secondary-link {
    background: white;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.account-action-link {
    padding: 9px 11px;
}

.account-check {
    display: inline-flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    font-weight: 700 !important;
}

.account-check input {
    width: auto;
}

.account-success,
.account-error {
    padding: 13px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 800;
    text-align: center;
}

.account-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.account-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.account-table-wrap {
    overflow-x: auto;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.account-table th,
.account-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.account-table th {
    background: #f9fafb;
    color: #374151;
}

.ticket-list {
    display: grid;
    gap: 12px;
}

.ticket-row,
.message-row {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.ticket-row-header,
.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ticket-status {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 800;
    font-size: 12px;
    background: #eff6ff;
    color: #1d4ed8;
}

.ticket-status.resolu,
.ticket-status.clos {
    background: #ecfdf5;
    color: #047857;
}

.ticket-status.en_attente {
    background: #fffbeb;
    color: #b45309;
}

.ticket-status.ouvert,
.ticket-status.nouveau {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 720px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .client-nav {
        justify-content: stretch;
    }

    .client-nav a,
    .client-nav button,
    .client-nav form {
        width: 100%;
    }

    .client-nav a,
    .client-nav button {
        justify-content: center;
    }
}
