/* statuts.ch — feuille de style unique (vanilla, sans build). */
:root {
    --rouge: #C0463A;        /* accent (croix suisse) */
    --rouge-fonce: #A23A2E;
    --rouge-soft: #faece8;
    --encre: #20242b;
    --gris: #5a6270;
    --gris-clair: #e7e7e7;
    --fond: #f7f6f3;
    --carte: #ffffff;
    --rayon: 14px;
    --ombre: 0 6px 28px rgba(31, 38, 60, .07);
    --ombre-douce: 0 2px 10px rgba(31, 38, 60, .05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--encre);
    background: var(--fond);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* En-tête */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 14px 26px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid #ededed;
    box-shadow: var(--ombre-douce);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(140%) blur(8px);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--encre); }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--rouge); color: #fff; font-weight: 700; font-size: 21px;
    box-shadow: 0 2px 8px rgba(192, 70, 58, .25);
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.brand-dot { color: var(--rouge); }
.brand-tagline { color: var(--gris); font-size: 14px; }

/* Conteneur principal */
.site-main { max-width: 780px; margin: 0 auto; padding: 34px 20px 64px; }

/* Hero / intro */
.intro { text-align: center; padding: 8px 0 4px; }
.intro h1 { font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -0.8px; margin: 6px 0 14px; }
.lead { font-size: 18px; color: var(--gris); max-width: 640px; margin: 0 auto 16px; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 2px; }
.badge { background: var(--rouge-soft); color: var(--rouge-fonce); font-size: 13px; font-weight: 700;
    padding: 6px 13px; border-radius: 999px; }

/* Wizard */
.wizard { background: var(--carte); border: 1px solid #eee; border-radius: var(--rayon); padding: 30px;
    margin-top: 22px; box-shadow: var(--ombre); }
.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: 11px 13px; font-size: 15px; font-family: inherit;
    border: 1px solid #dadde3; border-radius: 10px; background: #fdfdfd; color: var(--encre);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rouge);
    background: #fff; box-shadow: 0 0 0 3px var(--rouge-soft); }
textarea { resize: vertical; }

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

.aide { display: block; color: var(--gris); font-size: 12.5px; font-weight: 400; line-height: 1.4;
    margin: -4px 0 8px 26px; }

.conditional[hidden] { display: none; }

/* Sélecteur de forme juridique (étape 0). */
label.choix-type { display: flex; align-items: flex-start; gap: 11px; font-weight: 400;
    margin: 10px 0; padding: 14px 16px; border: 1px solid #dadde3; border-radius: 12px;
    background: #fdfdfd; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
label.choix-type:hover { background: #fff; border-color: #c9b1ac; }
label.choix-type input { margin-top: 3px; }
label.choix-type:has(input:checked) { border-color: var(--rouge); background: #fff;
    box-shadow: 0 0 0 3px var(--rouge-soft); }
label.choix-type span { font-size: 14.5px; line-height: 1.5; }

/* Cartes de choix de la forme juridique (porte d'entrée du questionnaire). */
.choix-forme { margin: 0 0 22px; }
.choix-titre { font-size: 19px; margin: 0 0 14px; }
.choix-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .choix-cards { grid-template-columns: 1fr; } }
label.choix-card { display: block; margin: 0; cursor: pointer; font-weight: 400; }
label.choix-card input { position: absolute; opacity: 0; }
.choix-card-in { display: flex; flex-direction: column; gap: 5px; height: 100%;
    padding: 18px 18px 16px; border: 1.5px solid #dadde3; border-radius: 14px; background: #fdfdfd;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .1s; }
label.choix-card:hover .choix-card-in { border-color: #c9b1ac; background: #fff; }
label.choix-card input:checked + .choix-card-in { border-color: var(--rouge); background: #fff;
    box-shadow: 0 0 0 3px var(--rouge-soft); }
label.choix-card input:focus-visible + .choix-card-in { box-shadow: 0 0 0 3px var(--rouge-soft); }
.choix-card-titre { font-weight: 700; font-size: 16px; color: var(--encre); }
.choix-card-ref { font-size: 12.5px; color: var(--rouge); font-weight: 600; }
.choix-card-desc { font-size: 13.5px; color: var(--gris); line-height: 1.5; flex: 1 1 auto; }
.choix-card-go { font-weight: 700; font-size: 14px; color: var(--rouge); margin-top: 4px; }

.apercu-vide { color: var(--gris); font-size: 13.5px; line-height: 1.55; font-style: italic; }

/* Encadré d'avertissement (décharge) sur l'étape finale. */
.decharge-box { margin: 16px 0; padding: 14px 16px; border: 1px solid #e0c9c4;
    border-left: 4px solid var(--rouge); border-radius: 10px; background: #fbf3f1; }
.decharge-box strong { color: var(--encre); }
.decharge-box p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: #444; }

/* Lien FAQ accessible pendant le remplissage. */
.wizard-faq { float: right; font-size: 13px; font-weight: 600; color: var(--rouge); text-decoration: none; }
.wizard-faq:hover { text-decoration: underline; }
@media (max-width: 560px) { .wizard-faq { float: none; display: block; margin-top: 4px; } }
.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: 700;
    padding: 12px 22px; border-radius: 11px; border: 1px solid var(--rouge);
    background: var(--rouge); color: #fff; text-decoration: none; font-family: inherit;
    box-shadow: 0 2px 10px rgba(192, 70, 58, .22); transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(192, 70, 58, .28); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--encre); border-color: #d6d9df; box-shadow: none; }
.btn-ghost:hover { background: #f4f4f6; transform: none; box-shadow: none; }
.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: 17px; color: var(--rouge); text-align: center; text-transform: uppercase; letter-spacing: 1px; margin-top: 24px; margin-bottom: 12px; }
.apercu-doc p.subtitre { border-bottom-color: var(--rouge); font-size: 15px; }
.apercu-doc p { text-align: justify; margin: 4px 0; }
@font-face { font-family: 'Mulish'; src: url('/fonts/Mulish-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mulish'; src: url('/fonts/Mulish-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mulish'; src: url('/fonts/Mulish-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
.apercu-doc { font-family: 'Mulish', 'Segoe UI', sans-serif; line-height: 1.6; }
.apercu-doc p { margin: 6px 0; }
.apercu-doc li { margin: 4px 0; }
.apercu-doc .brand-logo { text-align: center; margin: 0 0 12px; }
.apercu-doc .brand-sq { display: inline-block; background: var(--rouge); color: #fff; font-weight: 700; font-size: 20px; padding: 2px 9px; border-radius: 8px; }
.apercu-doc .brand-wm { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.apercu-doc .brand-ch { color: var(--rouge); }
.apercu-doc .pagebreak { border-top: 1px dashed var(--gris-clair); margin: 24px 0; }
.apercu-doc table.signature { width: 100%; margin-top: 32px; }
.apercu-doc table.signature td { width: 50%; text-align: left; vertical-align: top; }
.apercu-doc p.subtitre { font-weight: 700; text-align: left; margin: 16px 0 2px; border-bottom: 1px solid var(--gris-clair); padding-bottom: 2px; }
.apercu-doc p.art { text-align: left; margin-top: 14px; margin-bottom: 2px; }
.apercu-doc p.genre { text-align: center; color: var(--gris); font-size: 13px; font-style: italic; margin: 4px 0 14px; }
.apercu-doc .cover-main { text-align: center; margin-bottom: 22px; }
.apercu-doc .doctype { font-size: 26px; font-weight: 700; letter-spacing: 8px; color: var(--rouge); margin: 6px 0 0; text-align: center; }
.apercu-doc .docintro { color: var(--gris); font-size: 13px; margin: 0; text-align: center; }
.apercu-doc .cover-foot { text-align: center; color: var(--gris); }
.apercu-doc p.toc-titre { text-align: left; margin: 8px 0 1px; }
.apercu-doc p.toc-art { text-align: left; margin: 0 0 0 16px; color: #444; }

/* Page wizard élargie */
.site-main--wide { max-width: 1180px; }

/* Présets (modèles) */
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.presets-label { font-size: 14px; color: var(--gris); font-weight: 600; }
.preset-btn { cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
    border: 1px solid var(--rouge); background: #fff; color: var(--rouge); font-family: inherit; }
.preset-btn:hover { background: #fbe9ec; }
.preset-btn.preset-actif { background: var(--rouge); color: #fff; }
.preset-btn-ghost { border-color: #c9c9c9; color: var(--gris); }
.preset-btn-ghost:hover { background: #f0f0f0; }

/* Mise en page formulaire + aperçu live */
.wizard-layout { display: block; }
.apercu-live { display: none; }
.apercu-live-titre { font-weight: 700; color: var(--rouge); margin: 0 0 12px; font-size: 14px;
    text-transform: uppercase; letter-spacing: .5px; }
@media (min-width: 1080px) {
    .wizard-layout { display: flex; gap: 28px; align-items: flex-start; }
    .wizard-layout > .wizard { flex: 1 1 56%; min-width: 0; }
    .apercu-live { display: block; flex: 1 1 44%; position: sticky; top: 16px; margin-top: 24px;
        max-height: calc(100vh - 36px); overflow: auto; background: var(--carte);
        border: 1px solid var(--gris-clair); border-radius: var(--rayon); padding: 18px 20px; }
    .apercu-live .apercu-doc { border: 0; padding: 0; font-size: 12.5px; }
}
.apercu-doc sup { color: var(--rouge); font-weight: 700; }
.apercu-doc ol { margin: 4px 0 6px 22px; }
.apercu-doc .apercu-note { background: var(--rouge-soft); color: var(--rouge-fonce); font-size: 12.5px;
    font-style: italic; text-align: left; border-radius: 8px; padding: 9px 12px; margin: 14px 0 6px; }
.apercu-doc p.art { color: var(--encre); }

/* 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; }
.footer-links { font-size: 13px; margin: 10px 0 6px; }
.footer-links a { color: var(--rouge-fonce); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

/* Pages légales (mentions, confidentialité) */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 6px 0 6px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; color: var(--encre); }
.legal p, .legal li { font-size: 15px; color: #34383f; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--rouge-fonce); }
.legal-maj { color: var(--gris); font-size: 13px; margin-top: 0; }
.legal-retour { margin-top: 34px; }
.legal-retour a { color: var(--rouge); font-weight: 700; text-decoration: none; }

/* Guide / page de contenu SEO */
.guide { max-width: 760px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--gris); margin: 0 0 18px; }
.breadcrumb a { color: var(--rouge-fonce); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--gris-clair); }
.guide h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.2; margin: 0 0 14px; }
.guide h2 { font-size: 21px; font-weight: 700; margin: 36px 0 10px; color: var(--encre); }
.guide p, .guide li { font-size: 16px; line-height: 1.65; color: #34383f; }
.guide-lead { font-size: 18px; color: var(--gris); }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 7px 0; }
.guide-steps li { margin: 12px 0; }
.guide a { color: var(--rouge-fonce); }
.guide-cta { background: var(--rouge-soft); border: 1px solid #f1d6cf; border-radius: var(--rayon); padding: 22px 24px; margin: 28px 0; text-align: center; }
.guide-cta p { margin: 0 0 12px; font-size: 16px; color: var(--encre); }
.guide-cta--end { margin: 40px 0 24px; }
.guide-cta .btn { color: #fff; text-decoration: none; }
.guide-disclaimer { font-size: 13px; color: var(--gris); border-top: 1px solid var(--gris-clair); padding-top: 18px; margin-top: 36px; }

@media (max-width: 560px) {
    .guide h1 { font-size: 25px; }
    .guide h2 { font-size: 19px; }
    .guide-lead { font-size: 16px; }
}

/* FAQ (page d'accueil) */
.faq { max-width: 760px; margin: 64px auto 0; }
.faq h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; text-align: center; margin: 0 0 24px; }
.faq-item { background: var(--carte); border: 1px solid var(--gris-clair); border-radius: 10px; padding: 4px 18px; margin: 10px 0; }
.faq-item summary { font-weight: 700; font-size: 16px; color: var(--encre); cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--rouge); font-weight: 700; font-size: 22px; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: #34383f; font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.faq-more { text-align: center; margin: 24px 0 0; font-size: 15px; color: var(--gris); }
.faq-more a { color: var(--rouge-fonce); font-weight: 600; }

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