  /* =========================================================================
     rpaavendre.com — Système de couleurs v2026
     Base : charbon chaud (nuit, défaut)  ·  Accent : doré #DDB94A  ·  Texte : blanc pur.
     Mode jour (Cloud Dancer) prêt via <html class="theme-jour"> — non branché au lancement.
     Le logo n'est JAMAIS thématisé : le rouge de marque ne subsiste QUE dans le logo.
     L'accent doré est décoratif : jamais un indicateur de taux, de rétribution ou de commission (Règle #0).
     ========================================================================= */
  :root {
    --rpa-bg: #1B1A17; --rpa-surface-1: #403B32; --rpa-surface-2: #4B453B;
    --rpa-border: #565046; --rpa-border-strong: #423F39;
    --rpa-card-shadow: 0 16px 34px rgba(0,0,0,0.62); /* élévation NEUTRE des cartes sombres */
    --rpa-text: #FFFFFF; --rpa-text-secondary: #ADA396; --rpa-text-muted: #8B8175;
    --rpa-accent: #DDB94A; --rpa-accent-hover: #CBA83C; --rpa-accent-active: #B8962F;
    --rpa-accent-contrast: #241B0C; --rpa-accent-text: #DDB94A; --rpa-accent-tint: #26210F;
    --rpa-accent-on-light: #8A6B22; /* petit texte doré sur surface claire (cartes) — contraste AA */
    --rpa-focus-ring: 0 0 0 2px var(--rpa-bg), 0 0 0 4px var(--rpa-accent);
    --rpa-font-display: 'Sora','Helvetica Neue',Arial,sans-serif;
    --rpa-font-body: 'Inter','Helvetica Neue',Arial,sans-serif;

    /* Compatibilité : anciens noms → nouvelle palette.
       Accent (émeraude / or vif) → rouge ; décoratif hérité (or) → neutre anthracite. */
    --void: var(--rpa-bg);
    --pine: var(--rpa-bg); --pine-card: var(--rpa-surface-1); /* sections « alt » = charbon (cartes détachées) */
    --emerald: var(--rpa-accent); --emerald-soft: var(--rpa-accent); --emerald-deep: var(--rpa-accent-active);
    --gold: var(--rpa-text-secondary); --gold-bright: var(--rpa-accent);
    --ivory: var(--rpa-text); --ivory-mute: var(--rpa-text-secondary);
    --line: var(--rpa-border); --line-em: var(--rpa-border-strong); --line-soft: var(--rpa-border);
    --display: var(--rpa-font-display); --body: var(--rpa-font-body);
  }

  /* Mode jour (Cloud Dancer) — prêt, activé plus tard par <html class="theme-jour">. */
  .theme-jour {
    --rpa-bg: #F2F0EA; --rpa-surface-1: #FBFAF6; --rpa-surface-2: #FFFFFF;
    --rpa-border: #E4E1D8; --rpa-border-strong: #D8D4C8;
    --rpa-text: #1A1A17; --rpa-text-secondary: #5E5C54; --rpa-text-muted: #8C897E;
    --rpa-accent: #DDB94A; --rpa-accent-hover: #CBA83C; --rpa-accent-active: #B8962F;
    --rpa-accent-contrast: #241B0C; --rpa-accent-text: #8A6B22; --rpa-accent-tint: #F6EFD8;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: var(--body); background: var(--void); color: var(--ivory); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  a { color: inherit; }
  img { max-width: 100%; }
  /* Focus clavier visible — accessibilité (aucun style de focus auparavant). */
  a:focus-visible, button:focus-visible, input:focus-visible,
  .nav-cta:focus-visible, .btn-primary:focus-visible, .btn-ghost:focus-visible {
    outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 3px;
  }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
  .eyebrow { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--emerald-soft); margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
  .eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line-em); max-width: 110px; }
  em { font-style: normal; }

  /* disclosure — Règle #0 */
  .disclosure-top { background: var(--rpa-surface-1); color: var(--rpa-text-secondary); font-size: 11.5px; text-align: center; padding: 8px 16px; letter-spacing: .01em; border-bottom: 1px solid var(--line-soft); }
  .disclosure-top b { color: var(--gold); font-weight: 500; }

  .site-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 5; }
  .brand { display: inline-flex; align-items: center; text-decoration: none; }
  .brand-logo { height: 96px; width: auto; display: block; }
  .nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--ivory-mute); }
  .nav-links a { text-decoration: none; transition: color .2s; }
  .nav-links a:hover { color: var(--ivory); }
  .nav-cta { font-family: var(--body); font-size: 13px; font-weight: 600; background: var(--rpa-accent); color: var(--rpa-accent-contrast); padding: 11px 20px; border-radius: 4px; text-decoration: none; transition: background .15s ease; }
  .nav-cta:hover { background: var(--rpa-accent-hover); }
  /* Sélecteur de langue FR / EN */
  .nav-end { display: flex; align-items: center; gap: 16px; }
  .lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px; }
  .lang-switch a { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ivory-mute); text-decoration: none; padding: 4px 11px; border-radius: 999px; transition: color .2s, background .2s; }
  .lang-switch a:hover { color: var(--ivory); }
  .lang-switch a.is-active { background: var(--emerald); color: var(--rpa-accent-contrast); }
  .lang-switch--panel { display: none; }

  /* Burger — masqué en desktop, affiché sous 820px. Le CTA « panneau » ne sert
     qu'au menu mobile ; en desktop c'est le CTA « barre » qui s'affiche. */
  .nav-cta--panel { display: none; }
  .nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line-soft); border-radius: 9px; cursor: pointer; transition: border-color .2s; }
  .nav-toggle:hover { border-color: var(--line-em); }
  .nav-toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--ivory); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { position: relative; padding: 70px 0 60px; }
  /* Halos décoratifs retirés (v2026) : rendu plat et net, pas de « glow ». */
  .hero .wrap { position: relative; z-index: 1; }
  .hero h1 { font-family: var(--display); font-size: clamp(36px,5.6vw,64px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; max-width: 17ch; margin-bottom: 26px; }
  .hero h1 .g { color: var(--rpa-accent); } .hero h1 .e { color: var(--rpa-accent); }
  .hero .lede { font-size: clamp(17px,2vw,21px); color: var(--ivory-mute); max-width: 52ch; margin-bottom: 38px; }
  .hero .lede strong { color: var(--ivory); font-weight: 500; border-bottom: 1px solid var(--emerald); }
  .hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
  /* Aplat solide, aucun glow : pas de box-shadow, pas de transform. Survol = fond plus foncé.
     L'anneau de focus clavier (.btn-primary:focus-visible ci-dessus) reste, pour l'accessibilité. */
  .btn-primary { font-family: var(--body); font-size: 15px; font-weight: 600; background: var(--rpa-accent); color: var(--rpa-accent-contrast); padding: 16px 30px; border-radius: 5px; text-decoration: none; transition: background .15s ease; }
  .btn-primary:hover { background: var(--rpa-accent-hover); }
  .btn-ghost { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--ivory); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 3px; transition: color .2s, border-color .2s; }
  .btn-ghost:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
  .trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 46px; font-size: 13px; color: var(--ivory-mute); }
  .trust span { display: flex; align-items: center; gap: 8px; }
  .trust b { color: var(--emerald-soft); font-weight: 600; }

  /* ecosystem / value bar — intégration Primexpert */
  .eco { padding: 20px 0 88px; }
  .eco-frame { background: var(--pine-card); border: 1px solid var(--line); border-radius: 18px; padding: 44px clamp(24px,5vw,56px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
  .eco-head { max-width: 30ch; margin-bottom: 34px; }
  .eco-head h2 { font-family: var(--display); font-size: clamp(24px,3.4vw,34px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
  .eco-head h2 em { color: var(--rpa-accent); }
  .eco-head p { color: var(--ivory-mute); font-size: 16px; margin-top: 16px; max-width: 58ch; }
  .track { position: relative; height: 26px; border-radius: 13px; background: rgba(255,255,255,.05); overflow: hidden; margin: 8px 0 18px; }
  .bar-now { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald)); border-radius: 13px 0 0 13px; transition: width 1.5s cubic-bezier(.22,1,.36,1); }
  .bar-add { position: absolute; top: 0; height: 100%; left: 0; width: 0; background: repeating-linear-gradient(45deg, rgba(221,185,74,.55) 0 9px, rgba(221,185,74,.22) 9px 18px); transition: width 1.5s cubic-bezier(.22,1,.36,1) .2s, left 1.5s cubic-bezier(.22,1,.36,1); }
  .legend { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; color: var(--ivory-mute); }
  .legend span { display: flex; align-items: center; gap: 8px; }
  .dot { width: 11px; height: 11px; border-radius: 3px; } .dot.e { background: var(--emerald); } .dot.g { background: var(--gold); }
  .eco-cross { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
  .eco-cross p { font-size: 14.5px; color: var(--ivory); max-width: 52ch; }
  .eco-cross a { color: var(--gold-bright); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
  .disclaimer { font-size: 12px; color: var(--rpa-text-muted); margin-top: 20px; line-height: 1.6; max-width: 72ch; }

  /* section shell */
  .section { padding: 84px 0; }
  .section.alt { background: var(--pine); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .section-head { max-width: 30ch; margin-bottom: 46px; }
  .section-head h2 { font-family: var(--display); font-size: clamp(26px,3.6vw,38px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
  .section-head h2 em { color: var(--emerald-soft); }
  .section-head p { color: var(--ivory-mute); font-size: 16px; margin-top: 16px; max-width: 58ch; }

  /* dossiers */
  .dossiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
  .dossier { background: var(--pine-card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 28px 26px; transition: transform .35s ease, border-color .35s ease; }
  .dossier:hover { transform: translateY(-6px); border-color: var(--line); }
  .dossier .region { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
  .dossier .meta { color: var(--ivory-mute); font-size: 14px; margin-top: 10px; line-height: 1.55; }
  .dossier .cat { display: inline-block; margin-top: 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald-soft); border: 1px solid var(--line-em); border-radius: 20px; padding: 5px 12px; }
  .dossier .conf { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--gold); letter-spacing: .01em; }
  .dossiers-note { text-align: center; margin-top: 34px; font-size: 14px; color: var(--ivory-mute); }
  .dossiers-note a { color: var(--emerald-soft); }

  /* steps */
  .steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
  .step .num { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .1em; margin-bottom: 14px; }
  .step .skicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-mute); margin-bottom: 8px; }
  .step h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
  .step p { font-size: 15px; color: var(--ivory-mute); }

  /* credibility */
  .cred { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
  .cred .quote { font-family: var(--display); font-size: clamp(20px,2.5vw,26px); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
  .cred .quote em { color: var(--gold-bright); }
  .cred .card { background: var(--pine-card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
  .cred .card .who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
  .cred .card .av { width: 52px; height: 52px; border-radius: 50%; background: var(--emerald); color: var(--rpa-accent-contrast); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 17px; }
  .cred .card .nm { font-weight: 600; font-size: 15px; } .cred .card .rl { color: var(--ivory-mute); font-size: 13px; margin-top: 2px; }
  .cred .card ul { list-style: none; border-top: 1px solid var(--line-soft); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
  .cred .card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ivory); }
  .cred .card li svg { flex: none; margin-top: 3px; }

  /* final */
  .final { padding: 96px 0; text-align: center; position: relative; }
  /* Halo décoratif retiré (v2026) : rendu plat. */
  .final .wrap { position: relative; }
  .final h2 { font-family: var(--display); font-size: clamp(30px,4.4vw,48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; max-width: 20ch; margin: 0 auto 20px; }
  .final h2 em { color: var(--emerald-soft); }
  .final p { color: var(--ivory-mute); font-size: 18px; max-width: 46ch; margin: 0 auto 34px; }
  .final .reverse { margin-top: 40px; font-size: 14.5px; color: var(--ivory-mute); }
  .final .reverse a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }

  .site-footer { background: var(--void); border-top: 1px solid var(--line-soft); padding: 46px 0 40px; }
  .site-footer .grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
  .site-footer .fbrand-logo { height: 88px; width: auto; display: block; }
  .site-footer .fcontact { font-size: 14px; color: var(--ivory-mute); text-align: right; line-height: 1.9; }
  .site-footer .fcontact a { color: var(--ivory); text-decoration: none; }
  .site-footer .disclosure-full { font-size: 12px; color: var(--rpa-text-secondary); line-height: 1.7; border-top: 1px solid var(--line-soft); padding-top: 24px; }
  .site-footer .disclosure-full b { color: var(--gold); font-weight: 500; }

  .reslist { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
  .rescard { display: block; text-decoration: none; color: inherit; background: var(--pine-card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 30px 26px; transition: transform .35s ease, border-color .35s ease; }
  .rescard:hover { transform: translateY(-6px); border-color: var(--line); }
  .rescard .ic { width: 46px; height: 46px; border-radius: 11px; background: var(--rpa-accent-tint); color: var(--rpa-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
  .rescard h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
  .rescard p { font-size: 15px; color: var(--ivory-mute); }
  .rescard .go { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--emerald-soft); }
  .partners { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
  .partner { background: var(--pine-card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 26px; }
  .partner .pcat { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--emerald-soft); letter-spacing: -.01em; }
  .partner .pfirms { color: var(--ivory-mute); font-size: 14px; margin-top: 8px; line-height: 1.5; }
  .rqra { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--rpa-accent-tint); border: 1px solid var(--rpa-border-strong); border-radius: 16px; padding: 26px 30px; margin-bottom: 24px; }
  .rqra-badge { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rpa-accent); font-weight: 600; }
  /* Logo RQRA : marque de commerce d'un tiers — couleurs d'origine, JAMAIS thématisé. */
  .rqra-main { display: flex; align-items: center; gap: 22px; }
  .rqra-logo { flex: none; display: block; }
  .rqra-logo img { display: block; width: 112px; height: 112px; }
  @media (max-width: 640px) { .rqra-logo img { width: 88px; height: 88px; } }
  .rqra h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 10px 0 8px; letter-spacing: -.01em; }
  .rqra p { color: var(--ivory-mute); font-size: 14.5px; max-width: 58ch; }
  .team { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 20px; }
  .team-status { grid-column: 1 / -1; color: var(--ivory-mute); font-size: 16px; }
  .member { background: var(--pine-card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 28px 22px; text-align: left; transition: transform .35s ease, border-color .35s ease; }
  .member:hover { transform: translateY(-6px); border-color: var(--line); }
  .member .av { width: 62px; height: 62px; border-radius: 50%; background: var(--emerald); color: var(--rpa-accent-contrast); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 16px; }
  .member .av.alt { background: var(--rpa-accent-tint); color: var(--rpa-accent); border: 1px dashed var(--rpa-border-strong); font-size: 15px; }
  .member .nm { font-family: var(--display); font-weight: 600; font-size: 16px; }
  .member .rl { color: var(--ivory-mute); font-size: 16px; margin-top: 8px; line-height: 1.5; }
  .member-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 18px; }
  .member-contact a { display: inline-block; color: var(--gold-bright); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; text-underline-offset: 4px; }
  .member-contact a:hover { text-decoration: underline; }
  .member-contact a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

  /* ===== Gabarits internes (pages, articles, listes, recherche, 404) ===== */
  .page-hero { padding: 40px 0 8px; }
  .page-hero .eyebrow { margin-bottom: 16px; }
  .page-hero .page-title { font-family: var(--display); font-size: clamp(28px,4vw,44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; max-width: 24ch; }
  .page-hero--center { text-align: center; padding: 64px 0 40px; }
  .page-hero--center .page-title { margin: 0 auto; }
  .page-hero--center .eyebrow { justify-content: center; }
  .page-hero--center .eyebrow::after { display: none; }
  .page-lede { color: var(--ivory-mute); font-size: 17px; margin-top: 16px; max-width: 60ch; }
  .page-hero--center .page-lede { margin: 16px auto 0; }
  .page-search { margin-top: 22px; max-width: 460px; }
  .page-hero--center .page-search { margin: 22px auto 26px; }
  .section-inner { padding: 32px 0 72px; }

  /* Formulaires de leads (embed app copilote). On ne stylise QUE le conteneur ;
     le formulaire lui-même est rendu et habillé par l'app copilote. */
  .lead-block { margin-top: 40px; }
  .lead-title { font-family: var(--display); font-size: clamp(20px,2.6vw,26px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 18px; }
  /* Conteneur pleine largeur (= largeur du texte). Le formulaire lui-même est
     rendu et coloré par l'app copilote ; on ne maîtrise ici que sa largeur. */
  .rpa-lead-form { width: 100%; max-width: none; }
  .rpa-lead-form > div { width: 100%; }
  .lead-note { margin-top: 14px; font-size: 13px; color: var(--rpa-text-muted); }

  .post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
  /* Cartes de listes (blogue, magazine, podcast, archives, recherche) : surface claire
     posée sur le charbon. Fond quasi-blanc (jamais #FFF pur), texte foncé, aplats nets. */
  .post-card { background: #FEFDFC; color: #2A2823; border: 1px solid #ECE7DB; border-radius: 14px; overflow: hidden; transition: transform .35s ease, border-color .35s ease; }
  .post-card:hover { transform: translateY(-6px); border-color: #E0D9C8; }
  .pc-link { display: block; text-decoration: none; color: inherit; height: 100%; }
  .pc-thumb { aspect-ratio: 16/9; overflow: hidden; background: #E3DED2; }
  .pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* Cartes « couverture » (Magazine Heyzine) : vignette portrait, allure de kiosque. */
  .post-card.is-cover .pc-thumb { aspect-ratio: 3 / 4; }
  .post-card.is-cover .pc-body { padding: 16px 16px 18px; }
  .post-card.is-cover .pc-title { font-size: 16px; }
  .post-card.is-cover .pc-go { margin-top: 12px; font-size: 13px; }
  /* Grille Magazine : 4 par ligne, pour tenir ~15 numéros sans allonger. */
  .mag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  @media (max-width: 1024px) { .mag-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 640px)  { .mag-grid { grid-template-columns: repeat(2, 1fr); } }
  .pc-body { padding: 22px 22px 24px; }
  .pc-meta { font-size: 12px; color: #6E6A5F; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .pc-cat { color: var(--rpa-accent-on-light); font-weight: 600; }
  .pc-dot { opacity: .5; }
  .pc-title { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: #2A2823; }
  .pc-excerpt { color: #6E6A5F; font-size: 14.5px; margin-top: 10px; }
  .pc-go { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--rpa-accent-on-light); }
  .empty-note { color: var(--ivory-mute); text-align: center; padding: 40px 0; }

  .pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
  .pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line-soft); border-radius: 9px; text-decoration: none; color: var(--ivory); font-size: 14px; font-variant-numeric: tabular-nums; }
  .pager .page-numbers:hover { border-color: var(--line-em); color: var(--emerald-soft); }
  .pager .page-numbers.current { background: var(--emerald); color: var(--rpa-accent-contrast); border-color: var(--emerald); font-weight: 600; }
  .pager .page-numbers.dots { border: none; }

  .single-thumb { max-width: 900px; margin: 0 auto 32px; border-radius: 16px; overflow: hidden; }
  .single-thumb img { width: 100%; height: auto; display: block; }
  .crumb { display: inline-block; margin-bottom: 18px; color: var(--emerald-soft); text-decoration: none; font-size: 14px; }
  .crumb:hover { color: var(--gold-bright); }
  .s-meta { font-size: 13px; color: var(--ivory-mute); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

  .prose { max-width: 68ch; margin: 0 auto; font-size: 17px; color: var(--rpa-text); line-height: 1.75; }
  .prose > * + * { margin-top: 1.15em; }
  .prose h2 { font-family: var(--display); color: var(--ivory); font-size: 1.55em; font-weight: 700; letter-spacing: -.02em; margin-top: 1.9em; line-height: 1.2; }
  .prose h3 { font-family: var(--display); color: var(--ivory); font-size: 1.28em; font-weight: 600; margin-top: 1.6em; }
  .prose a { color: var(--emerald-soft); text-decoration: underline; text-underline-offset: 3px; }
  .prose a:hover { color: var(--gold-bright); }
  .prose strong { color: var(--ivory); }
  .prose ul, .prose ol { padding-left: 1.35em; }
  .prose li + li { margin-top: .4em; }
  .prose img { max-width: 100%; height: auto; border-radius: 12px; }
  .prose blockquote { border-left: 3px solid var(--emerald); padding: 4px 0 4px 20px; margin-left: 0; color: var(--ivory-mute); font-style: italic; }
  .prose code { background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
  .prose pre { background: var(--pine-card); border: 1px solid var(--line-soft); padding: 16px 18px; border-radius: 12px; overflow-x: auto; }
  .prose pre code { background: none; padding: 0; }
  .prose hr { border: none; border-top: 1px solid var(--line-soft); }

  .rpa-search { display: flex; gap: 8px; }
  .rpa-search input[type="search"] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--pine-card); color: var(--ivory); font-size: 15px; }
  .rpa-search input[type="search"]::placeholder { color: var(--ivory-mute); }
  .rpa-search button { padding: 12px 18px; border: none; border-radius: 9px; background: var(--emerald); color: var(--rpa-accent-contrast); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s; }
  .rpa-search button:hover { background: var(--emerald-soft); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

  /* Page « Nos partenaires » */
  .partner-cat { margin-bottom: 48px; }
  .partner-cat .cat-title { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rpa-accent); padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
  .partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
  .partner-tile { background: var(--pine-card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .3s ease, transform .3s ease; }
  .partner-tile:hover { border-color: var(--line); transform: translateY(-4px); }
  .pt-logo { min-height: 56px; display: flex; align-items: center; }
  .pt-logo img { max-height: 60px; max-width: 180px; width: auto; height: auto; object-fit: contain; filter: saturate(0) brightness(1.7); opacity: .82; transition: filter .3s ease, opacity .3s ease; }
  .partner-tile:hover .pt-logo img { filter: none; opacity: 1; }
  .pt-name-logo { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ivory); }
  .pt-title { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
  .pt-person { display: flex; flex-direction: column; gap: 2px; }
  .pt-cname { font-weight: 600; color: var(--ivory); font-size: 14.5px; }
  .pt-role { color: var(--ivory-mute); font-size: 13.5px; line-height: 1.4; }
  .pt-blurb { color: var(--ivory-mute); font-size: 14px; }
  .pt-contact { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
  .pt-contact a { color: var(--ivory-mute); text-decoration: none; }
  .pt-contact a:hover { color: var(--emerald-soft); }
  .pt-visit { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--emerald-soft); text-decoration: none; }
  .pt-visit:hover { color: var(--gold-bright); }

  /* ===== Cartes sombres relevées (v3) =====
     Détachées du charbon par une ombre NEUTRE d'élévation + un léger liseré haut.
     Aucun glow, aucune ombre colorée. Placé après les définitions de cartes pour primer. */
  .eco-frame, .dossier, .cred .card, .rescard, .member, .partner, .partner-tile {
    background: var(--rpa-surface-1);
    border: 0.5px solid var(--rpa-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--rpa-card-shadow);
  }
  .dossier:hover, .rescard:hover, .member:hover, .partner-tile:hover { background: var(--rpa-surface-2); }
  /* Texte sur cartes relevées : fond plus clair → un cran plus lumineux (contraste AA). */
  .dossier .meta, .rescard p, .member .rl, .cred .card .rl, .partner .pfirms,
  .pt-role, .pt-blurb, .pt-contact a { color: #C0B7A9; }
  .dossier .conf { color: #8B8175; }

  /* --- Tablette : palier intermédiaire (portrait ~768px, paysage ~1024px) --- */
  @media (max-width: 1024px) {
    .wrap { padding: 0 28px; }
    .dossiers, .steps, .reslist, .partners { grid-template-columns: repeat(2, 1fr); }
    .team { grid-template-columns: repeat(2, 1fr); }
    .cred { grid-template-columns: 1fr; gap: 32px; }
    .section { padding: 68px 0; }
    /* nav plus compacte pour laisser les 5 liens + CTA + logo agrandi tenir */
    .site-nav { padding: 16px 28px; }
    .nav-links { gap: 20px; }
    .brand-logo { height: 76px; }
  }

  /* --- Mobile / tablette portrait étroite : burger --- */
  @media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav-end { display: none; }
    .lang-switch--panel { display: inline-flex; margin: 12px 32px 2px; }
    .nav-links {
      display: none;
      position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
      flex-direction: column; align-items: stretch; gap: 0;
      background: var(--pine-card);
      border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
      padding: 6px 0 14px; box-shadow: 0 26px 54px rgba(0,0,0,.42);
    }
    .site-nav.open .nav-links { display: flex; }
    .nav-links a { padding: 14px 32px; }
    .nav-links a:hover { color: var(--ivory); background: rgba(255,255,255,.05); }
    .nav-links .nav-cta--panel { display: block; margin: 12px 32px 2px; text-align: center; padding: 14px 20px; }
    .brand-logo { height: 80px; }
    .eco-cross { flex-direction: column; align-items: flex-start; }
  }

  /* --- Téléphone (~640px et moins) : une seule colonne --- */
  @media (max-width: 640px) {
    .wrap { padding: 0 20px; }
    .dossiers, .steps, .reslist, .partners, .team { grid-template-columns: 1fr; }
    .nav-links a { padding: 14px 20px; }
    .nav-links .nav-cta--panel { margin: 12px 20px 2px; }
    .lang-switch--panel { margin: 12px 20px 2px; }
  }

  /* Bloc de divulgation injecté par l'extension rpa-platform-core */
  .rpa-disclosure { font-family: var(--body); }
  .rpa-disclosure--header { background:var(--rpa-surface-1); color:var(--rpa-text-secondary); font-size:11.5px; text-align:center; padding:8px 16px; letter-spacing:.01em; border-bottom:1px solid var(--line-soft); }
  .rpa-disclosure--footer { max-width:1100px; margin:0 auto; padding:22px 32px 40px; font-size:12px; color:var(--rpa-text-secondary); line-height:1.7; text-align:center; }
  .site-footer .ftag { color: var(--ivory-mute); font-size:13px; margin-top:10px; max-width:38ch; }
  /* Bloc identité d'agence (Prisma) — logo non thématisé + nom légal + adresse. */
  .site-footer .fagency { border-top: 1px solid var(--line-soft); margin-top: 30px; padding-top: 26px; text-align: center; }
  .site-footer .fagency-logo { height: 50px; width: auto; max-width: 100%; display: block; margin: 0 auto 14px; }
  .site-footer .fagency-name { color: var(--ivory); font-size: 14px; font-weight: 600; letter-spacing: .01em; }
  .site-footer .fagency-addr { color: var(--ivory-mute); font-size: 13px; margin-top: 4px; }

  /* ── Page /vendre (vendeur) ─────────────────────────────────────────── */
  .vlede { max-width: 60ch; font-size: clamp(17px,2vw,20px); color: var(--ivory-mute); margin-top: 18px; }
  .vlede .g { color: var(--rpa-accent); font-weight: 500; }
  .vintro-p { max-width: 66ch; margin-top: 20px; color: var(--ivory-mute); font-size: 16px; line-height: 1.75; }
  .vgloss { max-width: 66ch; margin-top: 14px; color: var(--rpa-text-muted); font-size: 13px; line-height: 1.6; }

  /* 5 cartes d'étapes — fond #403B32, filet #565046, ombre NEUTRE, aucun glow. */
  .vsteps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 8px; }
  .vstep { background: var(--rpa-surface-1); border: 1px solid var(--rpa-border); border-radius: 14px; padding: 26px 22px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
  .vstep .num { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--rpa-accent); letter-spacing: .1em; margin-bottom: 12px; }
  .vstep h3 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; color: var(--ivory); }
  .vstep p { font-size: 13.5px; color: var(--ivory-mute); line-height: 1.6; }

  /* Formulaire vendeur — carte foncée, champs sur surface claire, focus doré. */
  .vform-wrap { margin-top: 56px; scroll-margin-top: 90px; }
  .vform-card { background: var(--rpa-surface-1); border: 1px solid var(--rpa-border); border-radius: 18px; padding: clamp(24px,4vw,44px); box-shadow: 0 24px 60px rgba(0,0,0,.30); max-width: 820px; margin: 0 auto; }
  .vform-card h2 { font-family: var(--display); font-size: clamp(22px,3vw,28px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 24px; color: var(--ivory); }
  .vform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .vfield { display: flex; flex-direction: column; gap: 7px; }
  .vfield--full { grid-column: 1 / -1; }
  .vfield label { font-size: 13.5px; font-weight: 500; color: #F0EBDF; }
  .vfield .req { color: var(--rpa-accent); font-weight: 700; }
  .vfield .opt { color: var(--rpa-text-muted); font-weight: 400; font-size: 12px; }
  .vfield input, .vfield select, .vfield textarea {
    font-family: var(--body); font-size: 15px; color: #2A2823; background: #FEFDFC;
    border: 1px solid #D8D4C8; border-radius: 8px; padding: 12px 14px; width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .vfield textarea { min-height: 110px; resize: vertical; }
  .vfield input:focus, .vfield select:focus, .vfield textarea:focus {
    outline: none; border-color: var(--rpa-accent); box-shadow: 0 0 0 3px rgba(221,185,74,.35);
  }
  .vfield input::placeholder, .vfield textarea::placeholder { color: #8C897E; }
  .vconsent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; margin-top: 2px; }
  .vconsent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--rpa-accent); }
  .vconsent label { font-size: 13.5px; color: var(--ivory-mute); line-height: 1.55; }
  .vconsent .req { color: var(--rpa-accent); font-weight: 700; }
  .vform-actions { grid-column: 1 / -1; margin-top: 8px; }
  .vform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .vform-msg { grid-column: 1 / -1; border-radius: 10px; padding: 14px 16px; font-size: 14px; margin-bottom: 4px; }
  .vform-msg--ok { background: rgba(221,185,74,.12); border: 1px solid var(--rpa-accent); color: #F0EBDF; }
  .vform-msg--err { background: rgba(255,255,255,.05); border: 1px solid var(--rpa-border); color: var(--ivory-mute); }
  .vconf { max-width: 820px; margin: 22px auto 0; font-size: 12.5px; color: var(--rpa-text-muted); line-height: 1.7; text-align: center; }

  @media (max-width: 900px) { .vsteps { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .vsteps { grid-template-columns: 1fr; } .vform { grid-template-columns: 1fr; } }

/* A language without an article translation is explicitly unavailable. */
.lang-switch .is-unavailable { font-size:12px; font-weight:600; letter-spacing:.04em; color:var(--ivory-mute); padding:4px 11px; border-radius:999px; opacity:.5; cursor:not-allowed; }

/* Logo Primaxion approuvé, ratio horizontal original conservé. */
.site-footer .fagency-logo { width: min(100%,620px); height: auto; max-width: 100%; margin: 0 auto 18px; }

/* Accueil : promesse sur une nouvelle ligne, largeur adaptée au titre court. */
.hero h1.hero-home-title { max-width: 100%; color: var(--rpa-text); }

/* Le titre Performance utilise la largeur de la carte et reste fluide sur mobile. */
.eco-head { max-width: 100%; }
.eco-head h2 { max-width: 42ch; }

/* Dossiers : titre en deux lignes et paragraphe de même largeur.
   Le titre détermine la largeur intrinsèque ; le paragraphe suit cette largeur,
   avec une limite de 100 % pour permettre le retour naturel sur mobile. */
#dossiers .section-head { width: max-content; max-width: 100%; }
#dossiers .section-head p { width: 0; min-width: 100%; max-width: none; }

/* Équipe : titre sur deux lignes et paragraphe de même largeur. */
#equipe .section-head { width: max-content; max-width: 100%; }
#equipe .section-head p { width: 0; min-width: 100%; max-width: none; }

/* Ressources et partenaires : titres en deux lignes et paragraphes alignés. */
#ressources .section-head, #partenaires .section-head { width: max-content; max-width: 100%; }
#ressources .section-head p, #partenaires .section-head p { width: 0; min-width: 100%; max-width: none; }

/* Caméos des courtiers autorisés, à partir des portraits approuvés. */
#equipe .member .av { width: 112px; height: 112px; font-size: 28px; }
#equipe .member .av.has-portrait { overflow: hidden; background: #fff; border: 1px solid var(--line); }
#equipe .member-portrait-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
#equipe .member-portrait-image--alain { transform: translateY(20%) scale(1.45); transform-origin: 50% 22%; }
#equipe .member-portrait-image--stella { transform: translate(-3%, -4%) scale(1.15); transform-origin: 50% 28%; }

/* Footer: approved Primaxion branding, contact details and legal links. */
.site-footer .fagency { border-top: 0; margin-top: 0; padding-top: 0; }
.site-footer .fagency-name, .site-footer .fagency-addr { font-size: 16px; }
.site-footer .fagency .fcontact { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; margin-top: 14px; text-align: center; font-size: 16px; }
.site-footer .footer-legal { border-top: 1px solid var(--line-soft); margin-top: 28px; padding-top: 22px; text-align: center; font-size: 16px; line-height: 1.7; color: var(--ivory-mute); }
.site-footer .footer-privacy { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-privacy:hover { color: var(--rpa-accent); }
.site-footer .footer-copyright { max-width: 88ch; margin: 14px auto 0; }
