/* Retraite Suisse Frontalier — feuille de style commune
   Charte reprise du site actuel : bleu nuit #0A1A2F, rouge suisse #C8102E,
   or #F7B260 / #C9A227, titres Montserrat, texte Inter. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Montserrat:wght@500;600;700&display=swap");

:root {
  --nuit: #0a1a2f;
  --nuit-2: #0d1f42;
  --rouge: #c8102e;
  --rouge-fonce: #a80a22;
  --or: #f7b260;
  --or-fonce: #e8a050;
  --or-badge: #c9a227;
  --violet: #9b51e0;
  --texte: #2a3444;
  --doux: #5d6878;
  --trait: #e2e8f0;
  --clair: #f7fafc;
  --blanc: #ffffff;
  --rayon: 9px;
  --largeur: 1180px;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --police-titres: "Montserrat", "Inter", system-ui, sans-serif;
  --logo: url("/assets/img/logo-rsf-96.webp");
  --hero: url("/wp-content/uploads/2026/03/Le-2e-pilier-%E2%80%94-LPP-choix-rente-vs-capital-2.jpg");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: var(--police); font-size: 17px; line-height: 1.65; color: var(--texte); background: var(--blanc); }
img { max-width: 100%; height: auto; }
a { color: var(--rouge); text-decoration: none; }
a:hover { color: var(--rouge-fonce); }
.article p a, .article li:not(.carte):not(.avis) a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--police-titres); color: var(--nuit-2); line-height: 1.3; }
h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; margin: 0 0 14px; }
h3 { font-size: 20px; font-weight: 600; }
code { font-size: 0.85em; background: #fff; padding: 1px 5px; border-radius: 4px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.aller-contenu { position: absolute; left: -9999px; }
.aller-contenu:focus { left: 16px; top: 16px; z-index: 100; background: var(--nuit); color: #fff; padding: 8px 14px; border-radius: 6px; }

/* ---------- Boutons (dégradés animés du site actuel) */
@keyframes rsf-degrade { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 28px; border-radius: 32px; font-family: var(--police); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; transition: transform .35s ease, box-shadow .35s ease; }
.bouton:hover { transform: translateY(-2px); }
.bouton-plein { color: var(--nuit); background: linear-gradient(135deg, #d96b1f, #f2994a, #ffd47f); background-size: 400% 400%; animation: rsf-degrade 4s ease infinite; box-shadow: 0 10px 25px rgba(0, 0, 0, .25); }
.bouton-plein:hover { color: var(--nuit); box-shadow: 0 0 30px rgba(217, 107, 31, .7), 0 14px 35px rgba(0, 0, 0, .35); }
.bouton-contour { color: var(--nuit-2); background: #fff; border: 2px solid rgba(13, 31, 66, .15); }
.bouton-contour:hover { color: var(--nuit-2); box-shadow: 0 10px 25px rgba(13, 31, 66, .15); }
.bouton-simu { color: #fff; background: linear-gradient(270deg, var(--nuit), var(--violet)); background-size: 300% 300%; animation: rsf-degrade 4s ease infinite; box-shadow: 0 12px 28px rgba(10, 26, 47, .35); }
.bouton-simu:hover { color: #fff; box-shadow: 0 0 32px rgba(155, 81, 224, .7), 0 20px 45px rgba(10, 26, 47, .45); }

/* ---------- En-tête bleu nuit */
.entete { position: sticky; top: 0; z-index: 50; background: var(--nuit); box-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
.barre-secondaire { background: #06111f; font-size: 13px; }
.barre-secondaire ul { display: flex; justify-content: flex-end; gap: 22px; list-style: none; margin: 0; padding: 6px 0; }
.barre-secondaire a { color: rgba(255, 255, 255, .65); }
.barre-secondaire a:hover { color: #fff; }
.entete-principale { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--police-titres); font-weight: 500; font-size: 20px; white-space: nowrap; }
.logo:hover { color: rgba(255, 255, 255, .8); }
.logo-croix { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--logo) center / contain no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); position: relative; }
.logo strong { color: #fff; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav-liste { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-item { position: relative; }
.nav-lien { display: block; padding: 26px 12px; color: #fff; font-weight: 600; font-size: 15px; }
.nav-item.actif > .nav-lien, .nav-lien:hover { color: var(--or); }
.sous-menu { position: absolute; top: 100%; left: 0; min-width: 270px; list-style: none; margin: 0; padding: 10px; background: #fff; border-top: 3px solid var(--rouge); border-radius: 0 0 var(--rayon) var(--rayon); box-shadow: 0 16px 34px rgba(10, 26, 47, .22); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav-item:hover .sous-menu, .nav-item:focus-within .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--nuit-2); font-size: 15px; }
.sous-menu a:hover { background: var(--clair); color: var(--rouge); }
.nav-cta { min-height: 44px; padding: 8px 22px; font-size: 15px; }
.menu-bouton { display: none; }

/* ---------- Fil d'Ariane */
.ariane ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 14px 0 0; font-size: 14px; color: var(--doux); }
.ariane li + li::before { content: "›"; margin: 0 8px; }
.ariane a { color: var(--doux); }
.ariane a:hover { color: var(--rouge); }

/* ---------- Titres de page */
.page-titre { padding: 28px 0 8px; }
.hero { position: relative; display: flex; align-items: center; min-height: 78vh; padding: 96px 0 120px; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(10, 26, 47, .55), rgba(10, 26, 47, .75)), var(--hero) center / cover no-repeat, var(--nuit); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.hero .conteneur { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(36px, 5vw, 56px); text-shadow: 0 0 9px rgba(50, 46, 46, 1); }
.hero .chapo { color: rgba(255, 255, 255, .92); margin: 0 auto 16px; }
.hero-actions .bouton-contour { color: #fff; border: 0; background: linear-gradient(270deg, var(--nuit), var(--violet)); background-size: 300% 300%; animation: rsf-degrade 4s ease infinite; box-shadow: 0 12px 28px rgba(10, 26, 47, .45); }
.hero-actions .bouton-contour:hover { color: #fff; box-shadow: 0 0 32px rgba(155, 81, 224, .85), 0 20px 45px rgba(10, 26, 47, .55); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
/* Bandeau image des pages intérieures (hero de page) */
.hero-page { min-height: 0; padding: 88px 0 112px; text-align: left; background: linear-gradient(90deg, rgba(10, 26, 47, .88), rgba(10, 26, 47, .5)), var(--hero) center / cover no-repeat, var(--nuit); }
.hero-page::after { height: 64px; }
.hero-page { --hero: var(--hero-d); }
@media (max-width: 800px) { .hero-page { --hero: var(--hero-m, var(--hero-d)); } }
.hero-page .conteneur { max-width: 1180px; }
.hero-page h1 { font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); max-width: 900px; }
.hero-page .chapo { margin: 0 0 14px; max-width: 760px; }
.hero-page p { color: rgba(255, 255, 255, .9); }
.hero-page a { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }
.hero-page a:hover { color: #fff; }
.chapo { font-size: 19px; color: var(--doux); max-width: 760px; margin: 0 0 16px; }
.retour-pilier { font-size: 15px; color: var(--doux); }

/* ---------- Mise en page (le sommaire devient la navigation « blason ») */
.mise-en-page { padding-top: 16px; padding-bottom: 64px; }
.avec-sommaire .article { max-width: 860px; }
.article { min-width: 0; }
.section { padding: 28px 0; border-bottom: 1px solid var(--trait); }
.section:last-of-type { border-bottom: 0; }
.sommaire { display: none; }
/* Sommaire flottant des pages (blasons) : au survol, tous les titres s'affichent */
@keyframes rsfp { 0% { opacity: .45; } 50% { opacity: .95; } 100% { opacity: .45; } }
.rsf-nav { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 40; opacity: .45; animation: rsfp 4s ease-in-out infinite; transition: opacity .4s; background: rgba(0, 0, 0, .12); border-radius: 16px; padding: 10px 6px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.rsf-nav:hover { opacity: 1; animation: none; }
.rsf-nav a { display: flex; align-items: center; position: relative; padding: 4px 6px; border-radius: 10px; transition: background .25s; }
.rsf-nav a:hover { background: rgba(0, 0, 0, .18); }
.rsf-nav a svg { width: 44px; height: 44px; flex-shrink: 0; opacity: .35; transform: scale(.85); transition: transform .3s, filter .3s, opacity .3s; }
.rsf-nav a:hover svg, .rsf-nav a.active svg { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 7px rgba(200, 16, 46, .7)); }
.rsf-nav a span { font-size: 16px; color: rgba(255, 255, 255, 0); white-space: nowrap; transition: all .35s; max-width: 0; overflow: hidden; letter-spacing: .03em; }
.rsf-nav:hover a span { color: rgba(255, 255, 255, .95); max-width: 360px; margin-left: 8px; background: rgba(10, 10, 10, .72); padding: 4px 10px; border-radius: 6px; }
.rsf-mob { display: none; position: fixed; bottom: 24px; left: 20px; z-index: 40; background: rgba(10, 26, 47, .85); border: 1px solid rgba(200, 16, 46, .4); border-radius: 50%; width: 58px; height: 58px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; opacity: .7; transition: opacity .4s; -webkit-tap-highlight-color: transparent; }
.rsf-mob:hover, .rsf-mob.open { opacity: 1; }
.rsf-mob i { display: block; width: 22px; height: 2px; background: #d4d8de; border-radius: 2px; }
.rsf-panel { display: none; position: fixed; bottom: 92px; left: 20px; z-index: 40; background: rgba(10, 10, 10, .95); border-radius: 14px; padding: 10px 0; min-width: 240px; max-width: calc(100vw - 40px); box-shadow: 0 4px 24px rgba(0, 0, 0, .6); border: 1px solid rgba(200, 16, 46, .25); }
.rsf-panel.on { display: block; }
.rsf-panel a { display: block; color: rgba(240, 242, 245, .85); font-size: 16px; padding: 14px 22px; min-height: 48px; letter-spacing: .02em; transition: color .25s, background .25s; }
.rsf-panel a:hover { color: var(--rouge); background: rgba(200, 16, 46, .08); }

/* ---------- Navigation blason (reprise du site actuel) */

/* ---------- Cartes */
.cartes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cartes-2 { grid-template-columns: repeat(2, 1fr); }
.cartes-3 { grid-template-columns: repeat(3, 1fr); }
.cartes-4 { grid-template-columns: repeat(4, 1fr); }
.carte a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; border: 1px solid var(--trait); border-top: 3px solid var(--rouge); border-radius: var(--rayon); background: #fff; transition: box-shadow .2s, transform .2s; }
.carte a:hover { box-shadow: 0 12px 28px rgba(10, 26, 47, .12); transform: translateY(-3px); }
.carte-titre { font-family: var(--police-titres); font-weight: 600; color: var(--nuit-2); line-height: 1.3; }
.carte-texte { font-size: 15px; color: var(--doux); line-height: 1.5; }

/* ---------- Encadrés */
.encadre-bilan { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 30px; border-radius: 14px; background: var(--nuit); color: rgba(255, 255, 255, .75); }
.encadre-bilan .encadre-titre { color: #fff; font-size: 22px; margin: 0 0 6px; }
.encadre-bilan p { margin: 0; }
.encadre-bilan .bouton { flex: none; }
.encadre-simu { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 20px 24px; border: 1px solid var(--trait); border-left: 4px solid var(--violet); border-radius: var(--rayon); background: var(--clair); }
.encadre-simu p { margin: 0; }
.encadre-simu .bouton { flex: none; color: #fff; border: 0; background: linear-gradient(270deg, var(--nuit), var(--violet)); background-size: 300% 300%; animation: rsf-degrade 4s ease infinite; }
.lire-aussi { margin-top: 40px; }

/* ---------- Contenu à rédiger (à supprimer au fil de la rédaction) */
.a-rediger { padding: 14px 18px; border: 2px dashed #e0a100; border-radius: 8px; background: #fff8e1; color: #6b5200; font-size: 15px; }
.a-rediger p { margin: 0; }

/* ---------- FAQ */
.faq-item { border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; color: var(--nuit-2); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: var(--rouge); }
.faq-item[open] summary::after { content: "–"; }
.faq-reponse { padding: 0 20px 16px; }

/* ---------- Formulaires */
.formulaire { display: grid; gap: 20px; max-width: 760px; }
.formulaire fieldset { border: 1px solid var(--trait); border-radius: 14px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.formulaire legend { font-family: var(--police-titres); font-weight: 600; color: var(--nuit-2); padding: 0 6px; }
.champ { display: flex; flex-direction: column; gap: 5px; }
.champ label { font-size: 12px; font-weight: 600; color: var(--nuit-2); text-transform: uppercase; letter-spacing: .04em; }
.champ input, .champ select, .champ textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--trait); border-radius: 10px; background: #fff; color: var(--nuit-2); outline: none; transition: border-color .2s; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--nuit-2); }
.formulaire fieldset .champ:has(textarea), .champ-case { grid-column: 1 / -1; }
.champ-case { flex-direction: row; align-items: flex-start; gap: 10px; }
.champ-case label { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 14px; }
.formulaire > .bouton { justify-self: start; }

/* ---------- Simulateur, avis, guides */
.simulateur { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--trait); border-radius: 14px; background: var(--clair); }
.simulateur .bouton { justify-self: start; }
.avis-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.avis { padding: 20px; border: 1px solid var(--trait); border-radius: var(--rayon); }
.avis blockquote { margin: 0 0 10px; }
.avis-auteur { margin: 0; font-weight: 600; color: var(--nuit-2); }
.groupe-guides { padding: 24px 0; border-bottom: 1px solid var(--trait); }
.groupe-guides h2 a { color: var(--nuit-2); }
.groupe-guides h2 a:hover { color: var(--rouge); }

/* ---------- Pied de page */
.pied { background: var(--nuit); color: rgba(255, 255, 255, .7); padding: 56px 0 24px; font-size: 15px; border-top: 3px solid var(--rouge); }
.pied-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pied-titre { font-family: var(--police-titres); color: #fff; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: 6px 0; }
.pied a { color: rgba(255, 255, 255, .7); }
.pied a:hover { color: var(--or); }
.pied-bas { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }

/* ---------- Popup guide gratuit (reprise du site actuel) */
#rsf-overlay { display: none; position: fixed; inset: 0; background: rgba(13, 31, 66, .75); z-index: 99999; align-items: center; justify-content: center; padding: 1rem; }
#rsf-overlay.actif { display: flex; }
#rsf-modal { background: #fff; border-radius: 18px; max-width: 440px; width: 100%; overflow: hidden; position: relative; font-family: var(--police); }
#rsf-modal-header { background: var(--nuit); padding: 28px 32px 24px; text-align: center; }
#rsf-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(201, 162, 39, .18); border: 1px solid rgba(201, 162, 39, .4); border-radius: 20px; padding: 5px 14px; margin-bottom: 16px; }
#rsf-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--or-badge); display: inline-block; }
#rsf-badge span { color: var(--or-badge); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#rsf-modal-header h2 { margin: 0 0 10px; font-size: 26px; font-weight: 600; color: #fff; line-height: 1.35; }
#rsf-modal-header h2 em { color: #f8b160; font-style: normal; font-weight: 600; opacity: .92; }
#rsf-modal-header p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .62); line-height: 1.6; }
#rsf-close { position: absolute; top: 12px; right: 14px; background: rgba(255, 255, 255, .12); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
#rsf-close:hover { background: rgba(255, 255, 255, .22); }
#rsf-perks { display: flex; justify-content: center; gap: 20px; padding: 14px 24px; background: #fafafa; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.rsf-perk { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #555; }
#rsf-modal-body { padding: 24px 32px 28px; }
#rsf-modal label { display: block; font-size: 12px; font-weight: 600; color: var(--nuit-2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
#rsf-modal input { display: block; width: 100%; padding: 12px 14px; margin-bottom: 12px; border: 1.5px solid var(--trait); border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--nuit-2); outline: none; transition: border-color .2s; }
#rsf-modal input:focus { border-color: var(--nuit-2); }
#rsf-send { width: 100%; padding: 15px; background: linear-gradient(180deg, #f9c47a 0%, #f7b260 50%, #e8a050 100%); color: var(--nuit); border: 1px solid rgba(255, 255, 255, .35); border-radius: 32px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 20px rgba(247, 178, 96, .45); transition: background .2s, box-shadow .2s, transform .2s; }
#rsf-send:hover { background: linear-gradient(180deg, #f0a855 0%, #e8a050 50%, #d4903a 100%); box-shadow: 0 8px 28px rgba(247, 178, 96, .65); transform: translateY(-2px); }
#rsf-send:disabled { opacity: .5; cursor: not-allowed; }
#rsf-footnote { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 12px 0 0; font-size: 11px; color: #aaa; }
#rsf-errmsg { color: #c0392b; font-size: 13px; margin: 8px 0 0; text-align: center; min-height: 18px; }

/* ---------- Anti-spam et messages des formulaires */
.champ-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.formulaire-message { margin: 0; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.formulaire-message.succes { color: #13612e; }
.formulaire-message.erreur { color: #b82105; }
/* Envoi des formulaires : roue de chargement, puis bouton « Envoyé » */
.roue-chargement { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -3px; margin-right: 6px; animation: roue 0.7s linear infinite; }
@keyframes roue { to { transform: rotate(360deg); } }
button.en-cours { cursor: progress; opacity: 1 !important; }
button.envoye, button.envoye:disabled { background: #13612e !important; border-color: #13612e !important; color: #fff !important; opacity: 1 !important; cursor: default; box-shadow: none; }
.formulaire-message.confirmation { margin-top: 16px; padding: 14px 18px; background: #e8f5ec; border: 1px solid #b7dfc3; border-radius: 12px; font-weight: 500; line-height: 1.5; }

/* ---------- Articles WordPress (actualités) */
.article-meta { font-size: 14px; color: var(--doux); margin: 0 0 8px; }
.article-meta a { color: var(--doux); }
.contenu-article { font-size: 17px; }
.contenu-article > * + * { margin-top: 1em; }
.contenu-article h2 { margin-top: 1.8em; }
.contenu-article h3 { margin-top: 1.4em; }
.contenu-article img, .contenu-article figure img { border-radius: var(--rayon); height: auto; }
.contenu-article figure { margin: 1.5em 0; }
.contenu-article figcaption { font-size: 14px; color: var(--doux); text-align: center; margin-top: 6px; }
.contenu-article blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--rouge); background: var(--clair); border-radius: 0 var(--rayon) var(--rayon) 0; }
.contenu-article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.contenu-article th, .contenu-article td { padding: 10px 12px; border-bottom: 1px solid var(--trait); text-align: left; }
.contenu-article th { background: var(--nuit); color: #fff; font-weight: 600; }
.contenu-article a { text-decoration: underline; text-underline-offset: 3px; }
.contenu-article .wp-block-button__link { display: inline-flex; padding: 12px 28px; border-radius: 32px; font-weight: 700; color: var(--nuit); text-decoration: none; background: linear-gradient(135deg, #d96b1f, #f2994a, #ffd47f); }
.carte-date { font-size: 13px; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--trait); border-radius: 21px; color: var(--nuit-2); font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.aucun-article { padding: 24px; border: 1px dashed var(--trait); border-radius: var(--rayon); color: var(--doux); }

/* ---------- Boutons : icônes, grand format, guide gratuit */
.bouton svg { width: 20px; height: 20px; flex: none; transition: transform .35s ease; }
.bouton:hover svg { transform: translateX(4px); }
.bouton-grand { min-height: 64px; padding: 0 34px; font-size: 19px; }
.bouton-grand svg { width: 22px; height: 22px; }
@keyframes rsf-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.bouton-guide { color: var(--nuit-2); background: #fff; border: 2px solid rgba(13, 31, 66, .15); animation: rsf-pulse 2.4s ease-out infinite; }
.bouton-guide:hover { color: var(--nuit-2); box-shadow: 0 0 32px rgba(255, 255, 255, .85), 0 20px 45px rgba(0, 0, 0, .35); }

/* ---------- E-mail protégé */
.email-protege { white-space: nowrap; }

/* ---------- Formulaire de bilan en deux étapes */
.etapes-barre { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--doux); }
.etapes-barre span.actif { color: var(--nuit-2); }
.etapes-piste { height: 5px; border-radius: 99px; background: var(--trait); overflow: hidden; margin-top: 6px; }
.etapes-piste span { display: block; height: 100%; width: 50%; border-radius: 99px; background: linear-gradient(90deg, var(--rouge), var(--or)); transition: width .4s ease; }
.etape-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.recap { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.recap span { padding: 4px 12px; border-radius: 99px; background: var(--clair); border: 1px solid var(--trait); font-size: 13px; font-weight: 600; color: var(--nuit-2); }
.delai-rappel { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--doux); }

/* ---------- Simulateur retraite */
.sim { background: var(--nuit); color: #e8edf5; border-radius: 20px; padding: 28px 26px 30px; max-width: 720px; }
.sim h3 { color: #fff; text-align: center; margin: 0 0 6px; }
.sim-intro { text-align: center; font-size: 14px; color: #9fb3cc; margin: 0 0 18px; }
.sim-avert { font-size: 12.5px; color: #9fb3cc; border-left: 2px solid #1e3a5f; padding-left: 10px; margin: 0 0 20px; }
.sim-reglage { margin-bottom: 16px; }
.sim-reglage label { display: flex; justify-content: space-between; font-size: 14px; color: #aabdcf; margin-bottom: 6px; }
.sim-reglage output { color: #fff; font-weight: 600; }
.sim input[type=range] { width: 100%; accent-color: var(--or); }
.sim-alerte { font-size: 13px; color: var(--or); background: rgba(247, 178, 96, .08); border: 1px solid rgba(247, 178, 96, .3); border-radius: 8px; padding: 9px 13px; margin: 0 0 14px; }
.sim-total { background: #0f2444; border: 1px solid #1e3a5f; border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.sim-etiquette { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7a9cc0; margin: 0 0 6px; }
.sim-montant { font-size: 44px; line-height: 1; color: #fff; }
.sim-montant small { font-size: 14px; color: #7a9cc0; }
.sim-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.sim-detail > div { background: var(--nuit); border: 1px solid #1e3a5f; border-radius: 8px; padding: 10px 12px; }
.sim-detail b { display: block; font-size: 18px; color: #fff; font-weight: 600; }
.sim-detail span { font-size: 11px; color: #7a9cc0; }
.sim-detail a { color: var(--or); font-size: 13px; }
.sim-note { font-size: 13px; color: #9fb3cc; background: #0f2444; border: 1px solid #1e3a5f; border-radius: 8px; padding: 10px 13px; margin: 0 0 14px; }
.sim-comp { background: #0f2444; border: 1px solid #1e3a5f; border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; }
.sim-comp-ligne { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; color: #7a9cc0; }
.sim-comp-ligne.actif { color: #fff; font-weight: 600; }
.sim-comp-age { min-width: 52px; }
.sim-comp-barre { flex: 1; height: 5px; background: var(--nuit); border-radius: 99px; overflow: hidden; }
.sim-comp-barre span { display: block; height: 100%; background: #4d9fec; border-radius: 99px; opacity: .5; transition: width .25s; }
.sim-comp-ligne.actif .sim-comp-barre span { opacity: 1; }
.sim-comp-montant { min-width: 96px; text-align: right; }
.sim .bouton { width: 100%; }
.sim-pied { font-size: 11.5px; color: #7a9cc0; text-align: center; margin: 14px 0 0; }

/* ---------- Simulateur quasi-résident */
.qr { max-width: 720px; }
.qr-progression { list-style: none; display: flex; justify-content: space-between; gap: 4px; padding: 0; margin: 0 0 20px; font-size: 11px; font-weight: 600; color: var(--doux); text-align: center; }
.qr-progression li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr-progression span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--trait); color: var(--doux); font-size: 13px; }
.qr-progression li.actif span { background: var(--nuit); color: #fff; }
.qr-progression li.fait span { background: var(--rouge); color: #fff; }
.qr-carte { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 28px 30px; display: grid; gap: 16px; box-shadow: 0 4px 24px rgba(10, 26, 47, .08); }
.qr-carte h3 { margin: 0; }
.qr-sous { margin: 0; color: var(--doux); font-size: 15px; }
.qr-aide { color: var(--doux); font-size: 13px; }
.qr-erreur { margin: 0; color: #b82105; font-size: 14px; min-height: 1em; }
.qr-boutons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.qr-resultat { border-radius: 12px; padding: 18px 20px; border: 2px solid var(--nuit); background: #eef2f8; }
.qr-resultat.non-eligible { border-color: var(--rouge); background: #fdf1f2; }
.qr-resultat p { margin: 6px 0 0; }
.qr-jauge { position: relative; height: 12px; border-radius: 99px; background: var(--trait); overflow: visible; }
.qr-jauge span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--nuit)); }
.qr-jauge i { position: absolute; top: -4px; width: 2px; height: 20px; background: var(--rouge); }

/* ---------- Responsive */
@media (max-width: 1240px) {
  .rsf-nav { display: none; }
  .rsf-mob { display: flex; }
}
@media (max-width: 1100px) {
  .cartes-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .menu-bouton { display: block; font: inherit; font-weight: 600; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--nuit); border-top: 1px solid rgba(255, 255, 255, .1); padding: 8px 24px 20px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .nav.ouvert { display: flex; }
  .nav-liste { flex-direction: column; }
  .nav-lien { padding: 12px 0; }
  .sous-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .sous-menu a { color: rgba(255, 255, 255, .75); }
  .sous-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--or); }
  .nav-cta { margin-top: 12px; }
  .barre-secondaire ul { justify-content: center; }
  .cartes-2, .cartes-3 { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .encadre-bilan, .encadre-simu { flex-direction: column; align-items: flex-start; }
  .formulaire fieldset { grid-template-columns: minmax(0, 1fr); min-width: 0; padding: 18px 16px; }
  .champ { min-width: 0; }
  .champ input, .champ select, .champ textarea { width: 100%; max-width: 100%; min-width: 0; }
  .sim-detail { grid-template-columns: 1fr; }
  .qr-carte { padding: 22px 18px; }
  .bouton-grand { width: 100%; }
  .hero { min-height: 0; padding: 72px 0 96px; }
  .hero-page { padding: 56px 0 80px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cartes-4 { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .entete-principale { gap: 10px; min-height: 64px; }
  .logo { font-size: 16px; gap: 10px; min-width: 0; }
  .logo-croix { width: 40px; height: 40px; }
  .menu-bouton { flex: none; padding: 7px 14px; }
  .hero-actions .bouton { width: 100%; }
}
@media (max-width: 700px) {
  .article table, .contenu-article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .etapes-barre { gap: 8px; font-size: 11px; letter-spacing: 0; }
  .etapes-barre span { min-width: 0; white-space: normal; }
}
@media (max-width: 420px) {
  .logo { font-size: 15px; line-height: 1.15; white-space: normal; }
  .logo-texte strong { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
