:root {
  --fond: #f6f7f9;
  --blanc: #ffffff;
  --encre: #142236;
  --gris: #5b6675;
  --filet: #dfe3e8;
  --marine: #1e3a5f;
  --vert: #22c55e;
  --vert-fonce: #15803d;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titre: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --largeur: 1180px;
  --r-salaire-travail: #1e3a5f;
  --r-immobilier: #9a5b13;
  --r-retraite: #6b3fa0;
  --r-fiscalite: #b42318;
  --r-aides-social: #0e7490;
  --r-entreprise: #374151;
  --r-auto: #b45309;
  --r-placements: #15803d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--sans); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Bandeau ── */
.bandeau { background: var(--marine); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 #0003; }
.bandeau-haut { max-width: var(--largeur); margin: 0 auto; padding: 12px 20px 8px; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--titre); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.logo-f { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #fff; color: var(--marine); font-size: 22px; position: relative; }
.logo-f::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); right: 4px; bottom: 5px; }
.point { color: var(--vert); }
.slogan { font-size: 13px; opacity: .8; }
.date-jour { margin-left: auto; font-size: 12px; opacity: .7; text-transform: capitalize; }
.rubriques { max-width: var(--largeur); margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.rubriques::-webkit-scrollbar { display: none; }
.rubriques a { padding: 9px 11px 11px; font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; opacity: .92; }
.rubriques a:hover, .rubriques a.actif { border-bottom-color: var(--vert); opacity: 1; }

main { max-width: var(--largeur); margin: 0 auto; padding: 26px 20px 60px; }

/* ── Étiquettes ── */
.etiquette { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c, var(--marine)); }
.r-salaire-travail { --c: var(--r-salaire-travail); } .r-immobilier { --c: var(--r-immobilier); }
.r-retraite { --c: var(--r-retraite); } .r-fiscalite { --c: var(--r-fiscalite); }
.r-aides-social { --c: var(--r-aides-social); } .r-entreprise { --c: var(--r-entreprise); }
.r-auto { --c: var(--r-auto); } .r-placements { --c: var(--r-placements); }

/* ── Cartes ── */
.carte-lien { display: block; }
.carte h3 { font-family: var(--titre); font-size: 18px; line-height: 1.3; margin: 6px 0 8px; font-weight: 700; }
.carte-lien:hover h3 { color: var(--marine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.carte time { font-size: 12px; color: var(--gris); }
.carte .chapeau { color: #33404f; font-size: 16px; margin: 0 0 10px; }
.visuel { aspect-ratio: 16 / 10; overflow: hidden; background: #e3e7ec; margin-bottom: 12px; border-radius: 10px; }
.visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.carte-lien:hover .visuel img { transform: scale(1.03); }
.visuel-vide { display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(135deg, var(--c, var(--marine)), color-mix(in srgb, var(--c, var(--marine)) 70%, #000)); }
.visuel-vide span { color: #fff; font-size: 20px; font-weight: 700; }
.une .carte-texte h3 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.01em; }
.compacte .carte-lien { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
.compacte .visuel { margin: 0; aspect-ratio: 1; border-radius: 8px; }
.compacte .visuel-vide span { display: none; }
.compacte h3 { font-size: 15px; margin: 4px 0; }

/* ── Accueil ── */
.une-zone { display: grid; grid-template-columns: 1.7fr 1fr 0.95fr; gap: 26px; padding: 22px; background: var(--blanc); border-radius: 14px; box-shadow: 0 1px 3px #14223614; }
.une-secondaires { display: flex; flex-direction: column; gap: 16px; padding-left: 24px; border-left: 1px solid var(--filet); }
.une-secondaires .carte + .carte { padding-top: 16px; border-top: 1px solid var(--filet); }
.fil-direct { padding-left: 24px; border-left: 1px solid var(--filet); }
.fil-direct .titre-section { font-size: 20px; margin-bottom: 8px; }
.fil-direct ol { list-style: none; margin: 0; padding: 0; }
.fil-direct li { display: grid; grid-template-columns: 48px 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--filet); font-size: 14px; line-height: 1.35; }
.fil-direct time { color: var(--vert-fonce); font-weight: 700; font-variant-numeric: tabular-nums; }
.fil-direct a:hover { text-decoration: underline; }
.fil-direct li.breve summary { cursor: pointer; list-style: none; }
.fil-direct li.breve summary::-webkit-details-marker { display: none; }
.fil-direct li.breve summary::after { content: " +"; color: var(--vert-fonce); font-weight: 700; }
.fil-direct li.breve details[open] summary::after { content: " −"; }
.fil-direct li.breve summary:hover { text-decoration: underline; }
.fil-direct li.breve p { margin: 6px 0 0; color: var(--gris); font-size: 13px; }
.voir-tout { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--marine); }
.voir-tout:hover { text-decoration: underline; }

.titre-section { font-family: var(--titre); font-size: 24px; margin: 0 0 16px; display: flex; align-items: center; gap: 14px; }
.titre-section::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--vert), transparent); }
.bloc-rubrique { margin-top: 40px; }
.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Simulateurs */
.grille-sim { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-sim { background: var(--blanc); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px #14223614; border-top: 4px solid var(--marine); }
.cat-sim h3 { margin: 0 0 8px; font-size: 17px; }
.cat-sim ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cat-sim li { padding: 4px 0; }
.cat-sim li a::before { content: "→ "; color: var(--vert-fonce); font-weight: 700; }
.cat-sim li a:hover { text-decoration: underline; }
.grille-liens { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 32px; }
.lien-sim { background: var(--blanc); border: 1px solid var(--filet); border-radius: 10px; padding: 14px 16px; }
.lien-sim:hover { border-color: var(--vert); box-shadow: 0 2px 8px #22c55e22; }
.lien-sim strong { display: block; color: var(--marine); }
.lien-sim span { display: block; font-size: 13px; color: var(--gris); margin-top: 4px; }
.bloc-calcul { background: #ecfdf3; border: 1px solid #bbf7d0; border-radius: 12px; padding: 16px 20px; margin: 28px 0; font-family: var(--sans); }
.bloc-calcul h2 { margin: 0 0 8px; font-size: 16px; color: var(--vert-fonce); }
.bloc-calcul ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bloc-calcul a { display: inline-flex; align-items: center; gap: 6px; background: var(--blanc); border: 1px solid #bbf7d0; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--marine); text-decoration: none; }
.bloc-calcul a:hover { border-color: var(--vert); }
.bloc-calcul .ico { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--vert); color: #fff; font-size: 13px; }

/* ── Pages catégorie / liste ── */
.titre-rubrique { font-family: var(--titre); font-size: clamp(30px, 4vw, 42px); margin: 0 0 18px; }
.intro { font-size: 17px; color: #33404f; margin: -4px 0 24px; max-width: 820px; }
.grille-rubrique { grid-template-columns: repeat(3, 1fr); }
.liste-simple { columns: 2; column-gap: 40px; padding-left: 18px; margin: 0 0 32px; }
.liste-simple li { margin: 0 0 8px; break-inside: avoid; }
.liste-simple a:hover { text-decoration: underline; }
.fil-ariane { font-size: 13px; color: var(--gris); margin: 0 0 14px; }
.fil-ariane a { text-decoration: underline; }

/* ── Article ── */
.article { max-width: 740px; margin: 0 auto; background: var(--blanc); padding: 28px 34px; border-radius: 14px; box-shadow: 0 1px 3px #14223614; }
.article h1 { font-family: var(--titre); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.015em; margin: 8px 0 14px; }
.article .chapeau { font-size: 20px; line-height: 1.5; color: #26323f; margin: 0 0 16px; font-weight: 500; }
.meta { font-size: 13px; color: var(--gris); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); padding: 9px 0; margin: 0 0 22px; }
.photo-article { margin: 0 0 26px; }
.photo-article img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 10px; }
.photo-article figcaption { font-size: 13px; color: var(--gris); padding-top: 8px; }
.credit { display: block; font-size: 11px; margin-top: 2px; }
.credit a { text-decoration: underline; }
.texte { font-size: 18px; line-height: 1.75; }
.texte p { margin: 0 0 1.1em; }
.texte h2 { font-size: 21px; margin: 1.6em 0 .6em; color: var(--marine); }
.texte h3 { font-size: 18px; margin: 1.4em 0 .5em; }
.texte img { max-width: 100%; height: auto; margin: 1em 0; border-radius: 8px; }
.texte a { color: var(--marine); text-decoration: underline; text-underline-offset: 2px; }
.texte ul, .texte ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.texte table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 1.2em; }
.texte th, .texte td { border-bottom: 1px solid var(--filet); padding: 8px 10px; text-align: left; vertical-align: top; }
.texte blockquote { border-left: 3px solid var(--vert); margin: 0 0 1.1em; padding-left: 16px; color: #33404f; }
.mention-ia { font-size: 12px; font-style: italic; color: #7b8592; margin: 24px 0 0; padding-top: 10px; border-top: 1px solid var(--filet); }
.a-lire .grille { grid-template-columns: repeat(3, 1fr); }
.statique h1 { margin-top: 0; }

/* ── Simulateurs repris de l'ancien site ── */
.simulateur { background: var(--blanc); border-radius: 14px; padding: 24px 28px; box-shadow: 0 1px 3px #14223614; }

.vide { text-align: center; padding: 80px 0; }

/* ── Pied ── */
.pied { background: var(--marine); color: #cdd6e1; padding: 34px 20px; text-align: center; font-size: 13px; }
.pied .logo { color: #fff; font-size: 22px; }
.pied .logo-f { width: 28px; height: 28px; font-size: 18px; }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px auto; font-weight: 600; color: #fff; max-width: var(--largeur); }
.pied nav.legal { font-weight: 400; color: #cdd6e1; }
.pied a:hover { text-decoration: underline; }
.pied p { max-width: 760px; margin: 14px auto 0; }

/* ── Mobile ── */
@media (max-width: 980px) {
  .une-zone { grid-template-columns: 1fr 1fr; }
  .une-principale { grid-column: 1 / -1; }
  .une-secondaires { padding-left: 0; border-left: 0; }
  .grille, .grille-sim { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .slogan, .date-jour { display: none; }
  .une-zone { grid-template-columns: 1fr; padding: 16px; }
  .fil-direct { padding-left: 0; border-left: 0; }
  .grille, .grille-rubrique, .a-lire .grille, .grille-sim { grid-template-columns: 1fr; }
  .article, .simulateur { padding: 20px 18px; border-radius: 0; margin: 0 -20px; }
  .texte { font-size: 17px; }
  .liste-simple { columns: 1; }
}

/* ── Simulateurs (repris de l'ancien francuski.fr) ── */
:root {
   --primary: #1e3a5f;
   --primary-light: #2d5a8e;
   --accent: #22c55e;
   --accent-dark: #16a34a;
   --gray-50: #f9fafb;
   --gray-100: #f3f4f6;
   --gray-200: #e5e7eb;
   --gray-400: #9ca3af;
   --gray-600: #4b5563;
   --gray-700: #374151;
   --gray-800: #1f2937;
   --shadow: 0 2px 8px rgba(0,0,0,.08);
   --shadow-md: 0 4px 16px rgba(0,0,0,.12);
   --radius: 10px;
   --radius-lg: 16px;
 }

.hidden { display: none !important; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tag-cloud a { padding: .375rem .75rem; background: white; border: 1.5px solid var(--gray-200); border-radius: 999px; font-size: .8rem; color: var(--primary); transition: all .15s; }
.tag-cloud a:hover { background: var(--primary); color: white; border-color: var(--primary); text-decoration: none; }
.simulateur h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--primary); margin-bottom: .75rem; }
.sim-desc { color: var(--gray-600); margin-bottom: 1.5rem; font-size: 1rem; }
.sim-widget { background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--gray-200); padding: 1.75rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.125rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: .375rem; }
.form-group input, .form-group select { width: 100%; padding: .625rem .875rem; border: 1.5px solid var(--gray-200); border-radius: 8px; font-size: .95rem; font-family: inherit; color: var(--gray-800); background: white; transition: border-color .15s; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,.1); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-block; padding: .75rem 1.5rem; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: all .15s; text-decoration: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; text-decoration: none; }

/* ─── Result ─────────────────────────────────────────────────────────────── */
.sim-result { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border: 2px solid #86efac; border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; }
.sim-result .result-value { font-size: 2rem; font-weight: 700; color: var(--accent-dark); display: block; }
.sim-result .result-label { font-size: .875rem; color: #15803d; }
.sim-result .result-explanation { margin-top: .75rem; color: var(--gray-700); font-size: .9rem; line-height: 1.6; }
.sim-result .result-details { margin-top: 1rem; }
.sim-result .result-details li { padding: .25rem 0; font-size: .85rem; color: var(--gray-700); border-bottom: 1px solid #bbf7d0; }
.sim-result .result-details li:last-child { border-bottom: none; }
.sim-result.loading { background: var(--gray-50); border-color: var(--gray-200); }
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Result Highlight (SEO pages) ──────────────────────────────────────── */
.result-highlight { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 2px solid #93c5fd; border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 2rem; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.result-main { text-align: center; min-width: 160px; }
.result-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); display: block; }
.result-label { font-size: .875rem; color: #2563eb; font-weight: 600; }
.result-detail p { margin-bottom: .375rem; font-size: .9rem; color: var(--gray-700); }
.result-note { font-size: .8rem; color: var(--gray-600); margin-top: .5rem; font-style: italic; }
.disclaimer-box { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 1rem 1.25rem; font-size: .85rem; color: #92400e; margin-bottom: 1rem; }
.rates-info { font-size: .8rem; color: var(--gray-400); margin-bottom: 1.5rem; }

/* ─── SEO Content ────────────────────────────────────────────────────────── */
.seo-content { margin-top: 2.5rem; }
.seo-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin: 2rem 0 .75rem; }
.seo-content p { margin-bottom: 1rem; color: var(--gray-700); line-height: 1.7; }
.seo-content ul, .seo-content ol { margin: .75rem 0 1rem 1.25rem; }
.seo-content li { margin-bottom: .375rem; color: var(--gray-700); }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.faq-item { border: 1.5px solid var(--gray-200); border-radius: 8px; margin-bottom: .625rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; color: var(--gray-800); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: .75rem 1.25rem 1rem; color: var(--gray-700); font-size: .9rem; background: var(--gray-50); }

/* ─── Related ────────────────────────────────────────────────────────────── */
.related-section { margin-top: 2.5rem; }
.related-section h2 { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.related-card { display: flex; flex-direction: column; padding: 1rem; background: white; border: 1.5px solid var(--gray-200); border-radius: 8px; font-size: .875rem; color: inherit; transition: all .15s; }
.related-card:hover { border-color: var(--primary); text-decoration: none; }
.related-card strong { color: var(--primary); margin-bottom: .25rem; }
.related-card span { color: var(--gray-600); font-size: .8rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.data-table th { background: var(--primary); color: white; padding: .75rem 1rem; text-align: left; font-weight: 600; }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); }
.data-table tr:hover td { background: var(--gray-50); }
.tableau-mensualites { margin-bottom: 2rem; }
.tableau-mensualites h2 { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.internal-links { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.internal-links h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .75rem; }
.simulateur ul.result-details, .simulateur .seo-content ul { list-style: disc; }
.simulateur .result-details { list-style: none; padding: 0; }
.simulateur h2 { margin: 1.4em 0 .6em; }
@media (max-width: 640px) { .result-highlight { gap: 1rem; padding: 1.1rem; } .data-table { font-size: .8rem; } .data-table th, .data-table td { padding: .5rem; } }
.avertissement { font-size: 14px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 12px 16px; margin: 24px 0; color: #78350f; }
.avertissement a { text-decoration: underline; }
.simulateur-nu { margin-bottom: 28px; }
