/* public/app.css — BESSA PROJECT. UNE feuille pour tout le site (vitrine et cockpit), mobile d'abord.
   VIT-01 « L'habillage au logo » (27/10/2026) : tout vient du logo de Nicolas (brief du 27/10, qui fait foi) — anthracite et or, Montserrat
   pour les titres (800 « BESSA », 300 « PROJECT »), Manrope pour le texte, polices servies d'ici (public/polices).
   CONTRASTES (WCAG, calculés) : or #c4944c sur anthracite 5,6:1 (permis) ; anthracite sur or 5,6:1 (le bouton plein) ; blanc sur or 2,7:1 et
   or sur blanc 2,7:1 : INTERDITS. Donc : le bouton plein est or à texte anthracite ; sur fond clair, les titres restent anthracite avec un
   filet or ; le texte en or n'existe que sur fond anthracite. L'or n'est jamais une grande surface (il jaunit).
   Les anciens jetons restent en ALIAS des nouveaux : les règles du cockpit suivent sans réécriture.
   La règle .version est une LOI (« point 11 ») et un test la vérifie (porte/version.test.mjs). */
@font-face { font-family: "Montserrat"; src: url("/polices/montserrat-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/polices/montserrat-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/polices/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/polices/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/polices/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --anthracite: #22262a; --or: #c4944c; --or-clair: #c89854; --or-fonce: #b88840; --blanc: #ffffff; --gris-clair: #f0f0f0;
  /* les alias (cockpit) */
  --encre: var(--anthracite); --chantier: var(--or); --chantier-fonce: var(--or-fonce); --beton: var(--gris-clair); --papier: var(--blanc);
  --beton-2: #e2e2e2; --encre-douce: #4a4f54; --filet: #d2d2d2; --ardoise: #2f343a;
  --vert: #166534; --vert-fond: #e7f4ea; --rouge: #b42318; --rouge-fond: #fdecea; --gris: #5f646a; --gris-fond: #e6e6e6;
  --sur-sombre: #d9dbdd;
  --marge: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --large: 72rem; --rayon: 6px;
  --titres: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --texte: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--gris-clair); color: var(--anthracite);
  font: 17px/1.6 var(--texte);
  overflow-wrap: break-word;
}
main { flex: 1; width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--marge) 6rem; }
h1, h2, h3 { font-family: var(--titres); font-weight: 800; line-height: 1.15; letter-spacing: .01em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 9vw, 3.4rem); margin: 0 0 .75rem; }
h2 { font-size: clamp(1.25rem, 5vw, 1.6rem); margin: 0 0 .75rem; }
/* les liens sur fond clair : anthracite, soulignés d'or (jamais du texte or sur clair) */
a { color: var(--anthracite); text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--anthracite); }
/* l'anneau de focus : anthracite sur fond clair, or sur fond anthracite ; 3 px, décalé de 2 px, sur tout élément interactif */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--anthracite); outline-offset: 2px; }
.sombre :focus-visible, .entete :focus-visible, .pied :focus-visible, .barre-devis :focus-visible, .hero :focus-visible, .appel :focus-visible, .bandeau-metier :focus-visible { outline-color: var(--or); }
.aller { position: absolute; left: 0; top: 0; transform: translateY(-120%); background: var(--anthracite); color: #fff; padding: .5rem 1rem; z-index: 30; }
.aller:focus { transform: none; }
/* le filet or sous un titre de section sur fond clair (3 px) */
.filet::after, .page-simple > h1::after, .bloc > h2::after, .section-titre::after { content: ""; display: block; width: 3.5rem; height: 3px; background: var(--or); margin-top: .5rem; }
/* le nom de la marque, comme sur le logo : « BESSA » très gras, « PROJECT » fin */
.nom-b { font-weight: 800; }
.nom-p { font-weight: 300; }

/* ---- en-tête */
.entete { position: sticky; top: 0; z-index: 20; background: var(--anthracite); color: #fff; border-bottom: 3px solid var(--or); }
.entete-in { max-width: var(--large); margin: 0 auto; padding: .5rem var(--marge); padding-top: calc(.5rem + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 1rem; min-height: 3.8rem; }
.marque { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; min-width: 0; margin-right: auto; }
.marque-logo { display: block; height: 2.6rem; width: auto; flex: none; }
.marque-nom { font-family: var(--titres); font-size: 1.05rem; letter-spacing: .1em; white-space: nowrap; }
.marque-nom .nom-p { color: var(--or); }
.nav-large { display: none; }
.nav-large ul, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-large a, .nav-menu a { color: #fff; text-decoration: none; }
.nav-large a:hover, .nav-menu a:hover { color: var(--or); }
.nav-large a[aria-current="page"], .nav-menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 3px; }
.entete .btn-devis-haut { display: none; }
/* BES-64 V1 : sous 960 px, logo et « Menu » restent sur UNE ligne ; le panneau s'ouvre sur toute la largeur, juste sous l'en-tête (le bloc de repère est l'en-tête, pas le bouton), par-dessus le contenu */
.nav-menu { position: static; flex: none; }
.entete-in { flex-wrap: nowrap; }
.nav-menu summary { list-style: none; cursor: pointer; padding: .55rem .9rem; border: 2px solid #fff6; border-radius: var(--rayon); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--or); border-color: var(--or); color: var(--anthracite); }
.nav-menu nav { position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 25; background: var(--anthracite); border-bottom: 3px solid var(--or); padding: .4rem var(--marge) .8rem; max-height: calc(100vh - 5rem); overflow-y: auto; box-shadow: 0 14px 28px #0007; }
.nav-menu li a { display: flex; align-items: center; min-height: 48px; padding: .5rem .8rem; border-radius: 4px; }
.nav-menu li a:hover { background: #ffffff14; }
@media (max-width: 480px) { .marque-nom { font-size: .95rem; letter-spacing: .06em; } .marque-logo { height: 2.3rem; } .marque { gap: .45rem; } }
@media (max-width: 380px) { .marque-nom { font-size: .92rem; letter-spacing: .06em; } .marque-logo { height: 2.2rem; } }
@media (min-width: 960px) {
  .nav-menu { display: none; }
  .nav-large { display: block; }
  .nav-large ul { display: flex; gap: 1.3rem; }
  .entete .btn-devis-haut { display: inline-flex; }
}

/* ---- boutons : le plein est OR À TEXTE ANTHRACITE (jamais blanc : 2,7:1) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--rayon); border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn-plein { background: var(--or); color: var(--anthracite); border-color: var(--or); }
.btn-plein:hover { background: var(--or-clair); border-color: var(--anthracite); }
.btn-plein[disabled] { opacity: .65; cursor: progress; }
.btn-clair { background: transparent; color: var(--anthracite); border-color: var(--anthracite); }
.btn-clair:hover { background: var(--anthracite); color: #fff; }
.btn-grand { font-size: 1.1rem; padding: .85rem 1.6rem; }
.btn-petit { min-height: 40px; padding: .4rem .8rem; font-size: .95rem; }
/* sur fond anthracite, le bouton clair est blanc */
.hero .btn-clair, .appel .btn-clair, .pied .btn-clair, .bandeau-metier .btn-clair { color: #fff; border-color: #fff; }
.hero .btn-clair:hover, .appel .btn-clair:hover, .pied .btn-clair:hover, .bandeau-metier .btn-clair:hover { background: #fff; color: var(--anthracite); }

/* ---- accueil : le héros anthracite, plat (ni dégradé ni grille) */
.hero {
  margin: 0 calc(-1 * var(--marge)); padding: 2.5rem var(--marge) 2.75rem; color: #fff; background: var(--anthracite);
}
.hero-in { max-width: 46rem; }
.hero-logo { display: block; width: clamp(160px, 40vw, 240px); height: auto; margin: 0 0 1.25rem; }
.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--or); margin: 0 0 .75rem; }
.hero h1 { letter-spacing: .08em; margin-bottom: .35rem; }
.hero h1 .nom-p { color: var(--or); }
.signature { font-family: var(--titres); font-weight: 300; font-size: clamp(1.15rem, 4.6vw, 1.55rem); letter-spacing: .03em; margin: 0 0 1rem; color: #fff; }
.accroche { font-size: clamp(1.2rem, 5vw, 1.55rem); font-weight: 700; margin: 0 0 .75rem; }
.hero .intro { color: var(--sur-sombre); margin: 0 0 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.grille { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .grille { grid-template-columns: 1fr 1fr; } }
.bloc { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.25rem; }
.bloc > p:first-of-type { margin-top: 0; }
.lien-fleche { font-weight: 700; }
.lien-fleche::after { content: " →"; }
.appel { margin-top: 1.5rem; background: var(--anthracite); color: #fff; border-radius: var(--rayon); padding: 1.5rem 1.25rem; border-top: 3px solid var(--or); }
.appel h2 { color: #fff; }
.appel p { color: var(--sur-sombre); }

/* ---- « À fournir par Nicolas » : un bloc gris, assumé, jamais un faux texte */
.afournir { border: 2px dashed var(--gris); background: var(--gris-fond); border-radius: var(--rayon); padding: .8rem 1rem; margin: 1rem 0; }
.afournir p { margin: .4rem 0 0; color: var(--encre-douce); }
.pastille { display: inline-block; background: var(--gris); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .03em; padding: .15rem .6rem; border-radius: 999px; }

/* ---- pages simples */
.page-simple { padding-top: 2rem; max-width: 46rem; }
.page-simple > .intro { font-size: 1.1rem; color: var(--encre-douce); }
.page-simple h2 { margin-top: 2rem; }
.galerie { display: grid; gap: 1rem; }
@media (min-width: 640px) { .galerie { grid-template-columns: 1fr 1fr; } }
.vignette { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.vignette-cadre { aspect-ratio: 4 / 3; border: 2px dashed var(--filet); border-radius: var(--rayon); background: var(--papier); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .5rem; text-align: center; }
.vignette-cadre span { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.vignette-cadre em { color: var(--gris); font-size: .85rem; }
.fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem 1rem; margin: 0; }
.fiche dt { font-weight: 700; margin-top: .6rem; }
.fiche dd { margin: 0; }
@media (min-width: 640px) { .fiche { grid-template-columns: 12rem minmax(0, 1fr); } .fiche dt, .fiche dd { margin-top: .5rem; } }
.courriel { font-weight: 700; user-select: all; -webkit-user-select: all; }
.courriel-grand { font-size: clamp(1.1rem, 5.5vw, 1.5rem); margin: 0 0 .75rem; overflow-wrap: anywhere; }
.courriel-bloc { background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1rem; }

/* ---- formulaires : neutres pendant la frappe ; rouge (refus) et vert (enregistré) seulement au clic */
.formulaire { display: grid; gap: 1.1rem; background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.25rem; margin-top: 1rem; }
.champ { display: grid; gap: .35rem; min-width: 0; }
.champ label, .joindre legend { font-weight: 700; }
.joindre { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem; margin: 0; gap: .9rem; display: grid; }
.joindre legend { padding: 0 .3rem; font-weight: 600; }
input, select, textarea { font: inherit; color: var(--encre); background: #fff; border: 2px solid #8a8f94; border-radius: var(--rayon); padding: .65rem .75rem; min-height: 48px; width: 100%; max-width: 100%; }
/* SITE-02-B : le champ Photos. Le texte natif (« Aucun fichier… ») se coupe au téléphone : il est masqué, le compte s'écrit en
   dessous (#photos-choisies) ; le bouton du navigateur prend la couleur de la maison. */
input[type="file"] { color: transparent; padding: .45rem; cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; color: var(--anthracite); background: var(--or); border: 0; border-radius: var(--rayon); padding: .55rem 1rem; margin-right: .5rem; cursor: pointer; }
textarea { resize: vertical; min-height: 8rem; }
[aria-invalid="true"] { border-color: var(--rouge); }
.case { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .6rem; }
.case input { width: 1.5rem; height: 1.5rem; min-height: 0; margin: .15rem 0 0; accent-color: var(--chantier); }
.case label { font-weight: 400; }
.case .msg { grid-column: 1 / -1; }
.aide { margin: 0; color: var(--encre-douce); font-size: .95rem; }
.note-provisoire { margin: 0; font-size: .85rem; color: var(--gris); font-style: italic; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 0; font-weight: 600; }
.msg-refus { color: var(--rouge); }
.msg-attention { color: #8a4b00; font-weight: 600; }
.fiche-dictee { border-top: 1px solid var(--filet); margin-top: 1rem; padding-top: 1rem; }
.fiche-dictee h3 { margin: 0; }
.etiquette-origine { background: #eef3fb; }
.note-ia { font-size: .9rem; color: var(--encre-douce); margin: .25rem 0; }
.msg-ok { color: var(--vert); background: var(--vert-fond); border-left: 5px solid var(--vert); padding: .75rem 1rem; border-radius: 4px; }
.msg-bandeau-refus { color: var(--rouge); background: var(--rouge-fond); border-left: 5px solid var(--rouge); padding: .75rem 1rem; border-radius: 4px; }
.btn-envoyer { justify-self: start; }

/* ---- pied */
.pied { background: var(--anthracite); color: var(--sur-sombre); margin-top: 2rem; padding: 2rem var(--marge) calc(5.5rem + env(safe-area-inset-bottom, 0px)); border-top: 3px solid var(--or); }
.pied-in { max-width: var(--large); margin: 0 auto; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .pied-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pied { padding-bottom: 2rem; } }
.pied p { margin: 0 0 .35rem; }
.pied-nom { font-family: var(--titres); letter-spacing: .1em; color: #fff; font-size: 1.15rem; }
.pied-nom .nom-p { color: var(--or); }
.pied .actions { margin-top: .6rem; }
.pied-titre { font-weight: 700; color: #fff; }
.pied a { color: #fff; }
.pied a.btn-plein { color: var(--anthracite); }
.pied-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

/* ---- la barre « Demander un devis », toujours visible au téléphone ; elle laisse la place du micro rond, à droite */
.barre-devis { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: .6rem 5.25rem calc(.6rem + env(safe-area-inset-bottom, 0px)) var(--marge); background: #22262af2; border-top: 3px solid var(--or); }
.barre-devis .btn { width: 100%; }
@media (min-width: 760px) { .barre-devis { display: none; } }

/* ---- l'espace de Nicolas : des tuiles lisibles d'un coup d'œil */
.p-espace main { padding-bottom: 7rem; }
.tuiles { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 900px) { .tuiles { grid-template-columns: 1fr 1fr; } .tuile-large { grid-column: 1 / -1; } }
.tuile { background: var(--papier); border: 1px solid var(--filet); border-top: 4px solid var(--chantier); border-radius: var(--rayon); padding: 1.1rem; min-width: 0; }
.tuile h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.compteur { background: var(--or); color: var(--anthracite); font-family: system-ui, sans-serif; font-size: .85rem; padding: .1rem .55rem; border-radius: 999px; }
.liste-demandes, .liste-remarques, .liste-pieces, .liens-gestion { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .6rem; }
.demande { border: 1px solid var(--filet); border-left: 5px solid var(--chantier); border-radius: var(--rayon); padding: .75rem; background: #fff; }
.demande[data-etat="vu"] { border-left-color: var(--ardoise); }
.demande[data-etat="repondu"] { border-left-color: var(--vert); }
.demande-tete { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: baseline; }
.demande-tete strong { font-size: 1.05rem; }
.demande-meta { color: var(--encre-douce); font-size: .92rem; }
.etiquette { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--gris-fond); color: var(--encre); }
.etiquette-essai { background: #fde68a; color: #713f12; }
.demande-fiche { margin-top: .6rem; display: grid; gap: .5rem; }
.demande-fiche p { margin: 0; white-space: pre-wrap; }
.demande-photos { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.demande-photos strong { flex-basis: 100%; }
.demande-photo img { display: block; width: 160px; max-width: 40vw; height: 120px; object-fit: cover; border-radius: 6px; background: var(--ardoise); }
.rangee { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.reponse { width: 100%; min-height: 10rem; }
.liste-pieces li { display: flex; gap: .6rem; align-items: center; }
.liste-pieces input { width: 1.4rem; height: 1.4rem; min-height: 0; accent-color: var(--vert); flex: none; }
.liste-pieces .recu-le { color: var(--vert); font-weight: 700; font-size: .85rem; }
.liens-gestion li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .6rem .75rem; border: 1px dashed var(--gris); border-radius: var(--rayon); background: var(--gris-fond); }
.lien-gestion { font-weight: 700; color: var(--encre-douce); }
.remarque { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .6rem .75rem; background: #fff; }
.remarque p { margin: .25rem 0 0; }
.remarque-brouillon { border-style: dashed; background: #fffaf0; }
.remarque-brouillon .btn { margin-top: .4rem; }
.brouillons { display: grid; gap: .75rem; margin-top: 1rem; }
/* SITE-03 : les vidéos de chantier */
.liste-videos { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.video { border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; background: #fff; display: grid; }
.video-cadre { aspect-ratio: 16 / 9; background: var(--ardoise); display: grid; place-items: center; color: #fff; text-align: center; padding: 0; border: 0; width: 100%; cursor: pointer; font: inherit; }
.video-cadre img, .video-cadre video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cadre video { object-fit: contain; background: #000; }
.video-legende { padding: .55rem .75rem; display: grid; gap: .15rem; }
.video-legende strong { overflow-wrap: anywhere; }
.video-legende .etiquette { justify-self: start; }
@media (min-width: 760px) { .brouillons { grid-template-columns: 1fr 1fr; } }
.brouillon { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .75rem; background: #fff; display: grid; gap: .5rem; min-width: 0; }
.brouillon-tete { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.brouillon p { margin: 0; white-space: pre-wrap; }
.etiquette-valider { background: #f7eddd; color: var(--anthracite); border: 1px solid var(--or-fonce); }
.etiquette-publie { background: var(--vert-fond); color: var(--vert); }

/* l'IA travaille : trois points qui battent et la phrase de l'étape (fondamental 13) */
.travail { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--ardoise); }
.points { display: inline-flex; gap: .3rem; }
.points i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--chantier); animation: bat 1s infinite ease-in-out; }
.points i:nth-child(2) { animation-delay: .15s; }
.points i:nth-child(3) { animation-delay: .3s; }
@keyframes bat { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .points i { animation: none; } }

[hidden] { display: none !important; }

/* LE NUMÉRO DE VERSION — loi « point 11 » (17/09/2026) : toujours visible, en coin, jamais sous le doigt.
   Propriétés PHYSIQUES (top/right), pas logiques. Collé au coin ; sous une encoche, son RETRAIT (padding) le décale, jamais sa position. */
.version {
  position: fixed; top: 0; right: 0; z-index: 40;
  padding: env(safe-area-inset-top, 0px) calc(.4rem + env(safe-area-inset-right, 0px)) 0 .4rem; font: 11px/15px ui-monospace, monospace; color: var(--anthracite);
  background: rgba(240, 240, 240, .95); pointer-events: none; direction: ltr;
}
/* Aucune page rtl ; la règle reste pour la loi (porte/version.test.mjs) : haut gauche en rtl. */
[dir="rtl"] .version { right: auto; left: 0; }

/* MICRO-02 C2 : le bandeau du cockpit, dans une couleur que le site n'a pas (fuchsia foncé, contraste 8,6:1 sur blanc). Il passe sous
   le numéro de version (padding du haut), jamais dessus. */
.bandeau-cockpit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--marge) .55rem; background: #86198f; color: #fff; font-size: .9rem; letter-spacing: .02em; }
.bandeau-cockpit strong { font-weight: 800; overflow-wrap: anywhere; }
.bandeau-cockpit a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.bandeau-cockpit a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* LOT-BES-USAGE-02 C2 : sur téléphone (≤ 700 px) le bandeau tient sur UNE ligne de 40 px au plus (police et marges resserrées ; le texte ne change pas, rien n'est coupé).
   La cible du lien reste de 44 px : sa boîte dépasse la ligne par des marges négatives (le numéro de version, au-dessus, ne reçoit pas de toucher). */
@media (max-width: 700px) {
  /* L4 CA-R 3 : la police suit la largeur de L'EN-TÊTE (cqw), non celle de la fenêtre (vw) : une barre de défilement classique de 15 px, que vw ne retire pas, faisait sortir le lien « Voir le site » de 6 à 13 px. */
  .bandeau-cockpit { container-type: inline-size; flex-wrap: nowrap; gap: .4rem; padding: calc(env(safe-area-inset-top, 0px) + 16px) .5rem .25rem; font-size: .8rem; letter-spacing: 0; line-height: 1.15; }
  .bandeau-cockpit > strong, .bandeau-cockpit > a, .bandeau-cockpit > .taille-aa { font-size: clamp(.58rem, 2.85cqw, .8rem); }
  .bandeau-cockpit strong { font-weight: 700; overflow-wrap: normal; white-space: nowrap; }
  .bandeau-cockpit a { white-space: nowrap; margin-block: -14px; flex: none; }
}
@media (max-width: 339px) {   /* sous 340 px la ligne ne tient plus : elle passe à deux lignes plutôt que de sortir de la page */
  .bandeau-cockpit { flex-wrap: wrap; }
  .bandeau-cockpit strong { white-space: normal; }
}

/* SITE-03-B : la photo de la dépense */
.dp-fichier { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dp-pages { display: grid; gap: .9rem; }
.dp-page { border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; padding: .7rem; display: grid; gap: .5rem; }
.dp-page-tete { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.dp-vues { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dp-vue { margin: 0; cursor: zoom-in; }
.dp-vue img { width: 100%; height: 13rem; object-fit: contain; background: var(--beton); border-radius: var(--rayon); display: block; }
.dp-vue figcaption { font-size: .85rem; color: var(--encre-douce); text-align: center; margin-top: .2rem; }
.dp-v-bonne { background: #dff3e4; color: #1b6e3a; }
.dp-v-a_reprendre, .dp-v-non_traitee { background: #fff1dc; color: #8a4b00; }
.dp-v-a_retirer { background: #fde2e0; color: var(--rouge); }
.dp-payeur { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .7rem; margin: 0; display: grid; gap: .35rem; }
.dp-choix { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; }
.dp-choix input { width: 1.4rem; height: 1.4rem; min-height: 0; accent-color: var(--chantier); flex: none; }
.dp-proposition { border-top: 1px solid var(--filet); margin-top: 1rem; padding-top: 1rem; }
.dp-proposition h3 { margin: 0; }
.dp-tva { font-weight: 700; }
.dp-tva-proposee { color: #1b6e3a; }
.dp-tva-non_recuperable { color: #8a4b00; background: #fff1dc; padding: .4rem .6rem; border-radius: var(--rayon); }
.dp-tva-a_verifier { color: var(--rouge); background: #fde2e0; padding: .4rem .6rem; border-radius: var(--rayon); }
.dp-tva-a_completer { color: #8a4b00; }
.etiquette.dp-tva-proposee { background: #dff3e4; }
.etiquette.dp-tva-non_recuperable, .etiquette.dp-tva-a_verifier { padding: .1rem .5rem; }
.etiquette-confirmer { background: #eef3fb; font-weight: 600; }
input[data-douteux] { border-color: #d08a2a; }
.poche-total { font-size: 1.4rem; font-weight: 800; margin: .3rem 0; }
.liste-poche, .liste-tva, .liste-pieces-depense { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.poche-ligne { display: grid; gap: .3rem; border-bottom: 1px solid var(--filet); padding-bottom: .4rem; }
.poche-ligne .btn[aria-pressed="true"] { background: var(--encre); color: #fff; }
.dp-filtres { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin: .6rem 0; }
.dp-filtres .champ { margin: 0; }
.piece-depense { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .7rem; background: #fff; display: grid; gap: .4rem; }
.piece-nom { overflow-wrap: anywhere; font-size: .95rem; }
.piece-vignette { width: 72px; height: 96px; object-fit: cover; border-radius: 4px; border: 1px solid var(--filet); cursor: zoom-in; }
.loupe { border: 0; padding: 0; width: min(100vw, 900px); max-width: 100vw; height: 100dvh; max-height: 100dvh; background: #111; }
.loupe::backdrop { background: #000c; }
.loupe-barre { position: sticky; top: 0; display: flex; gap: .5rem; justify-content: flex-end; padding: .5rem; background: #111; z-index: 1; }
.loupe-cadre { overflow: auto; height: calc(100dvh - 3.5rem); }
.loupe-cadre img { width: 100%; height: auto; display: block; }

/* ---- PHO-08 C1 : le recadrage à la main (quatre poignées rondes de 44 px, une loupe qui suit le doigt) */
.recadrage { width: min(40rem, calc(100vw - 1rem)); max-height: calc(100dvh - 1rem); padding: 1rem; border: 2px solid var(--encre); border-radius: var(--rayon); background: var(--papier); overflow: auto; }
.recadrage::backdrop { background: #1f2326cc; }
.recadrage h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.rc-scene { position: relative; display: inline-block; max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; margin: .6rem 0; }
.rc-scene img { display: block; width: auto; height: auto; max-width: 100%; max-height: 70dvh; }
.rc-poignee { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid #fff; background: #c4944ccc; box-shadow: 0 0 0 2px var(--chantier), 0 2px 6px #0008; cursor: grab; touch-action: none; padding: 0; }
.rc-poignee:active { cursor: grabbing; }
.rc-loupe { position: absolute; width: 132px; height: 132px; border-radius: 50%; border: 3px solid var(--chantier); background: #fff; pointer-events: none; box-shadow: 0 2px 10px #0009; }

/* ---- PHO-08 C3 : la pièce réécrite se dessine dans la page avec les polices de la brique (mêmes métriques que le PDF) */
@font-face { font-family: "Piece Mono"; src: url("/polices/reconstitution/DejaVuSansMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Piece Mono"; src: url("/polices/reconstitution/DejaVuSansMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: block; }
@font-face { font-family: "Piece Sans"; src: url("/polices/reconstitution/LiberationSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Piece Sans"; src: url("/polices/reconstitution/LiberationSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: block; }
@font-face { font-family: "Piece Moderne"; src: url("/polices/reconstitution/Carlito-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Piece Moderne"; src: url("/polices/reconstitution/Carlito-Bold.ttf") format("truetype"); font-weight: 700; font-display: block; }
@font-face { font-family: "Piece Serif"; src: url("/polices/reconstitution/LiberationSerif-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Piece Serif"; src: url("/polices/reconstitution/LiberationSerif-Bold.ttf") format("truetype"); font-weight: 700; font-display: block; }
.garder-papier { font-weight: 600; }
.mp-mois { margin: 1.25rem 0 .5rem; padding: .6rem .8rem; background: var(--gris-fond); border-left: 4px solid var(--chantier); border-radius: var(--rayon); }
.mp-mois h3 { margin: 0 0 .25rem; font-size: 1.05rem; text-transform: capitalize; }
.mp-mois p { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.piece-ligne { display: grid; grid-template-columns: 76px 1fr; gap: .75rem; align-items: start; padding: .75rem 0; border-bottom: 1px solid var(--filet); }
.piece-ligne > button.vignette-btn { padding: 0; border: 1px solid var(--filet); background: #fff; cursor: pointer; width: 76px; height: 104px; border-radius: 4px; overflow: hidden; }
.vignette-btn canvas, .vignette-btn img { display: block; width: 74px; height: 102px; object-fit: contain; background: #fff; }
.piece-ligne .piece-texte { min-width: 0; }
.piece-ligne .piece-texte strong { display: block; overflow-wrap: anywhere; }
.fiche-piece { width: min(78rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0; background: var(--papier); }
.fiche-piece::backdrop { background: #1f2326cc; }
.fp-barre { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 1rem; background: var(--encre); color: #fff; }
.fp-barre h2 { font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.fp-corps { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
@media (min-width: 900px) { .fp-corps { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .fp-vue { position: sticky; top: 3.5rem; } }
.fp-onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.fp-onglets [aria-pressed="true"] { background: var(--encre); color: #fff; }
.fp-cadre { background: #fff; border: 1px solid var(--filet); min-height: 12rem; max-height: 70dvh; overflow: auto; }
.fp-cadre canvas, .fp-cadre img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.fp-liste { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: 0; }
.fp-liste dt { font-weight: 700; margin-top: .6rem; }
.fp-liste dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; overflow-wrap: anywhere; }
.fp-liste dd .valeur { flex: 1 1 10rem; min-width: 0; }
.crayon { min-width: 44px; min-height: 44px; border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff; font-size: 1.1rem; cursor: pointer; }
.fp-editeur { flex: 1 1 100%; display: grid; gap: .5rem; padding: .6rem; border: 2px solid var(--chantier); border-radius: var(--rayon); background: #fff; }
.fp-editeur input, .fp-editeur select { min-height: 44px; width: 100%; font: inherit; padding: .4rem .5rem; border: 2px solid var(--filet); border-radius: var(--rayon); }
.fp-editeur label { font-weight: 600; }
.fp-trace { padding-left: 1.1rem; font-size: .92rem; color: var(--encre-douce); }
.msg-refus-clic { color: var(--rouge); font-weight: 600; }
.lien-bouton { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--encre); text-align: left; cursor: pointer; min-height: 44px; }
.lien-bouton strong { text-decoration: underline; text-decoration-color: var(--chantier); text-underline-offset: 3px; }
.dp-rafale { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .75rem; }
.dp-rafale input { width: 24px; height: 24px; flex: none; margin-top: .1rem; }
.dp-suivante { width: 100%; min-height: 30vh; font-size: 1.4rem; }
.liste-rafale { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.liste-rafale li { background: var(--vert-fond); color: var(--vert); border-radius: var(--rayon); padding: .25rem .6rem; font-weight: 600; }
.export { margin: 1rem 0; padding: .9rem; border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff; }
.export h3 { margin: 0 0 .3rem; }
.export select { min-height: 44px; max-width: 100%; }

/* ---- COCKPIT-01 : les onglets sobres du cockpit (décision de Nil du 21/10) et les rubriques du pilotage. Sans JavaScript, la barre se
   cache et les rubriques s'empilent. Sur téléphone, les onglets passent à la ligne : jamais de défilement horizontal. */
.onglets { display: none; }
[data-js] .onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .25rem; padding: 0; border-bottom: 2px solid var(--encre); }
.onglet-btn { font: inherit; font-weight: 700; min-height: 44px; padding: .5rem .9rem; border: 2px solid var(--filet); border-bottom: 0; border-radius: var(--rayon) var(--rayon) 0 0; background: #fff; color: var(--encre); cursor: pointer; margin-bottom: -2px; }
.onglet-btn:hover { background: var(--beton); }
.onglet-btn[aria-selected="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.onglet:focus { outline: none; }
.onglet > .tuile { margin-top: 1rem; }
/* coupe 1 : les déclarations à faire — la date saisie se distingue, mais jamais en vert : elle reste à confirmer */
.liste-decl { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .75rem; }
.decl { border: 1px solid var(--filet); border-left: 5px solid var(--ardoise); border-radius: var(--rayon); padding: .8rem; background: #fff; min-width: 0; }
.decl h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.decl-date { margin: 0 0 .5rem; }
.decl-date [data-decl-valeur] { color: var(--encre-douce); font-style: italic; }
.decl.decl-saisie-faite { border-left-color: var(--chantier); }
.decl.decl-saisie-faite .decl-date [data-decl-valeur] { color: var(--encre); font-style: normal; font-weight: 700; }
.decl-fiche { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .3rem .75rem; margin: 0 0 .6rem; }
.decl-fiche dt { font-weight: 700; color: var(--encre-douce); }
.decl-fiche dd { margin: 0; }
@media (max-width: 560px) { .decl-fiche { grid-template-columns: minmax(0, 1fr); } .decl-fiche dd { margin-bottom: .35rem; } }
.decl-saisie { align-items: flex-end; }
.decl-saisie input[type="date"] { min-height: 44px; max-width: 100%; }
/* coupe 2 : le registre des aides — « Vérifiée » en vert, « À vérifier » en ambre, jamais en vert ; une adresse longue passe à la ligne */
.aides-filtre { align-items: flex-end; justify-content: space-between; }
.aides-filtre select { min-height: 44px; max-width: 100%; }
.liste-aides { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .75rem; }
.dispositif { border: 1px solid var(--filet); border-left: 5px solid #b45309; border-radius: var(--rayon); padding: .8rem; background: #fff; min-width: 0; }
.dispositif.aide-sure { border-left-color: var(--vert); }
.dispositif h3 { margin: 0; font-size: 1.05rem; }
.dispositif p { margin: .35rem 0 0; }
.aide-source { overflow-wrap: anywhere; word-break: break-word; }
.etiquette.aide-verifiee { background: var(--vert-fond); color: var(--vert); }
.etiquette.aide-a-verifier { background: #fef3c7; color: #7c2d12; border: 1px solid #b45309; }
/* coupe 3 : le point du soir — trois fiches au plus, trois boutons chacune ; « À voir » en plus discret */
.liste-decisions { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .75rem; }
.decision { border: 1px solid var(--filet); border-left: 5px solid var(--chantier); border-radius: var(--rayon); padding: .8rem; background: #fff; min-width: 0; }
.decision .decl-fiche { margin: .5rem 0; }
.liste-a-voir .decision { border-left-color: var(--gris); background: var(--papier); }
.dc-deux { align-items: flex-start; }
.dc-deux > .champ { flex: 1 1 12rem; }
/* coupe 5 : le squelette de la comptabilité — des cadres en pointillés, sans chiffre : on voit ce qui viendra, rien ne fait croire à un montant */
.squelette { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.squelette-bloc { border: 2px dashed var(--gris); border-radius: var(--rayon); padding: .8rem; background: #fff; min-width: 0; }
.squelette-bloc h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.squelette-bloc p { margin: .3rem 0 0; }
.squelette-etat span { color: var(--encre-douce); font-style: italic; }
.squelette-vide { color: var(--gris); font-weight: 600; }
/* vu en WebKit (iPhone 13) : sur téléphone, les onglets passaient sur trois rangs inégaux ; ils forment une grille de deux colonnes */
@media (max-width: 560px) {
  [data-js] .onglets { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .onglet-btn { border-radius: var(--rayon); border-bottom: 2px solid var(--filet); margin: 0; }
  .onglet-btn[aria-selected="true"] { border-bottom-color: var(--encre); }
}
/* LOT-BES-USAGE-02 C1 : sur téléphone (≤ 700 px) la grille des onglets se replie derrière UNE ligne qui dit l'onglet courant (bouton de 44 px au moins, chevron).
   Au-delà de 700 px, la grille reste comme avant et la ligne n'existe pas. Sans JavaScript, la ligne est cachée (attribut hidden) et la grille aussi (règle plus haut). */
.onglet-ligne { display: none; }
@media (max-width: 700px) {
  [data-js] .onglet-ligne:not([hidden]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: .5rem; width: 100%; min-height: 44px; margin: .75rem 0 .25rem; padding: .5rem .9rem; font: inherit; text-align: left; color: var(--encre); background: #fff; border: 2px solid var(--encre); border-radius: var(--rayon); cursor: pointer; }
  .onglet-ligne:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
  .onglet-ligne .onglet-ligne-prefixe { color: var(--encre-douce); font-weight: 600; }
  .onglet-ligne strong { font-weight: 800; overflow-wrap: anywhere; }
  .onglet-ligne[aria-expanded="true"] .repli-chevron { transform: rotate(-135deg); }
  [data-js] .onglets[data-replie] { display: none; }
  [data-js] .onglets { margin-top: .25rem; }
}
/* coupe 6 : le prévisionnel et l'optimiseur, squelette — chaque case dit « non calculé » et ce qu'il faut fournir ; jamais un chiffre */
.prev-note { margin: 1rem 0 0; }
.prev-liste { margin: .75rem 0 0; display: grid; gap: .6rem; }
.prev-champ { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .3rem .9rem; border: 2px dashed var(--gris); border-radius: var(--rayon); padding: .7rem .8rem; background: #fff; }
.prev-champ dt { font-weight: 700; }
.prev-champ dd { margin: 0; display: grid; gap: .25rem; }
.prev-valeur { color: #7c2d12; font-weight: 700; font-style: italic; }
.prev-fournir { color: var(--encre-douce); }
@media (max-width: 560px) { .prev-champ { grid-template-columns: minmax(0, 1fr); } }
/* ---- CHA-E1 : l'onglet « Chantiers » (clients, visites, devis, challenge). Mêmes tuiles que le pilotage ; une vue à la fois ; rien ne
   déborde au téléphone (les rangées passent en une colonne sous 560 px). */
.ch-vues { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.ch-vues [aria-pressed="true"] { background: var(--encre); color: #fff; }
.ch-vue > .tuile { margin-top: 1rem; }
.ch-actions { align-items: end; gap: .75rem 1rem; }
.ch-depuis { flex: 1 1 16rem; }
.ch-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ch-quatre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ch-liste { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ch-liste-simple li { border-left: 3px solid var(--filet); padding: .25rem .6rem; overflow-wrap: anywhere; }
.ch-item { min-width: 0; }
.ch-ouvrir { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; text-align: left; font: inherit; color: var(--encre); background: #fff; border: 1px solid var(--filet); border-left: 5px solid var(--chantier); border-radius: var(--rayon); padding: .7rem .8rem; min-height: 48px; cursor: pointer; overflow-wrap: anywhere; }
.ch-ouvrir:hover { background: var(--beton); }
.ch-visite-item { border: 1px solid var(--filet); border-left: 5px solid var(--ardoise); border-radius: var(--rayon); padding: .7rem .8rem; background: #fff; overflow-wrap: anywhere; }
.ch-visite-item p { margin: .3rem 0 0; }
.ch-item-devis { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ch-ligne { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .7rem .8rem; background: #fff; overflow-wrap: anywhere; }
.ch-ligne p { margin: .25rem 0 0; }
.ch-ligne-calc { font-variant-numeric: tabular-nums; font-weight: 600; }
.ch-totaux { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
.ch-totaux dd { font-variant-numeric: tabular-nums; font-weight: 700; }
.ch-actions-devis { gap: .6rem; }
.etiquette.ch-etat-pret { background: #e0ecff; color: #1e3a8a; }
.etiquette.ch-etat-signe { background: var(--vert-fond); color: var(--vert); }
.etiquette.ch-etat-refuse, .etiquette.ch-etat-remplace { background: var(--gris-fond); color: var(--encre-douce); }
/* vu dans Chrome (aperçu) : en « flex », le triangle du bloc repliable disparaissait — rien ne disait qu'il s'ouvre */
.ch-brute summary, .ch-journal summary { cursor: pointer; font-weight: 700; min-height: 44px; display: list-item; padding: .6rem 0; }
.ch-brute p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--encre-douce); }
.ch-journal { margin-top: 1rem; }
@media (max-width: 760px) { .ch-quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ch-deux, .ch-quatre, .ch-totaux { grid-template-columns: minmax(0, 1fr); } }
/* CHA-E1-B : les règles du juriste — vert SEULEMENT pour une règle publiée par le juriste (niveau 1) ; ambre pour la fiche locale et tout ce
   qui est à vérifier ; rouge pour ce qui est à faire qualifier par un professionnel (niveau 3). Contrastes AA sur fond clair. */
.ch-regles { margin-top: 1rem; }
.ch-regle { border: 1px solid var(--filet); border-left: 6px solid #b45309; border-radius: var(--rayon); padding: .7rem .8rem; background: #fff; overflow-wrap: anywhere; }
.ch-regle p { margin: .3rem 0 0; }
.ch-regle-vert { border-left-color: var(--vert); }
.ch-regle-rouge { border-left-color: var(--rouge); }
.etiquette.ch-pastille-ambre { background: #fef3c7; color: #7c2d12; border: 1px solid #b45309; }
.etiquette.ch-pastille-vert { background: var(--vert-fond); color: var(--vert); }
.etiquette.ch-pastille-rouge { background: var(--rouge-fond); color: var(--rouge); border: 1px solid var(--rouge); }
/* CHA-E1 C3 : les deux questions, la signature, les acomptes ; un refus cite sa règle (source cliquable) */
.ch-conditions, .ch-signature, .ch-acomptes { margin-top: 1rem; }
.ch-choix { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem; margin: 0; display: grid; gap: .5rem; }
.ch-choix legend { font-weight: 700; padding: 0 .3rem; }
.ch-refus-source { display: block; margin-top: .35rem; font-weight: 500; overflow-wrap: anywhere; }
.ch-refus-source a { color: var(--rouge); }
/* CHA-E1 C4 : le challenge IA — chaque suggestion montre sa source ; le verdict se lit d'un coup d'œil (jamais en vert : rien n'est « bon ») */
.ch-suggestion { border: 1px solid var(--filet); border-left: 5px solid var(--ardoise); border-radius: var(--rayon); padding: .7rem .8rem; background: #fff; overflow-wrap: anywhere; }
.ch-suggestion p { margin: .3rem 0 0; }
.ch-source { font-style: italic; }
.etiquette.ch-verdict-a_trancher { background: #fef3c7; color: #7c2d12; border: 1px solid #b45309; }
.etiquette.ch-verdict-retenue { background: #e0ecff; color: #1e3a8a; }
.etiquette.ch-verdict-ecartee { background: var(--gris-fond); color: var(--encre-douce); }
.ch-memoire { border-left: 3px solid var(--filet); padding-left: .6rem; }
/* vu en WebKit (iPhone 13, sonde outils/mesure-chantier.mjs) : une liste dont l'option choisie est longue (le nom du client) élargissait la
   colonne de sa grille jusqu'à 841 px — défilement horizontal. La colonne d'un champ est bornée à la place disponible. */
.ch-vue .champ { grid-template-columns: minmax(0, 1fr); }
/* seul « overflow: hidden » sur le champ arrête le texte peint par WebKit ; 6 px de marge intérieure (compensés) laissent la place au contour
   de focus (3 px + 2 px), qui n'est donc jamais rogné */
.ch-vue .champ:has(> select) { overflow: hidden; padding: 6px; margin: -6px; }
.ch-vue select { min-width: 0; text-overflow: ellipsis; }
/* ---- CHA-E3 C0 : le bloc « Règles qui s'appliquent » se replie (un bouton, aria-expanded ; Entrée et Espace le déplient). Le triangle se voit
   replié comme déplié. Jamais de vert : la ligne repliée prend l'ambre (ou le rouge) de la règle la plus faible. */
.ch-replier-titre { margin: 0; font-size: inherit; }
.ch-replier { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; width: 100%; min-height: 48px; padding: .55rem .7rem; text-align: left; font: inherit; color: var(--encre); background: #fff; border: 1px solid var(--filet); border-left: 6px solid #b45309; border-radius: var(--rayon); cursor: pointer; overflow-wrap: anywhere; }
.ch-replier::before { content: "\25B8"; display: inline-block; width: 1em; transition: transform .15s; font-size: 1.05em; }
.ch-replier[aria-expanded="true"]::before { transform: rotate(90deg); }
.ch-replier-nom { font-weight: 700; font-size: 1.15rem; }
.ch-replier-resume { font-weight: 600; }
.ch-resume-ambre { color: #7c2d12; }
.ch-resume-rouge { color: var(--rouge); }
#cd-regles-corps { margin-top: .5rem; }
/* ---- CHA-E3 C1 : produits et fournisseurs. Un prix porte son état : à jour (bleu, jamais vert : ce n'est pas une règle validée), non à jour
   (gris), sans date de validité (AMBRE, « à confirmer »). Au téléphone, la grille des sous-vues suit celle des onglets du cockpit (deux colonnes). */
.ch-recherche { align-items: end; gap: .5rem 1rem; }
.ch-recherche > .champ { flex: 1 1 14rem; min-width: 0; }
.ch-etiquettes { gap: .4rem; margin: .2rem 0 .6rem; }
.ch-versions { margin-top: .75rem; }
.ch-version { border: 1px solid var(--filet); border-left: 5px solid var(--gris); border-radius: var(--rayon); padding: .6rem .8rem; background: #fff; overflow-wrap: anywhere; }
.ch-version p { margin: .2rem 0 .4rem; }
.ch-prix { overflow-wrap: anywhere; }
.etiquette.ch-prix-a_jour { background: #e0ecff; color: #1e3a8a; }
.etiquette.ch-prix-perime { background: var(--gris-fond); color: var(--encre-douce); }
.etiquette.ch-prix-sans_date { background: #fef3c7; color: #7c2d12; border: 1px solid #b45309; }
.decl-fiche dd a { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .ch-vues { display: grid; grid-template-columns: 1fr 1fr; }
  .ch-vues .btn { width: 100%; margin: 0; }
}
/* ---- CHA-E3 C2 : achats. Trois compteurs (des lignes saisies seulement) ; le rappel de rétractation en ambre, jamais bloquant. */
.ch-compteurs { list-style: none; margin: .75rem 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.ch-compteur { border: 1px solid var(--filet); border-left: 5px solid var(--ardoise); border-radius: var(--rayon); background: #fff; padding: .6rem .8rem; display: grid; gap: .15rem; min-width: 0; }
.ch-compteur-n { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ch-trois { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ch-ligne-achat { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .6rem .8rem; background: #fff; min-width: 0; }
.ch-retractation p { margin: .2rem 0; }
.ch-geste { margin-top: 1rem; }
.ch-reception { margin-top: .6rem; }
.ch-ligne-produit, .ch-ligne-prix-achat { overflow-wrap: anywhere; }
.ch-choix-produit { display: grid; gap: .3rem; }
/* BIB-01 : la bibliothèque des prix d'achat dans une ligne de devis */
.ch-choix-bib, .ch-bib-choisi, .ch-ligne-bib { display: grid; gap: .3rem; min-width: 0; overflow-wrap: anywhere; }
.ch-bib-choisi { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .5rem .7rem; background: #fff; }
.ch-bib-drapeaux { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.etiquette.etiquette-attention { background: #fef3c7; color: #7c2d12; white-space: normal; max-width: 100%; }
.ch-ligne-marge, .ch-ligne-debourse { font-weight: 600; margin: 0; }
.etiquette.ch-achat-envoyee, .etiquette.ch-achat-confirmee { background: #e0ecff; color: #1e3a8a; }
.etiquette.ch-achat-recue_partielle { background: #fef3c7; color: #7c2d12; }
.etiquette.ch-achat-repondue, .etiquette.ch-achat-recue { background: var(--gris-fond); color: var(--encre); }
.etiquette.ch-achat-annulee { background: var(--gris-fond); color: var(--encre-douce); text-decoration: line-through; }
@media (max-width: 560px) { .ch-trois { grid-template-columns: minmax(0, 1fr); } }
/* ---- CHA-E3 C3 : la mémoire et « Trucs et parades ». Une astuce « à valider » n'a jamais l'air sûre (ambre, pointillés) ; une écartée est grise. */
.ch-retour, .ch-truc { border: 1px solid var(--filet); border-left: 5px solid var(--ardoise); border-radius: var(--rayon); padding: .7rem .8rem; background: #fff; overflow-wrap: anywhere; }
.ch-retour p, .ch-truc p { margin: .3rem 0 0; }
.ch-truc-parade { border-left-color: var(--chantier); }
.ch-astuce-a_valider { border-style: dashed; border-left-style: solid; border-left-color: #b45309; }
.ch-astuce-ecarte { border-left-color: var(--gris); color: var(--encre-douce); }
.etiquette.ch-parade-validee { background: #e0ecff; color: #1e3a8a; }
.etiquette.ch-astuce-etat-a_valider { background: #fef3c7; color: #7c2d12; border: 1px solid #b45309; }
.etiquette.ch-astuce-etat-publie { background: #e0ecff; color: #1e3a8a; }
.etiquette.ch-astuce-etat-ecarte { background: var(--gris-fond); color: var(--encre-douce); }
.ch-typologie, .ch-produits-utilises { margin-top: 1rem; }
.ch-plus-recente { margin: .3rem 0; }
.ch-rappel { font-weight: 600; }
#ch-trucs h4 { margin: 1rem 0 .3rem; }
/* ---- CHA-E3 C4 : le rituel du moment, en tête de l'onglet (une carte calme, jamais rouge) ; les rendez-vous. */
.ch-rituel { border-left: 6px solid var(--ardoise); }
.ch-rituel-texte { white-space: pre-line; font-size: 1.05rem; overflow-wrap: anywhere; }
.ch-rituel-questions { counter-reset: q; }
.ch-rituel-question { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .6rem .8rem; background: #fff; }
.ch-rituel-q { font-weight: 700; margin: 0 0 .3rem; }
.ch-rdv { border: 1px solid var(--filet); border-left: 5px solid var(--ardoise); border-radius: var(--rayon); padding: .6rem .8rem; background: #fff; overflow-wrap: anywhere; }
.ch-rdv p { margin: .3rem 0 0; }
.ch-rdv-annule { color: var(--encre-douce); }
.etiquette.ch-rdv-etat-fait { background: var(--gris-fond); color: var(--encre); }
.etiquette.ch-rdv-etat-annule { background: var(--gris-fond); color: var(--encre-douce); text-decoration: line-through; }
.etiquette.ch-rdv-etat-prevu { background: #e0ecff; color: #1e3a8a; }
/* vu au regard du visiteur (C5) : la carte du rituel vient SOUS la barre des sous-vues ; ses zones de réponse tiennent sur une ligne */
.ch-rituel { margin-top: 1rem; }
.ch-rituel-question textarea { min-height: 2.6rem; resize: vertical; }
.ch-rituel-question .champ { margin-bottom: .3rem; }

/* LOT-BES-CHA-E4 : Planning (calendrier, chronologie), Équipe (charge), Matériel, Sous-traitants, Courriers, Pièces de marché, Plans.
   Le calendrier : une grille de sept colonnes sur écran large ; AU TÉLÉPHONE, une liste par jour (jamais de grille qui déborde). */
.ch-cal-outils { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.ch-cal-modes, .ch-cal-nav { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.ch-cal-modes [aria-pressed="true"] { background: var(--encre); color: #fff; }
.ch-cal { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.ch-cal-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; padding: .3rem; min-width: 0; }
.ch-cal-jour { font-size: .8rem; padding: .2rem .3rem; border-bottom: 1px solid var(--filet); min-width: 0; overflow-wrap: anywhere; }
.ch-cal-non-ouvre { background: var(--gris-fond); color: var(--gris); }
.ch-cal-hors-mois { opacity: .55; }
.ch-cal-aujourdhui { box-shadow: inset 0 -3px 0 var(--chantier); font-weight: 700; }
.ch-cal-nom { display: block; font-weight: 700; }
.ch-cal-barre { display: block; font: inherit; font-size: .8rem; text-align: left; border: 1px solid var(--ardoise); background: #e0ecff; color: #1e3a8a; border-radius: 4px; padding: .15rem .4rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
button.ch-cal-barre { min-height: 32px; }
.ch-cal-barre.ch-ch-etat-en_cours { background: var(--vert-fond); color: var(--vert); border-color: var(--vert); }
.ch-cal-barre.ch-ch-etat-termine, .ch-cal-barre.ch-ch-etat-receptionne { background: var(--gris-fond); color: var(--encre-douce); border-color: var(--filet); }
.ch-cal-intervention { background: #fef3c7; color: #7c2d12; border-color: #b45309; cursor: default; }
.ch-cal-rdvs { display: grid; gap: .15rem; min-width: 0; }
.ch-cal-rdv { font-size: .75rem; background: var(--beton); border-radius: 4px; padding: .1rem .3rem; overflow-wrap: anywhere; }
.ch-cal-liste { display: none; }
.ch-cal-jour-liste { border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; padding: .5rem .7rem; }
@media (max-width: 640px) { .ch-cal { display: none; } .ch-cal-liste { display: grid; gap: .4rem; } }
.etiquette.ch-ch-etat-a_planifier { background: #fef3c7; color: #7c2d12; border: 1px solid #b45309; }
.etiquette.ch-ch-etat-planifie { background: #e0ecff; color: #1e3a8a; }
.etiquette.ch-ch-etat-en_cours { background: var(--vert-fond); color: var(--vert); }
.etiquette.ch-ch-etat-termine, .etiquette.ch-ch-etat-receptionne, .etiquette.ch-ch-etat-annule { background: var(--gris-fond); color: var(--encre-douce); }
.ch-plus-tot-date { font-size: 1.1rem; font-weight: 800; margin: .2rem 0; }
.ch-raison { overflow-wrap: anywhere; }
.ch-gestes { align-items: end; gap: .5rem; }
.ch-gestes .champ { margin: 0; }
.ch-chrono-ligne .ch-ouvrir { border-left-color: var(--ardoise); }
.ch-chrono-passee .ch-ouvrir { border-left-color: var(--filet); color: var(--encre-douce); }
.ch-chrono-jour .ch-ouvrir { border-left-color: var(--chantier); font-weight: 700; }
.ch-jours { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.ch-charge { display: grid; gap: .6rem; }
.ch-charge-personne { border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; padding: .5rem .7rem; min-width: 0; }
.ch-charge-jours { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; }
.ch-charge-jour { font-size: .78rem; border: 1px solid var(--filet); border-radius: 4px; padding: .15rem .25rem; min-width: 0; overflow-wrap: anywhere; }
.ch-charge-prise-1 { background: #e0ecff; }
.ch-charge-prise-2 { background: #bcd3f7; }
.etiquette.ch-charge-pleine { background: #fef3c7; color: #7c2d12; }
@media (max-width: 560px) { .ch-charge-jours { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ch-a-rendre { border-left: 5px solid #b45309; padding-left: .5rem; }
.etiquette.ch-at-a_jour { background: var(--vert-fond); color: var(--vert); }
.etiquette.ch-at-echue { background: var(--rouge-fond); color: var(--rouge); border: 1px solid var(--rouge); }
.etiquette.ch-at-sans_date { background: #fef3c7; color: #7c2d12; border: 1px solid #b45309; }
.etiquette.ch-at-manquante { background: #fff; color: var(--encre-douce); border: 1px dashed var(--gris); }
.ch-attestations { display: grid; gap: .3rem; }
.ch-bandeau-juriste { border: 1px solid #b45309; background: #fffbeb; border-radius: var(--rayon); padding: .5rem .7rem; }
#ccf-corps, #cpm-texte, #cpt-texte { min-height: 14rem; }
#cpm-texte { min-height: 8rem; }
.ch-texte-piece { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; font-size: .9rem; }
.ch-avertissement-marche { border-left: 5px solid #b45309; padding-left: .6rem; }
.ch-releve { border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; padding: .6rem .8rem; min-width: 0; }
.ch-releve blockquote { margin: .3rem 0; padding: .3rem .6rem; border-left: 4px solid var(--ardoise); background: var(--beton); overflow-wrap: anywhere; }
.etiquette.ch-an-a_trancher { background: #fef3c7; color: #7c2d12; border: 1px solid #b45309; }
.etiquette.ch-an-a_poser { background: #e0ecff; color: #1e3a8a; }
.etiquette.ch-an-ecarte { background: var(--gris-fond); color: var(--encre-douce); }
.ch-checklist label { display: flex; gap: .5rem; align-items: flex-start; overflow-wrap: anywhere; }
.ch-plans { display: grid; gap: .6rem; }
.ch-plan { border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; padding: .6rem .8rem; min-width: 0; }
.ch-vignette { display: block; max-width: min(100%, 18rem); max-height: 12rem; height: auto; border: 1px solid var(--filet); border-radius: 4px; margin: .3rem 0; }
.ch-date-geste { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; }
.ch-date-geste input { width: auto; max-width: 11rem; }
/* vu dans Chrome (C5) : les cases de la checklist flottaient au milieu de la ligne (largeur des champs du site) */
.ch-checklist { display: grid; gap: .4rem; }
.ch-checklist label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: start; }
.ch-checklist input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; }

/* ---- VIT-01 C2 : les sept pictogrammes (sprite inline, trait currentColor), les cartes des métiers, les pages métier.
   Or sur anthracite (les cartes, le bandeau) ; jamais de texte or sur clair. Une colonne au téléphone, deux puis trois en PC. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.picto { width: 2.5rem; height: 2.5rem; flex: none; }
.cartes-metiers { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .cartes-metiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* CLIENT-01 C0-bis : huit cartes, la règle « septième carte pleine largeur » n'a plus d'objet (retirée) ; toutes les cartes ont la hauteur de la plus haute */
.cartes-metiers { grid-auto-rows: 1fr; }
.cartes-metiers li { display: flex; }
.cartes-metiers li > .carte-metier { flex: 1 1 auto; min-width: 0; }
/* BES-63 C1 : AUCUN MOT COUPÉ. « Accompagnement » ne se coupe jamais en plein mot : plus de overflow-wrap:anywhere ; la taille du titre de tuile s'ADAPTE à la largeur de la tuile (requête de conteneur),
   en ligne (pictogramme, nom, flèche) puis en colonne dès 960 px ; le plancher de 0,8 rem tient le mot entier jusqu'aux plus petits téléphones. */
.carte-metier { container-type: inline-size; }
.carte-metier span { min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: manual; font-size: clamp(.8rem, calc((100cqi - 8.6rem) / 9.4), 1.1rem); }
@media (min-width: 960px) { .carte-metier span { font-size: clamp(.8rem, calc((100cqi - 2.2rem) / 9.4), 1.05rem); } }
/* VIT-01-B : quatre colonnes dès 960 px — sept cartes en 4 + 3 (en trois colonnes, Terrassement restait seule sur sa ligne) */
@media (min-width: 960px) { .cartes-metiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } .carte-metier { position: relative; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .6rem; padding: 1rem 1rem .95rem; font-size: 1.05rem; } .carte-metier::after { position: absolute; top: .95rem; right: 1rem; margin: 0; } }
/* VIT-01-B C4 : mesuré à 960 px (accueil) et dès 960 px sur /metiers (conteneur d'environ 830 px), « Terrassement » poussait la flèche hors de
   sa carte : en quatre colonnes, la carte se lit en hauteur — pictogramme, puis le nom, la flèche en haut à droite (outils/mesure-cartes.mjs) */
.carte-metier { display: flex; align-items: center; gap: 1rem; min-height: 4.75rem; padding: .9rem 1.1rem; background: var(--anthracite); color: #fff; border-radius: var(--rayon); border-bottom: 3px solid var(--or); text-decoration: none; font-family: var(--titres); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.carte-metier .picto { color: var(--or); }
.carte-metier::after { content: "→"; margin-left: auto; color: var(--or); font-family: var(--texte); }
.carte-metier:hover { background: #2d3237; }
.carte-metier:focus-visible { outline-color: var(--anthracite); }
.bandeau-metier { margin: 0 calc(-1 * var(--marge)); padding: 2.25rem var(--marge) 2rem; background: var(--anthracite); color: #fff; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.bandeau-metier h1 { margin: 0; color: #fff; }
/* BES-63 C1 : le titre d'une page métier ne se coupe JAMAIS en plein mot (« Accompagnement administratif » à 320 px) : le mot entier (overflow-wrap normal pour le calcul de la ligne) fait passer le titre sous le pictogramme au lieu de le casser à côté ; la taille s'adapte à la largeur. */
.bandeau-metier h1 { overflow-wrap: break-word; font-size: clamp(1.45rem, 8vw, 3.4rem); }
.picto-grand { width: 4.5rem; height: 4.5rem; color: var(--or); }
.page-metier { max-width: 46rem; padding-top: 1.25rem; }
.photos-metier { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); margin: 1rem 0; }
@media (min-width: 640px) { .photos-metier { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cadre-video { aspect-ratio: 16 / 9; max-width: 30rem; margin: 0 0 1.25rem; }
.page-metier .actions { align-items: center; gap: 1rem 1.5rem; }

/* ---- VIT-01 C3 : l'accueil (photo plein cadre à venir, sections à filet or, « Votre chantier » sur blanc), Réalisations par métier,
   le héros en grand sur PC. Aucune grande surface d'or. */
.p-accueil main { padding-top: 0; }
.photo-plein .afournir { aspect-ratio: 16 / 7; min-height: 9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 1rem 0 0; }
.section { margin-top: 2.5rem; }
.systeme { background: var(--blanc); border: 1px solid var(--filet); border-left: 4px solid var(--anthracite); border-radius: var(--rayon); padding: 1.25rem; }
.systeme p { margin: .4rem 0; }
.systeme-kb { color: var(--encre-douce); font-size: .9rem; }
/* VIT-01-B : la promesse À TENIR — ambre, visible, jamais cachée ; distincte de l'or (jamais d'or sur clair). Contrastes calculés :
   #7c2d12 sur #fff4e0 9,4:1 ; la phrase garde l'encre (anthracite sur #fff4e0 14:1). */
.a-tenir { background: #fff4e0; box-shadow: 0 0 0 2px #fff4e0; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pastille-tenir { display: inline-block; background: #fff4e0; color: #7c2d12; border: 1px solid #b45309; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: .1rem .55rem; border-radius: 999px; white-space: normal; }
.pastille-tenir strong { font-weight: 800; }
@media (min-width: 760px) { .hero { margin: 0; padding: 3.5rem 2.5rem 3.25rem; border-radius: 0 0 var(--rayon) var(--rayon); } .bandeau-metier { margin: 0; padding-left: 2.5rem; border-radius: 0 0 var(--rayon) var(--rayon); } .photo-plein .afournir { aspect-ratio: auto; height: 16rem; } }
.real-metier { margin-top: 2rem; }
.real-titre { display: flex; align-items: center; gap: .6rem; }
.real-titre .picto { width: 2rem; height: 2rem; color: var(--anthracite); }
.real-cadres { display: grid; gap: .75rem; }
@media (min-width: 760px) { .real-cadres { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.real-cadres .cadre-video { margin: 0; max-width: none; }
.page-simple { max-width: 52rem; }

/* LOT-BES-MSG-01 : la messagerie du cockpit (classes neuves, préfixe mx-) */
.mx-liste { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.mx-ouvrir { display: grid; gap: .25rem; width: 100%; text-align: left; font: inherit; color: var(--encre); background: var(--papier); border: 1px solid var(--filet); border-left: 4px solid var(--filet); border-radius: var(--rayon); padding: .65rem .8rem; cursor: pointer; min-width: 0; }
.mx-ouvrir:hover, .mx-ouvrir:focus-visible { border-color: var(--or-fonce); }
.mx-ouvrir[aria-current="true"] { border-left-color: var(--or); background: #faf6ef; }
.mx-ligne-mise-de-cote .mx-ouvrir { border-left-color: var(--rouge); }
.mx-tete { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; font-size: .85rem; color: var(--encre-douce); }
.mx-objet { font-weight: 700; overflow-wrap: anywhere; }
.mx-de { font-size: .85rem; color: var(--encre-douce); overflow-wrap: anywhere; }
.mx-etiquettes { display: flex; flex-wrap: wrap; gap: .3rem; }
.mx-a-repondre { background: #f7eddd; color: var(--anthracite); border: 1px solid var(--or-fonce); }
.mx-mis-de-cote { background: var(--rouge-fond); color: var(--rouge); }
.mx-range { background: var(--vert-fond); color: var(--vert); }
.mx-fiche dl { display: grid; grid-template-columns: minmax(6rem, max-content) 1fr; gap: .3rem .8rem; margin: .5rem 0; }
.mx-fiche dt { font-weight: 700; }
.mx-fiche dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.mx-corps { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: var(--beton); border-radius: var(--rayon); padding: .75rem; margin: .4rem 0; max-height: 24rem; overflow: auto; }
.mx-bloc { border-top: 1px solid var(--filet); margin-top: 1rem; padding-top: .75rem; min-width: 0; }
.mx-bloc h3 { margin: 1rem 0 .4rem; }
.mx-bloc h3:first-child { margin-top: 0; }
.mx-reponse textarea { width: 100%; min-height: 9rem; }
.mx-journal { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--encre-douce); display: grid; gap: .2rem; }
.mx-versions summary { cursor: pointer; font-weight: 700; }
.mx-filtres .champ { min-width: 0; flex: 1 1 12rem; }
.mx-filtres select { width: 100%; }
@media (max-width: 480px) { .mx-fiche dl { grid-template-columns: 1fr; gap: 0 .8rem; } .mx-fiche dd { margin-bottom: .35rem; } }
/* LOT-BES-MSG-03 : messagerie complète — archivés, pièces jointes, ton, mentions légales (classes neuves, préfixe mx-) */
.mx-ligne-archivee .mx-ouvrir { border-style: dashed; opacity: .85; }
.mx-archivee { background: var(--beton); color: var(--encre-douce); border: 1px solid var(--filet); }
.mx-case-archives { flex: 1 1 12rem; align-self: end; }
.mx-tons { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; }
fieldset.mx-tons { display: grid; }
.mx-tons legend { font-weight: 700; }
.mx-choisies, .mx-pieces, .mx-points { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .4rem; min-width: 0; }
.mx-choisies li { overflow-wrap: anywhere; font-size: .92rem; color: var(--encre-douce); }
.mx-pieces li { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; justify-content: space-between; border: 1px solid var(--filet); border-radius: var(--rayon); padding: .45rem .6rem; min-width: 0; }
.mx-piece-nom { overflow-wrap: anywhere; min-width: 0; flex: 1 1 12rem; }
.mx-piece-retiree .mx-piece-nom { color: var(--encre-douce); text-decoration: line-through; }
.mx-ton { border-top: 1px dashed var(--filet); margin-top: .9rem; padding-top: .6rem; display: grid; gap: .45rem; min-width: 0; }
.mx-ton h4, .mx-legal h3 { margin: 0; }
.mx-legal { display: grid; gap: .5rem; }
.mx-point { border: 1px solid var(--filet); border-left: 4px solid var(--filet); border-radius: var(--rayon); padding: .55rem .7rem; display: grid; gap: .3rem; min-width: 0; }
.mx-point p { margin: 0; overflow-wrap: anywhere; }
.mx-point-manquant { border-left-color: var(--or-fonce); }
.mx-point-a_verifier { border-left-color: var(--rouge); }
.mx-point-present { border-left-color: var(--vert); }
.mx-statut-manquant { background: #f7eddd; color: var(--anthracite); border: 1px solid var(--or-fonce); }
.mx-statut-a_verifier { background: var(--rouge-fond); color: var(--rouge); }
.mx-statut-present { background: var(--vert-fond); color: var(--vert); }
.mx-proposition { max-height: 12rem; }
.mx-proposition-ton { display: grid; gap: .4rem; }
.mx-point > .btn, .mx-legal > .btn, .mx-ton > .btn { justify-self: start; }

/* LOT-BES-MSG-04 : les réponses possibles côte à côte (une colonne sur téléphone), ce qu'elles engagent en commentaire ; à reprendre ; le bandeau ;
   le compteur de l'onglet ; Soumettre à Nil */
.mx-options-grille { list-style: none; padding: 0; margin: .4rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .6rem; min-width: 0; }
.mx-option { border: 1px solid var(--filet); border-top: 4px solid var(--or); border-radius: var(--rayon); padding: .6rem .7rem; display: grid; gap: .4rem; align-content: start; min-width: 0; background: var(--papier); }
.mx-option-patienter { border-top-color: var(--gris); }
.mx-option-choisie { border-color: var(--vert); border-top-color: var(--vert); }
.mx-option-tete { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: space-between; margin: 0; }
.mx-option .mx-proposition { max-height: 9rem; font-size: .9rem; }
.mx-consequences { background: var(--gris-clair); border-left: 3px solid var(--gris); border-radius: 0 var(--rayon) var(--rayon) 0; padding: .4rem .6rem; font-size: .88rem; color: var(--encre-douce); }
.mx-consequences-titre { margin: 0 0 .2rem; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.mx-consequences ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .15rem; }
.mx-option input[type="date"] { max-width: 100%; }
.mx-reprendre { border: 1px solid var(--or); border-radius: var(--rayon); padding: .6rem .7rem; margin: .6rem 0; min-width: 0; }
.mx-reprendre h3 { margin: 0 0 .2rem; }
.mx-reprendre-liste { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .35rem; }
.mx-reprendre-echu .mx-ouvrir { border-left: 4px solid var(--rouge); }
.mx-bandeau { margin: .5rem 0; }
.mx-bandeau .btn { margin-left: .4rem; }
.onglet-compte { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--or); color: var(--anthracite); font-size: .8em; font-weight: 700; text-align: center; line-height: 1.5; }
.onglet-compte[hidden] { display: none; }
.mx-soumettre-pan { display: grid; gap: .5rem; min-width: 0; }
.mx-soumettre-courriel { display: grid; gap: .4rem; min-width: 0; }
.mx-soumettre-courriel textarea { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* LOT-BES-BANQUE-01 : le classeur (quatre dossiers à leur adresse) et la banque (opérations, À trancher, papiers qui manquent, règles, CA3 préparée).
   Tout se lit d'un pouce : boutons de 40 px au moins, rien ne déborde aux onze largeurs (sonde outils/mesure-banque.mjs). */
.cl-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; }
.cl-nav .btn[aria-current="page"] { background: var(--encre); color: var(--papier); }
.cl-nav .compteur { margin-left: .3rem; }
.cl-bloc { margin: 1.25rem 0 0; padding: .9rem 1rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); }
.cl-bloc h3:first-child { margin-top: 0; }
.cl-greffe { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cl-marques { margin: .25rem 0; }
.cl-etat-rapprochee, .bq-etat-auto, .bq-etat-rapprochee { background: var(--vert-fond); color: var(--vert); border: 1px solid var(--vert); }
.cl-etat-a_confirmer, .bq-etat-a_confirmer { background: #f7eddd; color: var(--anthracite); border: 1px solid var(--or-fonce); }
.cl-etat-doute, .bq-etat-doute, .cl-etat-hors_compte { background: var(--rouge-fond); color: var(--rouge); border: 1px solid var(--rouge); }
.cl-etat-doublon, .bq-etat-jamais_auto, .bq-etat-sans_piece { background: #fde68a; color: #713f12; }
.bq-etat-classee { background: #eef3fb; color: var(--anthracite); }
.cl-releves, .cl-tva-mois { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.cl-releve, .cl-tva-ligne { padding: .6rem .8rem; border: 1px solid var(--filet); border-radius: var(--rayon); overflow-wrap: anywhere; }
.cl-tva-ligne h3 { margin: 0 0 .25rem; font-size: 1.05rem; text-transform: capitalize; }
.cl-tva-ligne p { margin: 0 0 .4rem; }
.bq-nav { margin: 1rem 0 .25rem; }
.bq-import { margin: .5rem 0 1rem; padding: .8rem 1rem; background: var(--gris-fond); border-radius: var(--rayon); }
.bq-import h3 { margin-top: 0; }
.bq-import input[type="file"] { max-width: 100%; }
/* CHANTIERS-03 B1 : l'état de la banque (une liste lisible, chaque ligne sur sa propre ligne, les boutons passent à la ligne sans déborder) */
.bq-etat-liste { margin: .25rem 0 .5rem; display: grid; gap: .35rem; }
.bq-etat-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; min-width: 0; }
.bq-etat-ligne dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bq-etat-attention dd { font-weight: 600; color: #8a4b00; }
.bq-liste { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.bq-op, .bq-candidat, .bq-regle { padding: .65rem .8rem; border: 1px solid var(--filet); border-radius: var(--rayon); min-width: 0; overflow-wrap: anywhere; }
.bq-op .demande-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; }
.bq-op .demande-tete strong { min-width: 0; overflow-wrap: anywhere; }
.bq-op p { margin: .3rem 0; }
.bq-montant { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.bq-credit { color: var(--vert); }
.bq-essai { border-style: dashed; }
.bq-inactive { opacity: .7; }
.bq-defait { text-decoration: line-through; }
.bq-zone { margin: .4rem 0 0; }
.bq-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.6rem), 1fr)); gap: .3rem; }
.bq-categories .btn { font-size: .85rem; padding: .3rem .5rem; min-height: 40px; line-height: 1.15; }
.bq-question { padding: .6rem .8rem; background: #f7eddd; border-left: 4px solid var(--or-fonce); border-radius: 4px; }
.bq-question p { margin: .2rem 0 .4rem; }
.bq-fiche .decl-fiche dd { overflow-wrap: anywhere; }
.at-compteurs { font-weight: 700; font-variant-numeric: tabular-nums; }
.at-gestes { margin-top: .35rem; }
.mq-message { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--texte); font-size: 1rem; background: var(--gris-fond); padding: .8rem 1rem; border-radius: var(--rayon); margin: .5rem 0; }
.ca3-table { margin: .75rem 0; border-top: 2px solid var(--encre); }
.ca3-rangee { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(6.5rem, auto) minmax(6.5rem, auto); gap: .25rem .6rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--filet); }
.ca3-tete { font-weight: 700; font-size: .9rem; }
.ca3-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.ca3-lib { min-width: 0; overflow-wrap: anywhere; }
.ca3-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ca3-val .lien-bouton { text-decoration: underline; text-align: right; min-height: 40px; }
.ca3-manque-val { color: var(--rouge); font-style: italic; white-space: normal; }
.ca3-l16, .ca3-l23, .ca3-l32, .ca3-l27 { font-weight: 700; background: var(--gris-fond); }
.ca3-solde { font-size: 1.15rem; font-weight: 700; }
.ca3-l22 { align-items: end; }
.ca3-manque { margin-top: 1rem; padding: .8rem 1rem; border: 2px solid var(--or-fonce); border-radius: var(--rayon); }
.ca3-manque h3 { margin-top: 0; }
.ca3-manque > ul { padding-left: 1.1rem; }
.ca3-manque li { margin: .35rem 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .ca3-rangee { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .ca3-tete span:nth-child(n+3) { display: none; }
  .ca3-val { grid-column: 2; text-align: left; }
  .ca3-val:empty { display: none; }
}

/* LOT-BES-COMPTA-01 : la comptabilité (journaux, grand livre, balance, contrôles croisés, CA3 recoupée, CA3 déclarée). Le principal et « En attente »
   ne se mêlent jamais ; un écart est en rouge ; rien ne déborde aux onze largeurs (sonde outils/mesure-compta.mjs). */
.cp-choix { align-items: end; }
.cp-table { margin: .5rem 0; border-top: 2px solid var(--encre); min-width: 0; }
.cp-rangee { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) minmax(5.5rem, auto) minmax(5.5rem, auto) minmax(5.5rem, auto); gap: .2rem .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--filet); min-width: 0; }
.cp-lignes .cp-rangee { grid-template-columns: 4.6rem minmax(0, 1fr) minmax(5.5rem, auto) minmax(5.5rem, auto); }
.cp-dec .cp-rangee { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr) minmax(5.5rem, auto); }
.cp-tete { font-weight: 700; font-size: .9rem; }
.cp-num { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }  /* COMPTA-03 : la date du grand livre ne se coupe plus en deux */
.cp-num .lien-bouton { min-height: 40px; text-decoration: underline; }
.cp-lib { min-width: 0; overflow-wrap: anywhere; }
.cp-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-dec .cp-val { white-space: normal; overflow-wrap: anywhere; }
.cp-total { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cp-rouge, .cp-total.cp-rouge { color: var(--rouge); }
.cp-ecritures { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
.cp-ecriture { padding: .6rem .8rem; border: 1px solid var(--filet); border-left: 5px solid var(--vert); border-radius: var(--rayon); min-width: 0; overflow-wrap: anywhere; }
.cp-ecriture .demande-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; }
.cp-ecriture p { margin: .25rem 0; }
.cp-ecriture.cp-attente { border-left-color: var(--or-fonce); background: #fffaf0; }
.cp-ecriture.cp-inverse { border-left-color: var(--gris); border-style: dashed; }
.cp-annulee .cp-lignes { opacity: .65; }
.cp-annulee-note { font-style: italic; }
.cp-etat-valide { background: var(--vert-fond); color: var(--vert); border: 1px solid var(--vert); }
.cp-etat-attente { background: #fde68a; color: #713f12; }
.cp-etat-contrepassee { background: #eef3fb; color: var(--anthracite); border: 1px dashed var(--gris); }
.cp-attente { margin-top: 1.25rem; padding: .8rem 1rem; border: 2px solid var(--or-fonce); border-radius: var(--rayon); background: #fffaf0; }
.cp-attente h3 { margin-top: 0; }
.cp-rangee.cp-attente { margin: 0; padding: .4rem 0; border: 0; border-bottom: 1px solid var(--filet); border-radius: 0; }
.cp-controles { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
.cp-controle { padding: .7rem .9rem; border-radius: var(--rayon); border-left: 6px solid var(--vert); background: var(--vert-fond); overflow-wrap: anywhere; }
.cp-controle h3 { margin: 0 0 .3rem; font-size: 1rem; }
.cp-controle p { margin: .25rem 0; }
.cp-controle.cp-rouge { border-left-color: var(--rouge); background: var(--rouge-fond); color: var(--encre); }
.cp-controle.cp-gris { border-left-color: var(--gris); background: var(--gris-fond); }
.cp-ecart, .cp-rouge .cp-ecart-val { color: var(--rouge); font-weight: 700; }
.cp-chiffres { font-variant-numeric: tabular-nums; }
.cp-bandeau-fixe { position: sticky; top: 0; z-index: 2; }
.cp-dec-form { margin-top: 1rem; padding: .8rem 1rem; background: var(--gris-fond); border-radius: var(--rayon); }
.cp-dec-form h3 { margin-top: 0; }
.cp-dec-source { margin: 0 0 .3rem 3.6rem; }
/* COMPTA-03 : le livre d'engagement — une seule balance (six colonnes), brouillard et validée, à vérifier, valider le mois, FEC, paramètres, imputer */
.cp-bal .cp-rangee { grid-template-columns: 6.6rem minmax(0, 1fr) minmax(5.5rem, auto) minmax(5.5rem, auto) minmax(5.5rem, auto) minmax(5.5rem, auto); }
.cp-rangee.cp-a-verifier { background: #fffaf0; }
.cp-ecriture.cp-a-verifier { border-left-color: var(--or-fonce); background: #fffaf0; }
.cp-ecriture.cp-validee { border-left-color: var(--anthracite); }
.cp-rangee.cp-inverse { font-style: italic; }
.cp-etat-brouillard { background: var(--gris-fond); color: var(--anthracite); border: 1px solid var(--gris); }
.cp-etat-validee { background: var(--vert-fond); color: var(--vert); border: 1px solid var(--vert); }
.cp-vert-texte { color: var(--vert); font-weight: 700; }
.cp-bloque ul { margin: .3rem 0; padding-left: 1.2rem; }
.cp-bloc { margin-top: 1.25rem; padding: .8rem 1rem; border: 1px solid var(--filet); border-radius: var(--rayon); }
.cp-bloc h3 { margin-top: 0; }
.cp-confirmer { margin-top: .6rem; padding: .7rem .9rem; border: 2px solid var(--or-fonce); border-radius: var(--rayon); background: #fffaf0; overflow-wrap: anywhere; }
.cp-manques, .cp-verifs { margin: .3rem 0; padding-left: 1.2rem; overflow-wrap: anywhere; }
.cp-filtres { gap: .4rem; flex-wrap: wrap; }
.cp-filtres [aria-pressed="true"] { background: var(--anthracite); color: #fff; }
.cp-endroit { margin-top: 1.1rem; }
.cp-params .cp-param { overflow-wrap: anywhere; }
.cp-param .demande-tete { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; }
.cp-par-acquis { background: #eef3fb; color: var(--anthracite); }
.cp-par-en_partie { background: #fde68a; color: #713f12; }
.cp-par-manquant { background: var(--rouge-fond); color: var(--rouge); }
.cp-par-valide { background: var(--vert-fond); color: var(--vert); border: 1px solid var(--vert); }
.cp-par-valeur { font-weight: 600; }
.cp-par-form { margin: .5rem 0 0; padding: .6rem .8rem; background: var(--gris-fond); border-radius: var(--rayon); }
.cp-imp-ligne select { max-width: 100%; }
.cp-imp-ligne .rangee { align-items: end; gap: .5rem; flex-wrap: wrap; }
.cp-propose { font-style: italic; }
.cp-sous { list-style: none; padding-left: .8rem; margin: .2rem 0 0; }
@media (max-width: 560px) {
  .cp-rangee, .cp-lignes .cp-rangee { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cp-rangee .cp-lib { grid-column: 1 / -1; order: -1; }
  .cp-tete span:nth-child(n+2) { display: none; }
  .cp-val { text-align: left; white-space: normal; }
  .cp-val:empty { display: none; }
  .cp-val[data-col]::before { content: attr(data-col) " : "; font-weight: 600; color: var(--encre-douce); }
  .cp-dec .cp-rangee { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .cp-dec .cp-val { grid-column: 2; }
  .cp-dec-source { margin-left: 0; }
  .cp-bal .cp-rangee { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* LOT-BES-FACT-01 : l'onglet Factures */
.fa-totaux-dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1.25rem; max-width: 34rem; margin: 0 0 .5rem; }
.fa-totaux-dl dt { margin: 0; overflow-wrap: anywhere; }
.fa-totaux-dl dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fa-gras { font-weight: 700; }
.fa-avoir-lignes, .fa-manques ul { list-style: none; padding-left: 0; }
.fa-manques li { margin: .3rem 0; }
.fa-case { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0; }
.fa-filtres .champ select, .fa-libre select { min-width: 12rem; max-width: 100%; }
.fa-avancement .champ { max-width: 100%; }
.cl-origine-outil { background: var(--vert-fond); color: var(--vert); border: 1px solid var(--vert); }
.cl-origine-historique { background: #eef0f2; color: var(--anthracite); border: 1px solid #c9ced3; }
/* LOT-BES-FACT-02 : l'envoi par courriel */
.fa-envoi-panneau h4 { margin: 1.1rem 0 .4rem; }
.fa-envoi-texte { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: .5rem 0; padding: .6rem; background: var(--fond, #fff); border: 1px solid #d7dadd; border-radius: 6px; max-width: 100%; }
.fa-envoi-resume .decl-fiche dd { overflow-wrap: anywhere; }
#fe-texte { width: 100%; max-width: 100%; }
/* FACT-03 C4 : la plateforme agréée (essai) */
.pa-parcours { margin: .3rem 0 .6rem; padding-left: 1.4rem; }
.pa-parcours li { margin: .15rem 0; overflow-wrap: anywhere; }
.pa-connexions { align-items: start; gap: 1rem; }
.pa-connexion { flex: 1 1 16rem; min-width: 0; }
.pa-connexion h3 { margin-top: .2rem; }
.pa-detail { margin-top: 1rem; }
.pa-detail:focus { outline: none; }
.pa-mentions { padding-left: 1.2rem; overflow-wrap: anywhere; }
.pa-canal { margin: .4rem 0 .8rem; }
.pa-fiche { margin: .6rem 0; }
.pa-recue .demande-tete strong { overflow-wrap: anywhere; }
/* FACT-05 : l'entrée dans les achats */
.etiquette.pa-achat-entree { background: var(--vert-fond); color: var(--vert); }
.etiquette.pa-achat-verifier { background: var(--rouge-fond); color: var(--rouge); }
.etiquette.pa-achat-hors { background: var(--gris-fond); color: var(--encre-douce); }
.pa-achat { margin: .4rem 0 .8rem; }
.pa-achat .lien-bouton { font-weight: 700; }
.pa-signalements { margin: .4rem 0; padding-left: 1.2rem; overflow-wrap: anywhere; }
.pa-signalements li { margin: .2rem 0; font-weight: 600; }

/* LOT-BES-MARGE-01 : le curseur de marge. Téléphone : collé au bas du bloc du devis (il s'arrête à la fin du formulaire de ligne, il ne cache donc
   jamais « Enregistrer »), replié d'un geste. Grand écran : une colonne à droite des lignes, collée en haut. Aucune couleur de reproche. */
.ch-cout { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .6rem .8rem; margin: .4rem 0 .8rem; min-width: 0; }
.ch-cout legend { font-weight: 700; padding: 0 .3rem; }
.ch-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 760px) { .ch-trois { grid-template-columns: minmax(0, 1fr); } }
.ch-case { display: flex; gap: .5rem; align-items: flex-start; margin: .2rem 0 0; }
.ch-case input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex: none; }
.ch-marge { position: sticky; bottom: 0; z-index: 5; background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: 0 -4px 18px rgba(0, 0, 0, .10); padding: .6rem .8rem; margin-top: 1rem; min-width: 0; }
.ch-marge-tete { display: flex; align-items: center; gap: .6rem; }
.ch-marge-tete h3 { margin: 0; font-size: 1.05rem; }
.ch-marge-resume { margin: 0 0 0 auto; font-weight: 700; white-space: nowrap; }
.ch-marge-plier { min-width: 44px; min-height: 40px; }
.ch-marge-replie .ch-marge-plier span { display: inline-block; transform: rotate(180deg); }
.ch-marge-corps { margin-top: .5rem; }
.ch-marge-regle { position: relative; padding: 2rem 0 1.6rem; }
.ch-marge-regle input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: var(--or-fonce, #8a6a2b); cursor: pointer; }
.ch-marge-bulle { position: absolute; top: 0; left: 0; font-weight: 800; font-size: 1.15rem; white-space: nowrap; pointer-events: none; }
.ch-marge-repere { position: absolute; bottom: 0; font-size: .72rem; color: var(--encre-douce); white-space: nowrap; pointer-events: none; }
.ch-marge-repere::before { content: ''; display: block; width: 2px; height: .45rem; background: var(--encre-douce); margin-bottom: .1rem; }
.ch-marge-repere-seuil { bottom: auto; top: 1.4rem; }
.ch-marge-champ { max-width: 12rem; }
.ch-marge-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; margin: .6rem 0; }
.ch-marge-chiffres div { min-width: 0; }
.ch-marge-chiffres dt { font-size: .85rem; color: var(--encre-douce); }
.ch-marge-chiffres dd { margin: 0; font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.ch-marge-reste { grid-column: 1 / -1; }
.ch-marge-reste dt { font-size: 1.15rem; color: inherit; font-weight: 700; }
.ch-marge-reste dd { font-size: .8rem; font-weight: 400; }
.ch-marge-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; margin: 0; }
.ch-marge-cat dd { margin: 0; text-align: right; }
.ch-marge-reglages { border-top: 1px solid var(--filet); margin-top: .6rem; padding-top: .6rem; }
.ch-marge-reglage p { margin: .15rem 0; }
.ch-ligne-marge-complete { display: grid; gap: .2rem; min-width: 0; overflow-wrap: anywhere; }
.ch-ligne-marge-complete p { margin: 0; }
@media (min-width: 1100px) {
  .ch-devis-corps:has(> .ch-marge:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; column-gap: 1.5rem; align-items: start; }
  .ch-devis-corps:has(> .ch-marge:not([hidden])) > :not(.ch-marge) { grid-column: 1; }
  .ch-devis-corps > .ch-marge { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 5rem; bottom: auto; margin-top: 0; box-shadow: none; max-height: calc(100vh - 6rem); overflow: auto; }
}
.ch-ligne-marge-complete > .etiquette, .ch-ligne-marge-complete > .btn { justify-self: start; }
.ch-marge-repere.a-droite { text-align: right; }
.ch-marge-repere.a-droite::before { margin-left: auto; }
/* MARGE-01, vu par la sonde à 390 px : déplié, le panneau collé recouvrait « Enregistrer ». Sous 1100 px, SEUL le bandeau replié reste collé en bas ;
   déplié, le panneau reprend sa place sous le formulaire. Une marge de défilement garde ce qu'on vise au-dessus du bandeau. */
@media (max-width: 1099px) {
  .ch-marge:not(.ch-marge-replie) { position: static; box-shadow: none; }
  html:has(.ch-marge.ch-marge-replie:not([hidden])) { scroll-padding-bottom: 5.5rem; }
}
/* MARGE-01, vu dans Chrome sur l'aperçu (1912 px) : le titre « Votre marge » se coupait au milieu du mot dans la colonne étroite */
.ch-marge-tete { flex-wrap: wrap; row-gap: .2rem; }
.ch-marge-tete h3 { white-space: nowrap; overflow-wrap: normal; }

/* LISIBLE-01 C1 : « une ligne, et ça se déroule » (public/repli.js). Fondation <details>/<summary> ; la ligne se touche en entier (44 px au moins) ;
   « À voir » = mot + pictogramme d'accent neutre (or et ardoise), jamais de rouge. Le chevron est dessiné ici (le triangle natif disparaît en flex). */
.repli { border-bottom: 1px solid var(--filet); }
.repli-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: .6rem; min-height: 44px; padding: .45rem 0; cursor: pointer; list-style: none; font-weight: 600; }
.repli-ligne::-webkit-details-marker { display: none; }
.repli-ligne:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.repli-picto { width: 1.1rem; height: 1.1rem; border: 2px solid var(--encre-douce); border-radius: 50%; }
.repli-avoir > .repli-ligne .repli-picto { border-color: var(--or-fonce); background: radial-gradient(circle, var(--or-fonce) 0 35%, transparent 40%); }
.repli-court { min-width: 0; overflow-wrap: anywhere; }
.repli-heure { grid-column: 2; grid-row: 2; color: var(--encre-douce); font-size: .88rem; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.repli-picto { grid-column: 1; grid-row: 1; }
.repli-court { grid-column: 2; grid-row: 1; }
.repli-chevron { grid-column: 3; grid-row: 1; }
@media (min-width: 640px) { .repli-ligne:has(.repli-heure) { grid-template-columns: auto minmax(0, 1fr) auto auto; } .repli-heure { grid-column: 3; grid-row: 1; white-space: nowrap; } .repli-ligne:has(.repli-heure) .repli-chevron { grid-column: 4; } }
.repli-chevron { margin-right: .3rem; width: .6rem; height: .6rem; border-right: 2px solid var(--encre-douce); border-bottom: 2px solid var(--encre-douce); transform: rotate(45deg); transition: transform .15s; }
.repli[open] > .repli-ligne .repli-chevron { transform: rotate(-135deg); }
.repli-detail { padding: .1rem 0 .8rem 1.7rem; color: var(--encre-douce); }
.repli-detail > p { margin: 0 0 .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.repli-liste { display: block; }
.repli-outils { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0 .6rem; }
.repli-chercher { flex: 1 1 12rem; min-height: 44px; max-width: 100%; }
.repli-filtre { display: inline-flex; gap: .4rem; }
.repli-pastille { display: inline-block; padding: .05rem .55rem; border: 1px solid var(--or-fonce); border-radius: 999px; background: #faf3e6; color: var(--ardoise); font-size: .85rem; font-weight: 700; cursor: pointer; line-height: 1.5; }
.repli-plus { margin-top: .6rem; }
.repli.cp-ecriture { padding: 0 .8rem; border-bottom: 1px solid var(--filet); }
.repli.cp-ecriture .cp-ecriture-corps { padding: 0 0 .4rem; }
.repli-detail .cp-table { margin-top: .3rem; }
.repli.ch-chrono-ligne { padding: 0; }
.repli.ch-chrono-passee > .repli-ligne { color: var(--encre-douce); }
.repli.ch-chrono-jour > .repli-ligne { font-weight: 800; }
.ch-chrono-corps { display: grid; gap: .4rem; justify-items: start; }

/* LISIBLE-01 C3 : les photos de chantier (page du chantier : 3 jours ; classeur : rangées par chantier puis par mois) */
.ph-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; }
.ph-vignette { margin: 0; }
.ph-vignette img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); background: var(--beton-2); }
.ph-vignette figcaption { margin-top: .2rem; font-size: .85rem; overflow-wrap: anywhere; }
.ph-corps { display: grid; gap: .4rem; justify-items: start; }
.ph-liste h3.ph-chantier { margin: 1rem 0 .1rem; font-size: 1.05rem; }
.ph-liste h4.ph-mois { margin: .5rem 0 0; font-size: .95rem; color: var(--encre-douce); text-transform: capitalize; }
.cl-suite { list-style: none; padding: .6rem 0; }

/* LISIBLE-01 C4 : la balance, les paramètres et l'imputation de la comptabilité en lignes qui se déroulent */
.repli.cp-bal-ligne, .repli.cp-param, .repli.cp-imp-ligne { padding: 0 .2rem; }
.cp-bal > .cp-tete { display: none; }
.cp-bal-corps { margin-top: .2rem; }
.cp-param-corps, .cp-imp-corps { display: grid; gap: .4rem; justify-items: start; }
.cp-imp-corps .rangee { width: 100%; }

.piece-ligne .piece-texte .repli { min-width: 0; max-width: 100%; }
/* LISIBLE-01 C4 (vu sur l'aperçu à 360, 375 et 390 px) : le panneau « Votre marge » collé au bas de l'écran laisse la place du micro rond (52 px, posé en bas à droite) : sans cela le rond recouvrait le résumé « Marge … » ou le bouton Replier. */
@media (max-width: 760px) { .ch-marge-tete { padding-right: 4rem; } }

/* COURRIERS-ET-TVA-02 : « Pourquoi ce mois ? », la raison de chaque pièce d'achat à côté d'elle */
.c3-pourquoi { margin: .5rem 0 1rem; }
.c3-pourquoi > summary { cursor: pointer; font-weight: 700; padding: .5rem 0; min-height: 2.75rem; }
.c3-pourquoi > summary:focus-visible, .c3-trancher > summary:focus-visible { outline: 3px solid var(--accent, currentColor); outline-offset: 2px; }
.c3-piece { margin: .75rem 0; padding: .75rem .9rem; border: 2px solid var(--filet); border-radius: var(--rayon); background: var(--papier); overflow-wrap: anywhere; }
.c3-piece p { margin: .3rem 0; }
.c3-piece-tete { font-size: 1.02rem; }
.c3-statut { font-weight: 700; }
.c3-st-retenue .c3-statut, .c3-statut.c3-st-retenue { color: var(--vert); }
.c3-statut.c3-st-a_trancher, .c3-statut.c3-st-mauvais_nom { color: var(--rouge); }
.c3-p-a_trancher { border-color: var(--rouge); }
.c3-trancher > summary { cursor: pointer; font-weight: 700; padding: .4rem 0; min-height: 2.75rem; }
.c3-form { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .4rem; }
@media (min-width: 640px) { .c3-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c3-form > .btn, .c3-form > .msg, .c3-form > .c3-propose { grid-column: 1 / -1; } }
.c3-champ label { display: block; font-weight: 700; margin-bottom: .2rem; }
.c3-champ select, .c3-champ input { width: 100%; min-height: 2.75rem; box-sizing: border-box; }
.c3-form [hidden] { display: none; }
/* ---- TEMPS-01 « Mon temps » : le gros bouton, les six cases au pouce (≥ 44 px, ici 76 px), le chrono, la journée. Jamais de rouge : or et ardoise. ---- */
.temps-bloc { margin: .5rem 0 1rem; }
.temps-grand { display: block; width: 100%; min-height: 4.2rem; font-size: 1.35rem; text-align: center; }
.temps-chrono { margin: 0 0 .25rem; font-family: var(--titres); font-weight: 800; font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.2; }
.temps-lien-courant { margin: 0 0 .75rem; }
.temps-choisir { margin: .75rem 0 .5rem; font-weight: 800; }
.temps-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.temps-case { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 4.75rem; padding: .5rem .25rem; background: #fff; color: var(--anthracite); border: 2px solid var(--ardoise); border-radius: var(--rayon); font: 700 .95rem/1.2 var(--texte); cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.temps-case:hover, .temps-case:focus-visible { border-color: var(--or); background: var(--gris-clair); outline: 3px solid var(--or); outline-offset: 2px; }
.temps-case:active { background: var(--or); }
.temps-picto { flex: none; color: var(--ardoise); }
.temps-fin { margin-top: .75rem; padding: .75rem; background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); }
.temps-pourqui { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.temps-pourqui legend { padding: 0; font-weight: 700; margin-bottom: .25rem; }
.temps-pourqui select, .temps-proposition select, .temps-proposition input, .temps-ligne select { min-height: 2.75rem; max-width: 100%; }
.temps-voix, .temps-ajout, .temps-jour { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--filet); }
.temps-soir { margin: .5rem 0; padding: .6rem .8rem; background: #fff; border: 1px solid var(--or); border-radius: var(--rayon); }
.temps-soir p { margin: 0 0 .5rem; }
.temps-resume { font-weight: 800; margin: 0 0 .5rem; }
.temps-ligne { padding: .5rem 0; border-bottom: 1px solid var(--filet); }
.temps-ligne .rangee { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 0; }
.temps-ligne-proposee { border-left: 4px solid var(--or); padding-left: .6rem; }
.temps-ligne-nc { border-left: 4px solid var(--ardoise); padding-left: .6rem; }
.temps-proposition { margin-top: .75rem; padding: .75rem; background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); display: grid; gap: .5rem; }
.temps-proposition .champ { margin: 0; }
.temps-chantier { margin: .5rem 0 1rem; }
.temps-devis { margin: .25rem 0 .5rem; }
@media (min-width: 700px) { .temps-cases { grid-template-columns: repeat(6, minmax(0, 1fr)); } .temps-grand { max-width: 24rem; } }

/* PWA-01 C1 : la ligne « Mettre le cockpit sur votre téléphone » (repliée) ; ses étapes se lisent sans défiler de côté. */
.installer { padding-top: .25rem; padding-bottom: .25rem; }
.inst-titre { margin: .25rem 0; font-size: 1.05rem; }
.inst-etapes h4 { margin: .6rem 0 .2rem; font-size: .95rem; }
.inst-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.inst-liste li { overflow-wrap: anywhere; }

/* USAGE-01 : les lignes au-delà des plus récentes restent dans la page, cachées, jusqu'à « Voir les autres (n) » */
.repli-cache[hidden] { display: none !important; }
.repli-autres-bouton { list-style: none; }
/* USAGE-01 C3 : une ligne de facture (émise, brouillon, avoir, reçue) tient sur moins de hauteur : le bouton « Ouvrir » / « Lire » à droite du titre, au lieu d'en dessous */
.fa-item, .pa-recue { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .75rem; }
.fa-item > :not(.btn), .pa-recue > :not(.btn) { grid-column: 1; }
.fa-item > .btn, .pa-recue > .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.fa-item, .pa-recue { padding: .4rem .7rem; }
.fa-item p, .pa-recue p, .fa-item .demande-tete, .pa-recue .demande-tete { margin: .1rem 0; }
/* LOT-BES-USAGE-02 C2 : sur téléphone, l'en-tête de la page (« Bonjour » et sa ligne-résumé) prend moins de haut ; rien n'est supprimé. */
@media (max-width: 700px) { .espace-tete { padding-top: 1rem; } }

/* CHANTIERS-01 C0 : facture libre — le bouton est aligné sur le bas du champ ; trop étroit, il passe SOUS le champ (jamais décalé). */
.fa-libre > .rangee { align-items: flex-end; }
.fa-libre > .rangee > .champ { flex: 1 1 10rem; }
.fa-libre select { min-width: 0; width: 100%; }
.fa-libre > .rangee > .btn { flex: 0 0 auto; }

/* CHANTIERS-01 C1 : création rapide d'un client et historique de la fiche */
.cr-ligne { margin: .25rem 0 .5rem; }
.cr-zone { margin: .25rem 0 .75rem; padding: .75rem; border: 1px solid var(--bordure, #c9c4b8); border-radius: .5rem; }
.cr-form .cr-type { border: 0; padding: 0; margin: 0 0 .5rem; }
.cr-form .cr-type legend { font-weight: 700; padding: 0; }
.cr-doublons { margin: .5rem 0; padding: .5rem; background: var(--fond-doux, #f3efe6); border-radius: .5rem; }
.cr-doublons-liste { list-style: none; padding-left: 0; }
.cr-doublons-liste li { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; margin: .35rem 0; }
.ch-hist { margin: .5rem 0; }
.ch-hist h4 { margin: .5rem 0 .25rem; }
.ch-hist-ligne { margin: .15rem 0; }
.ch-hist-ligne > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; overflow-wrap: anywhere; }

/* CHANTIERS-01 C2 (GROS-01) : la touche « Aa » et la grosse écriture. Par défaut (data-taille="normale") RIEN ne change. La grande taille agrandit tout (texte, boutons,
   espacements : l'écriture est en rem) et porte les zones tactiles à 48 px au moins ; le bandeau repasse sur plusieurs lignes plutôt que de couper un mot. */
.taille-aa { flex: none; min-width: 44px; min-height: 44px; margin-block: -14px; padding: 0 .4rem; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 6px; font: inherit; font-weight: 800; cursor: pointer; }
.taille-aa[aria-pressed="true"] { background: #fff; color: var(--encre); }
.taille-aa:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 701px) { .taille-aa { margin-block: 0; } .bandeau-cockpit .taille-aa { margin-left: auto; margin-right: 1rem; } }
html[data-taille="grande"] { font-size: 125%; }
html[data-taille="grande"] .bandeau-cockpit { flex-wrap: wrap; font-size: 1rem; line-height: 1.3; padding-top: calc(env(safe-area-inset-top, 0px) + 22px); }
html[data-taille="grande"] .bandeau-cockpit strong { white-space: normal; overflow-wrap: anywhere; }
html[data-taille="grande"] :is(.btn, button, select, summary, [role="tab"], .dp-choix, .bandeau-cockpit a, .taille-aa) { min-height: 48px; }
html[data-taille="grande"] :is(input:not([type="checkbox"]):not([type="radio"]):not(.dp-fichier), select, textarea) { min-height: 48px; font-size: 1rem; }
html[data-taille="grande"] .taille-aa { margin-block: 0; }
html[data-taille="grande"] input[type="checkbox"], html[data-taille="grande"] input[type="radio"] { width: 1.6rem; height: 1.6rem; }
html[data-taille="grande"] body { font-size: 21px; }   /* le corps du site est en pixels : la grande taille le porte d'un quart de plus (17 → 21 px) */
/* GROS-01 : sur téléphone la touche est plus étroite (28 px visibles, 44 px de toucher par son halo) pour que le bandeau reste sur une ligne de 36 px sans rien couper */
@media (max-width: 700px) {
  html:not([data-taille="grande"]) .bandeau-cockpit { gap: .3rem; }
  html:not([data-taille="grande"]) .taille-aa { position: relative; min-width: 28px; min-height: 28px; height: 28px; padding: 0; margin-block: -6px; font-size: .72rem; line-height: 1; }
  html:not([data-taille="grande"]) .taille-aa::after { content: ""; position: absolute; inset: -8px -6px; }
}

/* CHANTIERS-01 C3 : une fiche fournisseur créée depuis une facture porte un petit pictogramme discret (pas une alerte) */
.pic-verifier { display: inline-block; margin-left: .35rem; color: var(--gris); font-size: .95em; cursor: help; }
.ch-verifier { margin: .5rem 0; }
.ch-enrichie h3 { margin-top: 1rem; }

/* CHANTIERS-02 (A) G0 à G2 : le Greffier — la question à quatre boutons (grands : 56 px), le règlement, les pages, les boîtes */
.dp-classe { border: 0; padding: 0; margin: .25rem 0 .75rem; }
.dp-classe legend { font-weight: 700; padding: 0; margin-bottom: .35rem; }
.dp-classe-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dp-classe-boutons.dp-trois { grid-template-columns: repeat(3, 1fr); }
.dp-classe-btn { min-height: 56px; white-space: normal; text-align: center; line-height: 1.2; padding: .4rem .5rem; }
.dp-classe-btn.dp-classe-actif { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.dp-reglement { margin: 0 0 .75rem; }
.dp-reglement fieldset { border: 0; padding: 0; margin: 0 0 .6rem; }
.dp-reglement legend { font-weight: 700; padding: 0; margin-bottom: .35rem; }
.dp-page-ordre { margin-top: .5rem; }
.dp-boites { margin-top: 1rem; }
.dp-boite { margin: .35rem 0; }
.dp-boite > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.dp-doc { margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; overflow-wrap: anywhere; }

/* CHANTIERS-02 (A) G3 : la tuile « À confirmer » — une question, deux gros boutons, jamais de rouge */
.chr-questions { list-style: none; padding-left: 0; }
.chr-question { margin: .6rem 0; padding: .6rem; background: var(--beton); border-radius: var(--rayon); overflow-wrap: anywhere; }
.chr-question .btn { min-height: 48px; }
.chr-bloc { margin: .5rem 0; }
.chr-bloc > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.dp-classe, .dp-reglement fieldset { min-width: 0; }
.dp-classe-boutons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-classe-boutons.dp-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dp-classe-btn { overflow-wrap: anywhere; hyphens: auto; }
.chr-n::before { content: " ("; } .chr-n::after { content: ")"; }

/* CHANTIERS-02 A-bis : le règlement affiché avant l'enregistrement ; le lien discret « Pages retirées » */
.dp-regl-resume { margin: 0 0 .5rem; }
.dp-lien { background: none; border: 0; padding: 0 .25rem; min-height: 48px; color: var(--encre-douce); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .9rem; cursor: pointer; }
.dp-retirees { list-style: none; padding-left: 0; margin: .25rem 0; }
.dp-retirees li { margin: .35rem 0; overflow-wrap: anywhere; }

/* CHANTIERS-02 B, point 0 : la miniature d'une page retirée, et le chantier facultatif d'un document */
.dp-retiree { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.dp-mini { width: 72px; height: 96px; object-fit: cover; border: 1px solid var(--trait, #d9d3c7); border-radius: 4px; background: #fff; }
.dp-doc-chantier { margin: .35rem 0 0; }
.dp-doc-chantier select, .dp-chantier-choix select { max-width: 100%; min-height: 48px; }

/* CHANTIERS-02 B G5 : l'agenda (jamais de rouge ; zones tactiles de 48 px) */
.ag-liste { list-style: none; padding-left: 0; margin: .25rem 0 .75rem; }
.ag-element { margin: .25rem 0; border-left: 3px solid var(--trait, #d9d3c7); padding-left: .5rem; }
.ag-chantier, .ag-indisponibilite { border-left-color: var(--or, #c4954a); }
.ag-ouvrir { display: block; width: 100%; min-height: 48px; text-align: left; background: none; border: 0; padding: .25rem 0; font: inherit; color: inherit; cursor: pointer; overflow-wrap: anywhere; }
.ag-ouvrir strong { margin-right: .35rem; }
.ag-gestes { padding: .25rem 0 .5rem; }
.ag-gestes input { max-width: 100%; min-height: 48px; }
.ag-jour h4 { margin: .75rem 0 .15rem; }
.ag-jour h4::first-letter { text-transform: uppercase; }
.ag-mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.ag-entete { text-align: center; font-size: .8rem; color: var(--encre-douce, #5b5b5b); }
.ag-case { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--trait, #d9d3c7); border-radius: 4px; font: inherit; cursor: pointer; padding: 0; }
.ag-case .ag-n { font-size: .75rem; color: var(--encre-douce, #5b5b5b); min-height: 1em; }
.ag-hors { opacity: .55; }
.ag-auj { border-color: var(--or, #c4954a); border-width: 2px; }
.cmb-point { margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.cmb-point input[type=text], .cmb-point select { min-height: 48px; max-width: 100%; }
.cx-fournisseur { margin: .25rem 0; }
.an-textes { list-style: none; padding-left: 0; }
.an-texte { margin: .5rem 0; padding: .25rem 0; border-bottom: 1px solid var(--trait, #d9d3c7); overflow-wrap: anywhere; }
.an-souligne { text-decoration: underline; text-underline-offset: 3px; }
.an-extrait { font-style: italic; }
/* CHANTIERS-02 B : zones tactiles d'au moins 48 px dans les vues neuves (Agenda, Analyse, Pièces de marché, Plans, Demander les prix) */
[data-ch-vue="agenda"] .btn-petit, [data-ch-vue="analyse"] .btn-petit, #ch-marche-b .btn-petit, #ch-plans-b .btn-petit, [data-ch-vue="prix"] .btn-petit, #ch-prix .btn, #ch-prix-demande .btn, [data-ch-vue="analyse"] .btn, #ch-marche-b .btn, #ch-plans-b .btn { min-height: 48px; }
.ag-nav, .ch-vue[data-ch-vue="agenda"] .ch-vues { flex-wrap: wrap; }

/* CHANTIERS-03 D1 et D2 : le dépôt de fichiers (PC seulement : la zone n'est bâtie par public/depot.js que si le pointeur est fin et le survol possible) et la salle de tri */
.depot { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--filet); }
.depot-zone { border: 2px dashed var(--filet); border-radius: var(--rayon); padding: 1.25rem; text-align: center; background: var(--papier); margin: .5rem 0; }
.depot-zone.depot-sur, .depot-zone:focus-visible { border-color: var(--or-fonce); background: var(--beton); outline: 0; }
.depot-zone-texte { font-weight: 700; margin: 0 0 .5rem; }
.depot-etat progress { width: 100%; height: 14px; }
.depot-liste > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.depot-tout { margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.depot-tri { list-style: none; padding: 0; margin: .5rem 0; }
.depot-tri:focus-visible { outline: 2px solid var(--or-fonce); outline-offset: 2px; }
.depot-ligne { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .5rem; border: 2px solid transparent; border-bottom-color: var(--filet); overflow-wrap: anywhere; }
.depot-ligne.depot-courant { border-color: var(--or-fonce); background: var(--beton); }
.depot-vignette { display: inline-flex; width: 72px; height: 96px; align-items: center; justify-content: center; background: var(--beton-2); border-radius: var(--rayon); overflow: hidden; flex: none; }
.depot-vignette img { width: 72px; height: 96px; object-fit: cover; }
.depot-pdf { font-weight: 800; letter-spacing: .05em; }
.depot-nom { flex: 1 1 14rem; min-width: 0; }
.depot-boutons { display: flex; flex-wrap: wrap; gap: .35rem; }
.depot-boutons .btn { min-height: 44px; }
.depot-groupe { opacity: .55; }

/* CHANTIERS-03 T1 : les teintes des onglets — vert (rien à voir), bleu (à voir), orange (à faire bientôt), rouge (en retard ou échéance proche), gris (état inconnu : jamais vert).
   PAS de violet (couleur du bandeau du cockpit). Chaque couple texte / fond est mesuré à 4,5 : 1 au moins (porte/onglets-teintes.test.mjs), clair ; la page n'a pas de thème sombre. */
:root {
  --teinte-vert-texte: #14532d; --teinte-vert-fond: #dcf3e3;
  --teinte-bleu-texte: #0b3f78; --teinte-bleu-fond: #dbeafe;
  --teinte-orange-texte: #7c2d12; --teinte-orange-fond: #ffedd5;
  --teinte-rouge-texte: #8f1d14; --teinte-rouge-fond: #fee2e2;
  --teinte-inconnu-texte: #3f444a; --teinte-inconnu-fond: #e6e6e6;
}
.onglet-teinte { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .25rem; margin-right: .15rem; border-radius: 999px; border: 2px solid currentColor; font-size: .8rem; line-height: 1; vertical-align: middle; }
.teinte-dit { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.onglet-btn[data-teinte="vert"], .onglet-btn[data-teinte="vert"] .onglet-teinte { background: var(--teinte-vert-fond); color: var(--teinte-vert-texte); }
.onglet-btn[data-teinte="bleu"], .onglet-btn[data-teinte="bleu"] .onglet-teinte { background: var(--teinte-bleu-fond); color: var(--teinte-bleu-texte); }
.onglet-btn[data-teinte="orange"], .onglet-btn[data-teinte="orange"] .onglet-teinte { background: var(--teinte-orange-fond); color: var(--teinte-orange-texte); }
.onglet-btn[data-teinte="rouge"], .onglet-btn[data-teinte="rouge"] .onglet-teinte { background: var(--teinte-rouge-fond); color: var(--teinte-rouge-texte); }
.onglet-btn[data-teinte="inconnu"], .onglet-btn[data-teinte="inconnu"] .onglet-teinte { background: var(--teinte-inconnu-fond); color: var(--teinte-inconnu-texte); }
.onglet-btn[data-teinte="vert"] { border-color: var(--teinte-vert-texte); } .onglet-btn[data-teinte="bleu"] { border-color: var(--teinte-bleu-texte); }
.onglet-btn[data-teinte="orange"] { border-color: var(--teinte-orange-texte); } .onglet-btn[data-teinte="rouge"] { border-color: var(--teinte-rouge-texte); } .onglet-btn[data-teinte="inconnu"] { border-color: var(--teinte-inconnu-texte); }
/* l'onglet ouvert garde son fond sombre ; la puce garde SA teinte (et sa forme) pour ne rien perdre */
.onglet-btn[aria-selected="true"][data-teinte] { background: var(--encre); color: #fff; }
.onglet-btn[aria-selected="true"][data-teinte] .onglet-teinte { border-color: #fff; }

/* CHANTIERS-03 B2 : la trésorerie à 30 et 90 jours — le tableau dit tout, la courbe est repliée ; rien ne déborde à 360 px (le tableau défile dans son cadre) */
.prev-commandes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.prev-provisoire { font-size: .8em; vertical-align: middle; }
.prev-resume { margin: .5rem 0; font-weight: 600; overflow-wrap: anywhere; }
.prev-svg { width: 100%; height: auto; max-height: 260px; display: block; }
.prev-trait { stroke: currentColor; stroke-width: 2; }
.prev-point { fill: currentColor; }
.prev-zero { stroke: currentColor; stroke-width: 1; stroke-dasharray: 4 4; opacity: .5; }
.prev-axe { fill: currentColor; font-size: 12px; }
.prev-table-cadre { overflow-x: auto; max-width: 100%; margin: .5rem 0; }
.prev-table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95em; }
.prev-table th, .prev-table td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid rgba(0,0,0,.15); vertical-align: top; overflow-wrap: break-word; }
.prev-table td:nth-child(2) { min-width: 12rem; }
.prev-table td:nth-child(3) { min-width: 9rem; }
.prev-table .prev-num { text-align: right; white-space: nowrap; }
.prev-table caption { text-align: left; font-weight: 600; padding: .25rem 0; }
.prev-bloc { margin: .5rem 0; }
.prev-table .lien-bouton { min-height: 44px; display: inline-flex; align-items: center; text-align: left; padding: .25rem .4rem; }
/* FICHE-ET-MENAGE M-0 (d) : à 1 026 px la colonne « Solde du jour » était coupée par le cadre défilant ; entre 701 et 1 400 px le tableau se resserre pour tenir en entier. */
@media (min-width: 701px) and (max-width: 1400px) {
  .prev-table { font-size: .88em; }
  .prev-table th, .prev-table td { padding: .3rem .3rem; }
  .prev-table td:nth-child(2) { min-width: 8rem; }
  .prev-table td:nth-child(3) { min-width: 6rem; }
}

/* CHANTIERS-03 lancement 3 : le bon de livraison — la photo d'origine À CÔTÉ des lignes lues (ordinateur), l'une sous l'autre sur téléphone ; « Fin de mois » */
.bl-cote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; margin: .75rem 0; }
.bl-image { display: block; max-width: 100%; height: auto; border: 1px solid #c9c9c9; border-radius: .25rem; background: #f4f4f4; }
.bl-photo, .bl-lu, .bl-lignes { min-width: 0; }
.bl-edition { margin-top: .5rem; }
@media (min-width: 900px) { .bl-cote { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .bl-photo { position: sticky; top: 4.5rem; } }
.fm-ligne { padding-top: .5rem; padding-bottom: .5rem; }
.fm-proposition, .fm-trancher, .fm-recevoir { margin: .35rem 0; overflow-wrap: anywhere; }
.fm-proposition .etiquette-certain { background: var(--teinte-vert-fond, #dcf3e3); color: var(--teinte-vert-texte, #14532d); }
.fm-proposition .etiquette-probable { background: var(--teinte-bleu-fond, #dbeafe); color: var(--teinte-bleu-texte, #0b3f78); }
.fm-trancher { color: var(--teinte-orange-texte, #7c2d12); }
.fm-recevoir { font-weight: 600; }
.fm-cites .champ { flex: 1 1 14rem; min-width: 0; }
[data-fm-resultat] ul, [data-bl-liste] { overflow-wrap: anywhere; }
/* zones tactiles d'au moins 44 px dans les écrans neufs (bons de livraison, Fin de mois) */
#ch-bons .btn, [data-bl-fiche] .btn, #ch-fin-de-mois .btn, [data-bl-fiche] select, #ch-fin-de-mois select { min-height: 44px; }
[data-bl-fiche] details > summary, #ch-fin-de-mois details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

/* ---- CLASSEMENT-AUTO : le classement par le téléphone, le lien discret « Je choisis moi-même » et la carte « Rangé : … » */
.dp-auto { margin: .25rem 0 .75rem; }
.dp-lien { background: none; border: 0; padding: .6rem .25rem; min-height: 44px; font: inherit; color: var(--anthracite); text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.dp-lien:hover { text-decoration-color: var(--anthracite); }
.dp-classement:empty { display: none; }
.dp-classement { margin-top: 1rem; }
.dp-carte-classe { border: 2px solid var(--filet); border-left: 6px solid var(--vert); border-radius: var(--rayon); background: var(--papier); padding: .75rem 1rem; margin: 0 0 .75rem; }
.dp-carte-classe[data-niveau="peu_sur"] { border-left-color: var(--or); }
.dp-carte-classe p { margin: .2rem 0; }
.dp-carte-classe .dp-carte-titre { font-weight: 800; }
.dp-carte-classe .dp-classe-boutons { margin: .5rem 0; }
.dp-carte-classe .btn { margin: .25rem .25rem .25rem 0; }

/* LOT-BES-CHANTIERS-03 L4 (V-2) : la salle de tri des vidéos et la fiche d'un chantier (mêmes lignes que la salle de tri des photos) */
[data-md-tri] .depot-vignette img { width: 96px; height: 54px; object-fit: cover; background: var(--beton); }
[data-md-fiche] .depot-vignette img { width: 72px; height: 54px; object-fit: cover; background: var(--beton); }
[data-md-fiche] .ch-ligne, [data-md-ranger] .ch-ligne { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--filet); overflow-wrap: anywhere; }

/* LOT-BES-CHANTIERS-03 L4 (S-1) : les échéances saisies à la main */
.prev-saisies { margin-top: 1.25rem; }
.prev-saisies-liste .ch-ligne { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--filet); overflow-wrap: anywhere; }
.prev-saisies-liste input[type="date"] { min-height: 44px; }

/* LOT-BES-CHANTIERS-03 L4 (C-1) : l'onglet Communication (brouillons seulement) */
.com-liste { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: 1rem; }
.com-brouillon { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .9rem; background: #fff; overflow-wrap: anywhere; }
.com-tete { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.com-texte { white-space: pre-wrap; font: inherit; background: var(--beton); padding: .7rem; border-radius: 6px; margin: .5rem 0; overflow-wrap: anywhere; }
.com-photos { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.com-photos img, .com-photo img { object-fit: cover; border-radius: 6px; background: var(--beton); }
.com-photo { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 44px; }
.com-photo input[type="checkbox"] { width: 24px; height: 24px; }
.com-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: .5rem 0 1rem; }
.com-jour-nom { text-align: center; font-weight: 700; font-size: .8rem; }
.com-case { min-height: 52px; border: 1px solid var(--filet); border-radius: 4px; padding: 2px 3px; font-size: .75rem; background: #fff; overflow: hidden; }
.com-vide-case { border-color: transparent; background: transparent; }
.com-case-pleine { background: var(--beton); border-color: var(--or-fonce); }
.com-case-num { display: block; font-weight: 700; }
.com-case-idee { display: block; font-size: .68rem; line-height: 1.2; overflow-wrap: anywhere; }
.com-case-point { display: none; }
@media (max-width: 480px) { .com-case { min-height: 44px; font-size: .68rem; padding: 1px 2px; } .com-case-idee { display: none; } .com-case-point { display: block; text-align: center; color: var(--or-fonce); line-height: 1; } }
.com-places { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; font-size: .9rem; }

/* LOT-BES-CHANTIERS-03 L4 : les boutons et champs des écrans neufs (échéances saisies, vidéos, Communication) ont au moins 44 px de haut, comme le veut la sonde */
.prev-saisies .btn, .prev-saisies select, .prev-saisies input:not([type="checkbox"]), #ch-medias .btn, #ch-medias select, #ch-medias-fiche .btn, #ch-medias-fiche select,
#o-communication .btn, #o-communication select, #o-communication input[type="date"], #o-communication textarea { min-height: 44px; }
/* LOT-BES-CHANTIERS-03 L6 : « Qui a payé ? » après un classement sûr (cibles de 44 px), bloc « Lu (peu sûr) » en deux lignes, zone de copie de secours d'un brouillon */
.dp-qui-paye { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px dashed var(--filet); }
.dp-qui-paye .btn, .dp-carte-classe .dp-qui-paye .btn { min-height: 44px; }
.dp-lu .dp-lu-ligne { display: block; }
.com-copie-zone { display: block; width: 100%; box-sizing: border-box; margin: .5rem 0; padding: .5rem; font: inherit; border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff; }

/* LUNDI-MEGA §5 : les films (affiche + bouton lecture ; l'iframe n'existe qu'après le clic) */
.reels { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 1rem 0; }
@media (min-width: 560px) { .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reel { margin: 0; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.reel-lire { position: relative; display: block; padding: 0; border: 0; border-radius: var(--rayon); overflow: hidden; background: var(--papier); cursor: pointer; width: 100%; aspect-ratio: 3 / 4; }
.reel-lire img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-play { position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: 50%; background: rgba(34, 38, 42, .78); border: 2px solid #fff; }
.reel-play::after { content: ""; position: absolute; left: 1.45rem; top: 1.05rem; border-style: solid; border-width: .95rem 0 .95rem 1.5rem; border-color: transparent transparent transparent #fff; }
.reel-lire:focus-visible { outline: 3px solid var(--or-fonce); outline-offset: 3px; }
.reel-lecteur { width: 100%; height: 640px; max-height: 85vh; border: 0; border-radius: var(--rayon); background: var(--papier); }
.reel figcaption { font-size: .95rem; line-height: 1.4; }
.reel figcaption time { color: var(--gris); display: inline-block; margin: 0 .35rem; }
.reel-mention { font-size: .85rem; color: var(--gris); margin: .25rem 0 1rem; }

/* LUNDI-MEGA §6 : l'assistant « Parlons de votre projet » (bas à droite), son invitation, son panneau ; le micro de la maison passe à gauche sur les pages publiques */
.assistant { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; max-width: calc(100vw - 24px); }
.barre-devis ~ .assistant { bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) { .assistant { right: 20px; bottom: 20px; } .barre-devis ~ .assistant { bottom: 20px; } }
.assistant-bulle { min-height: 48px; padding: .65rem 1.1rem; border-radius: 999px; border: 2px solid var(--or); background: #22262a; color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(34, 38, 42, .35); }
.assistant-bulle:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.assistant-panneau { width: min(26rem, calc(100vw - 24px)); max-height: min(80vh, 38rem, calc(100vh - 11rem)); display: flex; flex-direction: column; background: #fff; color: #22262a; border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: 0 10px 34px rgba(10, 16, 22, .3); overflow: hidden; }
.assistant-panneau[hidden] { display: none; }
.assistant-tete { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; background: #22262a; color: #fff; }
.assistant-tete h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.assistant-fermer { min-height: 40px; padding: 0 .8rem; border: 1px solid #fff; border-radius: 999px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.assistant-corps { padding: 1rem; overflow: auto; display: flex; flex-direction: column; gap: .75rem; }
.assistant-fil { display: flex; flex-direction: column; gap: .5rem; max-height: 16rem; overflow: auto; }
.assistant-msg { margin: 0; padding: .55rem .75rem; border-radius: .6rem; background: var(--papier); line-height: 1.4; }
.assistant-msg-user { background: #f3ead6; }
.assistant-msg strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.assistant-attente { font-style: italic; color: var(--gris); }
.assistant-saisie { display: grid; gap: .5rem; }
.assistant-saisie textarea, .assistant-fiche input:not([type=checkbox]):not([type=file]), .assistant-fiche select, .assistant-fiche textarea, .assistant-contact input:not([type=checkbox]) { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--filet); border-radius: .5rem; background: #fff; }
.assistant-fiche { display: grid; gap: .75rem; }
.assistant .champ { display: grid; gap: .25rem; }
.assistant .champ.case { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.assistant .champ-msg { margin: 0; font-size: .9rem; color: #8a2d2d; }
.assistant .champ-refuse input, .assistant .champ-refuse select, .assistant .champ-refuse textarea { border-color: #8a2d2d; }
.assistant .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.assistant-contact { border: 1px solid var(--filet); border-radius: .5rem; padding: .75rem; display: grid; gap: .6rem; }
.assistant-contact legend { font-weight: 700; padding: 0 .3rem; }
.assistant-invite { display: flex; align-items: stretch; max-width: min(20rem, calc(100vw - 24px)); background: #fff; color: #22262a; border: 1px solid var(--filet); border-radius: .8rem; box-shadow: 0 6px 18px rgba(34, 38, 42, .25); }
.assistant-invite-texte { flex: 1; padding: .6rem .8rem; border: 0; background: transparent; font: inherit; font-weight: 600; text-align: left; cursor: pointer; min-height: 44px; }
.assistant-invite-x { padding: 0 .7rem; border: 0; border-left: 1px solid var(--filet); background: transparent; font: inherit; font-size: .85rem; color: var(--gris); cursor: pointer; min-height: 44px; }
.assistant-invite { order: -1; }
.assistant-ouvert .assistant-invite { display: none; }
@media (max-width: 759px) { .assistant-ouvert .barre-devis { display: none; } }

/* MEGA-C (08/11/2026) : bouton WhatsApp (icône officielle), bloc « Votre chantier en direct » et son visuel, page Accompagnement, carte de la zone d'intervention */
.btn-wa { display: inline-flex; align-items: center; gap: .55rem; }
.picto-wa { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }
.wa-numero { margin-top: .35rem; }
.systeme-direct { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .systeme-direct { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; } }
.systeme-visuel svg { display: block; width: min(15rem, 68%); height: auto; margin: 0 auto; }
.visuel-chantier text { font-family: inherit; }
.vc-tel { fill: #22262a; stroke: var(--or); stroke-width: 2; }
.vc-ecran { fill: #2d3238; }
.vc-haut { fill: #4a5058; }
.vc-titre { fill: #fff; font-size: 16px; font-weight: 700; }
.vc-filet { stroke: #596068; stroke-width: 1; fill: none; }
.vc-coche { fill: var(--or); }
.vc-en-cours { fill: none; stroke: var(--or); stroke-width: 2; }
.vc-trait { stroke: #22262a; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vc-point { fill: var(--or); }
.vc-etape { fill: #e8eaec; font-size: 13.5px; }
.vc-photo { fill: #3a4b57; }
.vc-colline { fill: #4c6878; }
.vc-soleil { fill: var(--or); }
.vc-date-fond { fill: rgba(34, 38, 42, .88); }
.vc-date { fill: #fff; font-size: 11px; font-weight: 700; }
.vc-legende { fill: #aab0b6; font-size: 10.5px; }
.page-accompagnement .liste-services { padding-left: 1.2rem; display: grid; gap: .5rem; }
.page-accompagnement .note-archi { border-left: 3px solid var(--or); padding: .25rem 0 .25rem .9rem; font-weight: 600; }
.page-accompagnement-tete { max-width: 46rem; padding-top: 1.25rem; }
.page-accompagnement-tete .phrase-accompagnement { font-size: 1.15rem; line-height: 1.5; margin: 0 0 .5rem; }
.page-accompagnement-tete .note-archi { border-left: 3px solid var(--or); padding: .25rem 0 .25rem .9rem; }
.page-accompagnement-tete .note-archi { font-size: .9rem; font-weight: 400; }
.presentation-entreprise { font-size: 1.05rem; line-height: 1.6; }
.carte-zone { margin: 1rem 0 1.5rem; }
.carte-zone svg { display: block; width: 100%; max-width: 34rem; height: auto; margin: 0 auto; }
.cz-fond { fill: #22262a; }
.cz-dep { stroke: var(--or); stroke-width: 1.2; stroke-opacity: .7; }
.cz-d89 { fill: #3a3833; } .cz-d45 { fill: #2f3640; } .cz-d58 { fill: #343a3b; }
.cz-cercle { fill: rgba(201, 162, 91, .07); stroke: var(--or); stroke-width: 1.5; stroke-dasharray: 5 4; }
.cz-dep-nom { fill: rgba(255, 255, 255, .3); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; font-family: inherit; }
.cz-ville { fill: #fff; }
.cz-nom { fill: #f4f4f4; font-size: 12.5px; font-family: inherit; paint-order: stroke; stroke: #22262a; stroke-width: 3px; stroke-linejoin: round; }
.cz-centre { fill: var(--or); stroke: #fff; stroke-width: 2; }
.cz-nom-centre { fill: var(--or); font-size: 14px; font-weight: 700; }
.carte-legende { font-size: .95rem; color: var(--encre-douce); max-width: 34rem; margin: .6rem auto 0; }

/* MEGA-D § 3 : « Suivez-nous » dans le pied de page (une ligne, cibles de 44 px, icônes de la bibliothèque, aucune requête tierce) */
.pied-in > .suivez-nous { grid-column: 1 / -1; }
.suivez-nous .reseaux { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.reseau, .reseau-texte { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #fff; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; text-decoration: none; }
.reseau-texte { padding: 0 1rem; text-decoration: underline; }
.reseau:hover, .reseau-texte:hover, .reseau:focus-visible, .reseau-texte:focus-visible { background: #fff; color: var(--anthracite); }
.picto-reseau { width: 1.4rem; height: 1.4rem; fill: currentColor; }

/* CLIENT-01 C0-bis : le bouton « Voir notre application de gestion » et le bloc « loin de votre maison » */
.systeme-texte .actions { margin: 1rem 0 0; }
.systeme-texte .actions .btn { width: 100%; text-align: center; }
@media (min-width: 760px) { .systeme-texte .actions .btn { width: auto; } }
.loin { background: var(--blanc); border: 1px solid var(--filet); border-left: 4px solid var(--or); border-radius: var(--rayon); padding: 1.25rem; margin-top: 1.5rem; }
.loin p { margin: .4rem 0; }
.loin .actions { margin: 1rem 0 0; }
.loin .actions .btn { width: 100%; text-align: center; }
@media (min-width: 760px) { .loin .actions .btn { width: auto; } }

/* CLIENT-01 C1 : « Mon chantier », les six cases du code */
.mc h2 { margin-top: 0; }
.code-cases { border: 0; padding: 0; margin: 0; min-width: 0; }
.code-cases legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.cases { display: flex; gap: .5rem; }
.case-code { width: 100%; max-width: 3.4rem; min-width: 0; min-height: 3.4rem; padding: .3rem; text-align: center; font-size: 1.6rem; font-weight: 700; }
@media (max-width: 380px) { .cases { gap: .35rem; } }

.mc h2:focus { outline: none; }

/* CLIENT-01 C2 : tuiles de type de travaux, dépôt de photos, vignettes */
.tuiles-type { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tuiles-type { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tuile-type { position: relative; display: flex; }
.tuile-type input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.tuile-type span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.4rem; padding: .5rem; border: 2px solid #8a8f94; border-radius: var(--rayon); background: #fff; font-weight: 700; overflow-wrap: anywhere; }
.tuile-type input:checked + span { background: var(--anthracite); color: #fff; border-color: var(--or); box-shadow: inset 0 -3px 0 var(--or); }
.tuile-type input:focus-visible + span { outline: 3px solid var(--or); outline-offset: 2px; }
.champ-groupe { display: grid; gap: 1.1rem; }
.champ-groupe[hidden], .tuile-type[hidden] { display: none; }
.depot { transition: border-color .15s; }
.depot.survol { border-color: var(--or); border-width: 3px; background: #fffaf0; }
.zone-depot { margin: 0; padding: 1rem; text-align: center; border: 2px dashed #8a8f94; border-radius: var(--rayon); color: var(--encre-douce); }
.depot.survol .zone-depot { border-color: var(--or); }
@media (hover: none) { .zone-depot { display: none; } }
.cache-visuel { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.vignettes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.vignette { display: flex; align-items: flex-start; gap: .25rem; max-width: 100%; }
.vignette img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--filet); }
.vignette span { max-width: 9rem; overflow-wrap: anywhere; font-size: .85rem; }
.progression { width: 100%; height: .9rem; accent-color: var(--or); }
.liste-demandes { margin: .5rem 0 1rem; padding-left: 1.2rem; }

/* CLIENT-01 C5 : la fiche d'une demande de l'application, calendrier des disponibilités (cases vertes) */
.demande-app { display: grid; gap: .8rem; margin-top: .6rem; }
.demande-preparation h4 { margin: .6rem 0 .2rem; }
.cal-grille { display: grid; gap: .4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .cal-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cal-grille { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cal-jour { display: grid; gap: .25rem; border: 1px solid var(--filet); border-radius: var(--rayon); padding: .4rem; background: #fff; min-width: 0; }
.cal-nom { font-weight: 700; font-size: .85rem; }
.cal-case { min-height: 44px; padding: .25rem .4rem; border: 2px solid #8a8f94; border-radius: var(--rayon); background: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.cal-case.cal-verte { background: var(--vert-fond, #dcfce7); border-color: var(--vert, #15803d); color: #14532d; font-weight: 700; }
.cal-case:hover { border-color: var(--or); }

/* CLIENT-01 C4 : disponibilités (cases à bascule), étapes de « Votre chantier » */
.cal-client { display: grid; gap: .8rem; }
.cal-semaine { display: grid; gap: .4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .cal-semaine { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cal-semaine { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cal-client .cal-case[aria-pressed="true"] { background: var(--anthracite); color: #fff; border-color: var(--or); box-shadow: inset 0 -3px 0 var(--or); font-weight: 700; }
.etapes { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.etape { padding: .6rem .8rem; border-left: 4px solid #8a8f94; background: #fff; border-radius: 0 var(--rayon) var(--rayon) 0; overflow-wrap: anywhere; }
.etape-fait { border-left-color: var(--or); }
.etape-fait strong::before { content: "\2713  "; color: var(--chantier, #15803d); }
.rdv-proposition { border: 2px solid var(--or); border-radius: var(--rayon); padding: .8rem 1rem; background: #fffaf0; margin: 1rem 0; }
.resume { background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem 1rem; margin: 1rem 0; }
.etape-etat::before { content: " \00b7  "; }

/* CLIENT-01 C3 : la préparation */
.prepa-question { margin: 0; font-weight: 700; font-size: 1.1rem; }
.fiche-prepa h4 { margin: 1rem 0 .3rem; }
.fiche-prepa { background: #fff; border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem 1rem; }

/* CLIENT-01 C6 : toutes les cibles de « Mon chantier » font 44 px au moins (mesuré par outils/mesure-client.mjs) */
.mc .btn-petit { min-height: 44px; }

/* CLIENT-01 C7 : le sélecteur de langue (FR EN ES PT), en haut à droite ; la langue en cours en or */
.langues { display: flex; gap: .15rem; align-items: center; margin-left: auto; }
.langues a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; min-height: 2.4rem; padding: 0 .3rem; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .04em; border-radius: 6px; }
.langues a:hover { background: #2d3237; }
.langues a[aria-current="true"] { color: var(--or); }
.langues a:focus-visible { outline: 2px solid var(--or); outline-offset: 1px; }

/* C7 : sur téléphone, le sélecteur de langue passe sur sa propre ligne sous le nom et le menu (jamais par-dessus) */
@media (max-width: 899px) { .entete-in { flex-wrap: wrap; row-gap: .1rem; } .langues { order: 9; flex: 0 0 100%; justify-content: flex-end; margin-left: 0; } }

/* LOT-BES-PROD-05 §1 : la dictée en direct. Le champ qui reçoit la voix se voit (cadre doré) ; rien n'est masqué par les bulles fixes (« Parlons de votre projet », micro rond) :
   une marge basse sur toute la page « Mon chantier » laisse le dernier contenu monter au-dessus d'elles, à toutes les largeurs de téléphone. */
body.p-mon-chantier textarea.dicte { outline: 3px solid var(--or); outline-offset: 2px; }
body.p-mon-chantier main { padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)); }

/* ADM-01 : le bouton « Vérifier si mon projet a besoin d'un dossier administratif », mis en évidence (haut et bas de /accompagnement, accueil) et le parcours */
.cta-verifier { display: flex; justify-content: center; margin: 1.25rem 0; }
.cta-verifier .btn-verifier { width: 100%; max-width: 38rem; text-align: center; white-space: normal; line-height: 1.25; padding: 1rem 1.25rem; font-weight: 700; box-shadow: 0 0 0 3px rgba(201, 162, 39, .35); }
.p-verifier .vd { max-width: 40rem; margin: 0 auto; }
.p-verifier .vd-etape { margin: 1rem 0; }
.p-verifier .vd-etape h2 { margin-top: 0; }
.p-verifier .vd-nav { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.p-verifier .vd-liste { list-style: none; margin: .25rem 0 0; padding: 0; border: 1px solid currentColor; border-radius: .5rem; max-height: 14rem; overflow: auto; background: var(--fond, #fff); }
.p-verifier .vd-option { padding: .7rem .9rem; cursor: pointer; min-height: 2.75rem; }
.p-verifier .vd-option[aria-selected="true"], .p-verifier .vd-option:hover { outline: 2px solid #c9a227; outline-offset: -2px; }
.p-verifier .vd-verif { margin-top: 1rem; padding: .75rem 1rem; border-left: 4px solid #c9a227; }
.p-verifier .vd-notice { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid currentColor; border-radius: .5rem; font-size: .95rem; }
.p-verifier .case { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; }
.p-verifier .case input { margin-top: .25rem; flex: none; width: 1.25rem; height: 1.25rem; }
.p-verifier .piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.p-verifier textarea.dicte { outline: 3px solid #c9a227; }
.p-verifier .vd-probable { font-size: 1.1rem; font-weight: 600; }
.p-verifier .cal-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.p-verifier .cal-jour { display: flex; flex-direction: column; gap: .25rem; }
.p-verifier .cal-case { min-height: 2.75rem; }
.p-verifier .cal-verte { background: #c9a227; color: #22262a; }
.alerte-nouveaux { margin: .75rem 0; padding: .75rem 1rem; border-left: 4px solid #c9a227; font-weight: 700; }
.etiquette-nouveau { background: #c9a227; color: #22262a; }
.demande-prospect .suivi-liste { margin: .25rem 0 .5rem 1.25rem; }

/* NUIT-01 (revue Chrome du 10/11/2026) : le nom de la page et « Voir sur le site » ne se touchent plus ; le courrier, son numéro et sa date non plus */
.mxt-tete, .mxc-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.mxt-texte { margin: .25rem 0 .5rem; }

/* PIECE-JOINTE-01 (BES-40) : « Joindre un document » dans un courrier. Mobile d'abord : tout s'empile, les gestes font 44 px de haut au moins, rien ne déborde. */
.mxc-pj { margin-top: .75rem; }
.pj { border-top: 1px solid var(--filet); padding-top: .6rem; }
.pj h4 { margin: 0 0 .4rem; font-size: 1rem; }
.pj h5 { margin: .6rem 0 .3rem; font-size: .95rem; }
.pj-liste, .pj-vignettes { list-style: none; margin: 0 0 .5rem; padding: 0; }
.pj-piece { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .35rem 0; border-bottom: 1px solid var(--beton-2); }
.pj-nom { overflow-wrap: anywhere; }
.pj .btn { min-height: 44px; }
.pj-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; }
.pj-vignette { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.pj-vignette img { width: 100%; height: auto; max-height: 14rem; object-fit: contain; border: 1px solid var(--filet); background: var(--beton); }
.pj-dialogue .pj-cadre { overflow: hidden; }
@media (max-height: 780px) { .pj-dialogue > .aide { display: none; } .pj-dialogue .pj-toile { max-height: 44dvh; } .pj-dialogue h2 { margin-bottom: .2rem; } }
.pj-dialogue .rc-scene { margin: 0 auto; }
.pj-dialogue .pj-toile { display: block; width: auto; height: auto; max-width: 100%; max-height: 48dvh; }
/* revue du banc (iPhone SE) : « Redresser » était sous la ligne de flottaison ; les gestes restent collés au bas de la fenêtre, la photo défile au-dessus */
.pj-dialogue .actions { position: sticky; bottom: -1rem; z-index: 2; margin: 0 -1rem -1rem; padding: .6rem 1rem 1rem; background: var(--papier); border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; gap: .5rem; }
.pj-dialogue .pj-cadre { padding: 22px 22px 10px; }
.pj-dialogue .pj-quad { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* REDRESSEMENT-01 : régime, écart déclaré / dû, octobre, compte courant, « Pour moi », devis. Mobile d'abord : tout s'empile, rien ne déborde. */
.rd-bandeau { position: static; margin: 0 0 1rem; font-weight: 600; }
.rd-bandeau .btn { margin-top: .4rem; }
.rd-mois { margin-top: 1rem; }
.rd-chiffres { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 560px) { .rd-chiffres { grid-template-columns: repeat(3, 1fr); } }
.rd-chiffre { min-width: 0; }
.rd-cellule { display: block; min-width: 0; }
.rd-montant { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; border-bottom: 2px dotted currentColor; padding: .25rem 0; min-height: 2.5rem; cursor: pointer; text-align: left; }
.rd-montant:focus-visible { outline: 3px solid var(--accent, currentColor); outline-offset: 2px; }
.rd-detail { margin: .3rem 0; padding: .4rem .6rem; border-left: 3px solid var(--filet); overflow-wrap: anywhere; }
.rd-detail p { margin: .15rem 0; }
.rd-hyp, .rd-hypothese { overflow-wrap: anywhere; }
.rd-hypotheses { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 760px) { .rd-hypotheses { grid-template-columns: repeat(2, 1fr); } }
.rd-courbe { width: 100%; max-width: 420px; height: auto; color: var(--accent, #234); }
.rd-pour-moi { margin-top: .75rem; }
.rd-quatre { padding-left: 1.1rem; }
[data-rd] { overflow-wrap: anywhere; }

/* LOT-BES-SIGNATURE-01 (BES-42) : « Ma signature ». La signature se montre toujours sur du papier blanc (la tuile) et, dans l'aperçu, sur blanc ET sur gris moyen : un fond qui se verrait paraîtrait ici. */
.sig-etapes { margin: .4rem 0 .8rem 1.2rem; padding: 0; } .sig-etapes li { margin: .15rem 0; }
.sig-active { margin: .6rem 0; } .sig-active .sig-fond, .sig-pastille .sig-fond { display: inline-block; max-width: 100%; padding: .6rem .8rem; border: 1px solid var(--filet); border-radius: var(--rayon); }
.sig-active .sig-fond { background: #fff; } .sig-active img { display: block; max-width: 100%; height: auto; }
.sig-apercus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: .6rem 0; }
.sig-pastille { margin: 0; } .sig-p-grand { grid-column: 1 / -1; }
.sig-pastille .sig-fond { display: block; text-align: center; } .sig-p-blanc .sig-fond { background: #fff; } .sig-p-gris .sig-fond { background: #808080; }
.sig-pastille img { display: inline-block; height: auto; vertical-align: middle; } .sig-pastille img.sig-grand { width: auto; max-width: 100%; max-height: 20dvh; } .sig-pastille img.sig-petit { width: min(100%, 150px); }
.sig-dialogue .sig-scene { touch-action: none; cursor: crosshair; } .sig-dialogue .sig-toile { touch-action: none; }
.sig-dialogue { width: min(44rem, calc(100vw - 1rem)); }
.sig-refus { margin-top: 1rem; } .sig-refus summary { cursor: pointer; font-weight: 600; } .sig-regles { margin: .4rem 0 .8rem 1rem; padding: 0; } .sig-regle { margin: .5rem 0; }
.sig-verdict { margin: .6rem 0; padding: .6rem .8rem; border: 1px solid var(--filet); border-radius: var(--rayon); } .sig-verdict.sig-oui { border-color: #3f7a4d; } .sig-verdict.sig-non { border-color: var(--chantier); }
.sig-rappel { margin: .6rem 0; } .sig-rappel .btn { margin-left: .4rem; }
/* LOT-BES-SIGNER-01 : « Signer un document » — la page, la signature qu'on glisse au doigt, la réserve des mentions et du code, l'aperçu à la taille imprimée. */
.sg-feuille { position: relative; margin: .6rem auto; max-width: 100%; border: 1px solid var(--filet); background: #fff; touch-action: pan-y; } .sg-feuille canvas { display: block; max-width: 100%; }
.sg-bloc { position: absolute; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } .sg-bloc:active { cursor: grabbing; } .sg-bloc:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.sg-bloc img { display: block; pointer-events: none; -webkit-user-drag: none; } .sg-reserve { position: absolute; left: 0; box-sizing: border-box; border: 1.5px dashed #4b5563; background: rgba(255, 255, 255, .85); pointer-events: none; }
.sg-pages { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; } .sg-nudge { display: flex; flex-wrap: wrap; gap: .4rem; } .sg-nudge .btn { min-width: 3rem; min-height: 2.75rem; }
.sg-reel { margin: .8rem 0; } .sg-reel-defile { overflow: auto; max-height: 70vh; border: 1px solid var(--filet); background: #e5e7eb; -webkit-overflow-scrolling: touch; } .sg-reel-defile canvas { display: block; }
.sg-refus { margin: .8rem 0; padding: .6rem .8rem; border: 1px solid var(--chantier, #b45309); border-radius: var(--rayon, 8px); } .sg-journal-liste { margin: .4rem 0 0 1rem; padding: 0; }

/* TVA-OCT-01 : LE RELEVÉ DE PASSAGE (tableau, devient une carte par facture sous 760 px) et LA CA3 À L'ENCAISSEMENT. Rien ne déborde : tout passe à la ligne, aucun défilement horizontal de page. */
.rp-tableau-enveloppe { max-width: 100%; }
.rp-tableau { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rp-tableau th { text-align: left; font-weight: 700; padding: .45rem .5rem; border-bottom: 2px solid var(--anthracite); overflow-wrap: anywhere; }
.rp-tableau td { padding: .5rem; border-bottom: 1px solid var(--filet); vertical-align: top; overflow-wrap: anywhere; }
.rp-c-num2 { text-align: right; white-space: nowrap; }
.rp-enc { margin: .1rem 0; }
.rp-verdict strong { display: inline-block; padding: .15rem .5rem; border: 2px solid currentColor; border-radius: var(--rayon); }
.rp-v-deja_taxee .rp-verdict { color: var(--teinte-bleu-texte); }
.rp-v-a_taxer .rp-verdict { color: var(--teinte-orange-texte); }
.rp-v-jamais_taxee .rp-verdict, .rp-v-taux_inconnu .rp-verdict { color: var(--teinte-rouge-texte); }
.rp-v-encaissement_non_rattache .rp-verdict, .rp-v-a_repartir .rp-verdict { color: var(--teinte-inconnu-texte); }
.rp-cote-a-cote { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: .4rem; }
@media (min-width: 560px) { .rp-cote-a-cote { grid-template-columns: repeat(2, 1fr); } }
.rp-issue { display: block; padding: .5rem .7rem; border: 2px solid var(--filet); border-radius: var(--rayon); background: var(--papier); overflow-wrap: anywhere; }
.rp-inconnue, .rp-rattrapage { margin: .75rem 0; }
.rp-detail { margin: .25rem 0; overflow-wrap: anywhere; }
.rp-detail > summary { cursor: pointer; font-weight: 700; padding: .35rem 0; min-height: 2.5rem; }
.rp-detail > summary:focus-visible { outline: 3px solid var(--accent, currentColor); outline-offset: 2px; }
.rp-scenario { margin: .35rem 0; overflow-wrap: anywhere; }
.rp-sf-ligne { margin-bottom: .6rem; overflow-wrap: anywhere; }
.rp-impression-tete { display: none; }
@media (max-width: 759.98px) {
  .rp-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rp-tableau, .rp-tableau tbody, .rp-tableau tr, .rp-tableau td { display: block; width: 100%; }
  .rp-tableau tr { margin: 0 0 .9rem; padding: .35rem .6rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); }
  .rp-tableau td { display: flex; gap: .6rem; justify-content: space-between; border: 0; padding: .25rem 0; text-align: right; }
  .rp-tableau td::before { content: attr(data-label); font-weight: 700; text-align: left; flex: 0 0 46%; font-size: .92em; }
  .rp-tableau td > * { text-align: right; min-width: 0; }
}
@media print {
  body.imprime-releve * { visibility: hidden !important; }
  body.imprime-releve [data-rd-releve], body.imprime-releve [data-rd-releve] * { visibility: visible !important; }
  body.imprime-releve [data-rd-releve] { position: absolute; left: 0; top: 0; width: 100%; padding: 0; margin: 0; background: #fff; color: #000; font-size: 10pt; }
  body.imprime-releve [data-rd-releve] .rp-actions, body.imprime-releve [data-rd-releve] .rp-tableau thead .aide { display: none !important; }
  body.imprime-releve [data-rd-releve] .rp-impression-tete { display: block; margin-bottom: 1rem; }
  body.imprime-releve [data-rd-releve] .rp-tableau { font-size: 8.5pt; }
  body.imprime-releve [data-rd-releve] .rp-tableau tr { break-inside: avoid; }
  body.imprime-releve [data-rd-releve] .rp-verdict strong { border: 1px solid #000; color: #000; }
}
@media (min-width: 760px) {
  .rp-tableau { font-size: .85rem; }
  .rp-tableau th, .rp-tableau td { padding: .4rem .3rem; }
  .rp-tableau td:nth-child(1), .rp-tableau td:nth-child(2), .rp-tableau td:nth-child(5), .rp-tableau td:nth-child(9) { white-space: nowrap; }
  .rp-tableau td:nth-child(8) { min-width: 11rem; } .rp-tableau td:nth-child(3) { min-width: 7rem; } .rp-tableau td:nth-child(10) { min-width: 8rem; }
}

/* BES-63 B : « Ce qu'il manque pour déposer » (CA3) — mobile d'abord ; imprimable sur une page A4, sans débordement. */
.c3-manque { margin: .75rem 0 1rem; }
.c3-manque-tete { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.c3-manque-tete h4 { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.c3-manque-liste { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.c3-manque-ligne { padding: .55rem .7rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.c3-manque-texte { flex: 1 1 16rem; min-width: 0; }
.c3-manque .btn { min-height: 44px; }
.c3-impression { display: none; }
@media print {
  body.imprime-manque > *:not(.c3-impression) { display: none !important; }
  body.imprime-manque > .c3-impression { display: block; position: static; width: auto; box-sizing: border-box; margin: 0; padding: 0; background: #fff; color: #000; font-size: 11pt; border: 0; }
  body.imprime-manque > .c3-impression .c3-manque-tete { display: block; }
  body.imprime-manque > .c3-impression .c3-manque-ligne { display: block; break-inside: avoid; border: 1px solid #000; background: #fff; margin-bottom: 6pt; }
}

/* ARCH-MAIL-02 : l'onglet « Courrier » (public/courrier.js). Réutilise les lignes et fiches de la messagerie (.mx-*) ; seuls les faits de la boîte et les compteurs sont neufs. */
.cr-faits { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .25rem; }
.cr-comptes { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.cr-comptes li { overflow-wrap: anywhere; min-width: 0; }
.cr-comptes strong { font-size: 1.15rem; }
[data-cr-liaison] h3 { margin-top: .25rem; }

/* LOT-BES-52 : l'envoi qui part, la pièce qui s'insère toute seule, la visionneuse commune, le glisser-déposer, la recherche dans le greffier. Mobile d'abord : tout s'empile, gestes de 44 px, rien ne déborde. */
.pj-coche { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; }
.pj-coche input { width: 1.4rem; height: 1.4rem; }
.pj-motif { flex-basis: 100%; }
.pj-depose { margin: .4rem 0; padding: .6rem .75rem; border: 2px dashed var(--filet); border-radius: .5rem; text-align: center; }
.pj { position: relative; transition: background-color .12s; }
.pj.pj-survol { background: var(--beton-2); outline: 3px solid var(--accent, #c8501e); outline-offset: 2px; }
.pj.pj-survol::after { content: attr(data-survol); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; font-weight: 700; text-align: center; background: color-mix(in srgb, var(--papier) 82%, transparent); pointer-events: none; }
.pj-proposee { background: var(--beton); padding-left: .4rem; padding-right: .4rem; }
.pj-greffier { margin: .6rem 0; padding: .6rem; border: 1px solid var(--filet); border-radius: .5rem; }
.pj-greffier-form { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); align-items: end; }
.pj-greffier-form .btn { min-height: 44px; }
.mxc-envoyer { margin-top: .9rem; padding-top: .6rem; border-top: 1px solid var(--filet); }
.mxc-envoyer .btn, .mxc-recap .btn { min-height: 44px; }
.mxc-champ-erreur { margin: .25rem 0 .5rem; }
.mxc-recap { margin-top: .6rem; padding: .75rem; border: 2px solid var(--filet); border-radius: .5rem; background: var(--beton); }
.mxc-recap-liste { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; margin: 0 0 .6rem; }
.mxc-recap-liste dt { font-weight: 700; }
.mxc-recap-liste dd { margin: 0; overflow-wrap: anywhere; }
.mxc-recap-texte { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 18rem; overflow: auto; }
.mxc-trace { margin-top: .8rem; padding-top: .5rem; border-top: 1px solid var(--filet); overflow-wrap: anywhere; }
@media (max-width: 520px) { .mxc-recap-liste { grid-template-columns: 1fr; } }
dialog.visionneuse { width: min(96vw, 60rem); max-width: 96vw; height: min(92dvh, 52rem); max-height: 92dvh; padding: 0; border: 1px solid var(--filet); border-radius: .5rem; background: var(--papier); color: inherit; }
dialog.visionneuse[open] { display: flex; flex-direction: column; }
dialog.visionneuse::backdrop { background: rgba(0, 0, 0, .55); }
.visionneuse-tete { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .5rem .75rem; border-bottom: 1px solid var(--filet); }
.visionneuse-nom { flex: 1 1 10rem; overflow-wrap: anywhere; }
.visionneuse-gestes { display: inline-flex; gap: .4rem; }
.visionneuse-tete .btn { min-height: 44px; }
.visionneuse-corps { flex: 1 1 auto; min-height: 0; overflow: auto; padding: .5rem; display: flex; flex-direction: column; }
.visionneuse-pdf { flex: 1 1 auto; width: 100%; min-height: 60dvh; border: 0; background: #fff; }
.visionneuse-image { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }

/* LOT-BES-55 : l'écran « À trancher » (cases à cocher, compteur toujours visible) et le fichier prospects. Mobile d'abord : tout s'empile, gestes de 44 px. */
.cr-sticky { position: sticky; top: 0; z-index: 3; background: var(--papier); border: 1px solid var(--or-fonce); border-radius: var(--rayon); padding: .5rem .75rem; margin: .5rem 0; font-size: 1.05rem; }
.cr-boutons .btn { min-height: 44px; }
.cr-tr-ligne { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .5rem; align-items: start; border: 1px solid var(--filet); border-left: 4px solid var(--filet); border-radius: var(--rayon); background: var(--papier); padding: .5rem .6rem; }
.cr-tr-ligne.cr-coche { border-left-color: var(--or); background: #faf6ef; }
.cr-tr-case { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.cr-tr-case input { width: 1.5rem; height: 1.5rem; }
.cr-tr-corps { min-width: 0; display: grid; gap: .25rem; }
.cr-tr-objets { margin: 0; padding-left: 1.1rem; font-size: .88rem; color: var(--encre-douce); overflow-wrap: anywhere; }
.cr-pr-ligne { border: 1px solid var(--filet); border-left: 4px solid var(--filet); border-radius: var(--rayon); background: var(--papier); padding: .6rem .75rem; display: grid; gap: .3rem; min-width: 0; }
.cr-pr-sans { border-left-color: var(--or); }
.cr-pr-histo { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .5rem; }
.cr-pr-histo li { border-top: 1px solid var(--filet); padding-top: .4rem; overflow-wrap: anywhere; }
.cr-pr-droits { display: grid; gap: .5rem; margin: .5rem 0; }
.cr-pr-droits .btn, .cr-pr-ligne .btn { min-height: 44px; }
/* BES-57 : l'écran « Contacts » (deux listes) */
.ct-bloc { margin-top: 1.25rem; min-width: 0; }
.ct-bloc .btn, #courrier-contacts [data-ct-completer] { min-height: 44px; }
.ct-tete { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: baseline; justify-content: space-between; min-width: 0; }
.ct-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .35rem .9rem; margin: 0; }
.ct-champ { min-width: 0; }
.ct-champ dt { font-size: .8125rem; color: var(--gris); }
.ct-champ dd { margin: 0; overflow-wrap: anywhere; }
.ct-vide { font-style: italic; color: var(--gris); }
.ct-ne-plus { border-left-color: var(--anthracite); opacity: .85; }
#courrier-atrancher .btn, #courrier-prospects .btn, #courrier-prospect-fiche .btn { min-height: 44px; }

/* LOT-BES-52-B : « Courrier à traiter » — le message reçu en entier à gauche, la réponse à droite (une seule colonne sous 900 px) ; la pastille de priorité 1 */
.cr-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .cr-deux { grid-template-columns: minmax(0, 1fr); } }
.cr-col { min-width: 0; display: grid; gap: .5rem; align-content: start; }
.cr-col h3, .cr-col h4, .cr-col h5 { margin: .25rem 0; }
.mx-corps-entier { max-height: 65vh; }
.cr-analyse { border: 1px solid var(--filet); border-left: 4px solid var(--or); border-radius: var(--rayon); padding: .5rem .75rem; background: var(--papier); }
.cr-resume { white-space: pre-line; overflow-wrap: anywhere; margin: .25rem 0; }
.cr-tt-ligne { display: grid; gap: .35rem; }
.cr-tt-objet { text-align: left; background: none; border: 0; padding: .5rem 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--encre); cursor: pointer; text-decoration: underline; overflow-wrap: anywhere; }
.cr-tt-detail { margin-top: 1rem; border-top: 2px solid var(--or-fonce); padding-top: .75rem; }
.pastille.cr-pastille-p1, .pastille.cr-pastille-onglet { background: #b3261e; color: #fff; }
.pastille.cr-pastille-onglet { margin-left: .25rem; }
.mx-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .15rem .75rem; margin: .4rem 0; overflow-wrap: anywhere; }
.mx-dl dt { font-weight: 700; } .mx-dl dd { margin: 0; }
#courrier-traiter .btn { min-height: 44px; }      /* BES-52-B : cibles tactiles de 44 px sur l'écran « Courrier à traiter » */

/* BES-64 V2 : sur Contact et Devis, le bas du formulaire n'est jamais recouvert par la barre « Demander un devis » ni par la bulle (≈ 9 rem), et la bulle se range pendant la saisie */
@media (max-width: 759px) { .p-contact .formulaire, #form-devis { margin-bottom: 9.5rem; } }
html[data-saisie] .assistant { display: none; }

#impression-recap { display: none; }
/* ---- BES-64 D : « À faire » (une carte par dossier), le dossier ouvert, « Mon récapitulatif » — charte de la vitrine : anthracite, or, Manrope ; une colonne sous 900 px */
.df-tete { margin: .25rem 0 .5rem; font-weight: 700; }
.df-sep { color: var(--or); }
.df-barre { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .5rem 0 1rem; padding: 0; }
.df-compte { display: flex; align-items: baseline; gap: .4rem; min-height: 44px; padding: .45rem .8rem; border: 2px solid var(--anthracite); border-radius: var(--rayon); background: #fff; color: var(--anthracite); font: inherit; cursor: pointer; }
.df-compte strong { font-size: 1.25rem; }
.df-compte:hover { background: var(--anthracite); color: #fff; }
.df-corps { display: grid; gap: 1rem; }
@media (min-width: 900px) { .df-corps { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } .df-dossier { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow: auto; } }
.df-niveau { margin: 0 0 1rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; padding: .25rem .75rem .5rem; }
.df-niveau > summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; gap: .6rem; }
.df-cartes { list-style: none; margin: 0; padding: 0; }
.df-carte { border: 1px solid var(--filet); border-left: 7px solid #8a9097; border-radius: var(--rayon); background: #fff; padding: .7rem .8rem; margin: .55rem 0; }
.df-n-1 { border-left-color: #c0392b; } .df-n-2 { border-left-color: #d4900a; }
.df-phrase { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; margin: 0; font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--anthracite); cursor: pointer; min-height: 32px; overflow-wrap: anywhere; }
.df-phrase:hover { text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 3px; }
.df-ctx { margin: .2rem 0 .3rem; color: var(--gris); font-size: .95rem; overflow-wrap: anywhere; }
.df-pastilles { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0; }
.df-pastille { font-size: .82rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--anthracite); background: #f4f1ea; color: var(--anthracite); }
.df-avis { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.df-reponse { background: #e6f1e4; border-color: #2f6b2a; }
.df-confirmer { background: #fff3d6; border-color: #b9770e; }
.df-nicolas { background: #e8eaee; border-color: #5b6470; }
.df-carte-bas { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .4rem; position: relative; }
.df-menu > summary { list-style: none; cursor: pointer; min-width: 48px; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--anthracite); border-radius: var(--rayon); font-weight: 800; font-size: 1.2rem; background: #fff; }
.df-menu > summary::-webkit-details-marker { display: none; }
.df-menu[open] > summary { background: var(--anthracite); color: #fff; }
.df-menu-liste { position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 12; list-style: none; margin: 0; padding: .3rem; min-width: 14rem; background: #fff; border: 2px solid var(--anthracite); border-radius: var(--rayon); box-shadow: 0 8px 20px #0003; }
.df-menu-item { display: block; width: 100%; text-align: left; min-height: 44px; padding: .5rem .7rem; border: 0; background: none; font: inherit; cursor: pointer; border-radius: 4px; }
.df-menu-item:hover { background: #f4f1ea; }
.df-form { margin-top: .6rem; padding: .7rem; border: 1px dashed var(--anthracite); border-radius: var(--rayon); background: #faf8f3; }
.df-form h4 { margin: 0 0 .5rem; }
.df-dossier { border: 2px solid var(--anthracite); border-radius: var(--rayon); background: #fff; padding: .9rem 1rem; }
.df-sec { margin: 1rem 0; }
.df-sec > h4 { margin: 0 0 .35rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); }
.df-sec-action { border-left: 6px solid var(--or); padding-left: .7rem; }
.df-action-phrase { font-weight: 800; font-size: 1.1rem; margin: 0 0 .3rem; }
.df-liste-simple { margin: 0; padding-left: 1.1rem; }
.df-frise-ligne { border: 0; background: none; padding: .2rem 0; font: inherit; text-align: left; color: var(--anthracite); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.df-brouillon-texte { white-space: pre-wrap; font: inherit; background: #faf8f3; border: 1px solid var(--filet); border-radius: var(--rayon); padding: .7rem; margin: 0; }
.df-avis-zone { background: #f4f1ea; border-radius: var(--rayon); padding: .7rem; }
.df-avis-texte { font-weight: 700; white-space: pre-wrap; }
.df-bande-rib { font-weight: 800; }
.df-detail { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem; margin: .5rem 0 1rem; background: #fff; }
.df-recap h3 { margin: 1rem 0 .3rem; font-size: 1.05rem; }
.cr-tout > summary { cursor: pointer; font-weight: 800; font-size: 1.15rem; min-height: 48px; display: flex; align-items: center; }
@media print {
  @page { size: A4; margin: 14mm; }
  html[data-impression] body > *:not(#impression-recap) { display: none !important; }
  html[data-impression] #impression-recap { display: block !important; }
  html[data-impression] #impression-recap #courrier-recap { border: 0; box-shadow: none; margin: 0; padding: 0; }
  html[data-impression] #impression-recap .rangee { display: none !important; }
}
.df-carte .btn, .df-dossier .btn, .df-boutons .btn, .df-form .btn, .df-detail .btn, .df-recap .btn { min-height: 44px; }

/* ============ BES-65 : la vitrine qui écoute et qui montre ============ */
/* A7 : le devis guidé d'abord ; le formulaire, WhatsApp et la visite dessous, voies parmi les autres */
.devis-guide { background: var(--anthracite); color: var(--sur-sombre); border-radius: var(--rayon); padding: 1.25rem var(--marge); margin: 0 0 1.5rem; }
.devis-guide h2 { color: #fff; margin: 0 0 .5rem; }
.devis-guide .aide { color: var(--sur-sombre); margin: 1rem 0 .25rem; }
.devis-guide a:not(.btn) { color: #fff; }
.devis-ou { font-size: 1.05rem; margin: 1.5rem 0 .75rem; }
/* A3 : la porte « Demander une visite » */
.formulaire-visite .choix-moments { border: 0; padding: 0; margin: 0 0 1rem; min-inline-size: 0; }
.formulaire-visite .choix-moments legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.choix-rang { display: flex; flex-wrap: wrap; gap: .5rem; }
.case-choix { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .9rem; border: 1px solid var(--filet); border-radius: 999px; background: #fff; cursor: pointer; }
.case-choix input { width: 1.2rem; height: 1.2rem; accent-color: var(--anthracite); }
.case-choix:has(input:checked) { border-color: var(--anthracite); background: var(--anthracite); color: #fff; }
.case-choix:has(input:focus-visible) { outline: 3px solid var(--or); outline-offset: 2px; }
.aide-confid { font-size: .9rem; }
/* B : ce que l'assistant voit sur les photos (une proposition, jamais une conclusion) */
.lecture-photos { margin-top: .75rem; padding: .85rem 1rem; border-left: 4px solid var(--or); background: #fff; border-radius: 0 var(--rayon) var(--rayon) 0; }
.lecture-photos h3 { font-size: 1rem; margin: 0 0 .4rem; }
.lecture-photos .champ { margin: .75rem 0 0; }
.lecture-photos textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--filet); border-radius: .5rem; }
.lecture-photos .btn { margin: .4rem .4rem 0 0; }
.assistant-photos { margin: .75rem 0; }
.assistant-photos .btn-photos { cursor: pointer; }
.assistant-photos:focus-within .btn-photos { outline: 3px solid var(--or); outline-offset: 2px; }
.assistant-saisie .btn { white-space: normal; text-align: center; }
/* cockpit : « D'où viennent les demandes » et la lecture jointe à une demande */
.origines { margin: 0 0 1rem; }
.origines summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.table-origines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-origines th, .table-origines td { padding: .45rem .6rem; border-bottom: 1px solid var(--filet); text-align: left; }
.table-origines td { text-align: right; font-variant-numeric: tabular-nums; }
.table-origines thead th:not(:first-child) { text-align: right; }
.demande-lecture { margin: .75rem 0; padding: .6rem .8rem; border-left: 4px solid var(--or); background: #fff; }

/* ============ BES-65 C : « Voir comment ça marche » — la visite guidée plein écran (fond anthracite, accent or, pictogrammes au trait) ============ */
html.visite-ouverte { overflow: hidden; }
.visite { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; gap: 1rem; background: var(--anthracite); color: #fff; overflow-y: auto; overscroll-behavior: contain;
  padding: max(.9rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.visite-haut { display: flex; align-items: center; gap: .75rem; }
.visite-barre { flex: 1; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.visite-seg { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.visite-seg span { position: absolute; inset: 0; background: var(--or); transform: scaleX(0); transform-origin: left; }
.visite-seg.fait span { transform: scaleX(1); }
.visite-seg.actif span { animation: visite-remplir var(--duree, 7000ms) linear forwards; }
.visite.en-pause .visite-seg.actif span, .visite.film-ouvert .visite-seg.actif span { animation-play-state: paused; }
.visite.sans-defilement .visite-seg.actif span { animation: none; transform: scaleX(1); }
@keyframes visite-remplir { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.visite-croix { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.visite-croix svg, .visite-croix-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.visite-croix:focus-visible, .visite .btn:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.visite-vue { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1rem; padding: 1rem 0; min-height: 14rem; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.visite-icone { width: clamp(5rem, 24vw, 8rem); height: clamp(5rem, 24vw, 8rem); fill: none; stroke: var(--or); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.visite-titre { color: #fff; font-size: clamp(1.5rem, 7vw, 2.4rem); max-width: 22ch; margin: 0; }
.visite-texte { color: var(--sur-sombre); font-size: clamp(1.05rem, 4.2vw, 1.3rem); line-height: 1.5; max-width: 32ch; margin: 0; }
.visite-compteur { margin: 0; text-align: center; font-size: .9rem; color: var(--sur-sombre); }
.visite-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.visite-btn { min-height: 52px; white-space: normal; text-align: center; padding-inline: .5rem; }
.visite .btn-clair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.visite .btn[disabled] { opacity: .4; }
.visite-bas { display: grid; gap: .5rem; padding-bottom: .25rem; }
.visite-cta, .visite-film { min-height: 52px; text-align: center; white-space: normal; text-decoration: none; }
.visite-video { width: 100%; max-height: 62vh; background: #000; border-radius: var(--rayon); }
.mc-visite { margin: 0 0 1rem; }
@media (min-width: 40rem) { .visite-nav { max-width: 36rem; margin-inline: auto; width: 100%; } .visite-bas { max-width: 36rem; margin-inline: auto; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .visite-seg.actif span { animation: none; transform: scaleX(1); } }

/* ============ BES-65 D : la banque — le document rapproché, « À classer — jamais seuls » ============ */
.bq-document { margin: .75rem 0; padding: .6rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; max-width: 26rem; }
.bq-document figcaption { font-weight: 700; margin-bottom: .4rem; }
.bq-document-image { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
.bq-document-image img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.bq-document .btn { margin-top: .5rem; }
.at-phrase { margin: 0 0 .5rem; font-weight: 600; }
.bq-ni { margin: .5rem 0; }
.bq-ni summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
/* aucun libellé de bouton coupé en plein mot (« Remboursement de frais ») : à la ligne aux espaces, jamais au milieu d'un mot */
.bq-categories .btn, .at-gestes .btn, .bq-ni .btn { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; max-width: 100%; text-align: center; }

/* ============ BES-65 S : « À faire » — carte réunie, reste du dossier replié, compteurs en une rangée ============ */
.df-groupe { list-style: none; border: 1px solid var(--filet); border-left: 7px solid #8a9097; border-radius: var(--rayon); background: #fff; margin: .55rem 0; padding: .1rem .8rem .3rem; }
.df-groupe.df-n-1 { border-left-color: #c0392b; } .df-groupe.df-n-2 { border-left-color: #d4900a; }
.df-groupe-tete { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; min-height: 48px; padding: .4rem 0; }
.df-groupe-premiere { flex-basis: 100%; font-size: .95rem; color: var(--encre-douce); }
.df-groupe-liste { list-style: none; margin: 0; padding: 0; }
.df-groupe-liste .df-carte { border-left-width: 4px; }
.df-reste { margin: 1rem 0; }
.df-reste > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; }
/* les six compteurs : une rangée qui défile au téléphone ; « Messages à vérifier » est un stock à trier, pas une urgence : jamais en rouge */
@media (max-width: 47.99rem) {
  .df-barre { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: .35rem; scrollbar-width: thin; }
  .df-barre > li { flex: none; scroll-snap-align: start; }
  .df-compte { white-space: nowrap; }
}
.df-compte[data-df-compte="messages_a_verifier"], .df-compte[data-df-compte="messages_a_verifier"] strong { color: var(--encre-douce); border-color: var(--gris); border-style: dashed; background: #fff; }
.df-compte[data-df-compte="messages_a_verifier"]:hover { background: var(--gris-fond); color: var(--anthracite); }

/* ---- BES-66 : l'onglet « Ressources humaines » (gabarit-rh.mjs, public/rh.js) ---- */
.rh-cartes { list-style: none; margin: .75rem 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.rh-carte { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem; background: var(--papier); overflow-wrap: anywhere; }
.rh-carte h4 { margin-top: 0; }
.rh-carte-conseil { border-color: var(--or); box-shadow: inset 0 0 0 1px var(--or); }
.rh-texte p, .rh-reponse p { margin: .4rem 0; max-width: 62ch; }
.rh-verdict { font-weight: 700; margin: .75rem 0; max-width: 62ch; }
.rh-defile { overflow-x: auto; max-width: 100%; }
.rh-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.rh-table-large { min-width: 52rem; }
.rh-table th, .rh-table td { border: 1px solid var(--filet); padding: .4rem .5rem; text-align: left; vertical-align: top; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.rh-table thead th { background: var(--beton); }
.rh-barre { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--filet); }
.rh-drapeaux { margin: .5rem 0; }
.rh-dossier { border: 1px solid var(--filet); padding: .8rem; margin-top: .75rem; overflow-wrap: anywhere; }
@media print { body.rh-impression > *:not(main) { display: none; } body.rh-impression .onglet:not(#o-rh) { display: none; } body.rh-impression #o-rh [data-rh-vue]:not([data-rh-vue="projet"]), body.rh-impression #o-rh .rh-barre, body.rh-impression #o-rh .ch-vues { display: none; } body.rh-impression .rh-dossier { border: 0; } }

/* ---- BES-67 H : l'aide partout (public/aide.js, outils/gabarit-aide.mjs) ---- */
.aide-bouton { margin: .25rem 0 .5rem; }
.aide-panneau { position: sticky; top: 0; z-index: 40; background: var(--papier); border: 2px solid var(--or); border-radius: var(--rayon); padding: .7rem .9rem; margin: .5rem 0; box-shadow: 0 2px 8px rgba(0,0,0,.18); max-width: 100%; }
.aide-panneau p { margin: .3rem 0; max-width: 62ch; }
.aide-cible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 4px; }
.aide-point { display: inline-flex; align-items: center; justify-content: center; width: 2.125rem; height: 2.125rem; min-height: 0; margin-left: .35rem; padding: 0; border: 1px solid var(--or-fonce); border-radius: 50%; background: var(--papier); color: var(--encre); font-weight: 700; cursor: help; vertical-align: middle; }
.aide-point[hidden] { display: none; }
.aide-tip { position: absolute; z-index: 60; background: var(--anthracite); color: #fff; padding: .5rem .65rem; border-radius: var(--rayon); font-size: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.3); overflow-wrap: break-word; }
.mode-emploi { background: var(--papier); border: 1px solid var(--filet); border-top: 4px solid var(--chantier); border-radius: var(--rayon); padding: 1rem; margin: 1rem 0; overflow-wrap: break-word; }
.mode-emploi[hidden] { display: none; }
.me-onglet { border: 1px solid var(--filet); border-radius: var(--rayon); margin: .5rem 0; padding: .25rem .6rem; }
.me-onglet summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.me-ligne[hidden], .me-onglet[hidden] { display: none; }
body.me-ouvert .onglets, body.me-ouvert .onglet-ligne, body.me-ouvert section.onglet, body.me-ouvert .bandeau-reprendre { display: none; }
@media print { body.me-ouvert > *:not(main) { display: none; } .aide-panneau, .aide-point, .aide-tip, .aide-bouton { display: none !important; } body.me-ouvert .mode-emploi { border: 0; } body.me-ouvert [data-me-fermer], body.me-ouvert [data-me-imprimer], body.me-ouvert [data-me-ia], body.me-ouvert #me-recherche, body.me-ouvert label[for="me-recherche"], body.me-ouvert [data-me-voir] { display: none; } }

/* BES-69 : l'onglet « Réseau » — la frise « Mon année » (52 cases : pleine = un chantier est posé, contour = semaine libre ; un point = une marque), les repères ouvrables, l'exemple et son ruban */
.reseau-bandeau { margin: .75rem 0; max-width: 62ch; }
.reseau-phrase { font-weight: 700; margin: .75rem 0; max-width: 62ch; }
.reseau-legende { list-style: none; margin: .5rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; }
.reseau-pastille { display: inline-block; width: .9rem; height: .9rem; border: 2px solid var(--encre); border-radius: 3px; vertical-align: -.1rem; background: var(--papier); }
.reseau-pastille-pleine { background: var(--encre); }
.reseau-pastille-marque { border-radius: 50%; border-color: var(--or-fonce); background: var(--or); }
.reseau-frise { list-style: none; margin: .75rem 0; padding: 0; display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); }
.reseau-maille { margin: 0; min-width: 0; }
.reseau-case { position: relative; width: 100%; min-height: 2.75rem; padding: .2rem; border: 2px solid var(--encre); border-radius: var(--rayon); font: inherit; font-size: .85rem; line-height: 1.1; cursor: pointer; background: var(--papier); color: var(--encre); }
.reseau-pleine { background: var(--encre); color: #fff; }
.reseau-case[aria-pressed="true"] { outline: 3px solid var(--or); outline-offset: 2px; }
.reseau-marquee::after { content: ""; position: absolute; top: 3px; right: 3px; width: .55rem; height: .55rem; border-radius: 50%; background: var(--or); border: 1px solid var(--encre); }
.reseau-semaine { margin: .75rem 0; }
.reseau-feds { margin-top: .5rem; display: grid; gap: .35rem; }
.reseau-fed { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .35rem .6rem; background: var(--beton); font-size: .92rem; overflow-wrap: break-word; }
.reseau-fed > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.reseau-fed-attention { border-color: #8a4b00; }
.reseau-fed-niveau { color: #8a4b00; font-weight: 700; }
.reseau-fed a { overflow-wrap: anywhere; word-break: break-all; }
.reseau-ruban { margin: .75rem 0; padding: .5rem .75rem; border: 2px dashed #8a4b00; background: #fff6e5; color: #6b3a00; font-weight: 700; border-radius: var(--rayon); }
.reseau-marches, .reseau-jalons, .reseau-questions { margin: .75rem 0; padding-left: 1.25rem; display: grid; gap: .75rem; }
.reseau-marches > li, .reseau-jalons > li { margin: 0; }
.reseau-projet { display: inline-block; padding: 0 .4rem; border: 1px solid var(--encre-douce); border-radius: 999px; font-size: .8rem; color: var(--encre-douce); }
.reseau-tableau { overflow-x: auto; max-width: 100%; }
.reseau-entrer { min-width: 0; }
@media (max-width: 700px) {
  .reseau-entrer, .reseau-entrer tbody, .reseau-entrer tr, .reseau-entrer th, .reseau-entrer td { display: block; width: 100%; }
  .reseau-entrer thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reseau-entrer tr { border: 1px solid var(--filet); border-radius: var(--rayon); margin: 0 0 .75rem; background: var(--papier); }
  .reseau-entrer th, .reseau-entrer td { border: 0; padding: .4rem .6rem; }
  .reseau-entrer td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .85rem; color: var(--encre-douce); }
  .reseau-marches, .reseau-jalons, .reseau-questions { padding-left: 1rem; }
}

/* BES-67 P : « Fiches de paie » (bulletin d'étude, étapes du mois, totaux). Le tableau défile dans son cadre .rh-defile : la page ne défile jamais de côté. */
.rh-reglages { display: grid; gap: .5rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: .75rem 0; }
.rh-pas { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .4rem; }
.rh-pas li { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .5rem .7rem; background: var(--papier); }
.rh-bulletin th[scope="row"] { font-weight: 400; min-width: 14rem; }
.rh-bulletin .rh-section th { background: var(--beton); font-weight: 700; }
.rh-table td.rh-n { text-align: right; white-space: nowrap; }
.rh-table td input { width: 100%; min-width: 6rem; }
.rh-totaux { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; margin: .75rem 0; max-width: 40rem; }
.rh-totaux dt, .rh-totaux dd { margin: 0; overflow-wrap: break-word; }
.rh-totaux dd { text-align: right; font-variant-numeric: tabular-nums; }
.rh-totaux .rh-net { font-size: 1.35rem; font-weight: 700; border-top: 2px solid var(--filet); padding-top: .4rem; }

/* BES-67 S : l espace du salarie (page /espace-salarie) et la preuve imprimable de la rubrique Equipe au travail */
.p-salarie .sal-bloc { margin: 1rem 0; }
.p-salarie .sal-bloc h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.p-salarie [data-sal-vue] textarea, .p-salarie [data-sal-vue] input[type=text], .p-salarie [data-sal-vue] select { width: 100%; max-width: 40rem; }
.p-salarie .btn { min-height: 2.75rem; }
.sal-preuve { margin-top: 1rem; }
@media print { .p-cockpit .sal-preuve { display: block !important; } body.p-cockpit > *:not(main) { display: none; } .p-cockpit [data-rh-vue="salarie"] > *:not(.sal-preuve) { display: none; } }
/* BES-69 : les cartes « à plusieurs » : une colonne (le titre au-dessus du texte), sinon le texte se casse lettre à lettre dans une carte étroite */
#o-reseau dl.decl-fiche { display: block; }
#o-reseau dl.decl-fiche dt { margin-top: .6rem; font-weight: 700; }
#o-reseau dl.decl-fiche dd { margin: .15rem 0 0; }
/* BES-67 : sur téléphone, les listes « libellé / valeur » du bulletin et des fiches se lisent l'une sous l'autre (sinon le libellé se casse lettre à lettre dans une colonne étroite) */
@media (max-width: 700px) { #o-rh dl.rh-totaux, #o-rh dl.decl-fiche { display: block; } #o-rh dl.rh-totaux dt, #o-rh dl.decl-fiche dt { margin-top: .6rem; font-weight: 700; } #o-rh dl.rh-totaux dd, #o-rh dl.decl-fiche dd { margin: .15rem 0 0; } }
#o-rh details:not(.repli) > summary { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; cursor: pointer; }
/* WebKit : un tableau défilant ne doit jamais élargir la page (le cadre et ses parents peuvent rétrécir sous la largeur de leur contenu) */
.rh-defile { min-width: 0; max-width: 100%; overflow-x: auto; }
#o-rh [data-rh-vue], #o-rh .tuile { min-width: 0; max-width: 100%; }
/* WebKit : un champ de fichier ou une liste déroulante ne dépasse jamais la largeur de la page */
#o-rh .champ { min-width: 0; max-width: 100%; }
#o-rh .champ input, #o-rh .champ select, #o-rh .champ textarea { max-width: 100%; box-sizing: border-box; }
#o-rh input[type="file"] { max-width: 100%; width: 100%; }
#o-rh select { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }

/* BES-68 M : « Mes modules » (public/modules.js). Un module masqué quitte l'écran sans rien perdre : l'onglet, son panneau et ses cartes portent data-module-masque. L'interrupteur fait 44 px au moins. */
[data-module-masque] { display: none !important; }
.modules-liste { list-style: none; margin: .75rem 0; padding: 0; display: grid; gap: .6rem; }
.modules-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.modules-texte { flex: 1 1 15rem; min-width: 0; }
.modules-texte h4, .modules-texte p { margin: 0 0 .2rem; }
.modules-commande { flex: 0 0 auto; }
.modules-interrupteur { min-height: 44px; min-width: 7.5rem; }
.modules-interrupteur[aria-checked="true"]::before { content: "✓ "; }
.modules-confirme { flex: 1 1 100%; margin: .4rem 0 0; }
.modules-confirme h5 { margin: 0 0 .3rem; }
.modules-mention { font-weight: 600; }
.modules-echeance { margin: .3rem 0; overflow-wrap: anywhere; }

/* BES-68 T : l'onglet « Sous-traitance et groupements » (public/st.js). Aucun rouge pendant la frappe ; un feu est toujours doublé d'un texte. */
#o-st [data-st-vue], #o-st .tuile, #o-st .champ { min-width: 0; max-width: 100%; }
#o-st .champ input, #o-st .champ select, #o-st .champ textarea { max-width: 100%; box-sizing: border-box; width: 100%; min-width: 0; text-overflow: ellipsis; }
#o-st .champ-ligne { margin: .5rem 0; }
#o-st .champ-ligne label { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
#o-st .champ-ligne input[type="checkbox"], #o-st td input[type="checkbox"] { width: 1.4rem; height: 1.4rem; min-height: 0; flex: none; }
#o-st dl.decl-fiche { display: block; }
#o-st dl.decl-fiche dt { margin-top: .6rem; font-weight: 700; }
#o-st dl.decl-fiche dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.st-bandeau { margin: .75rem 0; max-width: 62ch; }
.st-reglages { display: grid; gap: .5rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: .75rem 0; }
.st-questions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.st-compte { margin-left: .35rem; font-weight: 400; font-size: .85em; }
.st-reperes { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.st-puce { display: inline-block; padding: .1rem .5rem; border: 1px solid var(--filet); border-radius: 999px; font-size: .85rem; line-height: 1.3; overflow-wrap: anywhere; background: var(--papier); }
.st-puce-lu { color: var(--vert); border-color: var(--vert); background: var(--vert-fond); }
.st-puce-stop { color: var(--rouge); border-color: var(--rouge); background: var(--rouge-fond); }
.st-puce-relire { color: #8a4b00; border-color: #8a4b00; background: #fff6e5; }
.st-puce-conseil { color: var(--gris); border-color: var(--gris); background: var(--gris-fond); }
.st-ok { border-left: 5px solid var(--vert); background: var(--vert-fond); padding: .6rem .8rem; border-radius: 4px; }
.st-alerte { border-left: 5px solid #8a4b00; background: #fff6e5; padding: .6rem .8rem; border-radius: 4px; }
.st-stop { border-left: 5px solid var(--rouge); background: var(--rouge-fond); padding: .6rem .8rem; border-radius: 4px; }
.st-carte[data-feu="rouge"], .st-contrat[data-feu="rouge"] { border-left: 6px solid var(--rouge); }
.st-carte[data-feu="ambre"], .st-contrat[data-feu="ambre"] { border-left: 6px solid #8a4b00; }
.st-carte[data-feu="vert"], .st-contrat[data-feu="vert"] { border-left: 6px solid var(--vert); }
.st-lignes, .st-pieces { list-style: none; padding-left: 0; display: grid; gap: .35rem; }
.st-peut { font-weight: 700; }
.st-liste-ligne { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem .75rem; }
.st-liste-ligne > div { flex: 1 1 18rem; min-width: 0; }
.st-piece { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .5rem .7rem; background: var(--papier); }
.st-fiche { margin-top: .6rem; }
.st-fiche > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.st-modele { margin: .6rem 0; }
.st-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .92rem; background: var(--beton); padding: .6rem .8rem; border-radius: var(--rayon); max-width: 100%; margin: .5rem 0; }
.st-regle-nue { margin: .5rem 0; }
.st-table { min-width: 0; }
@media (max-width: 700px) {
  .st-table-cartes, .st-table-cartes tbody, .st-table-cartes tr, .st-table-cartes th, .st-table-cartes td { display: block; width: 100%; }
  .st-table-cartes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .st-table-cartes tr { border: 1px solid var(--filet); border-radius: var(--rayon); margin: 0 0 .75rem; background: var(--papier); }
  .st-table-cartes th, .st-table-cartes td { border: 0; padding: .4rem .6rem; }
  .st-table-cartes td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .85rem; color: var(--encre-douce); }
}
#o-st .st-case { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
#o-st details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
#o-st .champ select { overflow: hidden; white-space: nowrap; }
/* WebKit : le texte d'une option choisie, plus long que la colonne, élargissait la page ; sans l'apparence native, la liste se coupe par des points de suspension */
#o-st .champ select { -webkit-appearance: none; appearance: none; text-overflow: ellipsis; padding-right: 2rem; background-color: var(--papier); background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 1.1rem) 55%, calc(100% - .8rem) 55%; background-size: .3rem .3rem, .3rem .3rem; background-repeat: no-repeat; }
#o-st .st-table td .st-puce { white-space: nowrap; overflow-wrap: normal; }
/* BES-68 N : « Que veux-tu faire ? », « Un mot sur l'outil », les besoins qui remontent */
.besoins-demande { margin: .5rem 0 1rem; }
.besoins-reponse { margin-top: .5rem; }
.besoins-reponse .rangee, .besoins-mot .rangee { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.besoins-reponse button, .besoins-mot button, .besoins-liste button { min-height: 44px; }
.besoins-mot { margin: 0 0 1rem; max-width: 40rem; }
.besoins-mot textarea { width: 100%; }
/* ---- BES-72 § A : l Aide de chaque écran, toujours en haut à droite du contenu ---- */
section.onglet { position: relative; padding-top: 3.25rem; }   /* la rangée de l'Aide : toujours le haut de l'onglet, quoi qu'on pose après lui (la carte « Un mot sur l'outil » vient s'y mettre en premier) */
.aide-ecran-point { position: absolute; top: 0; right: 0; margin: 0; min-height: 44px; min-width: 44px; font-weight: 700; border: 2px solid var(--or-fonce); }
.aide-ecran-panneau { position: absolute; top: 3.25rem; left: 0; right: 0; z-index: 30; max-height: 80vh; overflow: auto; background: var(--papier); border: 2px solid var(--or); border-radius: var(--rayon); padding: .8rem 1rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); overflow-wrap: break-word; }
.aide-ecran-panneau[hidden] { display: none; }
.aide-ecran-panneau h3 { margin: 0 0 .5rem; }
.aide-ecran-panneau h4 { margin: .8rem 0 .2rem; }
.aide-ecran-panneau p, .aide-ecran-panneau li { max-width: 62ch; }
.aide-ecran-source { font-style: italic; }
@media print { .aide-ecran-point, .aide-ecran-panneau { display: none !important; } }
/* ---- BES-72 § G : Les assistants ---- */
.assistant-dl { margin: .4rem 0 0; }
.assistant-dl dt { font-weight: 700; margin-top: .6rem; }
.assistant-dl dd { margin: .1rem 0 0; max-width: 62ch; }
.marque-ia { display: inline-block; padding: .1rem .5rem; border: 2px solid var(--or-fonce); border-radius: var(--rayon); background: var(--papier); }
.assistant-dl ul { margin: .1rem 0 0; padding-left: 1.2rem; }
/* BES-72 § S11 : la liste de mes bulletins, aérée */
.sal-bulletin { margin: .9rem 0 1.1rem; }
.sal-bulletin p { margin: 0 0 .4rem; }
.sal-bulletin .aide { display: block; margin: .35rem 0 0; }
.sal-bulletin button[disabled] { opacity: .75; cursor: not-allowed; }
