:root{--surface-reading:#fbfcfa;--surface-sage:#e4ece3;--surface-soft:#f0f4ee;--surface-forest:#153e35;--on-forest:#f8f6f0;--on-forest-muted:#dce6dc;--accent-gold:#d5be89}
body{background:var(--surface-reading)}
#contenu:has(> .breadcrumbs + :is(.gmp-family,.gmp-salary)){background-color:var(--paper)}

#contenu .breadcrumbs{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:0 10px;
 padding-block:4px;
 font-size:.8125rem;
 line-height:1.45;
}
#contenu .breadcrumbs > :is(a,[aria-current="page"]){
 display:inline-flex;
 align-items:center;
 gap:10px;
 min-width:0;
 overflow-wrap:anywhere;
}
#contenu .breadcrumbs > a{
 min-height:34px;
 color:var(--muted);
 text-decoration:none;
}
#contenu .breadcrumbs > a:hover{
 color:var(--ink);
 text-decoration:underline;
 text-underline-offset:3px;
}
#contenu .breadcrumbs > a:focus-visible{
 outline:2px solid var(--ink);
 outline-offset:2px;
}
#contenu .breadcrumbs > [aria-current="page"]{
 color:var(--ink);
 font-weight:650;
}
#contenu .breadcrumbs > svg{display:none}
#contenu .breadcrumbs > svg + :is(a,[aria-current="page"])::before{
 content:"";
 width:5px;
 height:5px;
 flex:none;
 border:solid var(--muted);
 border-width:1px 1px 0 0;
 transform:rotate(45deg);
}
@media(max-width:600px){
 #contenu .breadcrumbs{gap:0 7px;font-size:.75rem}
 #contenu .breadcrumbs > :is(a,[aria-current="page"]){gap:8px}
 #contenu .breadcrumbs > a{min-height:44px}
}

.life-section,.resources,.homepage-faq{background:var(--surface-reading)}
.theme-section{background:var(--surface-sage)}
.human-journal{background:var(--surface-soft)}
.human-support{background:var(--surface-forest)}
.n1-subjects{background:var(--surface-sage)}
.n1-resources{background:var(--surface-soft)}
.n1-reading-summary,.blog-article-summary{background:var(--surface-sage)}
.n1-jump{background:var(--surface-sage)}
.n1-conversation{width:100%;max-width:none;margin-inline:0;padding-inline:max(24px,calc((100% - 1168px)/2));background:var(--surface-forest);color:var(--on-forest)}
.n1-conversation h2,.n1-conversation h3{color:var(--on-forest)}
.n1-conversation h2 em,.n1-conversation h3 em{color:var(--accent-gold)}
.n1-conversation p,.n1-conversation li{color:var(--on-forest-muted)}
.n1-conversation .text-link{color:var(--accent-gold)}
.n1-conversation .button{background:var(--accent-gold);color:var(--surface-forest);border-color:var(--accent-gold)}
.n1-conversation .button:hover{background:#e5d3ad;color:var(--surface-forest)}
.n1-reading-next,.blog-article-contact{background:var(--surface-forest);color:var(--on-forest)}
.n1-reading-next h2,.blog-article-contact h2{color:var(--on-forest)}
.n1-reading-next h2 em,.blog-article-contact h2 em{color:var(--accent-gold)}
.n1-reading-next p,.blog-article-contact p{color:var(--on-forest-muted)}
.n1-reading-next .button,.blog-article-contact .button{background:var(--accent-gold);color:var(--surface-forest);border-color:var(--accent-gold)}
.n1-reading-next .button:hover,.blog-article-contact .button:hover{background:#e5d3ad;color:var(--surface-forest)}
.n1-reading-next .text-link,.blog-article-contact .text-link{color:var(--accent-gold)}
.n2-continue{background:var(--surface-soft);padding:40px;margin-top:20px;margin-bottom:64px}
.n2-resource-card,.library-card,.blog-hub-card{background:#fff}
.n3-document-repere,.blog-editorial-repere,.n2-simulation{background:var(--surface-soft)}
.blog-hub.blog-hub-archive .blog-hub-feature{background:var(--surface-forest);color:var(--on-forest)}
.blog-hub.blog-hub-archive .blog-hub-feature h2{color:var(--on-forest)}
.blog-hub.blog-hub-archive .blog-hub-feature h2 em{color:var(--accent-gold)}
.blog-hub.blog-hub-archive .blog-hub-feature p,.blog-hub.blog-hub-archive .blog-hub-feature .blog-hub-byline{color:var(--on-forest-muted)}
.blog-hub.blog-hub-archive .blog-hub-feature .text-link{color:var(--accent-gold)}
.blog-hub.blog-hub-archive .blog-hub-feature a:hover{color:#fff1cf}
.blog-hub-next{background:var(--surface-sage)}
.blog-hub-categories>a,.blog-hub-categories>span,.blog-hub-filters button{background:var(--surface-sage)}
.blog-hub-categories [aria-current=page],.blog-hub-filters button[aria-pressed=true]{background:var(--surface-forest);color:var(--on-forest)}
.n1-conversation a:focus-visible,.n1-reading-next a:focus-visible,.blog-article-contact a:focus-visible,.blog-hub-feature a:focus-visible{outline-color:var(--accent-gold)}
@media(max-width:750px){.n2-continue{padding:28px 22px;margin-bottom:44px}.n1-conversation{padding-inline:20px}.blog-hub-next{background:var(--surface-sage)}}

/* Une alternance commune aux entrées thématiques et aux cards de maillage. */
:is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article,.n2-resource-track>li){
 --card-bg:#f8f6f0;--card-hover:#efeee7;--card-ink:#153e35;--card-body:#36574b;--card-accent:#36574b;--card-line:#dedfd5;--card-focus:#92713e;
}
:is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article,.n2-resource-track>li):nth-child(4n+1){
 --card-bg:#153e35;--card-hover:#1c4c41;--card-ink:#faf8f2;--card-body:#d7e5d9;--card-accent:#e5cda0;--card-line:#153e35;--card-focus:#e5cda0;
}
:is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article,.n2-resource-track>li):nth-child(4n+2){
 --card-bg:#dfe8dc;--card-hover:#d4e0d0;--card-line:#d0dcce;
}
:is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article,.n2-resource-track>li):nth-child(4n+3){
 --card-bg:#efe4d1;--card-hover:#e8dac0;--card-line:#e2d5bd;
}
:is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article>a,.n2-resource-track>li>.n2-resource-card){
 background:var(--card-bg);color:var(--card-ink);border:1px solid var(--card-line);border-radius:0;
 transition:background-color 180ms ease,border-color 180ms ease;
}
:is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article,.n2-resource-track>li) :is(h3,h3>a,.theme-card-link){color:var(--card-ink)}
:is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article,.n2-resource-track>li) p{color:var(--card-body)}
.theme-card-grid>.theme-card .theme-card-action,.n1-connection-grid>article>a>div>span,.n2-resource-track>li>.n2-resource-card>div>span{color:var(--card-accent)}
:is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article,.n2-resource-track>li) a:focus-visible{outline:2px solid var(--card-focus);outline-offset:-5px}
@media(hover:hover) and (pointer:fine){
 :is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article>a,.n2-resource-track>li>.n2-resource-card):hover{background:var(--card-hover);border-color:var(--card-line);color:var(--card-ink)}
}
@media(prefers-reduced-motion:reduce){
 :is(.theme-card-grid>.theme-card,.n1-subject-grid>article,.n1-connection-grid>article>a,.n2-resource-track>li>.n2-resource-card){transition:none}
}

/* Le fond des ressources associées se prolonge jusqu’aux bords de l’écran. */
.n2-continue {
 border-image: linear-gradient(var(--surface-soft), var(--surface-soft)) 0 fill / 0 / 0 100vw;
}

/* Fonds de bord à bord pour les outils et ressources associés. */
:is(.gmp-dossier, .gmp-guide) > .gmp-context-tools,
.gmp-dossier > .gmp-dossier-questions,
.gmp-family > section#ressources-associees,
.gmp-tool-page > .gmp-tax-result-guides {
 --associated-background: var(--surface-soft);
 background-color: var(--associated-background);
 border-image: linear-gradient(var(--associated-background), var(--associated-background)) 0 fill / 0 / 0 100vw;
}

:is(.gmp-dossier, .gmp-guide) > .gmp-context-tools {
 --associated-background: var(--paper, #f8f6f0);
}



/* Fiches du lexique : définition, exemple et ressources. */
.gmp-lex-surface:has(> .gmp-lex-entry) > .gmp-model-title {
  padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.4vw, 2rem);
}
.gmp-lex-surface:has(> .gmp-lex-entry) > .gmp-model-title h1 {
  font-size: clamp(2rem, 4.1vw, 3.375rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.gmp-lex-surface .gmp-guide-body.gmp-lex-entry {
  --lex-column-gap: clamp(2rem, 6vw, 5rem);
  --lex-content-space: clamp(1.75rem, 4vw, 3.5rem);
  --lex-resources-space: clamp(1.5rem, 3vw, 2.75rem);
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--lex-column-gap);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.gmp-lex-surface .gmp-lex-entry > section > h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.gmp-lex-surface .gmp-lex-entry > section > p {
  line-height: 1.65;
  margin: 0;
}
.gmp-lex-surface .gmp-lex-entry > .gmp-lex-definition {
  background: transparent;
  padding: 0;
  margin-bottom: 1.25rem;
}
.gmp-lex-surface .gmp-lex-entry > .gmp-lex-definition > p {
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
  color: var(--ink);
}
.gmp-lex-surface .gmp-lex-entry > .gmp-lex-example {
  background: var(--paper, #f8f6f0);
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: var(--lex-content-space);
}
.gmp-lex-surface .gmp-lex-entry > :is([aria-labelledby="reperes"], .gmp-lex-related) {
  background-color: var(--surface-soft);
  border-image: linear-gradient(var(--surface-soft), var(--surface-soft)) 0 fill / 0 / 0 100vw;
  padding-block: var(--lex-resources-space);
  align-self: stretch;
}
.gmp-lex-surface .gmp-lex-entry > [aria-labelledby="reperes"]:has(+ .gmp-lex-related) {
  padding-bottom: 0;
}
.gmp-lex-surface .gmp-lex-entry > [aria-labelledby="reperes"] .button {
  min-height: 44px;
  max-width: 100%;
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.gmp-lex-surface .gmp-lex-entry > [aria-labelledby="reperes"] .button > span {
  flex: none;
}
.gmp-lex-surface .gmp-lex-entry .gmp-lex-related ul {
  display: grid;
  gap: 0;
  margin: 0;
}
.gmp-lex-surface .gmp-lex-entry .gmp-lex-related li + li {
  border-top: 1px solid #d5e0d3;
}
.gmp-lex-surface .gmp-lex-entry .gmp-lex-related a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0.25rem 0.5rem 0;
  background: transparent;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.gmp-lex-surface .gmp-lex-entry .gmp-lex-related a::after {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
  flex: none;
}
.gmp-lex-surface .gmp-lex-entry .gmp-lex-related a:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.gmp-lex-surface .gmp-lex-entry > details.gmp-lex-sources {
  margin-top: 0.75rem;
  background: transparent;
  border-width: 0 0 1px;
  border-color: #d5e0d3;
}
.gmp-lex-surface .gmp-lex-entry > details.gmp-lex-sources > summary {
  min-height: 44px;
  padding-inline: 0 0.25rem;
}
.gmp-lex-surface .gmp-lex-entry > .gmp-lex-return {
  margin: 0.65rem 0 0;
}
.gmp-lex-surface .gmp-lex-entry > .gmp-lex-return > a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
}
.gmp-lex-surface .gmp-lex-entry :is(a, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (min-width: 840px) {
  .gmp-lex-surface .gmp-guide-body.gmp-lex-entry {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .gmp-lex-surface .gmp-lex-entry > :is(.gmp-lex-definition, .gmp-lex-example) {
    margin-bottom: var(--lex-content-space);
  }
  .gmp-lex-surface .gmp-lex-entry > [aria-labelledby="reperes"]:has(+ .gmp-lex-related) {
    grid-column: 1;
    padding-bottom: var(--lex-resources-space);
    border-image-outset: 0 var(--lex-column-gap) 0 100vw;
  }
  .gmp-lex-surface .gmp-lex-entry > [aria-labelledby="reperes"] + .gmp-lex-related {
    grid-column: 2;
    border-image-outset: 0 100vw 0 0;
  }
}
