/* ===== NovaeGov Health - Styles communs ===== */
:root {
    --ng-primary: #0e7a5f;      /* vert santé */
    --ng-primary-dark: #0a5c47;
    --ng-accent: #f0a500;
    --ng-bg: #f4f7f6;
    --ng-text: #1d2b28;
    --ng-muted: #6b7c77;
    --ng-error: #c62828;
    --ng-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--ng-bg);
    color: var(--ng-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- En-tête --- */
.ng-header {
    background: var(--ng-primary);
    color: #fff;
    padding: 1rem 1.25rem;
    text-align: center;
}
.ng-header h1 { font-size: 1.15rem; font-weight: 600; }
.ng-header .ng-sub { font-size: 0.8rem; opacity: 0.85; margin-top: 2px; }

/* --- Conteneur --- */
.ng-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 1.25rem;
    flex: 1;
}

/* --- Carte --- */
.ng-card {
    background: #fff;
    border-radius: var(--ng-radius);
    padding: 1.5rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* --- Barre de progression --- */
.ng-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
}
.ng-progress span {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #d8e2df;
}
.ng-progress span.done { background: var(--ng-primary); }

.ng-step-label {
    font-size: 0.8rem;
    color: var(--ng-muted);
    margin-bottom: 0.5rem;
}

/* --- Titres --- */
h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.ng-intro { color: var(--ng-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }

/* --- Formulaires --- */
.ng-field { margin-bottom: 1.1rem; }
.ng-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.ng-field .req { color: var(--ng-error); }

input[type="text"],
select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1.5px solid #c4d2ce;
    border-radius: 8px;
    background: #fff;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--ng-primary);
    box-shadow: 0 0 0 3px rgba(14,122,95,0.15);
}

/* Date de naissance : 3 listes côte à côte */
.ng-dob { display: flex; gap: 8px; }
.ng-dob select { flex: 1; }

/* Sexe : boutons radio stylés */
.ng-radio-group { display: flex; gap: 10px; }
.ng-radio-group input[type="radio"] { display: none; }
.ng-radio-group label {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border: 1.5px solid #c4d2ce;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
}
.ng-radio-group input[type="radio"]:checked + label {
    background: var(--ng-primary);
    color: #fff;
    border-color: var(--ng-primary);
}

/* Messages d'erreur */
.ng-error-msg {
    display: none;
    color: var(--ng-error);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}
.ng-field.has-error input,
.ng-field.has-error select { border-color: var(--ng-error); }
.ng-field.has-error .ng-error-msg { display: block; }

/* --- Boutons --- */
.ng-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: var(--ng-primary);
    color: #fff;
    transition: background 0.15s;
}
.ng-btn:hover { background: var(--ng-primary-dark); }
.ng-btn-secondary {
    background: #fff;
    color: var(--ng-primary);
    border: 1.5px solid var(--ng-primary);
    margin-top: 0.75rem;
}
.ng-btn-secondary:hover { background: #e8f2ef; }

/* --- Pied de page --- */
.ng-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--ng-muted);
    padding: 1rem;
}
.ng-footer a { color: var(--ng-primary); }

/* --- Écran d'accueil --- */
.ng-welcome-icon {
    font-size: 3rem;
    text-align: center;
    margin: 0.5rem 0 1rem;
}
.ng-notice {
    font-size: 0.8rem;
    color: var(--ng-muted);
    background: #eef4f2;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1.25rem;
}
/* --- Liste de cases à cocher --- */
.ng-check-list { display: flex; flex-direction: column; gap: 8px; }
.ng-check-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #c4d2ce;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0;
}
.ng-check-list input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--ng-primary);
}
.ng-check-list label:has(input:checked) {
    background: #e8f2ef;
    border-color: var(--ng-primary);
}