/* ═══════════════════════════════════════════════════════════════════════════
   IMOVI+ — apporteur.css
   Espace des apporteurs d'affaires + page publique « Devenir apporteur ».
   Même monde que l'accueil : cuivre, ivoire, encre (jetons de home.css).

   Contrastes mesurés sur le fond réel :
     cuivre foncé #8E561F → 6,00:1 ivoire · 6,49:1 blanc (texte, boutons)
     cuivre clair #E0A86D → 8,4:1 sur l'encre #1A1612 (montant principal)
     vert #1F6B4A         → 6,31:1 blanc · rgba(250,246,240,.78) → 11,9:1 encre
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ap-nav: 264px;
  --ap-haut: 64px;
  --ap-ombre: 0 1px 2px rgba(26, 22, 18, .05), 0 10px 28px -16px rgba(26, 22, 18, .28);
  --ap-ombre-forte: 0 2px 4px rgba(26, 22, 18, .05), 0 26px 60px -28px rgba(26, 22, 18, .45);
  --ap-lin: #E6DCCD;
  --ap-sable: #F3ECE1;
  --ap-vert: #1F6B4A;
  --ap-vert-fond: #EEF5F1;
  --ap-rouge: #9A2F1A;
  --ap-cuivre-clair: #E0A86D;
}

.ap { background: var(--ivoire); color: var(--texte); min-height: 100vh; }
.ap ::selection { background: rgba(184, 115, 51, .24); }
.ap a { text-decoration: none; }
.ap-saut { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--encre); color: var(--ivoire); padding: 10px 16px; border-radius: 10px; }
.ap-saut:focus { left: 12px; }

/* ═══ 1. BARRE DU HAUT ═══════════════════════════════════════════════════ */
.ap-barre {
  position: sticky; top: 0; z-index: 60; height: var(--ap-haut); display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(14px, 3vw, 28px); background: rgba(250, 246, 240, .92); border-bottom: 1px solid var(--ligne);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ap-marque { display: flex; flex-direction: column; line-height: 1; color: var(--encre); margin-right: auto; }
.ap-marque-logo img { height: 50px; width: auto; display: block; }
.ap-marque span { margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--texte-2); }
@media (max-width: 560px) { .ap-marque-logo img { height: 40px; } }
/* Dans la barre : le nom seul (IMOVI+), puis l'espace, séparés d'un filet. */
.ap-barre .ap-marque { flex-direction: row; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.ap-barre .ap-marque-logo img { height: 24px; }
.ap-barre .ap-marque .imovi-logo { margin-top: 0; }
.ap-barre .ap-marque > span:not(.imovi-logo) { margin-top: 0; padding-left: 14px; border-left: 1px solid var(--ap-lin); font: 600 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 560px) { .ap-barre .ap-marque-logo img { height: 21px; } .ap-barre .ap-marque > span:not(.imovi-logo) { display: none; } }
.ap-puce-code {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--ligne); font: 700 14px/1 var(--sans); color: var(--encre); letter-spacing: .06em;
}
.ap-puce-code button {
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ap-sable); color: var(--ocre-fonce); cursor: pointer; display: grid; place-items: center;
}
.ap-puce-code button:hover { background: #EBDFCC; }
.ap-puce-code button:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }

/* ═══ 2. CADRE : NAVIGATION + CONTENU ════════════════════════════════════ */
.ap-cadre { display: grid; grid-template-columns: var(--ap-nav) minmax(0, 1fr); min-height: calc(100vh - var(--ap-haut)); }
.ap-nav { position: sticky; top: var(--ap-haut); align-self: start; height: calc(100vh - var(--ap-haut)); overflow-y: auto; padding: 22px 14px 28px; border-right: 1px solid var(--ligne); background: var(--ivoire); display: flex; flex-direction: column; }
.ap-nav-groupe + .ap-nav-groupe { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ap-lin); }
.ap-nav-titre { margin: 0 12px 8px; font-size: 12px; font-weight: 700; color: var(--texte-2); }
.ap-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  color: var(--texte-2); font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s;
}
.ap-nav a i { width: 20px; text-align: center; font-size: 15px; color: var(--texte-3); transition: color .2s; }
.ap-nav a:hover { background: var(--surface); color: var(--encre); }
.ap-nav a:hover i { color: var(--ocre-fonce); }
.ap-nav a[aria-current="page"] { background: var(--encre); color: var(--ivoire); }
.ap-nav a[aria-current="page"] i { color: var(--ap-cuivre-clair); }
.ap-nav a:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
.ap-nav-badge { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ap-sable); color: var(--encre); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.ap-nav a[aria-current="page"] .ap-nav-badge { background: rgba(250, 246, 240, .16); color: var(--ivoire); }
.ap-nav-aide { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); font-size: 13.5px; color: var(--texte-2); line-height: 1.55; }
.ap-nav-aide strong { display: block; color: var(--encre); margin-bottom: 4px; font-size: 14px; }
.ap-nav-aide a { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; padding: 0; min-height: 0; color: var(--ocre-fonce); font-weight: 700; font-size: 13.5px; }
.ap-nav-aide a:hover { background: none; color: #74451A; }

.ap-main { padding: clamp(22px, 3.4vw, 44px) clamp(16px, 3.6vw, 48px) 80px; min-width: 0; width: 100%; max-width: 1440px; margin-inline: auto; }
.ap-onglets { display: none; }

/* ═══ 3. TITRES ET BLOCS ═════════════════════════════════════════════════ */
.ap-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 32px); }
.ap-tete h1 { font-family: var(--serif); font-weight: 400; color: var(--encre); margin: 0 0 8px; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
.ap-tete p { margin: 0; color: var(--texte-2); font-size: 15.5px; line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.ap-h2 { font-family: var(--serif); font-weight: 400; color: var(--encre); margin: 0; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); line-height: 1.2; letter-spacing: -.01em; }
.ap-bloc { margin-top: clamp(28px, 4vw, 44px); }
.ap-bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ap-lien { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ocre-fonce); transition: gap .25s var(--hp-ease); }
.ap-lien:hover { gap: 12px; color: #74451A; }
.ap-lien i { font-size: 11px; }
.ap-carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius); padding: clamp(18px, 2.4vw, 24px); }

.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 14px; background: var(--ocre-fonce); color: #fff; font: 700 15px/1 var(--sans); cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(142, 86, 31, .9); transition: background .2s, transform .15s var(--hp-ease);
}
.ap-btn:hover { background: #74451A; color: #fff; }
.ap-btn:active { transform: scale(.98); }
.ap-btn:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }
.ap-btn.clair { background: var(--surface); color: var(--encre); border: 1px solid #CDBFAC; box-shadow: none; }
.ap-btn.clair:hover { background: var(--ivoire); border-color: var(--encre); color: var(--encre); }
.ap-btn.vert { background: #1B7A4B; box-shadow: 0 12px 24px -14px rgba(27, 122, 75, .8); }
.ap-btn.vert:hover { background: #156039; }
.ap-btn.bloc { width: 100%; }
.ap-btn.petit { min-height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }

.ap-flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; font-size: 14.5px; line-height: 1.55; }
.ap-flash i { margin-top: 3px; }
.ap-flash.vert { background: var(--ap-vert-fond); border: 1px solid #C5DDD0; color: #1F5139; }
.ap-flash.rouge { background: #FDF4F1; border: 1px solid #EFC9BD; color: #7E2A18; }
.ap-flash.info { background: #FBF3E8; border: 1px solid #EBD6BC; color: #6B3F12; }
.ap-flash.info i { color: var(--ocre-fonce); }

/* ═══ 4. ARGENT : LES TROIS MONTANTS ═════════════════════════════════════ */
.ap-argent { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.ap-montant { position: relative; border-radius: var(--hp-radius); padding: 22px; background: var(--surface); border: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 8px; min-height: 176px; }
.ap-montant-tete { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--encre); }
.ap-montant-tete i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ap-sable); color: var(--ocre-fonce); font-size: 14px; }
.ap-montant b { font: 700 clamp(28px, 2.4vw, 34px)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--encre); margin-top: auto; }
.ap-montant b small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--texte-2); margin-left: 4px; }
.ap-montant p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--texte-2); }
.ap-montant.principal { background: var(--encre); border-color: var(--encre); color: var(--ivoire); box-shadow: var(--ap-ombre-forte); }
.ap-montant.principal .ap-montant-tete { color: var(--ivoire); }
.ap-montant.principal .ap-montant-tete i { background: rgba(224, 168, 109, .16); color: var(--ap-cuivre-clair); }
.ap-montant.principal b { color: var(--ap-cuivre-clair); font-size: clamp(34px, 3.2vw, 44px); }
.ap-montant.principal b small { color: rgba(250, 246, 240, .78); }
.ap-montant.principal p { color: rgba(250, 246, 240, .78); }
.ap-echeance { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(250, 246, 240, .1); color: var(--ivoire); font-size: 13px; font-weight: 600; }

/* ── Parcours d'une commission ── */
.ap-parcours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: etape; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius); overflow: hidden; }
.ap-parcours li { position: relative; padding: 18px 18px 18px 20px; border-right: 1px solid var(--ap-lin); }
.ap-parcours li:last-child { border-right: 0; }
.ap-parcours li::after { content: ''; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: var(--surface); border-top: 1px solid var(--ap-lin); border-right: 1px solid var(--ap-lin); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.ap-parcours li:last-child::after { display: none; }
.ap-parcours span { display: block; font-size: 13px; color: var(--texte-2); margin-bottom: 6px; }
.ap-parcours b { display: block; font: 700 24px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--encre); }
.ap-parcours em { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.ap-parcours li.actif { background: #FBF6EE; }
.ap-parcours li.actif b { color: var(--ocre-fonce); }

/* ── Code d'apport ── */
.ap-code { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; padding: 22px 24px; border-radius: var(--hp-radius); background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ap-ombre); }
.ap-code .ap-code-val { margin: 0; font: 700 clamp(26px, 2.6vw, 34px)/1 var(--sans); letter-spacing: .08em; color: var(--encre); font-variant-numeric: tabular-nums; }
.ap-code .ap-code-val small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--texte-2); margin-bottom: 8px; }
.ap-code p { margin: 0; font-size: 14.5px; color: var(--texte-2); line-height: 1.6; }
.ap-code-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Premiers pas ── */
.ap-pas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ap-pas li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); }
.ap-pas li > i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--ap-sable); color: var(--texte-2); }
.ap-pas li.fait > i { background: var(--ap-vert-fond); color: var(--ap-vert); }
.ap-pas strong { display: block; font-size: 15px; color: var(--encre); margin-bottom: 3px; }
.ap-pas li.fait { background: #FBFDFB; }
.ap-pas li.fait p { color: var(--texte-2); }
.ap-pas p { margin: 0; font-size: 13.5px; color: var(--texte-2); line-height: 1.5; }
.ap-pas a { font-weight: 700; color: var(--ocre-fonce); }
.ap-progression { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--texte-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-progression span { width: 140px; height: 8px; border-radius: 99px; background: var(--ap-sable); overflow: hidden; }
.ap-progression span i { display: block; height: 100%; background: var(--ap-vert); border-radius: 99px; transition: width .8s var(--hp-ease); }

/* ═══ 5. LISTES D'AFFAIRES, ANNONCES, VERSEMENTS ═════════════════════════ */
.ap-filtres { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ap-filtre { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte-2); font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.ap-filtre:hover { border-color: #CDBFAC; color: var(--encre); }
.ap-filtre[aria-current="true"] { background: var(--encre); border-color: var(--encre); color: var(--ivoire); }
.ap-filtre span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ap-sable); color: var(--encre); font-size: 12px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.ap-filtre[aria-current="true"] span { background: rgba(250, 246, 240, .16); color: var(--ivoire); }
.ap-filtre:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
.ap-recherche { position: relative; margin-left: auto; min-width: 220px; }
.ap-recherche i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--texte-3); font-size: 13px; }
.ap-recherche input { width: 100%; min-height: 42px; padding: 0 14px 0 38px; border: 1px solid var(--ligne); border-radius: 999px; background: var(--surface); font: 500 14.5px var(--sans); color: var(--encre); }
.ap-recherche input::placeholder { color: var(--texte-3); }
.ap-recherche input:focus { outline: none; border-color: var(--ocre); box-shadow: 0 0 0 4px rgba(184, 115, 51, .16); }

.ap-liste { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius); overflow: hidden; }
.ap-ligne { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--ligne-claire); }
.ap-ligne:last-child { border-bottom: 0; }
.ap-ligne:hover { background: #FDFBF7; }
.ap-ligne-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-sable); color: var(--ocre-fonce); font-size: 16px; }
.ap-ligne-titre { min-width: 0; }
.ap-ligne-titre strong { display: block; font-size: 15px; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-ligne-titre span { display: block; font-size: 13px; color: var(--texte-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-ligne-titre a { color: var(--encre); }
.ap-ligne-titre a:hover { color: var(--ocre-fonce); }
.ap-cellule { font-size: 13px; color: var(--texte-2); line-height: 1.4; }
.ap-cellule b { display: block; font: 700 15px/1.3 var(--sans); color: var(--encre); font-variant-numeric: tabular-nums; }
.ap-cellule.part b { color: var(--ocre-fonce); font-size: 17px; }
.ap-etat { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ap-etat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ap-etat.att { background: #FBF3E8; color: #6B3F12; }
.ap-etat.ok { background: var(--ap-vert-fond); color: #1F5139; }
.ap-etat.verse { background: #EEF0F5; color: #2E3A52; }
.ap-etat.ko { background: #FDF4F1; color: #7E2A18; }

.ap-legende { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.ap-legende div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--ligne); font-size: 13.5px; color: var(--texte-2); line-height: 1.5; }
.ap-legende .ap-etat { flex-shrink: 0; }

.ap-vide { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border-radius: var(--hp-radius); border: 1px dashed #D8CAB6; background: var(--surface); }
.ap-vide > i { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ap-sable); color: var(--ocre-fonce); font-size: 24px; margin-bottom: 16px; }
.ap-vide h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); color: var(--encre); margin: 0 0 8px; text-wrap: balance; }
.ap-vide p { color: var(--texte-2); font-size: 15px; line-height: 1.6; margin: 0 auto 20px; max-width: 52ch; }

.ap-grille-annonces { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ap-annonce { display: flex; flex-direction: column; border-radius: var(--hp-radius); background: var(--surface); border: 1px solid var(--ligne); overflow: hidden; transition: transform .3s var(--hp-ease), box-shadow .3s; }
.ap-annonce:hover { transform: translateY(-3px); box-shadow: var(--ap-ombre-forte); }
.ap-annonce-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.ap-annonce-tete i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-sable); color: var(--ocre-fonce); }
.ap-annonce-corps { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ap-annonce-corps h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.25; color: var(--encre); }
.ap-annonce-corps p { margin: 0; font-size: 13.5px; color: var(--texte-2); }
.ap-annonce-corps b { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ligne-claire); font: 700 17px/1.2 var(--sans); color: var(--encre); font-variant-numeric: tabular-nums; }
.ap-annonce-corps a { font-weight: 700; color: var(--ocre-fonce); font-size: 13.5px; }

/* ═══ 6. KIT DE RECRUTEMENT ══════════════════════════════════════════════ */
.ap-kit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.ap-message { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius); padding: 18px 20px; }
.ap-message + .ap-message { margin-top: 12px; }
.ap-message h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 15px/1.3 var(--sans); color: var(--encre); }
.ap-message h3 i { color: var(--ocre-fonce); }
.ap-message blockquote { margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--ivoire); border: 1px solid var(--ligne-claire); font-size: 14.5px; line-height: 1.65; color: var(--encre); white-space: pre-line; }
.ap-message-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-etapes { list-style: none; margin: 0; padding: 0; counter-reset: pas; display: flex; flex-direction: column; gap: 0; }
.ap-etapes li { counter-increment: pas; position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
.ap-etapes li::before { content: counter(pas); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--encre); color: var(--ivoire); font: 700 15px/1 var(--sans); position: relative; z-index: 1; }
.ap-etapes li::after { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--ap-lin); }
.ap-etapes li:last-child::after { display: none; }
.ap-etapes strong { display: block; font-size: 15.5px; color: var(--encre); margin: 8px 0 4px; }
.ap-etapes p { margin: 0; font-size: 14px; color: var(--texte-2); line-height: 1.55; }
.ap-etapes code { font: 700 13.5px var(--sans); background: var(--ap-sable); padding: 2px 7px; border-radius: 6px; color: var(--encre); }

.ap-carte-visite {
  position: relative; overflow: hidden; border-radius: 20px; padding: 26px; background: var(--encre); color: var(--ivoire);
  aspect-ratio: 1.75; display: flex; flex-direction: column; box-shadow: var(--ap-ombre-forte); isolation: isolate;
}
.ap-carte-visite::before { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(224, 168, 109, .12); z-index: -1; }
.ap-carte-visite .marque { font-family: var(--serif); font-size: 24px; line-height: 1; }
.ap-carte-visite .marque b { color: var(--ap-cuivre-clair); font-weight: 400; }
.ap-carte-visite .role { font-size: 13px; color: rgba(250, 246, 240, .78); margin-top: 6px; }
.ap-carte-visite .nom { margin-top: auto; font-size: 17px; font-weight: 700; }
.ap-carte-visite .code { font: 700 28px/1 var(--sans); letter-spacing: .1em; color: var(--ap-cuivre-clair); margin-top: 8px; font-variant-numeric: tabular-nums; }
.ap-carte-visite .consigne { margin-top: 10px; font-size: 12.5px; color: rgba(250, 246, 240, .78); line-height: 1.45; }

/* ═══ 7. FORMULAIRES ═════════════════════════════════════════════════════ */
.ap-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ap-form .plein { grid-column: 1 / -1; }
.ap-champ label { display: block; font-size: 13.5px; font-weight: 600; color: var(--texte-2); margin-bottom: 7px; }
.ap-champ label span { font-weight: 400; }
.ap-champ input, .ap-champ select, .ap-champ textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--ivoire);
  font: 500 15.5px/1.4 var(--sans); color: var(--encre); transition: border-color .2s, box-shadow .2s, background .2s;
}
.ap-champ textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.ap-champ input::placeholder, .ap-champ textarea::placeholder { color: var(--texte-3); }
.ap-champ input:focus, .ap-champ select:focus, .ap-champ textarea:focus { outline: none; background: var(--surface); border-color: var(--ocre); box-shadow: 0 0 0 4px rgba(184, 115, 51, .16); }
.ap-champ .aide { margin: 7px 0 0; font-size: 13px; color: var(--texte-2); line-height: 1.5; }
.ap-champ.code input { font: 700 20px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.ap-mdp { position: relative; }
.ap-mdp input { padding-right: 52px; }
.ap-mdp button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--texte-2); cursor: pointer; }
.ap-mdp button:hover { background: var(--ap-sable); color: var(--encre); }
.ap-mdp button:focus-visible { outline: 3px solid var(--ocre); outline-offset: 1px; }
.ap-force { display: flex; gap: 4px; margin-top: 8px; }
.ap-force i { flex: 1; height: 5px; border-radius: 3px; background: var(--ap-sable); transition: background .25s; }
.ap-force.n1 i:nth-child(-n+1) { background: #B3391F; }
.ap-force.n2 i:nth-child(-n+2) { background: var(--ocre); }
.ap-force.n3 i:nth-child(-n+3) { background: #2F8A61; }
.ap-force.n4 i { background: var(--ap-vert); }
.ap-fixe { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--ligne-claire); font-size: 14.5px; }
.ap-fixe:last-child { border-bottom: 0; }
.ap-fixe span { color: var(--texte-2); }
.ap-fixe b { color: var(--encre); text-align: right; }

/* ═══ 8. FAQ / AIDE ══════════════════════════════════════════════════════ */
.ap-faq { display: flex; flex-direction: column; gap: 10px; }
.ap-faq details { background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; }
.ap-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 15.5px; font-weight: 700; color: var(--encre); min-height: 56px; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary i { color: var(--ocre-fonce); transition: transform .25s var(--hp-ease); flex-shrink: 0; }
.ap-faq details[open] summary i { transform: rotate(45deg); }
.ap-faq summary:focus-visible { outline: 3px solid var(--ocre); outline-offset: -3px; }
.ap-faq details > div { padding: 0 20px 18px; font-size: 15px; line-height: 1.7; color: var(--texte-2); }

/* ═══ 9. CONNEXION ═══════════════════════════════════════════════════════ */
.ap-entree { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ivoire); }
.ap-entree-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 6vw, 80px); max-width: 560px; width: 100%; margin: 0 auto; }
.ap-entree-form .ap-marque { margin: 0 0 clamp(28px, 6vh, 56px); }
.ap-entree-form h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); line-height: 1.05; letter-spacing: -.024em; color: var(--encre); margin: 0 0 12px; text-wrap: balance; }
.ap-entree-form > p { color: var(--texte-2); font-size: 15.5px; line-height: 1.6; margin: 0 0 28px; }
.ap-entree-form form { display: flex; flex-direction: column; gap: 16px; }
.ap-entree-bas { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--ap-lin); font-size: 14px; color: var(--texte-2); line-height: 1.6; }
.ap-entree-bas a { color: var(--ocre-fonce); font-weight: 700; }
.ap-entree-visuel { position: relative; background: var(--encre); color: var(--ivoire); padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.ap-entree-visuel::before { content: ''; position: absolute; right: -140px; bottom: -140px; width: 480px; height: 480px; border-radius: 50%; border: 70px solid rgba(224, 168, 109, .08); z-index: -1; }
.ap-entree-visuel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); color: var(--ivoire); margin: 0 0 28px; line-height: 1.15; text-wrap: balance; max-width: 22ch; }
.ap-flux { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ap-flux li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
.ap-flux li::after { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: rgba(250, 246, 240, .12); }
.ap-flux li:last-child { padding-bottom: 0; }
.ap-flux li:last-child::after { display: none; }
.ap-flux i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 168, 109, .14); color: var(--ap-cuivre-clair); font-size: 16px; }
.ap-flux strong { display: block; font-size: 16px; margin: 4px 0 4px; color: var(--ivoire); }
.ap-flux span { font-size: 14px; line-height: 1.55; color: rgba(250, 246, 240, .78); }

/* ═══ 10. PAGE PUBLIQUE « DEVENIR APPORTEUR » ════════════════════════════ */
.dv-hero { padding: clamp(24px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); }
.dv-hero-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.dv-hero h1 { font-family: var(--serif); font-weight: 400; color: var(--encre); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.dv-hero h1 em { font-style: normal; color: var(--ocre-fonce); }
.dv-hero .dv-sous { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--texte-2); line-height: 1.65; max-width: 54ch; margin: 0 0 28px; }
.dv-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.dv-faits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.dv-faits li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texte-2); }
.dv-faits i { color: var(--ocre); }

.dv-simu { background: var(--encre); color: var(--ivoire); border-radius: 26px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--ap-ombre-forte); position: relative; overflow: hidden; isolation: isolate; }
.dv-simu::before { content: ''; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 44px solid rgba(224, 168, 109, .1); z-index: -1; }
.dv-simu h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ivoire); margin: 0 0 18px; }
.dv-metiers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.dv-metier { position: relative; }
.dv-metier input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dv-metier span { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(250, 246, 240, .2); font-size: 13.5px; font-weight: 600; color: rgba(250, 246, 240, .82); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.dv-metier input:checked + span { background: var(--ivoire); color: var(--encre); border-color: var(--ivoire); }
.dv-metier input:focus-visible + span { outline: 3px solid var(--ap-cuivre-clair); outline-offset: 2px; }
.dv-simu label.dv-lib { display: block; font-size: 13.5px; font-weight: 600; color: rgba(250, 246, 240, .78); margin-bottom: 8px; }
.dv-simu input[type=range] { width: 100%; accent-color: var(--ap-cuivre-clair); height: 28px; }
.dv-montant { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 20px; font: 700 22px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ivoire); }
.dv-montant small { font-size: 13px; color: rgba(250, 246, 240, .7); font-weight: 600; }
.dv-resultat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dv-resultat div { padding: 14px 16px; border-radius: 16px; background: rgba(250, 246, 240, .06); border: 1px solid rgba(250, 246, 240, .1); }
.dv-resultat span { display: block; font-size: 13px; color: rgba(250, 246, 240, .72); margin-bottom: 6px; }
.dv-resultat b { font: 700 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ivoire); }
.dv-resultat .gain { background: rgba(224, 168, 109, .14); border-color: rgba(224, 168, 109, .3); }
.dv-resultat .gain b { color: var(--ap-cuivre-clair); font-size: 26px; }
.dv-note { margin: 14px 0 0; font-size: 12.5px; color: rgba(250, 246, 240, .72); line-height: 1.5; }

.dv-section { padding: clamp(56px, 8vw, 104px) 0; }
.dv-section.blanc { background: var(--surface); border-block: 1px solid var(--ligne); }
.dv-section.sombre { background: var(--hp-dark); color: var(--ivoire); }
.dv-tete { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.dv-tete h2 { font-family: var(--serif); font-weight: 400; color: var(--encre); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.dv-section.sombre .dv-tete h2 { color: var(--ivoire); }
.dv-tete p { color: var(--texte-2); font-size: 16px; line-height: 1.65; margin: 0; }
.dv-section.sombre .dv-tete p { color: rgba(250, 246, 240, .78); }
.dv-cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: c; }
.dv-cycle li { counter-increment: c; position: relative; padding: 24px 22px; border-radius: 20px; background: var(--ivoire); border: 1px solid var(--ligne); }
.dv-cycle li::before { content: counter(c); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--encre); color: var(--ivoire); font: 700 14px/1 var(--sans); margin-bottom: 16px; }
.dv-cycle h3 { margin: 0 0 8px; font-size: 17px; color: var(--encre); }
.dv-cycle p { margin: 0; font-size: 14.5px; color: var(--texte-2); line-height: 1.6; }
.dv-profils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dv-profil { padding: 24px; border-radius: 20px; border: 1px solid rgba(250, 246, 240, .12); background: rgba(250, 246, 240, .03); }
.dv-profil i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 168, 109, .14); color: var(--ap-cuivre-clair); font-size: 18px; margin-bottom: 16px; }
.dv-profil h3 { margin: 0 0 8px; font-size: 17px; color: var(--ivoire); }
.dv-profil p { margin: 0; font-size: 14.5px; color: rgba(250, 246, 240, .78); line-height: 1.6; }
.dv-candidature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.dv-engagements { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dv-engagements li { display: flex; gap: 12px; font-size: 15px; color: var(--encre); line-height: 1.55; }
.dv-engagements i { color: var(--ap-vert); margin-top: 4px; }

/* ═══ 11. RESPONSIVE ═════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ap-argent { grid-template-columns: 1fr 1fr; }
  .ap-montant.principal { grid-column: 1 / -1; }
  .ap-ligne { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .ap-ligne .ap-cellule.masquable { display: none; }
  .dv-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --ap-haut: 60px; }
  .ap-cadre { grid-template-columns: minmax(0, 1fr); }
  .ap-nav { display: none; }
  .ap-puce-code { display: none; }
  .ap-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .ap-onglets {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ligne);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -10px 30px -20px rgba(26, 22, 18, .35);
  }
  .ap-onglets a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; border-radius: 12px; color: var(--texte-2); font-size: 11.5px; font-weight: 700; }
  .ap-onglets a i { font-size: 18px; }
  .ap-onglets a[aria-current="page"] { color: var(--encre); background: var(--ap-sable); }
  .ap-onglets a[aria-current="page"] i { color: var(--ocre-fonce); }
  .ap-onglets a:focus-visible { outline: 3px solid var(--ocre); outline-offset: -3px; }
  .ap-kit, .dv-hero-grille, .dv-candidature { grid-template-columns: minmax(0, 1fr); }
  .ap-parcours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-parcours li:nth-child(2) { border-right: 0; }
  .ap-parcours li:nth-child(-n+2) { border-bottom: 1px solid var(--ap-lin); }
  .ap-parcours li::after { display: none; }
  .ap-entree { grid-template-columns: minmax(0, 1fr); }
  .ap-entree-visuel { order: 2; }
  .dv-profils { grid-template-columns: minmax(0, 1fr); }
  #imvcFab { bottom: calc(var(--ivc-fab-bottom, 88px) + 12px) !important; }
}
@media (max-width: 620px) {
  .ap-argent, .ap-pas, .ap-form, .dv-cycle, .dv-resultat { grid-template-columns: minmax(0, 1fr); }
  .ap-code { grid-template-columns: minmax(0, 1fr); }
  .ap-code-actions .ap-btn { flex: 1; }
  .ap-ligne { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; }
  .ap-ligne-ico { width: 40px; height: 40px; }
  .ap-ligne .ap-cellule, .ap-ligne > .ap-etat { grid-column: 2; }
  .ap-ligne .ap-cellule.masquable { display: block; }
  .ap-recherche { margin-left: 0; width: 100%; }
  .ap-montant { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-annonce, .ap-btn, .ap-progression span i { transition: none; }
}

/* ═══ 12. IMPRESSION DU KIT ══════════════════════════════════════════════ */
@media print {
  .ap-barre, .ap-nav, .ap-onglets, .ap-message-actions, .ap-tete p, .ap-sans-impression, #imvcFab, .imovi-cb { display: none !important; }
  .ap-cadre { display: block; }
  .ap-main { padding: 0; }
  .ap-carte-visite { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; max-width: 90mm; }
}

/* ═══ 13. MESSAGE DE CONFIRMATION ════════════════════════════════════════ */
.ct-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1300; transform: translate(-50%, 24px); opacity: 0; visibility: hidden;
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; background: var(--encre); color: var(--ivoire);
  font-size: 14.5px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px);
  transition: transform .35s var(--hp-ease), opacity .35s, visibility 0s linear .35s;
}
.ct-toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .35s var(--hp-ease), opacity .35s, visibility 0s; }
.ct-toast i { color: #8FD1AE; }
.ct-toast.erreur { background: #7E2A18; }
@media (max-width: 900px) { .ap .ct-toast { bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* ═══ 14. CONFORMITÉ : CHARTE, TÉLÉPHONE, DOSSIER, CARTE, VÉRIFICATION ═══ */
/* Avant le mot de passe et la charte, pas de menu : le contenu se centre. */
.ap-cadre.sans-nav { grid-template-columns: minmax(0, 1fr); }
.ap-cadre.sans-nav .ap-main { margin-inline: auto; width: 100%; }
.ap-grace a { color: #6B3F12; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── Charte ── */
.ch-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ch-regle-or { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--hp-radius); background: var(--encre); color: var(--ivoire); margin-bottom: 16px; box-shadow: var(--ap-ombre-forte); }
.ch-regle-or > i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 168, 109, .16); color: var(--ap-cuivre-clair); font-size: 19px; }
.ch-regle-or h2 { margin: 2px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ivoire); }
.ch-regle-or p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(250, 246, 240, .82); }
.ch-regle-or strong { color: var(--ap-cuivre-clair); }
.ch-articles { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius); }
.ch-articles li { padding: 18px 22px; border-bottom: 1px solid var(--ligne-claire); }
.ch-articles li:last-child { border-bottom: 0; }
.ch-articles h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 16px; color: var(--encre); }
.ch-articles h3 span { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ap-sable); color: var(--ocre-fonce); font-size: 13px; font-variant-numeric: tabular-nums; }
.ch-articles p { margin: 0 0 0 40px; font-size: 14.5px; line-height: 1.7; color: var(--texte-2); max-width: 70ch; }
.ch-signature-col { position: sticky; top: calc(var(--ap-haut) + 20px); }
.ch-signature { box-shadow: var(--ap-ombre); }
.ch-aide { margin: 8px 0 16px; font-size: 14px; line-height: 1.6; color: var(--texte-2); }
.ch-aide strong { color: var(--encre); font-size: 15.5px; }
.ch-form { display: flex; flex-direction: column; gap: 14px; }
.ch-case { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--encre); cursor: pointer; }
.ch-case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ocre-fonce); }
.ch-mention { margin: 0; font-size: 12.5px; color: var(--texte-2); text-align: center; }
.ch-sceau { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ap-vert-fond); color: var(--ap-vert); font-size: 20px; margin-bottom: 12px; }

/* ── Téléphone ── */
.tl-cadre { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.tl-carte { text-align: center; box-shadow: var(--ap-ombre); display: flex; flex-direction: column; gap: 12px; }
.tl-ico { width: 64px; height: 64px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--ap-sable); color: var(--ocre-fonce); font-size: 26px; }
.tl-ico.ok { background: var(--ap-vert-fond); color: var(--ap-vert); }
.tl-lib { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--texte-2); }
.tl-numero { margin: 0; font: 700 26px/1.1 var(--sans); letter-spacing: .04em; color: var(--encre); font-variant-numeric: tabular-nums; }
.tl-etat { margin: 0; font-size: 14px; color: var(--ap-vert); font-weight: 600; }
.tl-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ap-champ input.tl-code { text-align: center; font: 700 28px/1 var(--sans); letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.tl-renvoi { margin-top: 4px; }
.tl-aide { padding: 4px 4px 0; }

/* ── Dossier ── */
.ds-etat { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius); overflow: hidden; box-shadow: var(--ap-ombre); }
.ds-etat-tete { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px 18px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--ligne-claire); }
.ds-etat-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: var(--ap-sable); color: var(--ocre-fonce); }
.ds-rejete .ds-etat-ico { background: #FDF4F1; color: var(--ap-rouge); }
.ds-valide .ds-etat-ico { background: var(--ap-vert-fond); color: var(--ap-vert); }
.ds-etat h2 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem); color: var(--encre); }
.ds-etat p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--texte-2); max-width: 64ch; }
.ds-etat p.ds-motif { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #FDF4F1; border: 1px solid #EFC9BD; color: #7E2A18; }
.ds-etat p.ds-delai { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: #6B3F12; }
.ds-anneau { --pct: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ap-vert) calc(var(--pct) * 1%), var(--ap-sable) 0); position: relative; }
.ds-anneau::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ds-anneau b { position: relative; font: 700 21px/1 var(--sans); color: var(--encre); font-variant-numeric: tabular-nums; }
.ds-anneau small { font-size: 12px; color: var(--texte-2); margin-left: 1px; }
.ds-etapes { list-style: none; margin: 0; padding: 6px 0; }
.ds-etapes li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 24px; }
.ds-etapes li + li { border-top: 1px solid var(--ligne-claire); }
.ds-puce { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #D8CAB6; color: transparent; font-size: 8px; }
.ds-etapes li.fait .ds-puce { border-color: var(--ap-vert); background: var(--ap-vert); color: #fff; font-size: 13px; }
.ds-etapes strong { display: block; font-size: 15px; color: var(--encre); }
.ds-etapes li > div span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--texte-2); line-height: 1.45; }
.ds-ok { font-size: 13px; font-weight: 700; color: var(--ap-vert); }
.ds-bloc-tete { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 16px; }
.ds-bloc-tete p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--texte-2); max-width: 70ch; }
.ds-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--encre); color: var(--ivoire); font: 700 16px/1 var(--sans); }
.ds-bloc { scroll-margin-top: calc(var(--ap-haut) + 16px); }
.ds-nom { margin: 0; font: 700 18px/1.3 var(--sans); color: var(--encre); }
.ds-sep { margin: 8px 0 -4px; padding-top: 16px; border-top: 1px solid var(--ligne-claire); font-size: 13px; font-weight: 700; color: var(--ocre-fonce); }
.ds-sexe { border: 0; margin: 0; padding: 0; min-width: 0; }
.ds-sexe legend { font-size: 13.5px; font-weight: 600; color: var(--texte-2); margin-bottom: 7px; padding: 0; }
.ds-sexe > label { display: inline-flex; margin: 0 8px 0 0; position: relative; cursor: pointer; }
.ds-sexe input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ds-sexe span { display: inline-flex; align-items: center; min-height: 50px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--ivoire); font-size: 15px; font-weight: 600; color: var(--encre); }
.ds-sexe input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--ivoire); }
.ds-sexe input:focus-visible + span { outline: 3px solid var(--ocre); outline-offset: 2px; }
.ds-lecture { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.ds-lecture div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ligne-claire); font-size: 14.5px; }
.ds-lecture dt { color: var(--texte-2); }
.ds-lecture dd { margin: 0; color: var(--encre); font-weight: 600; text-align: right; }
.ds-pieces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ds-piece { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--hp-radius); overflow: hidden; }
.ds-piece.depose { border-color: #C5DDD0; }
.ds-apercu { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--ap-sable) 0 10px, #EFE6D8 10px 20px); color: #8A7358; font-size: 34px; overflow: hidden; }
.ds-apercu img { width: 100%; height: 100%; object-fit: cover; }
.ds-pdf { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ocre-fonce); }
.ds-pdf i { font-size: 34px; }
.ds-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .94); color: #6B3F12; }
.ds-piece.depose .ds-badge { background: var(--ap-vert); color: #fff; }
.ds-piece-corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ds-piece-corps h3 { margin: 0; font-size: 15.5px; color: var(--encre); }
.ds-piece-corps p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--texte-2); }
.ds-envoi { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds-choisir { position: relative; overflow: hidden; }
.ds-choisir input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.ds-choisir:focus-within { outline: 3px solid var(--ocre); outline-offset: 2px; }
.ds-fichier { flex-basis: 100%; font-size: 12.5px; color: var(--texte-2); overflow-wrap: anywhere; }
.ds-fichier:empty { display: none; }
.js .ds-envoi .ds-valider { display: none; }
.js .ds-envoi.pret .ds-valider { display: inline-flex; }
.ds-final { display: flex; justify-content: space-between; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--hp-radius); background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ap-ombre); scroll-margin-top: calc(var(--ap-haut) + 16px); }
.ds-final > div { flex: 1 1 380px; }
.ds-final p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--texte-2); }
.ds-final p.ds-mention { display: flex; gap: 8px; font-size: 13px; }
.ds-final .ds-mention i { margin-top: 3px; color: var(--ap-vert); }
.ap-btn[disabled] { background: #CFC5B6; color: #3F382F; box-shadow: none; cursor: not-allowed; }

/* ── Carte d'apporteur ── */
.cr-grille { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 22px; align-items: start; }
.cr-carte { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; background: var(--encre); color: var(--ivoire); box-shadow: var(--ap-ombre-forte); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cr-carte::before { content: ''; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(224, 168, 109, .1); z-index: -1; }
.cr-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid rgba(250, 246, 240, .12); }
.cr-marque { font-family: var(--serif); font-size: 26px; line-height: 1; }
.cr-marque b { color: var(--ap-cuivre-clair); font-weight: 400; }
.cr-titre { text-align: right; font-size: 13px; font-weight: 700; line-height: 1.3; }
.cr-titre small { font-size: 11.5px; font-weight: 600; color: #8FD1AE; }
.cr-corps { display: grid; grid-template-columns: 112px minmax(0, 1fr) 96px; gap: 18px; align-items: center; padding: 20px 22px; }
.cr-photo { width: 112px; height: 140px; object-fit: cover; border-radius: 12px; background: rgba(250, 246, 240, .08); border: 2px solid rgba(250, 246, 240, .2); }
.cr-nom { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; }
.cr-zone { margin: 6px 0 0; display: flex; gap: 7px; align-items: center; font-size: 13px; color: rgba(250, 246, 240, .78); }
.cr-infos dl { margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.cr-infos dl div { display: flex; flex-direction: column; }
.cr-infos dt { font-size: 11.5px; color: rgba(250, 246, 240, .74); }
.cr-infos dd { margin: 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-infos .cr-code { font-size: 20px; letter-spacing: .08em; color: var(--ap-cuivre-clair); }
.cr-qr { width: 96px; height: 96px; padding: 7px; border-radius: 10px; background: #fff; }
.cr-qr svg { width: 100%; height: 100%; display: block; }
.cr-bas { margin: 0; display: flex; gap: 10px; align-items: center; padding: 12px 22px; background: rgba(224, 168, 109, .14); font-size: 13px; font-weight: 600; color: var(--ivoire); }
.cr-bas i { color: var(--ap-cuivre-clair); }
.cr-lien { margin: 8px 0 0; font-size: 13.5px; color: var(--texte-2); overflow-wrap: anywhere; }

/* ── Page publique de vérification ── */
.vf-hero { padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 80px); }
.vf-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.vf-intro h1 { font-family: var(--serif); font-weight: 400; color: var(--encre); font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); line-height: 1.04; letter-spacing: -.028em; margin: 0 0 16px; text-wrap: balance; }
.vf-intro h1 em { font-style: normal; color: var(--ocre-fonce); }
.vf-intro > p { font-size: clamp(1rem, .95rem + .3vw, 1.12rem); line-height: 1.65; color: var(--texte-2); margin: 0 0 24px; max-width: 54ch; }
.vf-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.vf-form input { flex: 1 1 240px; min-width: 0; min-height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid #CDBFAC; background: var(--surface); font: 700 18px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--encre); }
.vf-form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--texte-3); }
.vf-form input:focus { outline: none; border-color: var(--ocre); box-shadow: 0 0 0 4px rgba(184, 115, 51, .16); }
.vf-form .ap-btn { min-height: 54px; }
.vf-regle { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--hp-radius); background: #FBF3E8; border: 1px solid #EBD6BC; }
.vf-regle > i { font-size: 20px; color: var(--ocre-fonce); margin-top: 3px; }
.vf-regle h2 { margin: 0 0 4px; font-size: 16px; color: var(--encre); }
.vf-regle p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #6B3F12; }
.vf-fiche { border-radius: 24px; padding: clamp(22px, 3vw, 30px); background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ap-ombre-forte); }
.vf-fiche h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.15rem + .8vw, 1.8rem); color: var(--encre); margin: 0 0 8px; }
.vf-fiche > p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--texte-2); }
.vf-sceau { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 23px; margin-bottom: 14px; background: var(--ap-sable); color: var(--ocre-fonce); }
.vf-ko { border-color: #EFC9BD; }
.vf-ko .vf-sceau { background: #FDF4F1; color: var(--ap-rouge); }
.vf-fiche > p.vf-nom { font-weight: 700; color: var(--encre); }
.vf-nom span { margin-left: 6px; font-size: 13px; color: var(--texte-2); letter-spacing: .05em; }
.vf-ok { border-color: #C5DDD0; }
.vf-fiche > p.vf-statut { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ap-vert); color: #fff; font-size: 14px; font-weight: 700; }
.vf-identite { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.vf-identite img { width: 120px; height: 150px; object-fit: cover; border-radius: 14px; border: 1px solid var(--ligne); background: var(--ap-sable); }
.vf-identite h2 { margin: 0; }
.vf-zone { margin: 6px 0 0; display: flex; gap: 7px; align-items: center; font-size: 14px; color: var(--texte-2); }
.vf-details { margin: 0 0 16px; }
.vf-details div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ligne-claire); font-size: 14.5px; }
.vf-details dt { color: var(--texte-2); }
.vf-details dd { margin: 0; font-weight: 700; color: var(--encre); text-align: right; font-variant-numeric: tabular-nums; }
.vf-fiche > p.vf-conseil { display: flex; gap: 10px; margin: 0; font-size: 13.5px; }
.vf-conseil i { color: var(--ocre-fonce); margin-top: 3px; }

@media (max-width: 1100px) {
  .ch-grille, .cr-grille { grid-template-columns: minmax(0, 1fr); }
  .ch-signature-col { position: static; }
}
@media (max-width: 900px) {
  .tl-cadre, .vf-grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .ds-etat-tete { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
  .ds-etat-ico { width: 44px; height: 44px; font-size: 18px; }
  .ds-etat-tete > .ap-btn, .ds-anneau { grid-column: 1 / -1; justify-self: start; }
  .ds-etapes li { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 18px; }
  .ds-etapes li > a, .ds-etapes li > .ds-ok { grid-column: 2; }
  .ds-etapes li > .ds-ok:empty { display: none; }
  .ds-lecture { grid-template-columns: minmax(0, 1fr); }
  .ch-articles p { margin-left: 0; }
  .cr-corps { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .cr-photo { width: 88px; height: 110px; }
  .cr-qr { grid-column: 1 / -1; justify-self: center; width: 120px; height: 120px; }
  .cr-haut, .cr-bas { padding-inline: 16px; }
  .vf-identite img { width: 96px; height: 120px; }
}
@media print {
  .cr-aide, .ap-flash { display: none !important; }
  .cr-grille, .ch-grille { display: block; }
  .cr-carte { max-width: 110mm; box-shadow: none; }
}

/* ═══ Grands écrans : la colonne latérale accompagne la lecture ═══════════ */
/* Une colonne courte à côté d'un long formulaire laissait un trou : elle
   reste maintenant à portée de vue pendant le défilement. */
@media (min-width: 901px) {
  .ap-kit > :last-child { position: sticky; top: calc(var(--ap-haut) + 20px); }
  /* Deux blocs de même rang (calculateur et règle) : même hauteur, contenu centré. */
  .ap-kit.etire { align-items: stretch; }
  .ap-kit.etire > :last-child { position: static; display: flex; flex-direction: column; justify-content: center; }
  .ap-kit.etire .dv-engagements li + li { margin-top: 10px; }
}

/* Frise « Le chemin du propriétaire » : horizontale sur grand écran, le trait
   relie les pastilles de gauche à droite ; verticale ailleurs. */
@media (min-width: 1500px) {
  .ap-etapes.horizontal { flex-direction: row; gap: 20px; }
  .ap-etapes.horizontal li { flex: 1 1 0; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; padding: 0; }
  .ap-etapes.horizontal li::after { left: 50px; right: -12px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .ap-etapes.horizontal strong { margin: 14px 0 6px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUIVI DES DOSSIERS, ÉCHANGES EN LECTURE SEULE, INDICATEURS (2026-09)
   ═══════════════════════════════════════════════════════════════════════════ */
.ap-h3 { font-family: var(--serif); font-weight: 400; color: var(--encre); margin: 0 0 12px; font-size: 1.18rem; line-height: 1.25; }
.ap-discret { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--texte-2); }
.ap-discret .ap-etat { margin-right: 8px; vertical-align: middle; }
.ap-sur-titre { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--texte-2); display: flex; gap: 8px; align-items: center; }
.ap-sur-titre i { color: var(--ocre-fonce); }
.ap-fil-retour { margin: 0 0 10px; }

.ap-kpis { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ap-kpis li { background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 14px 16px; }
.ap-kpis b { display: block; font: 700 1.6rem/1 var(--sans); color: var(--encre); font-variant-numeric: tabular-nums; }
.ap-kpis span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--texte-2); line-height: 1.35; }
.ap-kpis li.alerte { border-color: #EFC9BD; background: #FDF4F1; }
.ap-kpis li.alerte b { color: var(--ap-rouge); }

.ap-grille2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; align-items: start; }
.ap-grille2 > div { display: flex; flex-direction: column; gap: 18px; }

.ap-chrono { list-style: none; margin: 0; padding: 0; position: relative; }
.ap-chrono::before { content: ''; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--ap-lin); }
.ap-chrono li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 0 0 16px; }
.ap-chrono li > i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--ap-sable); color: var(--texte-2); position: relative; z-index: 1; border: 3px solid var(--surface); }
.ap-chrono li.bon > i { background: var(--ap-vert-fond); color: var(--ap-vert); }
.ap-chrono li.info > i { background: #FBF3E8; color: var(--ocre-fonce); }
.ap-chrono li.alerte > i { background: #FDF4F1; color: var(--ap-rouge); }
.ap-chrono strong { display: block; font-size: 14.5px; color: var(--encre); line-height: 1.4; }
.ap-chrono span { display: block; font-size: 13.5px; color: var(--texte-2); line-height: 1.5; overflow-wrap: anywhere; }
.ap-chrono time { display: block; font-size: 12.5px; color: var(--texte-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ap-chrono.compacte li { padding-bottom: 12px; }

.ap-ident { display: flex; gap: 12px; align-items: center; margin: 0 0 10px; }
.ap-ident i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ap-sable); color: var(--ocre-fonce); flex-shrink: 0; }
.ap-ident strong { display: block; color: var(--encre); }
.ap-ident span { color: var(--texte-2); font-size: 14px; font-variant-numeric: tabular-nums; }

.ap-action { border-top: 1px solid var(--ap-lin); padding: 12px 0; }
.ap-action:first-of-type { border-top: 0; padding-top: 0; }
.ap-action summary { cursor: pointer; font-weight: 700; color: var(--encre); display: flex; gap: 10px; align-items: center; min-height: 36px; list-style: none; }
.ap-action summary::-webkit-details-marker { display: none; }
.ap-action summary::after { content: '+'; margin-left: auto; font-size: 18px; color: var(--texte-3); }
.ap-action[open] summary::after { content: '−'; }
.ap-action summary i { color: var(--ocre-fonce); width: 18px; text-align: center; }
.ap-action.signal summary i { color: var(--ap-rouge); }
.ap-action summary:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; border-radius: 6px; }
.ap-form-mini { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ap-form-mini .ap-champ { margin: 0; }
.ap-btn.petit { min-height: 36px; padding: 0 13px; font-size: 13px; }
.ap-vide.petit { padding: 26px 20px; }

.ap-ligne.cliquable .ap-ligne-titre a { color: inherit; }
.ap-ligne.cliquable .ap-ligne-titre a:hover strong { color: var(--ocre-fonce); }
.ap-ligne.cliquable .ap-ligne-titre a:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 4px; }

.ap-fil { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-msg { max-width: min(640px, 88%); padding: 12px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); }
.ap-msg.proprietaire { align-self: flex-end; background: #FBF3E8; border-color: #EBD6BC; }
.ap-msg.admin, .ap-msg.systeme { align-self: center; background: var(--ap-sable); border-style: dashed; max-width: 92%; }
.ap-msg.retire { opacity: .7; font-style: italic; }
.ap-msg-tete { margin: 0 0 5px; font-size: 12.5px; color: var(--texte-2); }
.ap-msg-tete strong { color: var(--encre); }
.ap-msg-texte { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--texte); overflow-wrap: anywhere; }
.ap-msg-piece { margin: 6px 0 0; font-size: 13px; color: var(--texte-2); display: flex; gap: 7px; align-items: center; }

@media (max-width: 900px) {
  .ap-grille2 { grid-template-columns: minmax(0, 1fr); }
  .ap-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-msg { max-width: 94%; }
}

/* ═══ Échanges client ↔ propriétaire : ce qui est nouveau pour l'apporteur ═══ */
.ap-etat.nouveau { background: #2B2620; color: #F4D6B0; }
.ap-etat.nouveau::before { background: var(--ap-cuivre-clair); box-shadow: 0 0 0 3px rgba(224, 168, 109, .28); }
.ap-kpis li.nouveau { border-color: #E3C49E; background: #FBF3E8; }
.ap-kpis li.nouveau b { color: #6B3F12; }
.ap-echanges .ap-ligne { grid-template-columns: 44px minmax(0, 1fr) auto auto auto; }
.ap-echanges .ap-ligne.a-lire { background: linear-gradient(90deg, rgba(224, 168, 109, .12), transparent 60%); box-shadow: inset 3px 0 0 var(--ap-cuivre-clair); }
@media (max-width: 720px) {
  .ap-echanges .ap-ligne { grid-template-columns: 40px minmax(0, 1fr); }
  .ap-echanges .ap-ligne > .ap-etat, .ap-echanges .ap-ligne > .ap-btn { grid-column: 2; justify-self: start; }
}

/* Suivi des dossiers : colonnes fixes (contacts · échanges · réservations) et pastilles regroupées à droite, quel que soit le nombre de pastilles. */
.ap-doss .ap-ligne { grid-template-columns: 44px minmax(0, 1.8fr) 84px 84px 84px 230px; }
.ap-doss .ap-cellule { margin: 0; text-align: center; }
.ap-ligne-fin { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
@media (max-width: 1100px) { .ap-doss .ap-ligne { grid-template-columns: 44px minmax(0, 1fr) auto; } .ap-doss .ap-ligne .ap-cellule { display: none; } }
@media (max-width: 640px) { .ap-doss .ap-ligne { grid-template-columns: 40px minmax(0, 1fr); } .ap-doss .ap-ligne-fin { grid-column: 2; justify-content: flex-start; } }
