/* Page « Fiduciaires » (fuer-treuhaender.php, lot 3). Chaque règle est préfixée par .pg-treuhand,
   la classe posée sur <main> : la feuille ne change rien ailleurs. Les composants communs (.intro*,
   .brief, .facts, .rangees, .ticks, .compte, .faq, .final, .suite) viennent de site.css et ne sont
   qu'ajustés ici.
     .th-demo ............ lien discret « Demander une démo » à côté du bouton d'essai
     .th-lead-2 .......... seconde phrase du début, masquée sur téléphone (l'étiquette .acct aussi)
     .intro-scene--tel ... sur téléphone, la vue de téléphone du début (option 'phone') : la carte
                           « À payer à l'AFC » du décompte TVA, entière avec ses quatre bords et
                           une marge de 12 px du fichier, par langue
     .th-autres-head ..... en-tête de la grille des métiers (titre et « Tous les métiers ») ; la
                           grille elle-même vient de site-metier.css (.metiers-grille)
     .th-lien ............ lien discret sous une rangée, vers la page du module
     .m-y1, .m-bureau .... captures des rangées (classes posées par site_metier_capture()) : bas du
                           cadrage fixé sur une ligne du document (--y1, --y1-m) ; capture masquée
                           sur téléphone. Mêmes règles que site-metier.css, sous le préfixe de la page.
     .th-journal, .th-journal-texte, .th-flux, .th-controle, .th-photo ... ce que le journal
                           contient déjà, avec la grande photo du signe égal et sa légende */

/* ── Début ──────────────────────────────────────────────────────────────────── */
.pg-treuhand .intro .cta-row { align-items: center; gap: 4px 18px; }
.pg-treuhand .th-demo {
    display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px;
    color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px;
}
.pg-treuhand .th-demo:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.pg-treuhand .intro-plan .suite { margin-top: 2px; }

/* ── Rangées : un lien discret vers la page du module ─────────────────────────── */
.pg-treuhand .rangee-texte .th-lien { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.pg-treuhand .th-lien a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--accent); text-decoration: none; }
.pg-treuhand .th-lien a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Cadrage fini sur une ligne du document : la hauteur du cadre suit la largeur affichée. */
@supports (width: 1cqw) {
    .pg-treuhand .m-y1 .cadre-vue { height: min(calc(var(--_hi) * (var(--y1, 1) - var(--_y0))), var(--_hmax)); }
}

/* ── Les métiers des mandants : en-tête de la grille ─────────────────────────── */
.pg-treuhand .th-autres-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; }
.pg-treuhand .th-autres-head .h2 { margin-bottom: 0; }

/* ── Ce que le journal contient déjà, et la grande photo ─────────────────────── */
.pg-treuhand .th-journal {
    display: grid; grid-template-columns: var(--grille-inv); gap: 32px var(--grille-gap); align-items: start;
}
.pg-treuhand .th-journal-texte { min-width: 0; }
.pg-treuhand .th-flux { margin: 0; display: grid; max-width: 68ch; }
.pg-treuhand .th-flux > div {
    display: grid; grid-template-columns: minmax(150px, 13.5em) minmax(0, 1fr); gap: 6px 20px;
    padding: 13px 0; border-top: 1px solid var(--rule);
}
.pg-treuhand .th-flux > div:last-child { border-bottom: 3px double var(--ink); }
.pg-treuhand .th-flux dt { font-weight: 700; color: var(--ink); text-wrap: pretty; }
.pg-treuhand .th-flux dt .compte { margin-right: 4px; }
.pg-treuhand .th-flux dd { margin: 0; min-width: 0; color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; text-wrap: pretty; }
.pg-treuhand .th-controle { margin: 18px 0 0; max-width: var(--mesure); color: var(--ink-2); text-wrap: pretty; }
.pg-treuhand .th-photo { margin: 0; min-width: 0; }
.pg-treuhand .th-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--wall); }
.pg-treuhand .th-photo figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .pg-treuhand .th-journal { grid-template-columns: minmax(0, 1fr); }
    .pg-treuhand .th-photo { max-width: 560px; }
}
@media (max-width: 600px) {
    .pg-treuhand .th-lead-2, .pg-treuhand .intro .acct { display: none; }
    /* Vue de téléphone du début : cap-zoom-tva-<langue>.jpg (1400 px de large), la carte « À payer à
       l'AFC » avec 12 px de marge : x 699 à 1379 et y 6 à 333 (725 px de haut) en allemand et en
       français ; x 752 à 1381 et y 4 à 307 (668 px de haut) en italien, où une troisième carte décale
       les deux autres. Largeur de l'image = 1400 / largeur de la bande ; décalage = bord gauche et
       haut de la bande, en fraction de l'image ; hauteur du cadre = barre du navigateur (34 px) +
       largeur intérieure x hauteur / largeur de la bande. */
    .pg-treuhand .intro-scene--tel { height: calc(34px + (min(100vw - 2 * var(--gutter), 440px) - 2px) * .481); }
    .pg-treuhand .intro-scene--tel .browser img { width: 205.88%; max-width: none; transform: translate(-49.93%, -.83%); clip-path: none; }
    .pg-treuhand:lang(it) .intro-scene--tel { height: calc(34px + (min(100vw - 2 * var(--gutter), 440px) - 2px) * .4817); }
    .pg-treuhand:lang(it) .intro-scene--tel .browser img { width: 222.58%; transform: translate(-53.71%, -.6%); }
    /* Captures : 'tel' => false les masque ; y1-m fixe le bas du cadrage du téléphone. */
    .pg-treuhand .m-bureau { display: none; }
    @supports (width: 1cqw) {
        .pg-treuhand .m-y1 .cadre-vue { height: min(calc(var(--_hi) * (var(--y1-m, var(--y1, 1)) - var(--_y0))), var(--_hmax)); }
    }
    .pg-treuhand .th-flux > div { grid-template-columns: minmax(0, 1fr); }
    .pg-treuhand .th-photo { margin-inline: calc(var(--gutter) * -1); max-width: none; }
    .pg-treuhand .th-photo img { border-radius: 0; }
    .pg-treuhand .th-photo figcaption { padding-inline: var(--gutter); }
}
