/* Polices auto-hébergées — famille Primexpert (Règle #0, aucun CDN) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/inter.woff2') format('woff2');}
@font-face{font-family:'Sora';font-style:normal;font-weight:600 700;font-display:swap;src:url('fonts/sora.woff2') format('woff2');}

/* =======================================================================
   Système de design « famille Primexpert » — repris de rpa.css (2026)
   Base : charbon chaud #1B1A17 · Accent : doré #DDB94A · Titres : Sora · Corps : Inter
   ======================================================================= */
  :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);
    --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;
    --rpa-font-display: 'Sora','Helvetica Neue',Arial,sans-serif;
    --rpa-font-body: 'Inter','Helvetica Neue',Arial,sans-serif;
    --void: var(--rpa-bg);
    --pine: var(--rpa-bg); --pine-card: var(--rpa-surface-1);
    --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) — via .theme-jour OU le sélecteur de thème de l'artifact */
  .theme-jour, :root[data-theme="light"] {
    --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;
    --rpa-card-shadow: 0 14px 30px rgba(60,50,20,0.10);
  }
  * { 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%; }
  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-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: 18px 32px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 5; }
  .brand { display: inline-flex; align-items: center; text-decoration: none; gap: 13px; }
  /* Marque PRISMA recréée (le logo réel remplacera ce bloc) */
  .brand .mark { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: .04em; color: var(--rpa-accent); line-height: 1; }
  .brand .sep { width: 1px; height: 32px; background: var(--rpa-accent); opacity: .5; }
  .brand .desc { display: flex; flex-direction: column; gap: 2px; }
  .brand .desc b { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--ivory); }
  .brand .desc b i { font-style: normal; color: var(--ivory-mute); font-weight: 600; }
  .brand .desc span { font-size: 8.5px; letter-spacing: .13em; color: var(--ivory-mute); text-transform: uppercase; }

  .nav-links { display: flex; gap: 26px; 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; border:0; cursor:pointer; }
  .nav-cta:hover { background: var(--rpa-accent-hover); }
  .nav-end { display: flex; align-items: center; gap: 14px; }
  .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; cursor:pointer; }
  .lang-switch a:hover { color: var(--ivory); }
  .lang-switch a.is-active { background: var(--emerald); color: var(--rpa-accent-contrast); }
  .theme-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 999px; background: transparent; color: var(--ivory-mute); cursor: pointer; transition: color .2s, border-color .2s; }
  .theme-btn:hover { color: var(--rpa-accent); border-color: var(--rpa-accent); }
  .theme-btn svg { width: 17px; height: 17px; }
  .lang-switch--panel { display: none; }
  .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; }
  .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, .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; }
  .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; border:0; cursor:pointer; }
  .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:0; border-bottom: 2px solid var(--gold); padding-bottom: 3px; transition: color .2s, border-color .2s; background:transparent; cursor:pointer; }
  .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; }

  .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: 34ch; 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 { 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: 34ch; 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 { 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; position:relative; }
  .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; }
  /* Ajouts Prisma : états public / confidentiel des fiches */
  .dossier .avail { margin-top: 15px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--gold-bright); }
  .dossier .open { display: inline-flex; align-items:center; gap:6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--emerald-soft); text-decoration: none; }
  .dossier .open svg { width:14px; height:14px; transition: transform .2s; }
  .dossier .open:hover svg { transform: translateX(3px); }
  .dossier .flag { position:absolute; top:20px; right:20px; display:inline-flex; align-items:center; gap:6px; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:600; padding:5px 10px; border-radius:999px; }
  .dossier .flag.conf { color: var(--rpa-accent); background: var(--rpa-accent-tint); border:1px solid var(--rpa-border-strong); }
  .dossier .flag.pub { color: var(--emerald-soft); border:1px solid var(--line-em); }
  .dossier .flag svg { width:12px; height:12px; }
  .dossiers-note { text-align: center; margin-top: 34px; font-size: 14px; color: var(--ivory-mute); }
  .dossiers-note a { color: var(--emerald-soft); }

  .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); }

  .final { padding: 96px 0; text-align: center; position: relative; }
  .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 .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; }
  .site-footer .ftag { color: var(--ivory-mute); font-size:13px; margin-top:10px; max-width:38ch; }

  .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; }
  .rqra-main { display: flex; align-items: center; gap: 22px; }
  .rqra-ico { flex:none; width:72px; height:72px; border-radius:50%; display:grid; place-items:center; background:var(--rpa-bg); color:var(--rpa-accent); border:1px solid var(--rpa-border-strong); }
  .rqra-ico svg { width:32px; height:32px; }
  .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(4,1fr); gap: 20px; }
  .member { background: var(--pine-card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 28px 22px; text-align: center; 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 auto 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: 13px; margin-top: 6px; line-height: 1.4; }

  /* Bloc formulaire vendeur (démo — le vrai est propulsé par Primexpert) */
  .lead-block { margin-top: 44px; background: var(--rpa-surface-1); border:1px solid var(--rpa-border); border-radius:16px; padding: 34px clamp(22px,4vw,40px); box-shadow: var(--rpa-card-shadow); }
  .lead-title { font-family: var(--display); font-size: clamp(20px,2.6vw,26px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
  .lead-sub { color: var(--ivory-mute); font-size:14.5px; margin-bottom:22px; }
  .pf-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; }
  .pf-field { display:flex; flex-direction:column; gap:7px; }
  .pf-field.full { grid-column: 1 / -1; }
  .pf-field label { font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--ivory-mute); font-weight:600; }
  .pf-field input, .pf-field select, .pf-field textarea { padding: 12px 14px; border:1px solid var(--line-soft); border-radius:9px; background: var(--rpa-bg); color:var(--ivory); font-size:15px; font-family:var(--body); }
  .pf-field textarea { resize:vertical; min-height:90px; }
  .pf-field input::placeholder, .pf-field textarea::placeholder { color: var(--ivory-mute); }
  .pf-submit { margin-top:20px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
  .lead-note { font-size: 12.5px; color: var(--rpa-text-muted); max-width:48ch; }

  .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; } }

  .eco-frame, .dossier, .rescard, .member, .partner {
    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 { background: var(--rpa-surface-2); }
  .dossier .meta, .rescard p, .member .rl, .partner .pfirms { color: #C0B7A9; }
  .theme-jour .dossier .meta, .theme-jour .rescard p, .theme-jour .member .rl, .theme-jour .partner .pfirms,
  :root[data-theme="light"] .dossier .meta, :root[data-theme="light"] .rescard p, :root[data-theme="light"] .member .rl, :root[data-theme="light"] .partner .pfirms { color: var(--rpa-text-secondary); }
  .dossier .conf { color: #8B8175; }

  /* Bilingue */
  [data-en] { display: none; }
  :root[data-lang="en"] [data-fr] { display: none; }
  :root[data-lang="en"] [data-en] { display: revert; }

  @media (max-width: 1024px) {
    .wrap { padding: 0 28px; }
    .dossiers, .steps, .reslist, .partners, .pf-grid { grid-template-columns: repeat(2, 1fr); }
    .team { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 68px 0; }
    .site-nav { padding: 16px 28px; }
    .nav-links { gap: 20px; }
  }
  @media (max-width: 860px) {
    .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 .nav-cta--panel { display: block; margin: 12px 32px 2px; text-align: center; padding: 14px 20px; }
    .eco-cross { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 640px) {
    .wrap { padding: 0 20px; }
    .dossiers, .steps, .reslist, .partners, .team, .pf-grid { grid-template-columns: 1fr; }
    .site-footer .grid { flex-direction: column; }
    .site-footer .fcontact { text-align: left; }
    .dossier .flag { position:static; margin-bottom:12px; }
  }

/* ===== Gabarits intérieurs (repris de rpa.css) ===== */
  /* ===== 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; }


/* ===== Fiche de propriété ===== */
.fiche-head { margin-bottom: 26px; }
.fiche-ref { font-family: ui-monospace,"SF Mono",Menlo,monospace; font-size:13px; letter-spacing:.08em; color:var(--rpa-accent); margin-bottom:12px; }
.fiche-head h1 { font-family:var(--display); font-size:clamp(28px,4vw,42px); font-weight:700; letter-spacing:-.03em; line-height:1.08; }
.fiche-sub { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:14px; color:var(--ivory-mute); font-size:15px; }
.fiche-sub .cat { 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; }
.fiche-sub .status { color:var(--gold-bright); font-weight:600; font-family:var(--display); }

.fiche-layout { display:grid; grid-template-columns: 1.65fr .95fr; gap:34px; align-items:start; }
.fiche-main { min-width:0; }
.fiche-gallery { display:grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 88px; gap:10px; }
.shot { border-radius:12px; overflow:hidden; position:relative; background:
   linear-gradient(135deg, #2a2820, #17160f); border:1px solid var(--line-soft); }
.shot.big { grid-column: span 4; grid-row: span 3; }
.shot .grid-bg { position:absolute; inset:0; background-image:linear-gradient(var(--rpa-accent) 1px,transparent 1px),linear-gradient(90deg,var(--rpa-accent) 1px,transparent 1px); background-size:38px 38px; opacity:.09; }
.shot .silhouette { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; opacity:.16; color:var(--rpa-accent); }
.shot .silhouette svg { width:70%; height:70%; }
.shot .tag { position:absolute; bottom:8px; left:8px; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--ivory-mute); background:rgba(0,0,0,.4); padding:3px 8px; border-radius:6px; }

/* Bloc spéc */
.spec-wrap { margin-top:34px; }
.spec-wrap h3, .desc-wrap h3 { font-family:var(--display); font-size:20px; font-weight:600; letter-spacing:-.01em; margin-bottom:18px; }
.spec-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:1px; background:var(--line-soft); border:1px solid var(--line-soft); border-radius:12px; overflow:hidden; }
.spec { background:var(--rpa-surface-1); padding:16px 18px; }
.spec .k { font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--ivory-mute); }
.spec .v { font-family:var(--display); font-size:16px; font-weight:600; margin-top:5px; font-variant-numeric:tabular-nums; }
.spec .v.locked { color:var(--gold); display:inline-flex; align-items:center; gap:7px; }
.spec .v.locked svg { width:14px; height:14px; color:var(--rpa-accent); }
.desc-wrap { margin-top:34px; }
.desc-wrap p { color:var(--ivory-mute); font-size:15.5px; line-height:1.7; max-width:64ch; }
.desc-wrap p + p { margin-top:14px; }

/* Colonne latérale */
.fiche-side { position:sticky; top:20px; display:flex; flex-direction:column; gap:16px; }
.side-card { background:var(--rpa-surface-1); border:1px solid var(--rpa-border); border-radius:16px; padding:26px; box-shadow:var(--rpa-card-shadow); }
.side-card .price { font-family:var(--display); font-size:26px; font-weight:700; letter-spacing:-.02em; }
.side-card .price small { display:block; font-family:var(--body); font-size:12.5px; font-weight:500; letter-spacing:.04em; color:var(--ivory-mute); text-transform:uppercase; margin-bottom:4px; }
.side-card .btn-primary { display:block; text-align:center; margin-top:18px; }
.side-card .btn-ghost { display:inline-block; margin-top:16px; }
.side-dl { display:flex; align-items:center; justify-content:center; gap:9px; margin-top:14px; font-size:14px; font-weight:600; color:var(--emerald-soft); text-decoration:none; border:1px solid var(--line-em); border-radius:9px; padding:12px 16px; transition:border-color .2s, color .2s; }
.side-dl:hover { border-color:var(--rpa-accent); color:var(--rpa-accent); }
.side-dl svg { width:16px; height:16px; flex:none; }
.side-dl small { display:block; }
.dl-note { font-size:12px; color:var(--ivory-mute); margin-top:8px; line-height:1.5; }

/* Fiche simplifiée & adaptable (modèle type PMML) */
.fiche-media { position:relative; aspect-ratio:16/9; border-radius:14px; overflow:hidden; border:1px solid var(--line-soft); margin-bottom:26px; background:linear-gradient(135deg,#2a2820,#17160f); }
.fiche-media .photo-blur { position:absolute; inset:0; }
.fiche-media .grid-bg { position:absolute; inset:0; background-image:linear-gradient(var(--rpa-accent) 1px,transparent 1px),linear-gradient(90deg,var(--rpa-accent) 1px,transparent 1px); background-size:44px 44px; opacity:.09; }
.fiche-media .silhouette { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; opacity:.16; color:var(--rpa-accent); }
.fiche-media .silhouette svg { width:46%; height:72%; }
.fiche-media .play { position:absolute; inset:0; display:grid; place-items:center; }
.fiche-media .play span { width:62px; height:62px; border-radius:50%; background:rgba(0,0,0,.42); border:1px solid rgba(255,255,255,.25); display:grid; place-items:center; color:#fff; }
.fiche-media .play svg { width:22px; height:22px; margin-left:3px; }
.fiche-media .mtag { position:absolute; bottom:12px; left:12px; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:#e9e4d8; background:rgba(0,0,0,.5); padding:4px 9px; border-radius:6px; }
.fiche[data-mode="conf"] .fiche-media .photo-blur { filter:blur(11px); }

.fiche-price { font-family:var(--display); font-size:clamp(24px,3vw,32px); font-weight:700; letter-spacing:-.02em; margin:14px 0 18px; }
.fiche-price small { font-family:var(--body); font-size:13px; font-weight:500; letter-spacing:.04em; text-transform:uppercase; color:var(--ivory-mute); margin-right:8px; }
.fiche-facts { border:1px solid var(--line-soft); border-radius:12px; overflow:hidden; }
.fiche-facts .row { display:flex; justify-content:space-between; gap:16px; padding:13px 18px; background:var(--rpa-surface-1); border-bottom:1px solid var(--line-soft); font-size:14.5px; }
.fiche-facts .row:last-child { border-bottom:0; }
.fiche-facts .row .k { color:var(--ivory-mute); }
.fiche-facts .row .v { font-family:var(--display); font-weight:600; text-align:right; font-variant-numeric:tabular-nums; }
.summary { margin-top:34px; }
.summary h3 { font-family:var(--display); font-size:20px; font-weight:600; letter-spacing:-.01em; margin-bottom:16px; }
.summary p { color:var(--ivory-mute); font-size:15.5px; line-height:1.7; max-width:66ch; }
.summary p + p { margin-top:14px; }
.summary .avis { font-size:12.5px; color:var(--rpa-text-muted); border-left:2px solid var(--line-em); padding-left:14px; margin-top:22px; line-height:1.6; max-width:66ch; }
.broker-card .who { display:flex; gap:14px; align-items:center; }
.broker-card .av { width:52px; height:52px; border-radius:50%; background:var(--emerald); color:var(--rpa-accent-contrast); display:grid; place-items:center; font-family:var(--display); font-weight:700; font-size:16px; flex:none; }
.broker-card .nm { font-family:var(--display); font-weight:600; font-size:15.5px; }
.broker-card .tm, .broker-card .rl { font-size:12.5px; color:var(--ivory-mute); }
.broker-contact { display:flex; flex-direction:column; gap:8px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line-soft); font-size:14px; }
.broker-contact a { display:flex; align-items:center; gap:10px; color:var(--ivory-mute); text-decoration:none; }
.broker-contact a:hover { color:var(--emerald-soft); }
.broker-contact svg { width:15px; height:15px; color:var(--rpa-accent); flex:none; }
.side-steps { list-style:none; display:flex; flex-direction:column; gap:14px; margin-top:6px; }
.side-steps li { display:flex; gap:12px; font-size:14px; color:var(--ivory-mute); }
.side-steps .n { flex:none; width:22px; height:22px; border-radius:50%; background:var(--rpa-accent-tint); color:var(--rpa-accent); display:grid; place-items:center; font-size:12px; font-weight:700; font-family:var(--display); }
.conf-note { display:flex; gap:12px; align-items:flex-start; background:var(--rpa-accent-tint); border:1px solid var(--rpa-border-strong); border-radius:12px; padding:16px 18px; }
.conf-note svg { flex:none; width:20px; height:20px; color:var(--rpa-accent); margin-top:2px; }
.conf-note p { font-size:13px; color:var(--ivory); line-height:1.55; }
.broker-mini { display:flex; align-items:center; gap:13px; }
.broker-mini .av { width:46px; height:46px; border-radius:50%; background:var(--emerald); color:var(--rpa-accent-contrast); display:grid; place-items:center; font-family:var(--display); font-weight:700; font-size:15px; }
.broker-mini .nm { font-family:var(--display); font-weight:600; font-size:15px; }
.broker-mini .rl { font-size:12.5px; color:var(--ivory-mute); }

/* Bascule publique/confidentielle propre à la fiche */
.fiche[data-mode="conf"] .pub-only { display:none; }
.fiche[data-mode="pub"] .conf-only { display:none; }
.fiche[data-mode="conf"] .shot { }
.fiche[data-mode="conf"] .shot .photo-blur { filter: blur(9px); }
.fiche[data-mode="conf"] .fiche-gallery::after {
  content:""; }
.conf-ribbon { display:none; align-items:center; gap:10px; background:var(--rpa-accent-tint); border:1px solid var(--rpa-border-strong); border-radius:12px; padding:12px 18px; margin-bottom:22px; font-size:13.5px; color:var(--ivory); }
.conf-ribbon svg { width:18px; height:18px; color:var(--rpa-accent); flex:none; }
.fiche[data-mode="conf"] .conf-ribbon { display:flex; }

@media (max-width: 900px){
  .fiche-layout { grid-template-columns:1fr; }
  .fiche-side { position:static; }
  .spec-grid { grid-template-columns:1fr; }
}

