/* Site v2 : pages module (includes/v2/page_module.php). Blocs communs dans css/v2-blocs.css, socle dans css/v2.css.
   Règles : doc/plans/prompts/site-v2-pages-spec.md. */

/* ─── Hero compact : texte à gauche, scène en plâtre sur l'arche pêche à droite ─── */
.pm-hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); max-width: 1180px; margin: 0 auto; padding: clamp(120px, 11vw, 150px) 0 clamp(40px, 5vw, 72px); }
.pm-hero-txt { display: grid; gap: 20px; justify-items: start; }
.pm-fil { display: flex; gap: 8px; font: 500 13.5px/1.3 var(--texte); color: var(--t-sub); }
.pm-fil a { color: var(--t-lien); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); }
.pm-fil a:hover { text-decoration-color: currentColor; }
.pm-hero h1 { font-family: var(--titre); font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; letter-spacing: var(--titre-ls); font-weight: var(--titre-poids); color: var(--t-titre); text-wrap: balance; }
.pm-hero h1 b { font-weight: inherit; background: linear-gradient(transparent 62%, var(--t-sur) 62% 90%, transparent 90%) no-repeat 0 0 / 0% 100%; animation: surligne .9s .4s cubic-bezier(.2, .7, .2, 1) forwards; }
.pm-sub { font-size: clamp(16px, 1.25vw, 17.5px); line-height: 1.6; color: var(--t-sub); max-width: 54ch; text-wrap: pretty; }
.pm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 4px; }
.pm-hero .lien-suite { color: var(--t-lien); }
.pm-scene { position: relative; }
.pm-scene::before { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: 4%; bottom: 10%; border-radius: 999px 999px 0 0; background: var(--arche); }
.pm-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 900px) {
    .pm-hero-in { grid-template-columns: 1fr; padding-top: 112px; }
    .pm-scene { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .pm-hero h1 b { animation: none; background-size: 100% 100%; } }
/* /solutions : la scène du module dans son panneau, et les liens vers les pages module */
.pm-scene--panneau { max-width: 460px; width: 100%; margin: 8px 0; }
/* Une teinte d'arche par module, deux voisins jamais pareils */
.pm-scene--sauge { --arche: #dcebe1; }
.pm-scene--bleu { --arche: #dbe6f3; }
.pm-scene--rose { --arche: #f1dfd8; }
[data-theme="nuit"] .pm-scene--sauge { --arche: #29494a; }
[data-theme="nuit"] .pm-scene--bleu { --arche: #2a4670; }
[data-theme="nuit"] .pm-scene--rose { --arche: #463f5c; }
@media (min-width: 901px) {
    /* Texte à gauche, scène à droite qui déborde un peu sous le texte ; points et liens sur toute la largeur */
    /* Rangées 1 et 5 vides et extensibles : le bloc de texte se centre face à la scène */
    .pm-panneau:has(> .pm-scene--panneau) { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); grid-template-rows: 1fr auto auto auto 1fr auto auto; row-gap: 0; }
    .pm-panneau:has(> .pm-scene--panneau) > * { grid-column: 1; position: relative; z-index: 1; }
    .pm-panneau:has(> .pm-scene--panneau) > h2 { grid-row: 2; }
    .pm-panneau:has(> .pm-scene--panneau) > .pm-sous { grid-row: 3; margin-top: 14px; }
    .pm-panneau:has(> .pm-scene--panneau) > .pm-desc { grid-row: 4; margin-top: 14px; }
    .pm-panneau > .pm-scene--panneau { grid-column: 2; grid-row: 1 / 6; z-index: 0; align-self: center; max-width: none; width: 112%; margin: 0 0 0 -12%; }
    .pm-panneau:has(> .pm-scene--panneau) > .pm-points { grid-column: 1 / -1; grid-row: 6; }
    .pm-panneau:has(> .pm-scene--panneau) > .pm-liens { grid-column: 1 / -1; grid-row: 7; margin-top: 20px; }
}
.pm-liens { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; }

/* ─── Défilement : sommaire collant à gauche, panneaux qui s'allument un par un ─── */
.hero + .suite.pm { padding-top: clamp(72px, 7vw, 110px); }
.pm-defile { grid-template-columns: 272px minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; }
/* Sommaire : une carte collante ; chaque étape a son icône, l'étape lue déplie son sous-titre, un fil orange avance avec la lecture */
.pm-sommaire { position: sticky; top: 100px; display: grid; gap: 12px; padding: 16px 12px 12px; border-radius: 22px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-trait), var(--c-omb); transition: background .5s; }
.pm-som-tete { display: flex; justify-content: space-between; align-items: baseline; padding: 0 8px; font: 600 12.5px/1.3 var(--texte); color: var(--s-doux); }
.pm-som-compte { font-variant-numeric: tabular-nums; }
.pm-som-compte b { color: var(--s-txt); }
.pm-som-liste { --avance: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pm-som-liste::before, .pm-som-liste::after { content: ""; position: absolute; left: 24px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px; background: var(--c-trait); }
.pm-som-liste::after { background: #fc8822; transform-origin: 50% 0; transform: scaleY(var(--avance)); }
.pm-som-item { position: relative; z-index: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 8px; border-radius: 14px; color: var(--s-doux); text-decoration: none; transition: background .35s, color .35s; }
.pm-som-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--s-doux); background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-trait); transition: background .35s, color .35s, box-shadow .35s; }
.pm-som-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pm-som-txt b { display: block; padding-top: 7px; font: 600 14.5px/1.3 var(--texte); }
.pm-som-txt small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 0; overflow: hidden; opacity: 0; font: 500 12.5px/1.45 var(--texte); color: var(--s-doux); transition: max-height .45s cubic-bezier(.2, .7, .2, 1), opacity .3s, margin .45s; }
.pm-som-item:hover { color: var(--s-txt); }
.pm-som-item.est-lu .pm-som-ico { color: #437a56; }
[data-theme="nuit"] .pm-som-item.est-lu .pm-som-ico { color: #8fb5a2; }
.pm-som-item.est-actif { color: var(--s-txt); background: var(--s-bg3); }
.pm-som-item.est-actif .pm-som-ico { color: #13284b; background: #fc8822; box-shadow: inset 0 -2px 0 #c9620c; }
.pm-som-item.est-actif small { max-height: 5em; opacity: 1; margin: 3px 0 4px; }
.pm-som-item:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.pm-som-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #13284b; color: #fff; text-decoration: none; }
[data-theme="nuit"] .pm-som-cta { background: rgba(255, 255, 255, .08); }
.pm-som-cta b { display: block; font: 700 14px/1.3 var(--texte); }
.pm-som-cta small { display: block; font: 500 12px/1.3 var(--texte); color: #c9d6e3; }
.pm-som-cta svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #ffb533; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.pm-som-cta:hover svg { transform: translateX(3px); }
.pm-som-cta:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

.pm-panneaux { display: grid; gap: clamp(88px, 9vw, 140px); min-width: 0; }
.pm-panneau { display: grid; gap: 14px; min-width: 0; scroll-margin-top: 120px; transition: opacity .5s ease; }
.pm-pret .pm-panneau:not(.est-actif) { opacity: .35; }
.pm .pm-panneau h2 { max-width: 30ch; }
.pm .pm-sous { font: 600 15px/1.4 var(--texte); color: #c4600c; max-width: none; }
[data-theme="nuit"] .pm .pm-sous { color: #ffb877; }
.pm .pm-desc { font-size: 16.5px; line-height: 1.65; max-width: 64ch; }
.pm-desc strong { font-weight: 600; color: var(--s-txt); }

/* Écran du logiciel : posé dans une carte claire, coupé par son bord bas */
.pm-cadre { height: 330px; margin: 18px 0 8px; border-radius: 22px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-trait), var(--c-omb); padding-top: 26px; }
.pm-cadre .sm-ecran { top: 26px; }

/* Points : icône dans une petite dalle, sans filet de couleur */
.pm-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.pm-point { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.pm-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--s-txt); background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-trait), 0 1px 0 var(--c-trait), 0 10px 18px -12px rgba(19, 40, 75, .45); }
.pm-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pm-point h3 { margin: 0 0 4px; font-family: var(--titre); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pm .pm-point p { font-size: 15px; line-height: 1.6; }
/* Lien dans le texte courant : bleu foncé un peu gras, souligné orange, sinon rien ne le signale comme cliquable */
.pm p a:not([class]) { color: var(--t-lien); font-weight: 600; text-decoration: underline #fc8822; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.pm p a:not([class]):hover { text-decoration-thickness: 2.5px; }

@media (max-width: 980px) {
    /* Le sommaire devient un rail d'icônes collé à gauche : on sait toujours dans quel module on lit, un toucher y saute */
    .pm-defile { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }
    .pm-sommaire { top: 76px; gap: 0; padding: 4px; border-radius: 16px; transition: top .3s cubic-bezier(.2, .7, .2, 1); }
    body:has(.navbar.cachee) .pm-sommaire { top: 16px; }
    .pm-som-tete, .pm-som-cta { display: none; }
    .pm-som-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .pm-som-item { grid-template-columns: 34px; padding: 2px; border-radius: 12px; }
    .pm-som-item.est-actif { background: none; }
    .pm-som-liste { gap: 6px; }
    .pm-som-liste::before, .pm-som-liste::after { left: 18px; top: 20px; bottom: 20px; }
    .pm-pret .pm-panneau:not(.est-actif) { opacity: .45; }
    .pm-panneau + .pm-panneau { padding-top: 48px; border-top: 1px solid var(--c-trait); }
}
@media (max-width: 680px) {
    .pm-points { grid-template-columns: 1fr; gap: 22px; }
    .pm-cadre { height: 260px; padding-top: 18px; }
    .pm-cadre .sm-ecran { top: 18px; left: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pm-panneau, .pm-som-item, .pm-som-ico, .pm-som-txt small { transition: none; } }

/* ─── Comparatif : filets fins, trois colonnes ─── */
.pm-cmp { --cmp-trait: color-mix(in srgb, var(--s-txt) 13%, transparent); }
.pm-cmp .suite-in { gap: 0; }
.pm-compare { width: 100%; margin-top: clamp(36px, 4.5vw, 56px); border-collapse: collapse; font-size: 15.5px; line-height: 1.5; color: var(--s-txt); }
.pm-compare th, .pm-compare td { padding: 18px 20px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cmp-trait); }
.pm-compare thead th { padding-top: 0; font: 600 13px/1.3 var(--texte); color: var(--s-doux); }
.pm-compare tbody th { width: 22%; font-weight: 700; }
.pm-compare td:nth-child(2) { width: 38%; color: var(--s-doux); }
.pm-compare td:last-child { font-weight: 600; }
.pm-visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
    .pm-compare thead { display: none; }
    .pm-compare tr { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--cmp-trait); }
    .pm-compare th, .pm-compare td { width: auto !important; padding: 0; border: 0; }
}

/* ─── Cas d'usage : deux temps, sans fond de couleur ─── */
.pm-cas .suite-in { gap: 0; }
.pm-cas-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4.5vw, 56px); }
.pm-cas-carte { display: grid; gap: 14px; align-content: start; padding: 26px 28px; border-radius: 22px; background: var(--s-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--s-txt) 8%, transparent); }
.pm-cas-carte h3 { margin: 0; font-family: var(--titre); font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.pm-cas .pm-cas-carte p { font-size: 15px; line-height: 1.6; max-width: none; }
.pm-cas-carte p span { display: block; margin-bottom: 2px; font: 600 12.5px/1.3 var(--texte); color: var(--s-doux); }
.pm-cas .pm-cas-apres { padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--s-txt) 16%, transparent); color: var(--s-txt); }
.pm-cas-apres span { color: #c4600c !important; }
[data-theme="nuit"] .pm-cas-apres span { color: #ffb877 !important; }
@media (max-width: 760px) { .pm-cas-grille { grid-template-columns: 1fr; } .pm-cas-carte { padding: 22px; } }

/* ─── FAQ : lectures sous la liste, feuilles à rebord plein (grammaire des dessins) ─── */
.pm-lectures { --lec-rebord: #c9d6e3; margin-top: clamp(48px, 6vw, 72px); }
[data-theme="nuit"] .pm-lectures { --lec-rebord: #0b1a33; }
.pm-lectures h3 { font: 700 clamp(20px, 2vw, 24px)/1.2 var(--titre); color: var(--s-txt); margin-bottom: 20px; }
.pm-lectures ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.pm-lectures a { display: flex; height: 100%; align-items: flex-end; justify-content: space-between; gap: 14px; min-height: 108px; padding: 18px 20px; border-radius: 16px; background: #fff; color: #193451; box-shadow: 0 6px 0 var(--lec-rebord); font: 700 16px/1.35 var(--titre); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pm-lectures a svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease, color .2s ease; }
.pm-lectures a:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--lec-rebord); }
.pm-lectures a:hover svg { color: #fc8822; transform: translateX(3px); }
.pm-lectures a:focus-visible { outline: 3px solid #fc8822; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pm-lectures a, .pm-lectures a svg { transition: none; } }
@media (max-width: 640px) { .pm-lectures ul { gap: 14px; } .pm-lectures a { min-height: 0; align-items: center; padding: 16px 18px; font-size: 15px; } }

/* ─── Scènes du hero : trajet en pointillé et objet qui flotte ─── */
.pm-traj { fill: none; stroke: #fc8822; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 8; animation: pm-file 1.4s linear infinite; }
@keyframes pm-file { to { stroke-dashoffset: -18; } }
.pm-flotte { animation: pm-flotte 4.5s ease-in-out infinite alternate; }
@keyframes pm-flotte { to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pm-traj, .pm-flotte { animation: none; } }

/* ─── Descriptions justifiées (césure française, <html lang="fr">) ─── */
.pm .pm-desc { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
/* Téléphone : panneaux et points resserrés */
@media (max-width: 680px) {
    .pm-panneaux { gap: 48px; }
    .pm-scene--panneau { max-width: 320px; margin: 4px auto; }
    .pm-points { gap: 16px; margin-top: 10px; }
    .pm-point { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
    .pm-ico { width: 34px; height: 34px; border-radius: 10px; }
    .pm-ico svg { width: 17px; height: 17px; }
    .pm-point h3 { font-size: 15.5px; margin-bottom: 2px; }
    .pm .pm-point p { font-size: 14.5px; line-height: 1.5; }
}

/* ─── Dessins des panneaux : grammaire du Design System « Insuleo, communication » posée sur ses lignes de niveau.
   Feuille blanche à rebord plein (jamais de flou), pilules pleines, tracés épais ; une seule chose orange par dessin.
   La fenêtre du logiciel (.pm-cadre) reste la seule capture de la page. ─── */
.pm-encart { --ligne-niveau: rgba(19, 40, 75, .07); position: relative; margin: 18px 0 8px; padding: clamp(24px, 3.2vw, 44px); border-radius: 24px; transition: background .5s;
    background: repeating-radial-gradient(circle at 12% 112%, transparent 0 46px, var(--ligne-niveau) 46px 47.5px), var(--s-bg3); }
[data-theme="nuit"] .pm-encart { --ligne-niveau: rgba(255, 255, 255, .05); }
.di { --di-rebord: #c9d6e3; --di-rail: #dce7f2; font-family: var(--titre); color: var(--s-txt); }
[data-theme="nuit"] .di { --di-rebord: #0b1a33; --di-rail: rgba(220, 231, 242, .16); }
.di-feuille { padding: 20px 22px 22px; border-radius: 16px; background: #fff; color: #193451; box-shadow: 0 8px 0 var(--di-rebord); }
.di-feuille-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid #193451; font: 700 17px/1.2 var(--titre); letter-spacing: -.01em; }
.di-feuille-t span { font-size: 13px; color: #6484a3; white-space: nowrap; }
.di-ln { display: block; height: 8px; margin-bottom: 10px; border-radius: 4px; background: #e1e8f0; }
.di-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 10px; border-top: 2px solid #e1e8f0; font: 700 16px/1.2 var(--titre); font-variant-numeric: tabular-nums; }
.di-pilule { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: #dce7f2; color: #13284b; font: 700 15px/1.2 var(--titre); white-space: nowrap; }
.di-pilule--sauge { background: #5d8773; color: #fff; box-shadow: 0 0 0 3px #fff; }
.di-pilule--orange { background: #fc8822; }
.di .di-legende { margin-bottom: 22px; font: 600 13.5px/1.3 var(--titre); color: var(--s-doux); }
/* Aiguillage : une feuille, des voies épaisses, des pilules d'arrivée (hauteur fixe : les voies tombent au centre des pilules) */
.di-aig { display: grid; grid-template-columns: minmax(0, 340px) minmax(80px, 1fr) auto; align-items: center; }
.di-voies { width: 100%; height: 252px; overflow: visible; }
.di-voies path { fill: none; stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.di-arrivees { display: grid; align-content: space-between; justify-items: start; height: 252px; }
/* Ligne de métro : des stations datées, un tracé par étape, la dernière en orange ; le tracé sort du cadre */
.di-metro { list-style: none; margin: 8px calc(clamp(24px, 3.2vw, 44px) * -1) 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.di-st { --c: #6484a3; position: relative; display: grid; justify-items: center; gap: 4px; padding-top: 62px; text-align: center; }
.di-st::before { content: ""; position: absolute; top: 20px; left: 0; right: 0; height: 12px; background: var(--c); }
.di-st::after { content: ""; position: absolute; top: 4px; left: calc(50% - 22px); box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 10px solid var(--c); }
.di-st--sauge { --c: #5d8773; } .di-st--orange { --c: #fc8822; }
.di-st b { font: 700 16px/1.25 var(--titre); }
.di-st span { font: 700 30px/1 var(--titre); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.di-st--orange span { color: #c4600c; }
[data-theme="nuit"] .di-st--orange span { color: #ffb877; }
/* Rails : un rail épais par poste, rempli en sauge ; le dépassement porte la seule pilule orange */
.di-rails { display: grid; gap: 18px; }
.di-rail { display: grid; grid-template-columns: 190px minmax(0, 1fr) 150px; gap: 16px; align-items: center; font: 600 15px/1.3 var(--titre); }
.di-rail i { position: relative; height: 18px; border-radius: 9px; background: var(--di-rail); }
.di-rail i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: inherit; background: #5d8773; }
.di-rail span { color: var(--s-doux); font-variant-numeric: tabular-nums; }
.di-rail .di-pilule { justify-self: start; padding: 7px 14px; font-size: 13.5px; }

/* Courrier (DS) : une feuille de face, annotée par des légendes fléchées, une pilule ou un tampon collé dessus */
.di-courrier { position: relative; padding: 18px 0 26px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: center; }
.di-notes { display: grid; gap: 34px; margin: 0; padding: 0; list-style: none; }
.di-notes li { position: relative; padding-left: 64px; font: 700 17px/1.3 var(--titre); }
.di-notes li::before { content: ""; position: absolute; left: -12px; top: calc(50% - 1.5px); width: 64px; height: 3px; background: currentColor; }
.di-notes li::after { content: ""; position: absolute; left: -20px; top: calc(50% - 8px); box-sizing: border-box; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid currentColor; }
.di-courrier > .di-pilule { position: absolute; left: 150px; bottom: -6px; transform: rotate(3deg); }
.di-tampon { position: absolute; right: calc(100% - 360px - 44px); top: -8px; padding: 8px 16px; border-radius: 10px; border: 4px solid #fc8822; background: #13284b; color: #fc8822; font: 800 17px/1.1 var(--titre); letter-spacing: .05em; text-transform: uppercase; transform: rotate(-7deg); white-space: nowrap; }

/* Jauge (DS) : tube vertical en zones, repères nommés à gauche, zones expliquées à droite. Zone haute orange, utile sauge, basse bleu-gris */
.di-jauge { display: grid; grid-template-columns: 170px 44px minmax(0, 1fr); column-gap: 22px; }
.di-zone { display: contents; }
.di-zone > i { grid-column: 2; min-height: 86px; background: #6484a3; }
.di-zone:first-child > i { border-radius: 22px 22px 0 0; background: #fc8822; }
.di-zone:nth-child(2) > i { background: #5d8773; }
.di-zone:last-child > i { border-radius: 0 0 22px 22px; }
.di-zone > div { grid-column: 3; align-self: center; font: 700 17px/1.3 var(--titre); }
.di-zone > div small { display: block; font: 600 14px/1.35 var(--titre); color: var(--s-doux); }
.di-zone > .di-pilule { grid-column: 1; align-self: end; justify-self: end; position: relative; translate: 0 50%; z-index: 1; }
.di-zone > .di-pilule::after { content: ""; position: absolute; left: 100%; top: calc(50% - 1.5px); width: 44px; height: 3px; background: var(--s-txt); }

/* Curseurs (DS) : les réglages d'un module, celui qu'on montre en orange */
.di-curseurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px 26px; }
.di-curseur { display: grid; grid-template-rows: 2.6em auto auto; gap: 14px; font: 700 15px/1.25 var(--titre); color: var(--s-doux); }
.di-curseur i { position: relative; height: 8px; border-radius: 4px; background: var(--di-rail); }
.di-curseur i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: inherit; background: #6484a3; }
.di-curseur i::after { content: ""; position: absolute; top: -8px; left: calc(var(--v) * 1% - 12px); width: 24px; height: 24px; border-radius: 50%; background: #dce7f2; box-shadow: 0 0 0 3px #6484a3; }
.di-curseur b { align-self: end; }
.di-curseur span { font: 800 22px/1 var(--titre); color: var(--s-txt); font-variant-numeric: tabular-nums; }
.di-curseur.est-actif { color: #c4600c; }
.di-curseur.est-actif i::before { background: #fc8822; }
.di-curseur.est-actif i::after { background: #fc8822; box-shadow: 0 0 0 3px #fff; }
[data-theme="nuit"] .di-curseur.est-actif { color: #ffb877; }
@media (max-width: 760px) {
    .di-courrier { grid-template-columns: minmax(0, 1fr); padding-bottom: 18px; }
    .di-notes { gap: 14px; }
    .di-notes li { padding-left: 30px; }
    .di-notes li::before { display: none; }
    .di-notes li::after { left: 0; }
    .di-tampon { right: -4px; top: -6px; }
    .di-courrier > .di-pilule { position: static; justify-self: start; margin-top: -6px; }
    .di-jauge { grid-template-columns: 0 36px minmax(0, 1fr); column-gap: 16px; }
    .di-zone > .di-pilule { display: none; }
    .di-aig { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .di-voies { display: none; }
    .di-arrivees { height: auto; display: flex; flex-wrap: wrap; gap: 10px; }
    .di-metro { grid-template-columns: minmax(0, 1fr); margin: 0; row-gap: 0; }
    .di-st { justify-items: start; padding: 0 0 26px 64px; text-align: left; }
    .di-st::before { top: 0; bottom: 0; left: 16px; right: auto; width: 12px; height: auto; }
    .di-st::after { top: 0; left: 0; }
    .di-st span { font-size: 24px; }
    .di-rail { grid-template-columns: minmax(0, 1fr) auto; }
    .di-rail i { grid-column: 1 / -1; grid-row: 2; }
    .pm-encart { padding: 18px; }
}

/* ─── Hero : pilules posées sur la scène, chacune un fait du module ─── */
.pm-hc { position: absolute; z-index: 3; animation: pm-hc 5s ease-in-out infinite alternate; }
@keyframes pm-hc { to { translate: 0 -8px; } }
.pm-hc--1 { left: 0; top: 16%; transform: rotate(-3deg); }
.pm-hc--2 { right: -2%; top: 40%; transform: rotate(2deg); animation-delay: -2s; }
.pm-hc--3 { left: 10%; bottom: 8%; transform: rotate(-1deg); animation-delay: -3.5s; }
@media (max-width: 560px) { .pm-hc { font-size: 13px; padding: 8px 14px; } }
@media (prefers-reduced-motion: reduce) { .pm-hc { animation: none; } }

.di-ln:nth-of-type(2) { width: 86%; } .di-ln:nth-of-type(3) { width: 62%; }

/* ─── Dessins propres à un panneau (un par sujet, grammaire du Design System : blanc à rebord plein, tracés épais, une seule chose orange) ─── */
.di { --di-plaque: #eef3f8; --di-trait: #e1e8f0; }
[data-theme="nuit"] .di { --di-plaque: #1b3256; --di-trait: rgba(220, 231, 242, .14); }
.di-rang { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* GED · pièce agrafée à son écriture */
.di-agrafe { display: grid; grid-template-columns: minmax(0, 300px) 70px minmax(0, 1fr); align-items: center; }
.di-agrafe > i { height: 10px; border-radius: 5px; background: #5d8773; position: relative; }
.di-agrafe > i::before, .di-agrafe > i::after { content: ""; position: absolute; top: -7px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 7px #5d8773; }
.di-agrafe > i::before { left: -12px; } .di-agrafe > i::after { right: -12px; }
.di-ecriture { display: grid; gap: 8px; padding: 18px 20px; border-radius: 14px; background: #fff; color: #193451; box-shadow: 0 8px 0 var(--di-rebord); font: 700 15px/1.3 var(--titre); }
.di-ecriture small { font-size: 13px; color: #6484a3; }
.di-ecriture b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* GED · qui voit le document : cercles concentriques */
.di-cercles { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: center; }
.di-anneaux { position: relative; width: 260px; height: 260px; }
.di-anneaux i { position: absolute; border-radius: 50%; border: 12px solid; inset: 0; }
.di-anneaux i:nth-child(1) { border-color: #dce7f2; }
.di-anneaux i:nth-child(2) { inset: 36px; border-color: #5d8773; }
.di-anneaux i:nth-child(3) { inset: 72px; border-color: #fc8822; }
.di-anneaux span { position: absolute; inset: 104px 96px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: #193451; box-shadow: 0 5px 0 var(--di-rebord); font: 800 13px/1 var(--titre); }
.di-cles-l { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; font: 700 17px/1.3 var(--titre); }
.di-cles-l li { display: flex; align-items: center; gap: 12px; }
.di-cles-l li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c, #dce7f2); }
.di-cles-l small { display: block; font: 600 13.5px/1.3 var(--titre); color: var(--s-doux); }
.di-cles-l .o { --c: #fc8822; } .di-cles-l .s { --c: #5d8773; }

/* GED · liste cochée des pièces obligatoires */
.di-coche { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font: 600 15.5px/1.3 var(--titre); }
.di-coche li { display: flex; align-items: center; gap: 12px; }
.di-coche li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #5d8773 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat; }
.di-coche li.manque::before { content: ""; background: #fff; box-shadow: inset 0 0 0 4px #fc8822; }
.di-coche li.manque { color: #c4600c; font-weight: 700; }

/* Technique · l'année des contrôles sur une frise */
.di-frise { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 10px; }
.di-frise > .di-pilule { grid-column: var(--v); justify-self: start; position: relative; margin-bottom: 26px; translate: -12px 0; }
.di-frise > .di-pilule::after { content: ""; position: absolute; left: 12px; top: 100%; width: 3px; height: 30px; background: var(--s-txt); }
.di-frise > .di-pilule:nth-of-type(2) { grid-row: 2; } .di-frise > .di-pilule:nth-of-type(3) { grid-row: 3; }
.di-frise > i { grid-column: 1 / -1; height: 14px; border-radius: 7px; background: #6484a3; }
.di-frise > b { text-align: left; font: 700 13px/1 var(--titre); color: var(--s-doux); }

/* Technique · ordre de service, ticket à bord perforé */
.di-ticket { max-width: 420px; padding: 22px 26px 22px 40px; border-radius: 14px; color: #193451; box-shadow: 0 8px 0 var(--di-rebord);
  background: radial-gradient(circle at 0 18px, transparent 9px, #fff 10px) 0 0 / 100% 36px repeat-y; font-family: var(--titre); }
.di-ticket-t { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 3px dashed #c9d6e3; font: 800 17px/1.2 var(--titre); }
.di-ticket-t span { color: #6484a3; font-size: 13px; }
.di-ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font: 600 15px/1.3 var(--titre); }
.di-ticket dt { color: #6484a3; } .di-ticket dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.di-ticket-pied { display: flex; justify-content: flex-end; margin-top: 18px; }

/* Technique · index d'un compteur */
.di-compteur { display: grid; justify-items: center; gap: 14px; text-align: center; }
.di-chiffres { display: flex; gap: 6px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 8px 0 var(--di-rebord); }
.di-chiffres b { display: grid; place-items: center; width: 50px; height: 66px; border-radius: 8px; background: #13284b; color: #fff; font: 800 38px/1 var(--titre); font-variant-numeric: tabular-nums; }
.di-chiffres b:last-child { background: #fc8822; color: #13284b; }
.di-compteur > span:not(.di-pilule) { font: 600 15px/1.3 var(--titre); color: var(--s-doux); }

/* Extranet · dossiers à onglets */
.di-dossiers { position: relative; max-width: 440px; padding-top: 70px; margin: 0 auto; }
.di-dossier { position: relative; padding: 18px 22px 22px; border-radius: 0 14px 14px 14px; background: #fff; color: #193451; box-shadow: 0 8px 0 var(--di-rebord); font: 700 16px/1.2 var(--titre); }
.di-dossier::before { content: attr(data-onglet); position: absolute; left: 0; bottom: 100%; padding: 8px 16px 6px; border-radius: 12px 12px 0 0; background: var(--c, #fff); color: #193451; font: 700 13px/1 var(--titre); white-space: nowrap; }
.di-dossier--1 { position: absolute; inset: 0 60px auto 70px; height: 90px; --c: #dce7f2; background: #dce7f2; box-shadow: none; }
.di-dossier--2 { position: absolute; inset: 34px 30px auto 35px; height: 90px; --c: #c9e0d3; background: #c9e0d3; box-shadow: none; }
.di-dossier--1::before { left: 180px; } .di-dossier--2::before { left: 120px; }
.di-dossier--3 { --c: #fc8822; }
.di-dossier .di-ln { margin-top: 12px; }
/* Dossier de vente (page lots) : pièces cochées, tampon du notaire en travers */
.di-pieces { display: grid; gap: 8px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #e3e8ef; list-style: none; font: 500 14px/1.3 var(--texte); }
.di-pieces li { display: flex; align-items: center; gap: 10px; }
.di-pieces li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #437a56 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.di-vente .di-tampon { right: -22px; top: auto; bottom: -22px; display: grid; justify-items: center; gap: 3px; transform: rotate(-9deg); }
.di-vente { padding-bottom: 26px; }
@media (max-width: 560px) { .di-vente .di-tampon { right: -6px; bottom: -18px; padding: 6px 10px; border-width: 3px; font-size: 12.5px; } }
.di-vente .di-tampon small { font: 600 10.5px/1 var(--texte); letter-spacing: 0; text-transform: none; color: #fff; opacity: .8; }

/* Extranet · panneau d'affichage de la résidence */
.di-affichage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 30px 26px 26px; border-radius: 18px; background: var(--di-plaque); box-shadow: inset 0 0 0 4px var(--di-rebord); }
.di-affiche { position: relative; padding: 22px 16px 16px; border-radius: 8px; background: #fff; color: #193451; box-shadow: 0 5px 0 var(--di-rebord); font: 700 15px/1.3 var(--titre); }
.di-affiche:nth-child(1) { transform: rotate(-2deg); } .di-affiche:nth-child(3) { transform: rotate(2deg); }
.di-affiche::before { content: ""; position: absolute; top: -9px; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: #6484a3; box-shadow: 0 3px 0 rgba(19, 40, 75, .25); }
.di-affiche.o::before { background: #fc8822; }
.di-affiche small { display: block; margin-top: 8px; font: 600 13px/1.3 var(--titre); color: #6484a3; }
.di-affiche big { display: block; margin-top: 10px; font: 800 28px/1 var(--titre); letter-spacing: -.02em; }

/* Extranet · conversation */
.di-bulles { display: grid; gap: 16px; max-width: 520px; margin: 0 auto; font: 600 15.5px/1.4 var(--titre); }
.di-bulle { position: relative; max-width: 80%; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: #fff; color: #193451; box-shadow: 0 6px 0 var(--di-rebord); }
.di-bulle small { display: block; margin-bottom: 4px; font: 700 12.5px/1 var(--titre); color: #6484a3; }
.di-bulle--moi { justify-self: end; border-radius: 18px 18px 4px 18px; background: #dce7f2; }
.di-bulle .di-photo { display: block; height: 70px; margin-top: 10px; border-radius: 10px; background: linear-gradient(160deg, #c9d6e3 0 45%, #6484a3 45% 70%, #5d8773 70%); }
.di-bulles > .di-pilule { justify-self: center; }

/* Lots · plan d'étage, un lot sélectionné */
.di-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.di-etage { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 90px 90px; gap: 0; border: 7px solid #13284b; border-radius: 6px; background: #fff; }
[data-theme="nuit"] .di-etage { border-color: #dce7f2; }
.di-etage span { display: grid; place-content: center; text-align: center; padding: 6px; border: 2px solid #c9d6e3; color: #193451; font: 700 14px/1.25 var(--titre); }
.di-etage span small { font-size: 12px; color: #6484a3; }
.di-etage span.o { background: #fc8822; border-color: #fc8822; color: #13284b; }
.di-etage span.o small { color: #13284b; }
.di-plan .di-cles-l { gap: 12px; }

/* Lots · le lot change de mains */

/* Lots · champs de la fiche du registre */
.di-champs { display: grid; gap: 12px; }
.di-champ { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 14px; font: 600 14px/1.3 var(--titre); color: #6484a3; }
.di-champ b { padding: 9px 14px; border-radius: 8px; background: #eef3f8; color: #193451; font: 700 15px/1.2 var(--titre); }
.di-champ.vide b { background: #fff; box-shadow: inset 0 0 0 3px #fc8822; color: #c4600c; }

/* Tableau de bord · la pile d'alertes du matin */
.di-pile { position: relative; max-width: 440px; margin: 0 auto; padding-top: 28px; }
.di-pile::before, .di-pile::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 80px; border-radius: 14px; background: #fff; box-shadow: 0 6px 0 var(--di-rebord); transform: rotate(-3deg); }
.di-pile::after { top: 14px; left: 10px; right: 10px; transform: rotate(2deg); }
.di-pile .di-feuille { position: relative; z-index: 1; }
.di-pile .di-feuille-t span { color: #c4600c; }

/* Tableau de bord · anneau d'encaissement */
.di-anneau { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: center; }
.di-anneau > div { display: grid; place-items: center; width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(#5d8773 calc(var(--p) * 1%), #fc8822 0); -webkit-mask: radial-gradient(circle, transparent 66px, #000 67px); mask: radial-gradient(circle, transparent 66px, #000 67px); }
.di-anneau > strong { grid-column: 1; grid-row: 1; place-self: center; display: grid; text-align: center; font: 800 38px/1 var(--titre); letter-spacing: -.03em; }
.di-anneau > strong small { font: 600 13px/1.3 var(--titre); color: var(--s-doux); letter-spacing: 0; }
.di-anneau .di-cles-l { grid-column: 2; grid-row: 1; }

/* Tableau de bord · fichiers exportés */
.di-fichiers { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.di-fichier { display: grid; justify-items: center; gap: 12px; font: 600 14px/1.3 var(--titre); color: var(--s-doux); text-align: center; }
.di-fichier b { position: relative; display: grid; place-items: end center; width: 104px; height: 132px; padding-bottom: 18px; border-radius: 10px 30px 10px 10px; background: #fff; color: #193451; box-shadow: 0 7px 0 var(--di-rebord); font: 800 22px/1 var(--titre); }
.di-fichier b::before { content: ""; position: absolute; top: 0; right: 0; width: 30px; height: 30px; border-radius: 0 0 0 10px; background: #dce7f2; }
.di-fichier b::after { content: ""; position: absolute; left: 18px; right: 18px; top: 40px; height: 34px; background: repeating-linear-gradient(#e1e8f0 0 6px, transparent 6px 14px); }
.di-fichier.o b { background: #fc8822; } .di-fichier.o b::before { background: #ffb877; } .di-fichier.o b::after { background: repeating-linear-gradient(rgba(19, 40, 75, .2) 0 6px, transparent 6px 14px); }

/* Multi-mandats · le portefeuille en silhouettes d'immeubles */
.di-immeubles { display: flex; align-items: flex-end; justify-content: center; gap: 18px; min-height: 250px; }
.di-imm { display: grid; justify-items: center; gap: 10px; font: 700 13.5px/1.25 var(--titre); text-align: center; }
.di-imm i { display: block; width: 74px; height: calc(var(--v) * 2px); border-radius: 6px 6px 0 0; background: #fff radial-gradient(circle, #c9d6e3 3.5px, transparent 4px) 0 8px / 18px 20px; box-shadow: 0 6px 0 var(--di-rebord); }
.di-imm.o i { background-color: #fc8822; background-image: radial-gradient(circle, rgba(19, 40, 75, .3) 3.5px, transparent 4px); }
.di-imm small { display: block; color: var(--s-doux); font-weight: 600; }

/* Multi-mandats · honoraires en piles de jetons */
.di-piles { display: flex; align-items: flex-end; justify-content: center; gap: 40px; min-height: 230px; }
.di-tas { display: grid; justify-items: center; gap: 12px; font: 700 14px/1.25 var(--titre); text-align: center; }
.di-tas i { position: relative; display: block; width: 84px; height: calc(var(--v) * 1.6px); border-radius: 0 0 42px 42px / 0 0 14px 14px; background: repeating-linear-gradient(#e8eef5 0 9px, #c9d6e3 9px 12px); }
.di-tas i::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #c9d6e3; }
.di-tas.s i { background: repeating-linear-gradient(#8fb5a2 0 9px, #5d8773 9px 12px); } .di-tas.s i::before { background: #c9e0d3; box-shadow: inset 0 0 0 3px #5d8773; }
.di-tas.o i { background: repeating-linear-gradient(#ffb877 0 9px, #fc8822 9px 12px); } .di-tas.o i::before { background: #ffd9b3; box-shadow: inset 0 0 0 3px #fc8822; }
.di-tas small { display: block; color: var(--s-doux); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Multi-mandats · trois courriers de relance, du plus doux au plus ferme */
.di-enveloppes { display: flex; align-items: flex-end; justify-content: center; gap: 26px; flex-wrap: wrap; }
.di-env { position: relative; display: grid; justify-items: center; gap: 12px; font: 700 14px/1.25 var(--titre); text-align: center; }
.di-env i { position: relative; display: block; width: calc(var(--v) * 1.5px); height: calc(var(--v) * 1px); border-radius: 10px; background: #fff; box-shadow: 0 7px 0 var(--di-rebord); overflow: hidden; }
.di-env i::before { content: ""; position: absolute; inset: 0 0 35%; background: #dce7f2; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.di-env.o i::before { background: #fc8822; }
.di-env .di-tampon { position: absolute; top: 18%; right: auto; left: 50%; translate: -50% 0; font-size: 13px; padding: 6px 10px; border-width: 3px; }

/* Multi-mandats · la carte des copropriétés voisines */
.di-carte { position: relative; height: 300px; border-radius: 18px; overflow: hidden; background: var(--di-plaque); box-shadow: inset 0 0 0 4px var(--di-rebord); }
.di-carte > i { position: absolute; background: #fff; border-radius: 8px; }
[data-theme="nuit"] .di-carte > i { background: #2a466c; }
.di-carte > i:nth-child(1) { left: -5%; right: -5%; top: 44%; height: 18px; transform: rotate(-6deg); }
.di-carte > i:nth-child(2) { top: -10%; bottom: -10%; left: 38%; width: 16px; transform: rotate(12deg); }
.di-carte > i:nth-child(3) { top: -10%; bottom: -10%; left: 76%; width: 12px; transform: rotate(-8deg); }
.di-carte > i:nth-child(4) { left: 40%; right: -5%; top: 78%; height: 12px; transform: rotate(4deg); }
.di-pin { position: absolute; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #c9d6e3; box-shadow: inset 0 0 0 7px #fff; }
.di-pin.s { background: #5d8773; } .di-pin.o { background: #fc8822; width: 42px; height: 42px; }
.di-pin:nth-of-type(1) { left: 14%; top: 20%; } .di-pin:nth-of-type(2) { left: 26%; top: 62%; } .di-pin:nth-of-type(3) { left: 52%; top: 22%; }
.di-pin:nth-of-type(4) { left: 64%; top: 30%; } .di-pin:nth-of-type(5) { left: 86%; top: 30%; } .di-pin:nth-of-type(6) { left: 8%; top: 76%; }
.di-pin:nth-of-type(7) { left: 46%; top: 50%; }
.di-carte > .di-pilule { position: absolute; left: calc(46% - 30px); top: calc(50% + 52px); box-shadow: 0 5px 0 var(--di-rebord); }
.di-carte + .di-cles-l { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; font-size: 14.5px; }

@media (max-width: 760px) {
    .di-agrafe { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
    .di-agrafe > i { width: 10px; height: 46px; justify-self: center; }
    .di-agrafe > i::before { left: -7px; top: -12px; } .di-agrafe > i::after { right: auto; left: -7px; top: auto; bottom: -12px; }
    .di-cercles, .di-anneau { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .di-anneau .di-cles-l { grid-column: 1; grid-row: 2; }
    .di-frise > b:nth-of-type(even) { visibility: hidden; }
    .di-affichage { grid-template-columns: minmax(0, 1fr); }
    .di-plan { grid-template-columns: minmax(0, 1fr); }
    .di-champ { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .di-immeubles, .di-piles { gap: 12px; } .di-imm i { width: 52px; } .di-tas i { width: 64px; }
    .di-carte > .di-pilule { left: 12px; right: 12px; top: auto; bottom: 12px; white-space: normal; }
    .di-frise > .di-pilule:nth-of-type(3) { justify-self: end; translate: 12px 0; }
    .di-frise > .di-pilule:nth-of-type(3)::after { left: auto; right: 12px; }
    .di-dossiers { overflow: hidden; }
    .di-dossier--1::before { left: 110px; } .di-dossier--2::before { left: 60px; }
    .di-dossier--1 { inset: 0 20px auto 40px; } .di-dossier--2 { inset: 34px 10px auto 20px; }
}
.di-anneau > div { grid-area: 1 / 1; }

/* ─── Tarifs : seconde grille (bénévoles), ce qu'elle inclut, second tableau de comparaison ─── */
.st .tf-benevole { margin-top: clamp(72px, 9vw, 120px); scroll-margin-top: 100px; }
.tf-inclus { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; margin-top: clamp(36px, 4vw, 52px); padding-top: 28px; box-shadow: inset 0 1px 0 var(--st-trait); }
.st .tf-inclus > p { margin: 0; font: 700 18px/1.3 var(--titre); color: var(--s-txt); }
.tf-inclus .st-l { margin: 0; display: block; columns: 3 200px; column-gap: 32px; }
.tf-inclus .st-l li { break-inside: avoid; }
.tf-compare { margin-top: clamp(36px, 4vw, 52px); }
@media (max-width: 760px) { .tf-inclus { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Tarifs : tableaux sur une feuille à rebord plein, la ligne d'Insuleo surlignée, « sur devis » en pilule pâle, réponses cochées */
.pm-compare.tf-tab { border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; background: #fff; color: #193451; box-shadow: 0 8px 0 var(--cmp-rebord, #c9d6e3); }
[data-theme="nuit"] .pm-compare.tf-tab { --cmp-rebord: #0b1a33; }
.tf-tab th, .tf-tab td { padding: 16px 22px; border-bottom: 1px solid #e1e8f0; vertical-align: middle; }
.tf-tab thead th { padding-top: 16px; background: #eef3f8; color: #6484a3; font: 700 13px/1.3 var(--titre); }
.tf-tab tbody tr:last-child > * { border-bottom: 0; }
.tf-tab td:nth-child(2) { color: #193451; font-weight: 600; font-variant-numeric: tabular-nums; }
.tf-tab td:last-child { color: #3d5a7a; font-weight: 500; }
.tf-tab .tf-devis { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #dce7f2; color: #13284b; font: 700 13px/1.2 var(--titre); }
.tf-tab tr.tf-nous > * { background: #fff1e3; color: #13284b; font-weight: 800; }
.tf-tab tr.tf-nous td:nth-child(2) { color: #c4600c; font-size: 17px; }
.tf-tab tr.tf-nous th::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px; border-radius: 50%; background: #fc8822; vertical-align: 1px; }
.tf-q td:last-child { position: relative; padding-left: 56px; color: #13284b; font-weight: 700; }
.tf-q td:last-child::before { content: ""; position: absolute; left: 20px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; border-radius: 50%; background: #5d8773 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat; }
@media (max-width: 760px) {
    .tf-tab tr { padding: 14px 18px; border-bottom: 1px solid #e1e8f0; }
    .tf-tab th, .tf-tab td { padding: 0; border: 0; }
    .tf-tab tr.tf-nous { background: #fff1e3; }
    .tf-tab tr.tf-nous > * { background: none; }
    .tf-tab tbody tr:last-child { border-bottom: 0; }
    .tf-q td:last-child { padding-left: 34px; }
    .tf-q td:last-child::before { left: 0; top: 2px; translate: none; }
}

.pm-cmp .tf-tab + .pm-maillage { margin-top: 26px; max-width: none; }

/* ─── Hero tarifs : deux pilules dans le cadre de la scène, loin de l'étiquette gravée ─── */
.pm-scene--tarifs::before { content: none; }
.pm-scene--tarifs .pm-hc--2 { left: 4%; right: auto; top: 14%; }
.pm-scene--tarifs .pm-hc--3 { left: auto; bottom: auto; right: 0; top: 34%; }

/* ─── Lectures « Pour aller plus loin » : type, titre, résumé, action ─── */
/* --n : 4 colonnes pour 4 cartes, 3 sinon (posé par includes/v2/lectures.php). */
.pm-lectures--riche ul { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .pm-lectures--riche ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pm-lectures--riche ul { grid-template-columns: 1fr; } }
.pm-lectures--riche a { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; min-height: 0; padding: 22px 24px 20px; }
.pm-lectures--riche strong { font: 700 18px/1.3 var(--titre); letter-spacing: -.01em; color: #13284b; text-wrap: balance; }
.pm-lec-type { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 11px 5px 6px; border-radius: 999px; background: #fff1e3; color: #a24f05; font: 600 12.5px/1 var(--texte); }
.pm-lec-type svg { width: 22px; height: 22px; padding: 4px; border-radius: 999px; background: #ffffff; stroke: #fc8822; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-lec-resume { font: 400 14.5px/1.55 var(--texte); color: #3f5870; margin-bottom: 6px; }
.pm-lec-action { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid #e8eef5; font: 700 14.5px/1 var(--titre); color: #193451; }
.pm-lectures--riche a svg { width: 16px; height: 16px; }
.pm-lectures--riche .pm-lec-type svg { width: 22px; height: 22px; }
.pm-lectures--riche a:hover .pm-lec-action svg { color: #fc8822; transform: translateX(3px); }
.pm-lectures--riche a:hover svg { transform: none; }
@media (max-width: 640px) { .pm-lectures--riche a { padding: 18px 18px 16px; } .pm-lectures--riche strong { font-size: 16.5px; } }

/* ─── Hero syndic bénévole : arche dans la scène, deux pilules à droite ─── */
.pm-scene--benevole::before { content: none; }
.pm-scene--benevole .pm-hc--1 { left: auto; right: 2%; top: 8%; }
.pm-scene--benevole .pm-hc--3 { left: auto; right: 6%; bottom: 6%; }

/* ─── Syndic bénévole : cartes AG, assistant et relances, sur le cadre des fiches (.sm-tk, .sm-tk-c, .sm-fil) ─── */
/* Facture lue (page bénévole) : la page balayée par la lecture, puis la proposition ; modèle des scènes de la page Assistant IA */
.sb-fac { position: relative; min-height: 290px; }
.sb-fac-doc { position: absolute; left: 24px; top: 22px; width: 58%; overflow: hidden; padding: 14px 14px 12px; border-radius: 3px; background: #fff; color: #33373d; font: 10.5px/1.35 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(19, 40, 75, .12), 0 20px 40px -18px rgba(19, 40, 75, .4); }
.sb-fac-doc-t { display: flex; align-items: center; gap: 7px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid #2b7a78; }
.sb-fac-doc-t > i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 4px; background: #2b7a78; color: #fff; font: 800 8.5px/1 ui-sans-serif, sans-serif; font-style: normal; }
.sb-fac-doc-t b { display: block; font-size: 11px; }
.sb-fac-doc-t small { color: #6b7178; font-size: 9.5px; }
.sb-fac-doc p { margin: 0 0 6px; font-size: 10px; color: #6b7178; }
.sb-fac-doc p b { color: #33373d; }
.sb-fac-doc .ln { display: block; height: 4px; margin: 7px 0; border-radius: 1px; background: #e3e7ec; }
.sb-fac-doc .ln.c { width: 60%; }
.sb-fac-doc .tot { display: flex; gap: 6px; margin: 10px 0 0; padding-top: 7px; border-top: 1px solid #e3e7ec; color: #33373d; font-weight: 700; }
.sb-fac-doc .lu { padding: 0 3px; border-radius: 3px; animation: sb-fac-lu 4s ease-in-out infinite; }
.sb-fac-laser { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(252, 136, 34, .22) 70%, #fc8822 72%, transparent 76%); animation: sb-fac-balaye 4s ease-in-out infinite; }
.sb-fac-prop { position: absolute; right: 24px; bottom: 26px; width: 56%; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-trait), 0 24px 44px -20px rgba(19, 40, 75, .4); }
.sb-fac-prop dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 12px; font-size: 12px; }
.sb-fac-prop dt { color: var(--c-doux); }
.sb-fac-prop dd { margin: 0; font-weight: 700; text-align: right; }
.sb-fac-btn { display: block; padding: 8px 12px; border-radius: 9px; background: #fc8822; color: #13284b; font: 700 12px/1 var(--titre); text-align: center; box-shadow: inset 0 -3px 0 #c9620c; }
@keyframes sb-fac-balaye { 0%, 100% { transform: translateY(-30px); } 50% { transform: translateY(200px); } }
@keyframes sb-fac-lu { 0%, 40% { background: transparent; } 55%, 100% { background: #fff1e3; color: #a24f05; } }
@media (prefers-reduced-motion: reduce) { .sb-fac-laser { display: none; } .sb-fac-doc .lu { animation: none; background: #fff1e3; color: #a24f05; } }

.sb-ag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sb-ag-res { display: grid; gap: 12px; }
.sb-ag-res .sm-tk-hd .sm-e { margin-left: auto; }
.sb-ag-barre { display: flex; gap: 3px; height: 10px; }
.sb-ag-barre i { display: block; height: 100%; border-radius: 999px; }
.sb-ag-leg { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.sb-ag-leg li { display: flex; align-items: center; gap: 8px; }
.sb-ag-leg li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.sb-ag-leg b { margin-left: auto; font-weight: 700; color: var(--c-txt); }
.sb-ag-leg li { color: var(--c-doux); }
.sb-ag-barre .sb-pour, .sb-ag-leg .sb-pour::before { background: #437a56; }
.sb-ag-barre .sb-contre, .sb-ag-leg .sb-contre::before { background: #c25e05; }
.sb-ag-barre .sb-abs, .sb-ag-leg .sb-abs::before { background: #9fb5ca; }
.sm .sb-ag-note { margin: 0; padding-top: 10px; border-top: 1px solid var(--c-trait); font-size: 11.5px; color: var(--c-doux); }
.sb-chat-logo { width: 22px; height: 22px; flex: none; }
.sb-fil-chat { display: grid; gap: 10px; padding: 14px 0; }
.sm .sb-bulle { margin: 0; font-size: 13px; line-height: 1.5; }
.sm .sb-bulle--moi { justify-self: end; max-width: 80%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #193451; color: #fff; }
[data-theme="nuit"] .sm .sb-bulle--moi { background: #ffffff; color: #13284b; }
.sb-bulle--ia { max-width: 88%; padding: 11px 14px; border-radius: 14px 14px 14px 4px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-trait); }
.sm .sb-bulle--ia p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--c-txt); }
.sb-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 4px 10px 4px 7px; border-radius: 999px; background: #fff1e3; color: #a24f05; font-size: 11.5px; font-weight: 600; }
.sb-source svg { width: 13px; height: 13px; }
.sb-saisie { display: flex; align-items: center; justify-content: space-between; padding: 9px 9px 9px 14px; border-radius: 12px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-trait); font-size: 12.5px; color: var(--c-doux); }
.sb-saisie i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fc8822; color: #fff; }
.sb-saisie svg { width: 14px; height: 14px; stroke-width: 2; }
.sm .sb-mail-corps { margin: 12px 0; font-size: 12.5px; line-height: 1.55; color: var(--c-doux); }
.sb-mail-corps b { color: var(--c-txt); }
.sb-mail-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--c-trait); }
.sb-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #437a56; }
.sb-auto svg { width: 13px; height: 13px; stroke-width: 2; }
[data-theme="nuit"] .sb-auto { color: #8fb5a2; }
/* Téléphone : cartes en rangée, toutes à la hauteur de la plus haute ; l'AG garde sa résolution, l'assistant perd sa saisie */
@media (max-width: 640px) {
    .sb-ag { grid-template-columns: 1fr; }
    .sb-ag > .sm-tk-c:first-child, .sb-saisie { display: none; }
    .sm .sb-fil-chat { padding: 0; }
    .sb-chat .sm-tk-hd { display: none; }
    .sm .sb-bulle--moi { max-width: 94%; }
    .sb-bulle--ia { max-width: 100%; }
}

/* ─── Grille bénévole : compteur « Nombre de lots », même fond et même hauteur que la bascule annuel / mensuel ─── */
.st-lots { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.st-lots label { font: 600 14px/1.2 var(--texte); color: var(--s-txt); }
.st-lots-champ { display: inline-grid; grid-template-columns: 36px 64px 36px; align-items: center; padding: 4px; border-radius: 12px; background: var(--st-fond); box-shadow: inset 0 0 0 1px var(--st-trait); }
.st-lots-champ button { height: 36px; border: 0; border-radius: 9px; background: var(--c-bg, #fff); color: var(--s-txt); font: 700 18px/1 var(--texte); cursor: pointer; box-shadow: 0 1px 2px rgba(19, 40, 75, .14); }
[data-theme="nuit"] .st-lots-champ button { background: rgba(255, 255, 255, .12); box-shadow: none; }
.st-lots-champ button:hover { color: #fc8822; }
.st-lots-champ input { width: 100%; height: 36px; padding: 0; border: 0; background: transparent; text-align: center; font: 700 16px/1 var(--texte); color: var(--s-txt); -moz-appearance: textfield; }
.st-lots-champ input::-webkit-outer-spin-button, .st-lots-champ input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-lots-champ input::placeholder { color: var(--s-doux); opacity: .45; }
.st-lots-champ :is(button, input):focus-visible { outline: 2px solid #fc8822; outline-offset: 1px; }
.suite-reglage:has(.st-lots) > :is(.st-lots, .st-bas) { width: 100%; }
.suite-reglage:has(.st-lots) { min-width: 268px; }
.st-reco[hidden] { display: none; }
