/*
 * recus-fiscaux.com — habillage et composants ajoutés au thème d'origine.
 * Bureau (≥ 1061 px) : mise en page à deux colonnes. En dessous : fluide, une colonne.
 * Polices hébergées sur le site (aucune requête vers un tiers). Licences : assets/fonts/.
 */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --rf-blue: #316BF2;
  --rf-blue-deep: #316BF2;
  --rf-ink: #1c2540;
  --rf-muted: #5b6785;
  --rf-mist: #f4f7fc;
  --rf-line: #dde4f0;
  --rf-yellow: #F6CC59;
  --rf-yellow-deep: #e9b93a;
  --rf-radius: 14px;
  --rf-body: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rf-display: "Poppins", "Roboto", system-ui, sans-serif;
  --rf-shadow: 0 1px 2px rgba(28, 37, 64, .05), 0 12px 28px -16px rgba(28, 37, 64, .28);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: #fff; color: var(--rf-ink); font-family: var(--rf-body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--rf-yellow); color: var(--rf-ink); }
a { transition: color .15s ease; }
:focus-visible { outline: 3px solid var(--rf-blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- En-tête ---------- */
#header { background: var(--rf-blue); }   /* le logo est une image sur fond uni : on garde ce fond */
#header-inner { width: 1040px; }

/* Logo : SVG net + texte réel (remplace l'ancien PNG 450×60) */
.rf-brand { display: flex; align-items: center; gap: 20px; min-height: 70px; color: #fff; text-decoration: none; }
.rf-brand, .rf-brand:hover, .rf-brand:focus, .rf-brand:active, .rf-brand:visited { color: #fff; text-decoration: none; }
.rf-brand:focus-visible { outline-color: #fff; }
.rf-brand__logo { display: block; width: auto; height: 46px; }
.rf-brand__sep { flex: none; width: 1px; height: 46px; background: rgba(255, 255, 255, .38); }
.rf-brand__name { color: #fff; font-family: var(--rf-display); font-weight: 600; font-size: 31px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
#header-corrector { height: 28px; }

/* ---------- Navigation principale ---------- */
.rf-nav { background: #fff; border-bottom: 1px solid var(--rf-line); position: relative; z-index: 50; }
.rf-nav__inner { width: 1040px; margin: 0 auto; display: flex; align-items: center; box-sizing: border-box; }
.rf-nav__toggle { display: none; }
.rf-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; width: 100%; }
.rf-nav__list li { margin: 0; padding: 0; }
.rf-nav__list li:last-child { margin-left: auto; }
.rf-nav__list a {
  display: block; padding: 15px 13px 12px; color: var(--rf-muted); font-size: 15px; font-weight: 500; line-height: 1.2;
  text-decoration: none; border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.rf-nav__list a:hover { color: var(--rf-blue-deep); border-bottom-color: var(--rf-line); }
.rf-nav__list a[aria-current] { color: var(--rf-blue-deep); font-weight: 700; border-bottom-color: var(--rf-yellow); }
@media (min-width: 1061px) {
  .rf-nav { position: sticky; top: 0; box-shadow: 0 10px 24px -20px rgba(28, 37, 64, .45); }
}

/* ---------- Fil d'Ariane ---------- */
.rf-crumbs { font-size: 13px; color: var(--rf-muted); margin: 0 0 6px; padding: 0 10px; }
.rf-crumbs a { color: var(--rf-blue); text-decoration: none; }
.rf-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rf-crumbs span[aria-hidden] { margin: 0 7px; color: #a3aec6; }

/* ---------- Mise en page ---------- */
#wrapper { width: 1040px; }
#content { width: 700px; }
.post { width: 700px; }
.rf-aside { float: right; width: 300px; position: relative; }

/* ---------- Contenu ---------- */
h1.title, h2.title, .entry h2, .entry h3, .rf-card__title, .rf-endcta__title { text-wrap: balance; }
h1.title, h1.title-single, h2.title, h2.title-single {
  font-family: var(--rf-display); font-weight: 700; font-size: 38px; line-height: 1.12; letter-spacing: -.02em;
  color: var(--rf-blue-deep); text-shadow: none; border: 0; padding: 4px 10px 8px;
}
.entry { font-size: 16px; padding: 0 10px; }
.entry p { line-height: 1.7; margin-bottom: 18px; text-align: left !important; }
.entry p:first-child { font-size: 17px; }
.entry p > em > strong { font-weight: 600; }
.entry h1, .entry h2, .entry h3, .entry h4 { color: var(--rf-ink); font-family: var(--rf-display); text-align: left !important; }
.entry h2 {
  font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 40px 0 16px !important;
  border: 0; padding: 0; text-shadow: none;
}
.entry h2::after { content: ''; display: block; width: 38px; height: 4px; margin-top: 10px; background: var(--rf-yellow); border-radius: 2px; }
.entry h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px !important; }
.entry a { color: var(--rf-blue-deep); text-decoration-color: rgba(49, 107, 242, .35); text-underline-offset: 3px; }
.entry a:hover { color: var(--rf-blue-deep); text-decoration-color: currentColor; }
.entry ul, .entry ol { margin: 0 0 20px 26px; }
.entry li { line-height: 1.65; margin-bottom: 6px; }
.entry li::marker { color: var(--rf-blue); }
.entry img { border-radius: 10px; border-color: var(--rf-line); }
.entry blockquote, .green-hightlight { border-radius: 10px; }
.entry table { border-radius: 10px; border-color: var(--rf-line); }
.entry th { background: var(--rf-mist); }

/* texte justifié hérité de WordPress : grands blancs entre les mots sur les lignes courtes */
.entry [style*="text-align: justify"] { text-align: left !important; }
.entry .sommaire { padding: 18px 22px !important; border-radius: 10px; border-color: var(--rf-line); background: var(--rf-mist); }
.entry .sommaire h3 { margin: 0 0 8px !important; }

/* bannière AssoConnect : logo vectoriel + vrai texte (remplace le PNG 610×135 flou sur écran Retina) */
.entry a.BanniereRecusCompta {
  display: flex; align-items: center; gap: 28px; box-sizing: border-box;
  width: auto; max-width: 610px; height: auto; padding: 22px 32px;
  background: var(--rf-blue) none; border-radius: var(--rf-radius); color: #fff; text-decoration: none;
}
.entry a.BanniereRecusCompta:hover { background: var(--rf-blue); color: #fff; opacity: .9; }
.entry a.BanniereRecusCompta img { width: 132px; height: auto; flex: none; padding: 0; border: 0; border-radius: 0; background: none; }
.BanniereRecusCompta__text {
  border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 28px;
  font-family: var(--rf-display); font-size: 26px; font-weight: 700; line-height: 1.2; max-width: 11em;
}

/* cartes de l'accueil (remplacent les 3 boutons-images PNG) */
.rf-tiles { list-style: none; margin: 8px 0 0 !important; padding: 0; display: grid; gap: 14px; }
.rf-tiles li { margin: 0 !important; padding: 0; }
.entry a.rf-tile {
  display: flex; align-items: center; gap: 20px; box-sizing: border-box; padding: 20px 22px; text-decoration: none;
  background: #fff; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); color: var(--rf-ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.entry a.rf-tile:hover { border-color: var(--rf-blue); background: var(--rf-mist); color: var(--rf-ink); text-decoration: none; }
.rf-tile__icon {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  background: var(--rf-mist); color: var(--rf-blue); transition: background-color .15s ease;
}
.rf-tile:hover .rf-tile__icon { background: #fff; }
.rf-tile__icon svg { width: 28px; height: 28px; }
.rf-tile__body { flex: 1; min-width: 0; }
.rf-tile__title { display: block; font-family: var(--rf-display); font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--rf-blue-deep); }
.rf-tile__text { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--rf-muted); }
.rf-tile__go {
  flex: none; width: 10px; height: 16px; transition: transform .2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M1.5 1.5 8 8l-6.5 6.5' fill='none' stroke='%23415C97' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rf-tile:hover .rf-tile__go { transform: translateX(4px); }

/* boutons « Plus d'informations » : anciennement des PNG de 607 px (flous sur écrans denses),
   désormais du texte réel avec un chevron vectoriel */
.entry a[class^="bouton-Infos"] {
  display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 100%; max-width: none; height: auto;
  padding: 15px 20px; background: #fff none; border: 1px solid var(--rf-line); border-radius: 10px;
  color: var(--rf-blue-deep); font-weight: 700; font-size: 16px; line-height: 1.35; text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.entry a[class^="bouton-Infos"]::before {
  content: ''; flex: none; width: 10px; height: 16px; transition: transform .2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M1.5 1.5 8 8l-6.5 6.5' fill='none' stroke='%23415C97' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry a[class^="bouton-Infos"]:hover { background: var(--rf-mist) none; border-color: var(--rf-blue); color: var(--rf-blue-deep); text-decoration: none; }
.entry a[class^="bouton-Infos"]:hover::before { transform: translateX(3px); }

/* « Suivant » */
.entry a.suivant, a.suivant {
  display: inline-block; width: auto; height: auto; background: var(--rf-blue); border: 1px solid var(--rf-blue); border-radius: 10px;
  padding: 12px 26px; color: #fff; font-weight: 600; font-size: 16px; text-align: center; text-decoration: none;
  box-shadow: 0 1px 2px rgba(28, 37, 64, .2); transition: background .15s ease;
}
.entry a.suivant::after { content: '→'; margin-left: 10px; display: inline-block; transition: transform .2s ease; }
.entry a.suivant:hover { background: var(--rf-blue); color: #fff; opacity: .9; }
.entry a.suivant:hover::after { transform: translateX(4px); }
.entry p:has(> a.suivant) { text-align: center !important; margin-top: 12px; }

/* ---------- Boutons ---------- */
.rf-btn, .entry a.rf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
  background: var(--rf-yellow); color: var(--rf-ink); font-family: var(--rf-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 14px 22px; border-radius: 10px; border: 0; text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 1px 2px rgba(28, 37, 64, .16);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.rf-btn::after { content: '→'; display: inline-block; transition: transform .2s ease; }
.rf-btn:hover, .entry a.rf-btn:hover { background: #ffd96b; color: var(--rf-ink); box-shadow: 0 2px 4px rgba(28, 37, 64, .18); text-decoration: none; }
.rf-btn:hover::after { transform: translateX(4px); }

/* ---------- Colonne latérale ---------- */
.rf-aside #sidebar-border { margin: 0 0 20px; }
.rf-aside #bottom-sidebar { margin: 0; }
.rf-aside #sidebar, .rf-aside .rf-box {
  width: auto; box-sizing: border-box; background: var(--rf-mist); color: var(--rf-ink);
  border: 1px solid var(--rf-line); border-radius: var(--rf-radius); padding: 6px 12px 12px;
}
.rf-aside .sidebar-title-bg {
  height: auto; line-height: 1; background: none; border: 0; margin: 0; padding: 16px 8px 10px;
  color: var(--rf-muted); font-family: var(--rf-body); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.rf-aside #sidebar ul { list-style: none; margin: 0; padding: 0; }
.rf-aside #sidebar ul li { padding: 0; margin: 0; }
.rf-aside #sidebar ul li a {
  display: block; margin: 0; padding: 8px 10px; border-radius: 8px; color: var(--rf-ink); font-size: 15px; font-weight: 700;
  text-shadow: none; transition: background .15s ease, color .15s ease;
}
.rf-aside #sidebar ul li a:hover { background: #e7edf8; color: var(--rf-blue-deep); }
.rf-aside #sidebar ul li ul { list-style: none; padding: 0 0 6px 12px; margin: 0; color: inherit; }
.rf-aside #sidebar ul li ul li a { color: var(--rf-muted); font-size: 14px; font-weight: 500; padding: 6px 10px; margin: 0; }
.rf-aside #sidebar ul li ul li a:hover { color: var(--rf-blue-deep); background: #e7edf8; }
.rf-aside #sidebar a[aria-current] {
  color: var(--rf-blue); background: none; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--rf-yellow); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.rf-aside #sidebar a[aria-current]:hover { background: none; color: var(--rf-blue-deep); }
/* #bottom-sidebar est surchargé par le thème d'origine (couleur beige) : on garde l'id pour gagner en priorité */
.rf-aside #bottom-sidebar ul.rf-links { list-style: none; margin: 0; padding: 0 0 4px; }
.rf-aside #bottom-sidebar ul.rf-links li { display: block; margin: 0; }
.rf-aside #bottom-sidebar ul.rf-links li a {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--rf-ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
.rf-aside #bottom-sidebar ul.rf-links li a:hover { background: #e7edf8; color: var(--rf-blue-deep); }

/* ---------- Carte CTA de la colonne latérale ---------- */
.rf-card {
  position: relative; box-sizing: border-box; width: 100%; margin: 0 0 20px; padding: 24px 22px 22px; color: #fff; overflow: hidden;
  background: var(--rf-blue);
  border-radius: var(--rf-radius); box-shadow: 0 2px 4px rgba(49, 107, 242, .2), 0 22px 40px -22px rgba(49, 107, 242, .8);
}
.rf-card__title { margin: 0 0 10px; font-family: var(--rf-display); font-size: 23px; line-height: 1.18; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.rf-card__text { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: #dfe7f7; }
.rf-card .rf-btn { display: flex; width: 100%; }

/* ---------- CTA de fin de contenu ---------- */
.rf-endcta {
  clear: both; position: relative; box-sizing: border-box; margin: 40px 0 26px; padding: 26px 28px;
  background: var(--rf-mist); border: 1px solid var(--rf-line); border-radius: var(--rf-radius);
}
.rf-endcta::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 5px; background: var(--rf-yellow); border-radius: 0 4px 4px 0; }
.entry .rf-endcta__title { margin: 0 0 8px; font-family: var(--rf-display); font-size: 23px; line-height: 1.2; letter-spacing: -.01em; color: var(--rf-blue-deep); font-weight: 700; }
.entry .rf-endcta__text { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--rf-ink); }
.entry .rf-endcta .rf-btn { margin: 0; }

/* ---------- Bandeau « publié par AssoConnect » ---------- */
.rf-bar {
  background: var(--rf-blue-deep); color: #e8eefb; font-size: 14px; line-height: 1.3; text-align: center;
  padding: 11px 14px; margin-top: 40px;
}
.rf-bar a { color: var(--rf-yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.rf-bar + #cp-footer { margin-top: 0; }

/* ---------- Pied de page ---------- */
#cp-footer { margin-top: 40px; background: var(--rf-blue); color: #fff; border: 0; padding: 30px 16px 26px; font-size: 14px; line-height: 1.7; }
#cp-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
#cp-footer a:hover { color: var(--rf-yellow); text-decoration: underline; }
.rf-footer-nav { margin: 0 0 8px; font-size: 14px; }
.rf-footer-nav button {
  display: none; background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.rf-footer-nav button:hover { color: var(--rf-yellow); }
.rf-footer-nav button::before { content: '| '; display: inline-block; margin-right: 4px; text-decoration: none; color: rgba(255, 255, 255, .7); }
.rf-copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .85); }
#cp-footer .rf-copy a { text-decoration: underline; }

/* ---------- Pages légales (brouillons à compléter) ---------- */
.rf-todo { background: #fff3b0; color: #5a4600; padding: 0 3px; border-radius: 3px; }

/* ---------- Apparition douce au chargement ---------- */
@keyframes rf-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .post { animation: rf-rise .5s ease-out both; }
  .rf-card { animation: rf-rise .5s .08s ease-out both; }
  .rf-aside #sidebar-border { animation: rf-rise .5s .16s ease-out both; }
  .rf-aside #bottom-sidebar { animation: rf-rise .5s .24s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1060px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: 60px; }                       /* place pour le bandeau fixe */
  img { max-width: 100%; height: auto; }

  #header { height: auto; overflow: visible; }
  #header-inner { width: auto; padding: 10px 16px; }
  .rf-brand { min-height: 0; gap: 14px; }
  .rf-brand__logo { height: 36px; }
  .rf-brand__sep { height: 36px; }
  .rf-brand__name { font-size: 24px; }
  #header-corrector { height: 16px; }

  .rf-nav__inner { width: auto; flex-wrap: wrap; }
  .rf-nav__toggle {
    display: block; width: 100%; box-sizing: border-box; background: none; color: var(--rf-ink); border: 0;
    padding: 15px 16px; font: 700 16px var(--rf-body); text-align: left; cursor: pointer;
  }
  .rf-nav__toggle::after { content: '\25BE'; float: right; color: var(--rf-muted); }
  .rf-nav.is-open .rf-nav__toggle::after { content: '\25B4'; }
  .rf-nav__list { display: none; flex-direction: column; border-top: 1px solid var(--rf-line); }
  .rf-nav.is-open .rf-nav__list { display: flex; }
  .rf-nav__list li:last-child { margin-left: 0; }
  .rf-nav__list a { padding: 14px 16px; border-bottom: 1px solid var(--rf-line); font-size: 16px; }
  .rf-nav__list a:hover { border-bottom-color: var(--rf-line); }
  .rf-nav__list a[aria-current] {
    border-bottom-color: var(--rf-line); color: var(--rf-blue-deep);
    text-decoration: underline; text-decoration-color: var(--rf-yellow); text-decoration-thickness: 3px; text-underline-offset: 6px;
  }

  #wrapper { width: auto; padding: 0 16px; }
  #content { float: none; width: auto; margin: 0; overflow: visible; }
  .post { width: auto; margin: 0; }
  .entry { padding: 0; }
  .rf-crumbs { padding: 0; }
  h1.title, h1.title-single, h2.title, h2.title-single { padding-left: 0; padding-right: 0; font-size: 32px; }

  .rf-aside { float: none; width: auto; clear: both; margin-top: 10px; }
  .rf-card { margin-top: 10px; }
  #bottom-sidebar { display: none; }                   /* déjà dans le menu principal */

  /* le CTA reste visible en bas d'écran */
  .rf-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; margin: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .25); padding: 10px 14px;
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: nowrap;
  }
  .rf-bar a {
    margin: 0; flex: none; text-decoration: none; background: var(--rf-yellow); color: var(--rf-ink);
    padding: 9px 14px; border-radius: 8px; white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .entry img.alignleft, .entry img.alignright, .alignleft, .alignright {
    float: none; display: block; margin: 0 auto 14px !important;
  }
  .entry ul, .entry ol { margin-left: 22px; margin-right: 0; }
  .entry p[style*="margin-right"] { margin-right: 0 !important; }
  .entry ul[style*="margin-left"] { margin-left: 22px !important; }
  .entry h2 { font-size: 22px; }

  /* gros boutons-images du thème : ils gardent leurs proportions */
  .entry a.BanniereRecusCompta { gap: 18px; padding: 18px 20px; }
  .entry a.BanniereRecusCompta img { width: 96px; }
  .BanniereRecusCompta__text { padding-left: 18px; font-size: 19px; }
  .entry a.rf-tile { padding: 16px; gap: 14px; }
  .rf-tile__icon { width: 48px; height: 48px; }
  .rf-tile__icon svg { width: 24px; height: 24px; }
  .rf-tile__title { font-size: 19px; }
  .rf-tile__text { font-size: 14.5px; }
  .entry a[class^="bouton-Infos"] { padding: 14px 16px; font-size: 15px; }

  .rf-endcta { padding: 22px 18px; }
  .rf-endcta .rf-btn { display: flex; width: 100%; }
  .rf-bar { font-size: 13px; }
}
