.page-auth #main-content,
.page-dashboard #main-content {
    background: var(--gris-50);
}

.auth-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 24px 72px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--blanc);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gris-200);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-logo a {
    display: flex;
    align-items: baseline;
    text-decoration: none;
}

.auth-title {
    font-family: var(--font-titre);
    font-size: 22px;
    font-weight: 800;
    color: var(--noir);
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.3;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gris-500);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.auth-footer {
    text-align: center;
    font-size: 13.5px;
    color: var(--gris-500);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gris-100);
}

.auth-footer a {
    color: var(--rouge);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 20px;
}
.auth-sep::before,
.auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--gris-200); }
.auth-sep span    { font-size: 12px; color: var(--gris-400); white-space: nowrap; }

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    border-left: 3px solid;
}
.auth-alert i { flex-shrink: 0; margin-top: 1px; }
.auth-alert.danger  { background: var(--rouge-pale);  border-color: var(--rouge);       color: var(--rouge-hover); }
.auth-alert.success { background: var(--vert-pale);   border-color: var(--vert-halal);  color: var(--vert-halal); }
.auth-alert.info    { background: #EFF6FF;             border-color: #3B82F6;            color: #1E40AF; }
.auth-alert.warning { background: #FFFBEB;             border-color: #F59E0B;            color: #92400E; }

.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gris-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    border: 1.5px solid var(--gris-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--noir);
    background: var(--blanc);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.form-control:focus {
    border-color: var(--rouge);
    box-shadow: 0 0 0 3px var(--rouge-border);
}
.form-control.is-invalid {
    border-color: var(--rouge);
    background-image: none;
}
.form-control:disabled { background: var(--gris-100); color: var(--gris-500); cursor: not-allowed; }
.form-control::placeholder { color: var(--gris-400); }

.invalid-feedback {
    display: block;
    font-size: 12.5px;
    color: var(--rouge);
    margin-top: 5px;
}

.form-hint {
    font-size: 12px;
    color: var(--gris-400);
    margin-top: 5px;
    display: block;
}

.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 44px; }
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gris-400);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.password-toggle:hover { color: var(--gris-700); }

.form-check-label { font-size: 13px; color: var(--gris-600); cursor: pointer; user-select: none; }
.form-check-label a { color: var(--rouge); text-decoration: none; font-weight: 600; }
.form-check-label a:hover { text-decoration: underline; }
.form-check-input { flex-shrink: 0; }

.auth-submit {
    width: 100%;
    background: var(--rouge);
    color: var(--blanc);
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-family: var(--font-corps);
}
.auth-submit:hover { background: var(--rouge-hover); transform: translateY(-1px); box-shadow: var(--shadow-rouge); }
.auth-submit:disabled { background: var(--gris-300); cursor: not-allowed; transform: none; box-shadow: none; }

.auth-success-icon {
    width: 64px;
    height: 64px;
    background: var(--vert-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--vert-halal);
    margin: 0 auto 24px;
    border: 2px solid rgba(45,122,58,0.2);
}

.dashboard-welcome { text-align: center; padding: 48px 24px 32px; }
.dashboard-welcome h1 { font-family: var(--font-titre); font-size: 26px; font-weight: 800; color: var(--noir); margin-bottom: 8px; }
.dashboard-welcome p  { color: var(--gris-500); font-size: 15px; margin-bottom: 0; }

.dashboard-card {
    background: var(--blanc);
    border: 1px solid var(--gris-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
}

.dashboard-section { max-width: 720px; margin: 0 auto; padding: 0 24px 72px; }

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .auth-section { padding: 32px 16px 56px; }
}

.auth-row-gap {
    margin-bottom: 18px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}

.auth-label-row .form-label {
    margin-bottom: 0;
}

.auth-inline-link {
    font-size: 12.5px;
    color: var(--rouge);
    text-decoration: none;
    font-weight: 500;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.auth-submit-link {
    text-decoration: none;
}

.auth-success-icon.is-danger {
    background: var(--rouge-pale);
    color: var(--rouge);
    border-color: var(--rouge-border);
}

.dashboard-empty-state {
    text-align: center;
    padding: 48px 32px;
}

.dashboard-empty-icon {
    font-size: 40px;
    color: var(--gris-300);
    display: block;
    margin-bottom: 20px;
}

.dashboard-card-title-lg {
    font-family: var(--font-titre);
    font-size: 20px;
    font-weight: 700;
    color: var(--noir);
    margin-bottom: 10px;
}

.dashboard-card-title {
    font-family: var(--font-titre);
    font-size: 18px;
    font-weight: 700;
    color: var(--noir);
    margin-bottom: 20px;
}

.dashboard-empty-text {
    color: var(--gris-500);
    font-size: 14px;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.dashboard-commerce-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--gris-200);
    border-radius: var(--radius);
    background: var(--gris-50);
}

.dashboard-commerce-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--noir);
    margin-bottom: 2px;
}

.dashboard-commerce-meta {
    font-size: 12.5px;
    color: var(--gris-500);
    margin: 0;
}

.dashboard-commerce-link {
    font-size: 13px;
    padding: 7px 14px;
    flex-shrink: 0;
}

.dashboard-card-spaced {
    margin-top: 16px;
}

.dashboard-account-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.dashboard-meta-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gris-400);
    margin-bottom: 2px;
}

.dashboard-meta-value {
    font-size: 15px;
    color: var(--noir);
    font-weight: 500;
    margin: 0;
}