/* ==========================================================================
   Page de présentation, conditions, FAQ, connexion (layout public)
   Chiffres clés présentés comme le panneau d'indicateurs KDP :
   intitulé en gras, valeur en serif, légende grise, trait de séparation.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero { background: #fff; border-bottom: 1px solid var(--rule); }
.hero__inner {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 1fr);
    gap: var(--s7); align-items: center;
    padding-block: var(--s7);
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); max-width: 23ch; margin-bottom: var(--s4); }
.hero__lead { font-size: var(--fs-md); color: var(--text-2); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 var(--s3); }
.hero__note { font-size: var(--fs-sm); color: var(--text-2); }

/* Panneau d'indicateurs */
.hero__stats {
    list-style: none; margin: 0; padding: var(--s4) var(--s5) var(--s2);
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s6);
    background: #fff; border: 1px solid #c7cbcb; border-radius: var(--radius);
}
.hero__stats li {
    display: flex; flex-direction: column-reverse; justify-content: flex-end;
    padding: var(--s3) 0 var(--s4);
    border-bottom: 1px solid #a9adad;
    margin-bottom: var(--s3);
}
.hero__stats li:nth-last-child(-n+2) { margin-bottom: var(--s2); }
.hero__stats span { font-weight: 700; font-size: var(--fs-base); line-height: 1.3; color: var(--text); }
.hero__stats strong {
    font-family: var(--serif); font-weight: 700; font-size: var(--fs-kpi); line-height: 1;
    margin-top: var(--s4); color: var(--text);
}
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; gap: var(--s5); padding-block: var(--s6); }
    .hero__stats { max-width: 600px; }
}
@media (max-width: 420px) { .hero__stats { gap: 0 var(--s4); padding-inline: var(--s4); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--s7) 0; }
.section__head { margin-bottom: var(--s5); max-width: var(--measure); }
.section__head h1, .section__head h2 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-xl); margin-bottom: var(--s2); }
.section__head p { color: var(--text-2); margin-bottom: 0; }
.subhead { margin-top: var(--s6); }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.format { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); }
.format h3 { font-size: var(--fs-lg); margin-bottom: var(--s1); }
.format__lead { color: var(--text-2); margin-bottom: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); }
.format__note { font-size: var(--fs-sm); color: var(--text-2); background: var(--soft); border-radius: var(--radius); padding: var(--s3) var(--s4); margin: var(--s4) 0 0; }
@media (max-width: 820px) { .formats { grid-template-columns: 1fr; } }

/* ---------- Étapes (vraie séquence) ---------- */
.steps {
    list-style: none; margin: 0; counter-reset: step;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5) var(--s5) var(--s5) var(--s5);
}
.step { counter-increment: step; position: relative; padding: 0 0 var(--s5) 3.25rem; max-width: 780px; }
.step::before {
    content: counter(step);
    position: absolute; left: 0; top: -.1rem;
    width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
    font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--teal);
    background: #fff; border: 1px solid var(--teal); border-radius: 50%;
}
.step::after { content: ""; position: absolute; left: calc(1.05rem - .5px); top: 2.2rem; bottom: .25rem; border-left: 1px solid var(--border); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step:last-child::before { background: var(--teal-btn); color: #fff; border-color: var(--teal-btn); }
.step h3 { margin-bottom: var(--s1); padding-top: .2rem; }
.step p { color: var(--text-2); margin-bottom: 0; }

/* ---------- Rémunération ---------- */
.pricing {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6);
    background: #fff; border: 1px solid #c7cbcb; border-radius: var(--radius);
    padding: var(--s4) var(--s5) var(--s5); margin-bottom: var(--s4);
}
.pricing__col { padding: var(--s2) 0 var(--s4); border-bottom: 1px solid #a9adad; }
.pricing__label { font-weight: 700; font-size: var(--fs-md); margin-bottom: var(--s4); }
.pricing__value { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; margin-bottom: var(--s2); }
.pricing__desc { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } .pricing__col + .pricing__col { margin-top: var(--s4); } }

.simulator .form-row { margin-bottom: var(--s4); }
.simulator__result { margin: var(--s2) 0 0; padding-top: var(--s4); border-top: 1px solid var(--rule); color: var(--text-2); }
.simulator__result strong { display: block; font-family: var(--serif); font-size: var(--fs-xl); color: var(--text); margin-top: var(--s1); }

/* ---------- Appel à l'action ---------- */
.section--cta { padding-bottom: var(--s7); }
.cta { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s6); }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-xl); max-width: 26ch; }
.cta p { color: var(--text-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0; }
.cta__actions .btn--light { background: #fff; border-color: var(--teal-btn); color: var(--teal-btn); }
.cta__note { font-size: var(--fs-sm); }
@media (max-width: 640px) { .cta { padding: var(--s5); } }

body.page-public .site-footer { margin-top: 0; }
body.page-public main > .section:last-child:not(.section--cta) { padding-bottom: var(--s7); }