/* Simulateurs publics Capiloc (lot sp1) — mêmes couleurs que le site. */
:root { --bleu:#2362B3; --navy:#082A61; --pale:#eef1f8; --gold:#E2A626; --noir:#0d1b2a; --gris:#6b7280;
        --gris-clair:#f9fafb; --blanc:#fff; --vert:#059669; --rouge:#b91c1c; }
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'DM Sans',system-ui,sans-serif; color:var(--noir); background:var(--gris-clair); line-height:1.5; }
a { color:var(--bleu); }
.entete { background:#fff; border-bottom:1px solid rgba(0,0,0,.06); padding:0 1.5rem; height:64px; display:flex;
          align-items:center; justify-content:space-between; position:sticky; top:0; z-index:10; }
.entete nav a { margin-left:1.25rem; text-decoration:none; color:var(--noir); font-weight:500; font-size:.95rem; }
.entete nav a.btn { background:var(--bleu); color:#fff; padding:.5rem 1rem; border-radius:10px; }
main { max-width:1080px; margin:0 auto; padding:2rem 1rem 4rem; }
h1 { font-family:'Raleway',sans-serif; font-weight:700; color:var(--navy); font-size:2rem; line-height:1.2; margin-bottom:.5rem; }
h2 { font-family:'Raleway',sans-serif; color:var(--navy); font-size:1.25rem; margin:2rem 0 .75rem; }
h3 { font-size:1rem; color:var(--navy); margin-bottom:.5rem; }
.chapo { color:var(--gris); max-width:780px; margin-bottom:1.25rem; }
.avertissement { background:#f3f4f6; border:1px solid #e5e7eb; color:#374151; border-radius:12px; padding:.75rem 1rem;
                 font-size:.85rem; margin-bottom:1.5rem; }
.carte { background:#fff; border-radius:16px; box-shadow:0 1px 3px rgba(0,0,0,.06); padding:1.25rem; }
.grille { display:grid; gap:1rem; }
@media (min-width:860px) { .deux { grid-template-columns:1fr 1fr; } .trois { grid-template-columns:repeat(3,1fr); } }
label { display:block; font-size:.85rem; color:#374151; margin-bottom:.75rem; }
label span.aide { display:block; color:var(--gris); font-size:.75rem; }
input, select { width:100%; margin-top:.25rem; padding:.55rem .7rem; border:1px solid #d1d5db; border-radius:10px; font:inherit; }
.ligne { display:flex; gap:.75rem; } .ligne > * { flex:1; }
button { font:inherit; cursor:pointer; border-radius:10px; padding:.6rem 1rem; border:1px solid #d1d5db; background:#fff; }
button.principal { background:var(--bleu); color:#fff; border-color:var(--bleu); }
.chiffre { font-size:1.6rem; font-weight:700; color:var(--navy); }
.petit { font-size:.8rem; color:var(--gris); }
.kpis { display:grid; gap:.75rem; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); margin:1rem 0; }
.kpis > div { background:var(--pale); border-radius:12px; padding:.75rem; }
table { width:100%; border-collapse:collapse; font-size:.85rem; }
th, td { text-align:right; padding:.4rem .5rem; border-bottom:1px solid #eef0f4; white-space:nowrap; }
th:first-child, td:first-child { text-align:left; }
th { color:var(--gris); font-weight:500; }
.barre { height:10px; border-radius:6px; background:#e5e7eb; overflow:hidden; display:flex; }
.barre .i { background:#f59e0b; } .barre .c { background:var(--vert); }
.alerte { background:#fff7ed; border:1px solid #fed7aa; color:#7c2d12; border-radius:12px; padding:.75rem 1rem; font-size:.85rem; }
.alerte li { margin-left:1.1rem; margin-top:.25rem; }
.cta { margin-top:2.5rem; background:#fff; color:var(--navy); border:1px solid #e3e6ec; border-radius:16px; padding:1.25rem 1.5rem; display:flex;
       gap:1rem; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cta strong { font-weight:500; line-height:1.55; }
.cta a { background:var(--navy); color:#fff; text-decoration:none; font-weight:600; padding:.6rem 1.1rem; border-radius:10px; white-space:nowrap; }
.texte p { margin-bottom:.75rem; max-width:820px; }
footer { text-align:center; color:var(--gris); font-size:.8rem; padding:2rem 1rem; }
.cache { display:none; }
.hub a.carte { display:block; text-decoration:none; color:inherit; transition:transform .15s; }
.hub a.carte:hover { transform:translateY(-2px); }
.bientot { opacity:.55; }
@media (max-width:600px) {
  .entete { padding:0 1rem; }
  .entete nav a { margin-left:.6rem; font-size:.85rem; }
  .entete nav a[href="/#pricing"] { display:none; }
  .entete nav a.btn { padding:.4rem .6rem; }
  h1 { font-size:1.6rem; }
}
/* Pied de page du site (lot sp1b), identique à la page d'accueil. */
footer.pied-site { background:var(--noir); color:rgba(255,255,255,.45); padding:2.5rem 2rem; text-align:left; font-size:1rem; }
.pied-site .footer-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1.5rem; }
.pied-site .footer-brand { font-family:'Raleway',sans-serif; font-weight:800; color:#fff; font-size:1rem; }
.pied-site .footer-links { display:flex; gap:1.5rem; flex-wrap:wrap; }
.pied-site .footer-links a { font-size:.8rem; color:rgba(255,255,255,.4); text-decoration:none; }
.pied-site .footer-links a:hover { color:#fff; }
.pied-site .footer-copy { font-size:.78rem; width:100%; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,.06); margin-top:.5rem; }
/* Lot sp2b : cases à cocher, détail repliable. */
label.case { display:flex; gap:.5rem; align-items:center; }
label.case input { width:auto; margin:0; }
details { margin-bottom:.75rem; } details summary { cursor:pointer; margin-bottom:.4rem; }
.cache { display:none !important; }
.grille > * { min-width:0; }
td:first-child { white-space:normal; }
/* Lot se1 : guides, FAQ, fil d'Ariane. */
.ariane { font-size:.8rem; color:var(--gris); margin-bottom:.75rem; }
.ariane a { color:var(--gris); }
.texte ul, .texte ol { margin:0 0 .75rem 1.25rem; max-width:820px; }
.texte li { margin-bottom:.35rem; }
.texte table { max-width:820px; margin:.5rem 0 1rem; background:#fff; border-radius:12px; overflow:hidden; }
.texte td { white-space:normal; }
.texte th, .texte td { text-align:left; vertical-align:top; }
.texte h2 { scroll-margin-top:80px; }
details.faq { background:#fff; border-radius:12px; padding:.75rem 1rem; margin-bottom:.5rem; max-width:820px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
details.faq summary { cursor:pointer; font-weight:700; color:var(--navy); }
details.faq p { margin:.6rem 0 0; }
.liste { margin-left:1.25rem; } .liste li { margin:.3rem 0; }
@media (max-width:600px) { .entete nav a[href="/guides/"] { margin-left:.5rem; } }
.texte th { white-space:normal; }
@media (max-width:600px) { .texte table { display:block; overflow-x:auto; } .entete nav a { margin-left:.45rem; font-size:.8rem; } }
/* 01/11/2026 : hypothèses empilées dans un bloc distinct, puis les résultats. */
.hypotheses { background:var(--pale); border:1px solid #d6dff0; border-radius:18px; padding:1rem 1rem 1.25rem; }
.hypotheses > h2 { margin:0 0 .75rem; }
.pile > .carte + .carte { margin-top:1rem; }
@media (min-width:860px) {
  .pile > .carte { display:grid; grid-template-columns:repeat(4,1fr); column-gap:1.25rem; align-items:end; }
  .pile > .carte .ligne { display:contents; }
  .pile > .carte > h3, .pile > .carte > p, .pile > .carte > label.case { grid-column:1/-1; }
  .pile > .carte > label.case { margin-bottom:.4rem; }
}
.titre-resultats { margin-top:2.5rem; padding-top:1.25rem; border-top:3px solid var(--navy); }
label.seul input { max-width:260px; }
@media (min-width:860px) { .pile > .carte > label.seul { grid-column:1/-1; } .pile > .carte > label.seul .aide { max-width:820px; } }
/* Lot ws4 (11/11/2026) : guides par thème, pages déclaration sans bandes. */
.surtitre-guide { font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin:.25rem 0 .25rem; }
.surtitre-guide a { color:var(--bleu); text-decoration:none; }
h2.theme-guides { margin:2.5rem 0 1rem; font-size:1.3rem; }
.fin-declaration { margin:2.5rem 0 0; padding-top:1.25rem; border-top:1px solid rgba(0,0,0,.08); text-align:center; color:var(--gris); font-size:.92rem; }
.fin-declaration .lien-fort { font-weight:700; color:var(--bleu); }
/* Lot ws6 (11/11/2026) : sommaire des guides (recherche, tuiles, lignes). */
.recherche-guides input { width:100%; max-width:560px; padding:.8rem 1rem; border:1px solid #e3e6ec; border-radius:12px; background:#fff; font:inherit; font-size:.95rem; }
.recherche-guides input:focus { outline:2px solid var(--bleu); outline-offset:1px; }
.tuiles-themes { display:grid; grid-template-columns:repeat(6,1fr); gap:.75rem; margin:1.5rem 0 1rem; }
.tuile-theme { background:#fff; border:1px solid #e3e6ec; border-radius:16px; padding:1rem; min-height:124px; display:flex; flex-direction:column; justify-content:space-between; text-decoration:none; color:var(--navy); transition:border-color .2s; }
.tuile-theme:hover { border-color:var(--navy); }
.tuile-theme .n { font-size:.75rem; font-weight:700; color:var(--gris); }
.tuile-theme b { font-family:'Raleway',sans-serif; font-size:.98rem; line-height:1.25; }
.tuile-theme small { font-size:.78rem; color:var(--gris); }
.theme-bloc h2.theme-guides { margin:2.25rem 0 .75rem; }
.lignes-guides { list-style:none; padding:0; margin:0; }
.ligne-guide { padding:.7rem 0; border-bottom:1px solid #eceef2; }
.ligne-guide:last-child { border-bottom:0; }
.ligne-guide a { color:var(--navy); font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.ligne-guide a:hover { color:var(--bleu); }
.ligne-guide span { display:block; color:var(--gris); font-size:.88rem; margin-top:.2rem; }
@media (max-width:900px) { .tuiles-themes { grid-template-columns:repeat(3,1fr); } }
@media (max-width:520px) { .tuiles-themes { grid-template-columns:repeat(2,1fr); } }
.tuiles-themes[hidden], .theme-bloc[hidden] { display:none; }

/* Lot ws20 (12/11/2026) : fiches pratiques en colonne de lecture, texte justifié. */
.article { max-width:820px; margin:0 auto; }
.article .guide p, .article .guide li, .article .chapo { text-align:justify; hyphens:auto; -webkit-hyphens:auto; }
.article .texte p, .article .texte ul, .article .texte ol, .article .texte table, .article details.faq { max-width:none; }
/* Lot mob1 (15/11/2026) : téléphone. Les champs côte à côte passent à la
   ligne (2 par ligne, 1 sous 340 px) ; un tableau trop large défile dans sa
   carte au lieu d'élargir la page. */
.defile { overflow-x:auto; -webkit-overflow-scrolling:touch; }
@media (max-width:600px) {
  .ligne { flex-wrap:wrap; row-gap:.25rem; }
  .ligne > * { flex:1 1 130px; }
}
