/* Paradis Fiscaux — feuille de style unique (mobile d'abord) */

/* La police Inter est déclarée en ligne (functions.php) avec une URL absolue :
   robuste aux extensions de cache qui déplacent ou concatènent les CSS. */

:root {
  --navy: #103A5E;
  --navy-dark: #0b2a45;
  --green: #008F61;        /* accents, filets, éléments décoratifs */
  --green-ink: #00714E;    /* texte et boutons verts (contraste AA sur blanc) */
  --white: #FFFFFF;
  --mist: #F4F7F8;
  --ink: #1c2a36;
  --muted: #566573;
  --line: #dbe4e9;
  --radius: 6px;
  --gutter: 16px;
  --wrap: 1200px;
  --read: 720px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base ------------------------------------------------------------------ */
body.pf {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--navy); font-family: var(--font); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.pf-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.pf-wrap--read { max-width: calc(var(--read) + 2 * var(--gutter)); }
.pf-wrap--figure { max-width: calc(1000px + 2 * var(--gutter)); }
.pf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--navy); color: #fff !important; padding: 10px 16px; }
.pf-skip:focus { left: 8px; top: 8px; }
.pf-main { display: block; min-height: 50vh; padding-bottom: 48px; }
.pf-main:focus { outline: none; }

/* En-tête --------------------------------------------------------------- */
.pf-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.pf-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.pf-logo { margin: 0; line-height: 0; font-size: 0; }
.pf-logo a { display: inline-block; }
.pf-logo__img { height: 48px; width: auto; max-width: 190px; }
.pf-logo__text { font-size: 1.25rem; font-weight: 700; color: var(--navy); line-height: 1.2; }

.pf-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--navy); }
.pf-burger__bars, .pf-burger__bars::before, .pf-burger__bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.pf-burger__bars { position: relative; }
.pf-burger__bars::before { position: absolute; top: -6px; }
.pf-burger__bars::after { position: absolute; top: 6px; }
.pf-burger[aria-expanded="true"] .pf-burger__bars { background: transparent; }
.pf-burger[aria-expanded="true"] .pf-burger__bars::before { top: 0; transform: rotate(45deg); }
.pf-burger[aria-expanded="true"] .pf-burger__bars::after { top: 0; transform: rotate(-45deg); }

.pf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(16, 58, 94, .08); }
.pf-nav.is-open { display: block; }
.pf-menu { display: flex; flex-direction: column; }
.pf-menu a { display: block; padding: 12px 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.pf-menu a:hover, .pf-menu .current-menu-item > a, .pf-menu .current-menu-ancestor > a, .pf-menu .current-category-ancestor > a { color: var(--green-ink); text-decoration: none; }
.pf-menu .sub-menu { padding-left: 16px; }

.pf-search { display: flex; align-items: stretch; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.pf-search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: .9375rem; color: var(--ink); background: transparent; }
.pf-search input:focus { outline: none; }
.pf-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(0, 143, 97, .25); }
.pf-search button { border: 0; background: var(--mist); color: var(--navy); padding: 0 14px; cursor: pointer; font: inherit; font-weight: 600; }
.pf-search button:hover { background: var(--navy); color: #fff; }
.pf-search--page { max-width: 460px; margin-inline: auto; margin-top: 20px; }

/* Barre de rubriques */
.pf-cats { background: var(--mist); border-top: 1px solid var(--line); }
.pf-cats .pf-wrap { overflow-x: auto; scrollbar-width: none; }
.pf-cats .pf-wrap::-webkit-scrollbar { display: none; }
.pf-cats ul { display: flex; gap: 4px; white-space: nowrap; }
.pf-cats a { display: block; padding: 10px 12px; font-size: .875rem; font-weight: 600; color: var(--navy); border-bottom: 2px solid transparent; }
.pf-cats a:hover, .pf-cats a[aria-current] { color: var(--green-ink); border-bottom-color: var(--green); text-decoration: none; }

/* Cartes ----------------------------------------------------------------- */
.pf-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pf-card__media { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pf-card:hover .pf-card__media img { transform: scale(1.025); }
.pf-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--mist), var(--line)); }
.pf-card__cat { margin-bottom: 6px; }
.pf-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); }
a.pf-tag:hover { text-decoration: underline; }
.pf-card__title { font-size: 1.0625rem; font-weight: 700; }
.pf-card__title a { color: var(--navy); }
.pf-card__title a:hover { color: var(--green-ink); text-decoration: none; }
.pf-card__excerpt { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.pf-card__meta { margin-top: 8px; font-size: .8125rem; color: var(--muted); }

/* Une */
.pf-hero { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 8px; }
.pf-card--lead .pf-card__title { font-size: 1.5rem; line-height: 1.2; }
.pf-card--lead .pf-card__excerpt { font-size: 1rem; }
.pf-hero__side { display: grid; gap: 24px; align-content: start; }
.pf-card--side .pf-card__media { aspect-ratio: 16 / 9; }
.pf-card--side .pf-card__title { font-size: 1.125rem; }

/* Blocs et grilles */
.pf-block { padding-top: 40px; }
.pf-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); position: relative; }
.pf-block__head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--green); }
.pf-block__head h2 { font-size: 1.25rem; font-weight: 700; }
.pf-block__head h2 a { color: inherit; }
.pf-block__head h2 a:hover { color: var(--green-ink); text-decoration: none; }
.pf-more { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.pf-grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr; }

.pf-section { display: grid; gap: 24px; }
.pf-section__list { display: grid; gap: 18px; align-content: start; }
.pf-card--row { flex-direction: row; gap: 14px; align-items: flex-start; }
.pf-card--row .pf-card__media { flex: 0 0 120px; }
.pf-card--row .pf-card__body { min-width: 0; }
.pf-card--row .pf-card__title { font-size: 1rem; }
.pf-card--row .pf-card__meta { margin-top: 4px; }
.pf-section__lead .pf-card__title { font-size: 1.25rem; }
.pf-section__lead .pf-card__media { aspect-ratio: 16 / 9; }

/* Article ---------------------------------------------------------------- */
.pf-crumbs { padding-top: 20px; font-size: .8125rem; }
.pf-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); }
.pf-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--muted); }
.pf-crumbs a { color: var(--muted); }
.pf-crumbs a:hover { color: var(--green-ink); }
.pf-crumbs [aria-current] { color: var(--navy); }

.pf-article__head { padding: 20px 0 24px; }
.pf-article__cat { margin-bottom: 10px; }
.pf-article__title { font-size: 1.75rem; font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
.pf-article__meta { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.pf-article__meta a { color: var(--navy); font-weight: 600; }
.pf-article__figure { margin: 0 0 32px; }
.pf-article__figure img { width: 100%; height: auto; border-radius: var(--radius); }
.pf-article__figure figcaption { margin-top: 8px; font-size: .8125rem; color: var(--muted); }

.pf-content { font-size: 1.125rem; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.pf-content p, .pf-content ul, .pf-content ol, .pf-content dl, .pf-content blockquote, .pf-content figure, .pf-content table, .pf-content pre { margin: 0 0 1.25em; }
.pf-content > :last-child { margin-bottom: 0; }
.pf-content h2 { font-size: 1.5rem; margin: 2em 0 .6em; font-weight: 700; }
.pf-content h3 { font-size: 1.25rem; margin: 1.7em 0 .5em; font-weight: 700; }
.pf-content h4 { font-size: 1.0625rem; margin: 1.5em 0 .4em; font-weight: 700; }
.pf-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pf-content ul, .pf-content ol { padding-left: 1.4em; }
.pf-content ul { list-style: disc; }
.pf-content ol { list-style: decimal; }
.pf-content li + li { margin-top: .4em; }
.pf-content li::marker { color: var(--green); }
.pf-content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--green); color: var(--navy); font-size: 1.125rem; }
.pf-content img { border-radius: var(--radius); }
.pf-content figure { margin-inline: 0; }
.pf-content figcaption, .pf-content .wp-caption-text { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.pf-content .wp-caption { max-width: 100%; }
.pf-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.pf-content th { background: var(--navy); color: #fff; text-align: left; }
.pf-content th, .pf-content td { padding: 10px 12px; border: 1px solid var(--line); }
.pf-content tr:nth-child(even) td { background: var(--mist); }
.pf-content iframe, .pf-content video { max-width: 100%; }

/* Blocs générés dans les articles (infographies, À retenir, FAQ, sources…) */
.pf-content .bt-infographic { margin: 2em 0; padding: 20px; background: var(--mist); border-radius: var(--radius); border-top: 4px solid var(--green); }
.pf-content .bt-infographic-head { margin-bottom: 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.pf-content .bt-infographic-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pf-content .bt-stat { padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.pf-content .bt-stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--navy); overflow-wrap: anywhere; }
.pf-content .bt-stat-label { margin-top: 6px; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.pf-content .bt-stat-sub { margin-top: 4px; font-size: .8125rem; line-height: 1.4; color: var(--muted); }

.pf-content .bt-takeaways-section, .pf-content .naiw-takeaways-section, .pf-content .bt-essentiel { margin: 2em 0; padding: 20px 22px; background: var(--mist); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.pf-content .bt-takeaways-section h2, .pf-content .naiw-takeaways-section h2, .pf-content .bt-essentiel-header { margin: 0 0 .6em; font-size: 1.125rem; }
.pf-content .bt-takeaways-section ul, .pf-content .naiw-takeaways-section ul, .pf-content .bt-essentiel ul { margin: 0; font-size: 1rem; }

.pf-content .bt-faq-section, .pf-content .naiw-faq-section { margin: 2.5em 0 2em; }
.pf-content .bt-faq-section h2, .pf-content .naiw-faq-section h2 { margin-top: 0; }
.pf-content .bt-faq-list, .pf-content .naiw-faq-list { margin: 0; border-top: 1px solid var(--line); }
.pf-content .bt-faq-list dt, .pf-content .naiw-faq-list dt { margin: 0; padding: 16px 0 4px; font-weight: 700; color: var(--navy); }
.pf-content .bt-faq-list dd, .pf-content .naiw-faq-list dd { margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; }

.pf-content .bt-sources-section, .pf-content .naiw-sources-section { margin: 2.5em 0 1em; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.pf-content .bt-sources-section h2, .pf-content .naiw-sources-section h2 { margin: 0 0 .6em; font-size: 1rem; }
.pf-content .bt-sources-section ul { margin: 0; }
.pf-content .bt-sources-section a { overflow-wrap: anywhere; }
.pf-content .bt-cite { font-size: .7em; line-height: 0; }
.pf-content .bt-cite a { text-decoration: none; font-weight: 700; }
.pf-content .bt-ai-disclosure { margin-top: 2em; font-size: .8125rem; color: var(--muted); }

.pf-content .enjeux-box { margin: 2em 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.pf-content .enjeux-header { margin: 0 0 12px; font-size: 1.125rem; }
.pf-content .enjeux-item { display: flex; align-items: flex-start; gap: 12px; }
.pf-content .enjeux-bar { flex: none; align-self: stretch; width: 4px; border-radius: 2px; }
.pf-content .enjeux-icon { flex: none; }
.pf-content .enjeux-title { font-weight: 700; color: var(--navy); }
.pf-content .enjeux-text { margin-top: 2px; font-size: .9375rem; line-height: 1.55; }
.pf-content .enjeux-separator { height: 1px; margin: 14px 0; background: var(--line); }

.pf-content .bar-wrapper { margin: 0 0 10px; }
.pf-content .bar { height: 10px; border-radius: 5px; background: var(--green); }
.pf-content .bar-label { margin-top: 4px; font-size: .875rem; font-weight: 600; }

.pf-content .naiw-timeline-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 0 0 18px 0; }
.pf-content .naiw-timeline-date { font-weight: 800; color: var(--green-ink); }
.pf-content .naiw-timeline-title { font-weight: 700; color: var(--navy); }
.pf-content .naiw-data-table { font-size: .9375rem; }

.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pf-tags a { display: inline-block; padding: 4px 12px; font-size: .8125rem; font-weight: 600; background: var(--mist); color: var(--navy); border-radius: 999px; }
.pf-tags a:hover { background: var(--navy); color: #fff; text-decoration: none; }

.pf-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 20px; background: var(--mist); border-radius: var(--radius); border-left: 4px solid var(--green); }
.pf-author__img { border-radius: 50%; width: 64px; height: 64px; flex: none; }
.pf-author__name { font-weight: 700; }
.pf-author__name a { color: var(--navy); }
.pf-author__bio { margin-top: 4px; font-size: .9375rem; color: var(--muted); }

/* Archives, recherche, 404 ----------------------------------------------- */
.pf-archive { padding-bottom: 8px; }
.pf-archive__head { padding: 28px 0 28px; }
.pf-archive__head h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; padding-bottom: 12px; position: relative; }
.pf-archive__head h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--green); }
.pf-archive__head--center { text-align: center; }
.pf-archive__head--center h1::after { left: 50%; transform: translateX(-50%); }
.pf-archive__desc { margin-top: 14px; max-width: 720px; color: var(--muted); }
.pf-archive__head--center .pf-archive__desc { margin-inline: auto; }
.pf-404 { font-size: 4rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 8px; }
.pf-empty { padding: 24px 0 48px; color: var(--muted); text-align: center; }
.pf-h2 { font-size: 1.25rem; margin: 32px 0 20px; }

.pf-pagination { margin-top: 48px; }
.pf-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pf-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); font-weight: 600; background: var(--white); }
.pf-pagination a.page-numbers:hover { border-color: var(--green); color: var(--green-ink); text-decoration: none; }
.pf-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pf-pagination .dots { border-color: transparent; }

/* Pied de page ----------------------------------------------------------- */
.pf-footer { margin-top: 24px; background: var(--mist); border-top: 3px solid var(--green); color: var(--ink); }
.pf-footer__grid { display: grid; gap: 32px; padding-block: 40px; }
.pf-footer__brand .pf-logo__img { height: 56px; }
.pf-footer__brand p { margin-top: 14px; max-width: 360px; font-size: .9375rem; color: var(--muted); }
.pf-footer__col h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.pf-footer__col li + li { margin-top: 8px; }
.pf-footer__col a { color: var(--ink); font-size: .9375rem; }
.pf-footer__col a:hover { color: var(--green-ink); }
.pf-footer__bottom { background: var(--navy); color: #dbe7f0; font-size: .8125rem; }
.pf-footer__bottom .pf-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 14px; }
.pf-footer__bottom a { color: #fff; }

/* Tablette --------------------------------------------------------------- */
@media (min-width: 601px) {
  :root { --gutter: 24px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-hero__side { grid-template-columns: 1fr 1fr; }
  .pf-article__title { font-size: 2.25rem; }
  .pf-archive__head h1 { font-size: 2.125rem; }
  .pf-footer__grid { grid-template-columns: 1fr 1fr; }
  .pf-footer__brand { grid-column: 1 / -1; }
}

/* Ordinateur ------------------------------------------------------------- */
@media (min-width: 901px) {

  .pf-hero { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 36px; padding-top: 32px; }
  .pf-hero__side { grid-template-columns: 1fr; gap: 28px; }
  .pf-card--lead .pf-card__title { font-size: 2rem; }
  .pf-card--lead .pf-card__excerpt { font-size: 1.0625rem; }
  .pf-block { padding-top: 56px; }
  .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
  .pf-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
  .pf-section { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; }
  .pf-card--row .pf-card__media { flex-basis: 150px; }
  .pf-section__list { gap: 22px; }
  .pf-article__title { font-size: 2.75rem; }
  .pf-content { font-size: 1.125rem; }
  .pf-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
  .pf-footer__brand { grid-column: auto; }
}

/* Navigation complète à partir de 1260 px (recherche compacte), recherche élargie dès 1366 px */
@media (min-width: 1260px) {
  .pf-header__row { min-height: 76px; gap: 24px; }
  .pf-logo__img { height: 62px; max-width: 250px; }
  .pf-burger { display: none; }
  .pf-nav { display: flex; position: static; flex: 1; align-items: center; justify-content: space-between; padding: 0; border: 0; box-shadow: none; background: none; }
  .pf-menu { flex-direction: row; gap: 2px; }
  .pf-menu > li { position: relative; }
  .pf-menu a { white-space: nowrap; padding: 10px 8px; border: 0; border-bottom: 2px solid transparent; font-size: .875rem; }
  .pf-menu a:hover, .pf-menu .current-menu-item > a, .pf-menu .current-menu-ancestor > a { border-bottom-color: var(--green); }
  .pf-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 24px rgba(16, 58, 94, .1); display: none; z-index: 30; }
  .pf-menu li:hover > .sub-menu, .pf-menu li:focus-within > .sub-menu { display: block; }
  .pf-menu .sub-menu a { border: 0; padding: 8px 16px; }
  .pf-search { margin-top: 0; width: 140px; flex: none; }
  .pf-search input { padding: 10px 8px 10px 12px; font-size: .8125rem; }
  .pf-search button { padding: 0 10px; }
  .pf-search--page { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card__media img, .pf-burger__bars, .pf-burger__bars::before, .pf-burger__bars::after { transition: none; }
  .pf-card:hover .pf-card__media img { transform: none; }
}

@media print {
  .pf-header, .pf-footer, .pf-cats, .pf-related, .pf-pagination { display: none; }
  .pf-content { font-size: 11pt; }
}
