/* statuts.ch — feuille de style unique (vanilla, sans build). */
:root {
    --rouge: #b3122a;        /* accent (croix suisse) */
    --rouge-fonce: #8e0d20;
    --encre: #1a1a1a;
    --gris: #5a5a5a;
    --gris-clair: #e7e7e7;
    --fond: #f6f5f2;
    --carte: #ffffff;
    --rayon: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--encre);
    background: var(--fond);
    line-height: 1.55;
}

/* En-tête */
.site-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background: var(--carte);
    border-bottom: 1px solid var(--gris-clair);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--encre); }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--rouge); color: #fff; font-weight: 700; font-size: 20px;
}
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.brand-dot { color: var(--rouge); }
.brand-tagline { color: var(--gris); font-size: 14px; }

/* Conteneur principal */
.site-main { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }

.intro h1 { font-size: 28px; margin: 8px 0 10px; letter-spacing: -0.5px; }
.lead { font-size: 17px; color: var(--gris); margin: 0 0 8px; }

/* Wizard */
.wizard { background: var(--carte); border: 1px solid var(--gris-clair); border-radius: var(--rayon); padding: 24px; margin-top: 24px; }
.progress { height: 6px; background: var(--gris-clair); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 14%; background: var(--rouge); transition: width .25s ease; }
.step-count { color: var(--gris); font-size: 13px; margin: 8px 0 18px; }

fieldset.step { border: 0; padding: 0; margin: 0; }
fieldset.step > legend { font-size: 19px; font-weight: 700; margin-bottom: 14px; padding: 0; }

.subgroup { border: 1px solid var(--gris-clair); border-radius: 8px; padding: 12px 14px; margin: 14px 0; }
.subgroup > legend { font-weight: 600; font-size: 14px; color: var(--gris); padding: 0 6px; }

label { display: block; margin: 14px 0; font-weight: 600; font-size: 15px; }
label.inline { font-weight: 400; display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; }
label.inline input { margin-top: 3px; }

input[type=text], input[type=email], input[type=number], select, textarea {
    display: block; width: 100%; margin-top: 6px;
    padding: 10px 12px; font-size: 15px; font-family: inherit;
    border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; color: var(--encre);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: var(--rouge); }
textarea { resize: vertical; }

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > label { flex: 1 1 200px; }

.conditional[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Boutons */
.wizard-nav { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.btn {
    display: inline-block; cursor: pointer; font-size: 15px; font-weight: 600;
    padding: 11px 18px; border-radius: 8px; border: 1px solid var(--rouge);
    background: var(--rouge); color: #fff; text-decoration: none; font-family: inherit;
}
.btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: #fff; color: var(--encre); border-color: #c9c9c9; }
.btn-ghost:hover { background: #f0f0f0; }
.btn-next, .btn-primary { margin-left: auto; }
#btnNext, #btnSubmit { margin-left: auto; }

/* Pages résultat */
.result { background: var(--carte); border: 1px solid var(--gris-clair); border-radius: var(--rayon); padding: 28px; margin-top: 24px; }
.result-ok h1 { color: var(--rouge); }
.result-error h1 { color: var(--rouge); }
.rappel { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 8px; padding: 12px 14px; color: #7a5c00; }
.erreurs { color: var(--rouge-fonce); }

.apercu { margin-top: 26px; }
.apercu summary { cursor: pointer; font-weight: 600; color: var(--rouge); }
.apercu-doc { margin-top: 16px; padding: 24px; background: #fff; border: 1px solid var(--gris-clair); border-radius: 8px; }
.apercu-doc h1 { font-size: 20px; text-align: center; }
.apercu-doc h2 { font-size: 16px; border-bottom: 1px solid var(--gris-clair); padding-bottom: 4px; margin-top: 22px; }
.apercu-doc p { text-align: justify; }

/* Pied de page */
.site-footer { max-width: 760px; margin: 0 auto; padding: 28px 20px 50px; color: var(--gris); font-size: 13px; }
.footer-warn { font-size: 12px; }
.footer-meta { font-size: 12px; }

@media (max-width: 560px) {
    .intro h1 { font-size: 23px; }
    .wizard, .result { padding: 18px; }
    .wizard-nav { flex-wrap: wrap; }
}
