/* CERTA — feuille de style unique (CDCF § 14 : ressources regroupées). Révision : lot 2. */
/* Charte LawFirmStyle, palette pétrole (CDCF § 8.3). Aucune police chargée depuis un domaine tiers. */

:root {
    --petrole: #147599;
    --fond-pale: #EAF1F3;
    --filet: #B9D0D8;
    --encre: #17282D;
    --gris-label: #7D8A90;
    --blanc: #FFFFFF;
    --ok: #2E7D4F;
    --ko: #A83A2E;
    --police: "Avenir Next", "Jost", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* L'attribut hidden l'emporte toujours, même sur un display:flex posé par une classe. */
[hidden] { display: none !important; }

html {
    font-family: var(--police);
    font-size: 16px;
    color: var(--encre);
    background: var(--fond-pale);
    -webkit-text-size-adjust: 100%;
}

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.5; }

h1, h2, h3 { color: var(--petrole); font-weight: 600; line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
a { color: var(--petrole); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--petrole); outline-offset: 2px; }
code { font-family: Consolas, "Courier New", monospace; font-size: 0.95em; }

/* Bloc d'ouverture (CDCF § 8.3) : nom en pétrole aligné à droite, « Law firm » en gris-label, filet de 4,5 cm. */
.marque { display: flex; flex-direction: column; align-items: flex-end; }
.marque-nom { color: var(--petrole); font-size: 1.4rem; letter-spacing: 0.06em; font-weight: 600; }
.marque-sous { color: var(--gris-label); font-size: 0.85rem; letter-spacing: 0.04em; }
.marque::after { content: ""; display: block; width: 4.5cm; max-width: 100%; height: 1px; background: var(--filet); margin-top: 0.4rem; }

/* Portail public (Razor Pages) */
.portail .entete { padding: 1.5rem 1.25rem 0; max-width: 52rem; width: 100%; margin: 0 auto; }
.portail .contenu { flex: 1; width: 100%; max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.25rem; }

.carte { background: var(--blanc); border: 1px solid var(--filet); border-radius: 6px; padding: 1.5rem; }
.carte-connexion { max-width: 26rem; margin: 2rem auto; }
.intro { color: var(--gris-label); }
.pied { color: var(--gris-label); font-size: 0.8rem; text-align: center; padding: 1.25rem; border-top: 1px solid var(--filet); }

/* Formulaires */
.champ { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
label { color: var(--gris-label); font-size: 0.9rem; }
input[type="text"], input[type="password"], input[type="email"] {
    font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--filet); border-radius: 4px; background: var(--blanc); color: var(--encre);
}

.bouton {
    font: inherit; font-weight: 600; padding: 0.6rem 1.2rem; border: 1px solid var(--petrole); border-radius: 4px;
    background: var(--petrole); color: var(--blanc); cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
.bouton-secondaire { background: var(--blanc); color: var(--petrole); }
.lien { font: inherit; background: none; border: none; padding: 0; color: var(--petrole); text-decoration: underline; cursor: pointer; }
.en-ligne { display: inline; }
.erreur { color: var(--ko); font-size: 0.9rem; }

/* Back-office (Blazor Server) */
.bo { display: flex; flex-direction: column; min-height: 100vh; }
.bo-entete { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 1.5rem; background: var(--blanc); border-bottom: 1px solid var(--filet); }
.bo-nav { display: flex; gap: 1.25rem; }
.bo-nav a { text-decoration: none; font-weight: 600; }
.bo-utilisateur { display: flex; align-items: center; gap: 0.75rem; color: var(--gris-label); font-size: 0.9rem; }
.bo-contenu { flex: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding: 1.5rem; }

.etat { font-weight: 600; padding: 0.6rem 0.9rem; border-radius: 4px; background: var(--blanc); border-left: 4px solid var(--filet); }
.etat-ok { border-left-color: var(--ok); }
.etat-ko { border-left-color: var(--ko); }
.defilement { overflow-x: auto; }

.tableau { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--filet); font-size: 0.92rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--filet); }
.tableau th { color: var(--gris-label); font-weight: 600; background: var(--fond-pale); }
.tableau .resultat { font-weight: 700; text-align: center; }
.tableau tr.ok .resultat { color: var(--ok); }
.tableau tr.ko .resultat { color: var(--ko); }
.tableau .detail { word-break: break-word; }

.circuit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.circuit-etat { color: var(--gris-label); }

/* Interface d'erreur Blazor */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 0.8rem 1.25rem; background: #FFF4E5; border-top: 2px solid var(--ko); box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15); z-index: 1000; }
#blazor-error-ui .dismiss { position: absolute; right: 0.75rem; top: 0.5rem; cursor: pointer; }

/* ===================================================================== Portail client (lot 2) */
.panneau {
    background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; padding: 1.75rem;
    opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease;
}
.panneau.visible { opacity: 1; transform: none; }
.panneau-confirmation { text-align: center; }
.coche { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--fond-pale); color: var(--ok); font-size: 1.8rem; line-height: 3.5rem; font-weight: 700; }
.etape-numero { color: var(--gris-label); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .25rem; }

.progression { margin-top: 1rem; }
.progression-texte { display: flex; justify-content: space-between; font-size: .85rem; color: var(--gris-label); margin-bottom: .3rem; }
progress.progression-barre { display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; overflow: hidden; background: var(--filet); -webkit-appearance: none; appearance: none; }
progress.progression-barre::-webkit-progress-bar { background: var(--filet); border-radius: 3px; }
progress.progression-barre::-webkit-progress-value { background: var(--petrole); border-radius: 3px; transition: width .4s ease; }
progress.progression-barre::-moz-progress-bar { background: var(--petrole); border-radius: 3px; }

.encadre { background: var(--fond-pale); border-left: 4px solid var(--petrole); border-radius: 4px; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; font-size: .95rem; }
.encadre p:first-child { margin-top: 0; }
.encadre p:last-child { margin-bottom: 0; }
.encadre .accent { color: var(--petrole); font-style: italic; }
.encadre .accent-fort { color: var(--petrole); font-style: italic; font-weight: 600; }
.encadre-rgpd { font-size: .85rem; margin-top: 2rem; }
.liste-documents { padding-left: 1.25rem; }
.liste-documents li { margin: .3rem 0; }

.formulaire .question { margin: 0 0 1.5rem; }
.formulaire .question.apparition { animation: apparition .35s ease; }
@keyframes apparition { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.formulaire label, .formulaire legend { display: block; font-weight: 600; color: var(--encre); margin-bottom: .4rem; font-size: .95rem; }
.formulaire fieldset { border: 0; padding: 0; margin: 0; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire input[type="tel"], .formulaire input[type="date"],
.formulaire input[type="number"], .formulaire select, .formulaire textarea {
    width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid var(--filet); border-radius: 6px;
    background: var(--blanc); color: var(--encre); transition: border-color .15s, box-shadow .15s;
}
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { border-color: var(--petrole); box-shadow: 0 0 0 3px rgba(20,117,153,.15); outline: none; }
.formulaire .en-erreur input, .formulaire .en-erreur select, .formulaire .en-erreur textarea { border-color: var(--ko); }
.formulaire .aide { color: var(--gris-label); font-size: .85rem; margin: -.2rem 0 .5rem; font-weight: 400; }
.formulaire .info { color: var(--encre); }
.champ-ligne { display: flex; align-items: center; gap: .5rem; }
.champ-ligne .suffixe { color: var(--gris-label); }

.tuiles { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Sélecteurs préfixés par .formulaire : ils doivent l'emporter sur « .formulaire label { display: block } ». */
.formulaire .tuile, .tuile {
    display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border: 1px solid var(--filet); border-radius: 6px;
    background: var(--blanc); cursor: pointer; font-weight: 400; margin: 0; line-height: 1.3; transition: border-color .15s, background .15s, transform .1s;
}
.tuile:hover { border-color: var(--petrole); }
.formulaire .tuile:has(input:checked), .tuile:has(input:checked) { border-color: var(--petrole); background: var(--fond-pale); font-weight: 600; }
.tuile:active { transform: scale(.98); }
.tuile input { accent-color: var(--petrole); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; vertical-align: middle; }
.tuile span { display: inline-block; }
.tuiles-oui-non .tuile { min-width: 6rem; justify-content: center; }
.formulaire .case-simple, .case-simple { display: flex; gap: .7rem; align-items: center; font-weight: 400; line-height: 1.4; }
.case-simple input { accent-color: var(--petrole); width: 1.2rem; height: 1.2rem; margin: 0; flex: none; }
.case-simple span { display: inline-block; }

.grille-adresse { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.grille-adresse label { font-weight: 400; }
.grille-adresse label span { display: block; font-size: .85rem; color: var(--gris-label); margin-bottom: .25rem; }
.grille-adresse .large { grid-column: 1 / -1; }
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--filet); }
.actions .bouton { min-width: 9rem; }
.bouton:disabled { opacity: .5; cursor: not-allowed; }
.bouton:hover:not(:disabled) { filter: brightness(1.08); }
.bouton-fichier { position: relative; overflow: hidden; display: inline-block; cursor: pointer; }
.bouton-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.emplacements { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--filet); }
.emplacement { border: 1px dashed var(--filet); border-radius: 6px; padding: .9rem 1rem; margin-bottom: .75rem; }
.emplacement.ok { border-style: solid; border-color: var(--ok); }
.emplacement-entete { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .6rem; }
.emplacement-libelle { font-weight: 600; }
.piece { display: flex; align-items: center; gap: .75rem; padding: .4rem 0; font-size: .92rem; }
.piece-nom { flex: 1; word-break: break-all; }
.piece-taille { color: var(--gris-label); }
.depot { display: flex; gap: .5rem; align-items: center; }
.depot.en-cours { opacity: .6; }
.pieces-resume { margin: .5rem 0 1rem; }
.piece-etat { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dotted var(--filet); font-size: .92rem; }
.piece-etat.ok .piece-compte { color: var(--ok); font-weight: 600; }
.piece-etat.manque .piece-compte { color: var(--ko); }

/* Signature : carte à onglets (dessiner / saisir), adoption, aperçu */
.signature-bloc { margin-top: 1.5rem; }
.signature-carte { border: 1px solid var(--filet); border-radius: 10px; background: var(--blanc); box-shadow: 0 8px 28px rgba(23, 40, 45, .08); overflow: hidden; }
.signature-bloc.manque .signature-carte { border-color: var(--ko); box-shadow: 0 0 0 3px rgba(168, 58, 46, .15); }
.signature-onglets { display: flex; border-bottom: 1px solid var(--filet); background: var(--fond-pale); }
.signature-onglet { font: inherit; font-weight: 600; padding: .75rem 1.25rem; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--gris-label); cursor: pointer; }
.signature-onglet.actif { color: var(--petrole); border-bottom-color: var(--petrole); background: var(--blanc); }
.signature-zone { position: relative; min-height: 220px; padding: 1rem 1.25rem; }
.signature-zone canvas { width: 100%; height: 200px; display: block; touch-action: none; cursor: crosshair; background: transparent; position: relative; z-index: 1; }
.signature-ligne { position: absolute; left: 3.5rem; right: 2rem; bottom: 3.6rem; border-bottom: 1px solid var(--filet); }
.signature-croix { position: absolute; left: 1.6rem; bottom: 3.3rem; color: var(--gris-label); font-size: 1.1rem; }
.signature-effacer { position: absolute; right: 1rem; top: .75rem; z-index: 2; font-size: .85rem; }
.signature-texte { width: 100%; font: inherit; font-size: 1.05rem; padding: .7rem .9rem; border: 1px solid var(--filet); border-radius: 6px; }
.signature-apercu { font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", "Apple Chancery", cursive; font-size: 2.6rem; color: var(--encre); padding: 1.25rem .5rem .25rem; min-height: 5rem; border-bottom: 1px solid var(--filet); margin: .5rem 2rem 0; white-space: nowrap; overflow: hidden; }
.signature-actions-bas { display: flex; justify-content: flex-end; padding: .9rem 1.25rem; border-top: 1px solid var(--filet); background: var(--fond-pale); }
.signature-resultat { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; border: 1px solid var(--petrole); border-radius: 10px; padding: 1rem 1.25rem; background: var(--blanc); }
.signature-resultat img { max-height: 110px; max-width: 100%; border-bottom: 1px solid var(--filet); padding-bottom: .25rem; }
.signature-resultat-texte { display: flex; flex-direction: column; gap: .35rem; }

/* Indicateur de chargement */
.chargement { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; background: rgba(234, 241, 243, .88); color: var(--petrole); font-weight: 600; }
.chargement .spinner { width: 2.6rem; height: 2.6rem; border: 3px solid var(--filet); border-top-color: var(--petrole); border-radius: 50%; animation: rotation .8s linear infinite; }
@keyframes rotation { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chargement .spinner { animation-duration: 2s; } .panneau { transition: none; } }

.recap-section { background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; padding: 1rem 1.25rem 1.1rem; margin-bottom: 1rem; }
.recap-section > h2, .recap-entete h2 { margin: 0 0 .75rem; font-size: 1.1rem; padding-bottom: .45rem; border-bottom: 2px solid var(--fond-pale); position: relative; }
.recap-section > h2::after, .recap-entete h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 3rem; height: 2px; background: var(--petrole); }
.recap-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.recap-entete h2 { flex: 1; }

/* Back-office : tableau de bord, filtres, aperçus de pièces */
.tuiles-bord { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.tuile-bord { display: flex; flex-direction: column; gap: .35rem; background: var(--blanc); border: 1px solid var(--filet); border-radius: 8px; padding: 1.1rem 1.25rem; text-decoration: none; color: var(--encre); transition: border-color .15s, transform .1s; }
.tuile-bord:hover { border-color: var(--petrole); transform: translateY(-1px); }
.tuile-bord.alerte { border-left: 4px solid var(--ko); }
.tuile-chiffre { font-size: 2rem; font-weight: 700; color: var(--petrole); line-height: 1; }
.tuile-titre { color: var(--gris-label); font-size: .9rem; }
.filtres { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.filtres label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; }
.filtres input, .filtres select { font: inherit; padding: .5rem .6rem; border: 1px solid var(--filet); border-radius: 4px; min-width: 9rem; }
.filtres input[type="search"] { min-width: 16rem; }
.actions-fiche { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0 1rem; }
.apercus { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.apercu { margin: 0; border: 1px solid var(--filet); border-radius: 6px; overflow: hidden; background: var(--fond-pale); }
.apercu-cadre { display: block; height: 18rem; overflow: auto; background: var(--blanc); border-bottom: 1px solid var(--filet); }
.apercu img { width: 100%; height: 100%; object-fit: contain; display: block; }
.apercu iframe { width: 100%; height: 100%; border: 0; display: block; }
.apercu-vide { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gris-label); }
.apercu figcaption { padding: .6rem .75rem; font-size: .82rem; line-height: 1.4; word-break: break-word; }
.recap-liste { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: .35rem 1rem; margin: 0; font-size: .92rem; }
.recap-liste dt { color: var(--gris-label); }
.recap-liste dd { margin: 0; }

.personnes-liees { margin: 1rem 0 2rem; }
.ajout-liee summary { list-style: none; display: inline-block; margin-top: .75rem; }
.ajout-liee summary::-webkit-details-marker { display: none; }
.formulaire-liee { margin-top: 1rem; padding: 1rem; background: var(--fond-pale); border-radius: 6px; }
.actions-ligne { white-space: nowrap; }
.tableau-pays { table-layout: fixed; }
.tableau-pays th, .tableau-pays td { width: 25%; font-size: .85rem; vertical-align: top; word-break: normal; }

/* Sélecteur de langue (coin supérieur droit) */
.langues { display: flex; gap: .25rem; justify-content: flex-end; margin-bottom: .5rem; }
.langues a { font-size: .8rem; letter-spacing: .05em; text-decoration: none; padding: .2rem .5rem; border: 1px solid var(--filet); border-radius: 4px; color: var(--gris-label); background: var(--blanc); }
.langues a.active { color: var(--blanc); background: var(--petrole); border-color: var(--petrole); }
.etat ul { margin: .4rem 0 0 1.2rem; font-weight: 400; }

@media (max-width: 600px) {
    .bo-entete { padding: 0.75rem 1rem; }
    .bo-contenu, .portail .contenu { padding: 1rem; }
    .carte, .panneau { padding: 1.1rem; border-radius: 6px; }
    .grille-adresse, .grille-2 { grid-template-columns: 1fr; }
    .actions { flex-direction: column-reverse; }
    .actions .bouton { width: 100%; }
    .recap-liste { grid-template-columns: 1fr; }
    .recap-liste dt { margin-top: .5rem; }
}

/* Blazor place le focus sur le h1 à chaque navigation (accessibilité) : pas de cadre de focus visible sur un titre. */
h1:focus, h1:focus-visible { outline: none; }

/* File d'envoi : message prêt à copier */
.champ-copie { display: flex; flex-direction: column; gap: .3rem; margin: .75rem 0; font-size: .85rem; color: var(--gris-label); }
.champ-copie input, .champ-copie textarea { font: inherit; font-size: .95rem; color: var(--encre); padding: .6rem .75rem; border: 1px solid var(--filet); border-radius: 4px; background: var(--fond-pale); width: 100%; box-sizing: border-box; }
.champ-copie textarea { resize: vertical; line-height: 1.45; }
.tableau tr.selection td { background: var(--fond-pale); }

/* Suivi : agenda des relances */
.agenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; margin: .5rem 0 1.5rem; }
.agenda-jour { background: var(--blanc); border: 1px solid var(--filet); border-radius: 6px; padding: .75rem .9rem; }
.agenda-jour.echu { border-left: 4px solid var(--ko); }
.agenda-jour.aujourdhui { border-left: 4px solid var(--petrole); }
.agenda-date { font-weight: 600; color: var(--petrole); margin-bottom: .35rem; }
.agenda-jour ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }

/* Carte eID : lecture par l'assistant local */
.eid { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start; background: var(--blanc); border: 1px solid var(--filet); border-left: 4px solid var(--petrole); border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; }
.eid-texte { flex: 1 1 22rem; }
.eid-texte h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.eid-texte p { margin: 0 0 .4rem; }
.eid-actions { display: flex; flex-direction: column; gap: .5rem; flex: 0 1 18rem; }
.eid-actions .aide { font-size: .8rem; }
.eid-lue { border-left-color: var(--ok); }
.filtres label.case { flex-direction: row; align-items: center; gap: .5rem; font-size: .9rem; }

/* Remarques de PA du 2026-09-06 : texte justifié dans les cadres, astérisques rouges */
.encadre, .encadre p, .eid-texte p, .intro, .etat, .aide, .liste-documents li { text-align: justify; hyphens: auto; }
.requis { color: var(--ko); font-weight: 700; margin-left: .15rem; }
.piece-etat.ok .piece-compte, .emplacement.ok .emplacement-libelle::after { color: var(--ok); font-weight: 700; }
.emplacement.ok .emplacement-libelle::after { content: " ✓"; }
.emplacement-jointe { color: var(--ok); font-weight: 600; margin: .35rem 0 0; }

/* Convention d'honoraires (architecture v2) */
.texte-cabinet { margin: 1.5rem 0; }
.texte-cabinet h2 { font-size: 1.1rem; }
.texte-cabinet-corps { max-height: 24rem; overflow-y: auto; font-size: .9rem; }
.texte-cabinet-corps h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.tableau-texte { width: 100%; border-collapse: collapse; margin: .6rem 0; font-size: .85rem; background: var(--blanc); }
.tableau-texte th, .tableau-texte td { border: 1px solid var(--filet); padding: .35rem .55rem; text-align: left; vertical-align: top; }
.tableau-texte th { background: var(--petrole); color: var(--blanc); }
.case-acceptation { display: flex; gap: .6rem; align-items: flex-start; margin-top: .6rem; font-weight: 600; cursor: pointer; }
.case-acceptation input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; }
.case-acceptation.en-erreur { color: var(--ko); }
.bo-sous-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.bo-sous-nav a { padding: .4rem .8rem; border: 1px solid var(--filet); border-radius: 4px; background: var(--blanc); text-decoration: none; font-weight: 600; }
.bo-sous-nav a.actif { background: var(--petrole); color: var(--blanc); border-color: var(--petrole); }
.formulaire-texte textarea { font-family: Consolas, "Courier New", monospace; font-size: .85rem; }
.apercu-message { background: var(--blanc); border: 1px solid var(--filet); border-radius: 4px; padding: 1rem 1.25rem; margin: .75rem 0; }

/* Lettre de mission (page de signature /l/{jeton} et formulaire de l'avocat) */
.lettre-page .coche { margin: 0 auto 1rem; }
.lettre { background: var(--blanc); border-left-color: var(--filet); padding: 1.5rem 2rem; font-size: .93rem; }
.lettre-marque { display: flex; flex-direction: column; align-items: flex-end; border-bottom: 1px solid var(--petrole); margin-bottom: 1rem; padding-bottom: .4rem; }
.lettre-titre { font-size: 1.3rem; color: var(--petrole); margin: .5rem 0 .25rem; }
.lettre-partie { font-size: 1rem; color: var(--petrole); margin: 1.5rem 0 .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--filet); }
.lettre-section { font-size: .95rem; margin: 1rem 0 .35rem; }
.lettre p { text-align: justify; margin: 0 0 .6rem; }
.lettre-gras { font-weight: 600; }
.lettre-liste { margin: 0 0 .75rem; padding-left: 1.25rem; }
.lettre-liste li { margin-bottom: .25rem; }
.lettre-tableau { margin: 0 0 1rem; }
.lettre-tableau th { width: 30%; color: var(--gris-label); font-weight: 600; }
.lettre-signataire { border: 1px dashed var(--filet); border-radius: 6px; padding: .75rem 1rem; margin: .75rem 0; }
.lettre-signataire.vous { border-style: solid; border-color: var(--petrole); background: var(--fond-pale); }
.lettre-signataire.signee { border-style: solid; border-color: var(--ok); }
.lettre-signataire p { margin: 0 0 .35rem; }
.formulaire-lettre h2 { font-size: 1.05rem; color: var(--petrole); margin: 1.5rem 0 .5rem; padding-bottom: .3rem; border-bottom: 1px solid var(--filet); }
.formulaire-lettre .champ-ligne { flex-wrap: wrap; align-items: flex-end; }
.formulaire-lettre .champ-ligne > label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; font-weight: 600; }
.formulaire-lettre .champ-ligne input[type="text"], .formulaire-lettre .champ-ligne input[type="email"], .formulaire-lettre .champ-ligne select { min-width: 12rem; }
.formulaire-lettre .tuiles { margin-bottom: .75rem; }
.bo-sous-nav .separateur { color: var(--filet); padding: 0 .25rem; }
.cle-api { display: inline-block; font-size: 1.05rem; padding: .5rem .75rem; background: var(--fond-pale); border: 1px solid var(--filet); border-radius: 4px; user-select: all; word-break: break-all; }
