:root {
    --yellow: #ffc400;
    --black: #20201c;
    --text: #33332e;
    --muted: #74746d;
    --border: #d9d9d2;
    --background: #f5f5f1;
    --white: #ffffff;
    --error: #b42318;
    --success: #21763d;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.simple-page {
    min-height: 100vh;
    background: var(--background);
}

.simple-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.simple-brand img {
    width: 42px;
    height: 42px;
    padding: 6px;
    border-radius: 8px;
    background: var(--black);
    object-fit: contain;
}

.simple-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.simple-brand strong {
    color: var(--black);
    font-size: 17px;
}

.simple-brand span {
    margin-top: 3px;
    color: #76600f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.simple-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(30, 30, 24, 0.06);
}

.simple-card h1 {
    margin: 0;
    color: var(--black);
    font-size: 26px;
    line-height: 1.25;
}

.simple-subtitle {
    margin: 8px 0 25px;
    color: var(--muted);
    font-size: 14px;
}

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

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

.simple-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.simple-field label {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.simple-field label span {
    color: var(--error);
}

.simple-field label em {
    margin-left: 5px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
}

.simple-field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    outline: 0;
}

.simple-field input::placeholder {
    color: #aaa9a2;
}

.simple-field input:focus {
    border-color: #9d7d00;
    box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.15);
}

.simple-field input[aria-invalid="true"] {
    border-color: var(--error);
}

.simple-field small {
    color: var(--error);
    font-size: 12px;
}

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

.simple-button {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
}

.simple-button:hover {
    background: #35352f;
}

.simple-button:focus-visible,
.simple-link:focus-visible,
.header-link:focus-visible {
    outline: 3px solid rgba(255, 196, 0, 0.4);
    outline-offset: 2px;
}

.simple-alert {
    margin-bottom: 22px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 13px;
}

.simple-alert.error {
    border-color: #efbbb6;
    background: #fff4f3;
    color: var(--error);
}

.simple-alert.success {
    border-color: #b7dfc1;
    background: #f1faf3;
    color: var(--success);
}

.simple-link {
    display: block;
    margin-top: 24px;
    color: #66665f;
    font-size: 12px;
    text-align: center;
    text-decoration: underline;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Connexion */
.login-container {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 400px);
    padding: 34px;
}

.login-card .simple-brand {
    margin-bottom: 35px;
}

.login-card .simple-button {
    width: 100%;
    margin-top: 3px;
}

/* Formulaire d'informations */
.simple-header {
    display: flex;
    width: min(100% - 32px, 820px);
    height: 80px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.header-link {
    color: #595952;
    font-size: 13px;
    font-weight: 700;
}

.form-container {
    width: min(100% - 32px, 820px);
    margin: 20px auto 60px;
}

.form-card-simple {
    padding: 35px;
}

.form-card-simple h2 {
    margin: 10px 0 0;
    padding-top: 25px;
    border-top: 1px solid #e5e5df;
    color: var(--black);
    font-size: 17px;
}

.emergency-help {
    margin: -9px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.emergency-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emergency-row {
    padding: 16px;
    border: 1px solid #e1e1db;
    border-radius: 7px;
    background: #fafaf7;
}

.emergency-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.emergency-row-header strong {
    font-size: 13px;
}

.remove-emergency {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--error);
    cursor: pointer;
    font-size: 11px;
}

.secondary-button {
    align-self: flex-start;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: #55554f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.secondary-button:hover {
    border-color: #aaa99f;
    background: #fafaf7;
}

.simple-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

@media (max-width: 620px) {
    .login-card,
    .form-card-simple {
        padding: 25px 20px;
    }

    .simple-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .simple-actions .simple-button {
        width: 100%;
    }
}
