/* Plateforme Solène-R — charte RE2020-enligne.fr */
:root {
  --re-green-primary: #7AE386;
  --re-green-mid: #77B432;
  --re-green-dark: #29A932;
  --re-green-ink: #1E7F26;     /* vert lisible pour boutons / texte sur blanc */
  --re-green-pale: #9DEAA6;
  --re-green-wash: #EEFBF0;
  --re-blue-sky: #84CDF0;
  --re-blue-accent: #04B2F1;
  --re-blue-ink: #0277A6;
  --re-blue-wash: #EAF6FC;
  --re-grey-text: #595959;
  --re-grey-mid: #707070;
  --re-grey-band: #404040;
  --re-grey-light: #DEE5ED;
  --re-grey-wash: #F4F6F9;
  --re-red: #EA0059;
  --re-orange: #D97706;
  --re-orange-wash: #FFF4E0;
  --re-white: #FFFFFF;
  --re-font: 'Helvetica Neue', Arial, sans-serif;
  --re-radius: 10px;
  --re-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--re-font); color: var(--re-grey-text); background: var(--re-grey-wash);
  font-size: 14.5px; line-height: 1.5;
}
a { color: var(--re-blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--re-grey-band); margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
small, .muted { color: var(--re-grey-mid); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Structure */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.nav {
  background: var(--re-grey-band); color: #fff; padding: 18px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.nav .logo { font-weight: 800; font-size: 1.1rem; padding: 4px 10px 16px; color: #fff; letter-spacing: .01em; }
.nav .logo span { color: var(--re-green-primary); }
.nav .logo small { display: block; font-weight: 400; font-size: .72rem; color: #bbb; }
.nav a {
  color: #e6e6e6; padding: 8px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px;
  font-size: .92rem;
}
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.actif { background: var(--re-green-primary); color: var(--re-grey-band); font-weight: 700; }
.nav .sep { border-top: 1px solid rgba(255,255,255,.12); margin: 10px 4px; }
.nav .badge { margin-left: auto; background: var(--re-red); color: #fff; }
.nav .moi { margin-top: auto; font-size: .82rem; color: #ccc; padding: 10px; }
.nav .moi form { display: inline; }
.nav .moi button { background: none; border: 0; color: var(--re-blue-sky); cursor: pointer; padding: 0; font: inherit; }

main { padding: 24px 28px 48px; min-width: 0; }
.entete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.entete h1 { margin: 0; }
.entete .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.grille { display: grid; gap: 16px; }
.grille > * { min-width: 0; }  /* un tableau large défile dans sa carte au lieu de déborder sur la colonne voisine */
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .nav .moi { margin-top: 0; }
  main { padding: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

/* ---------- Composants */
.carte {
  background: #fff; border: 1px solid var(--re-grey-light); border-radius: var(--re-radius);
  box-shadow: var(--re-shadow); padding: 18px 20px;
}
.carte > h2:first-child, .carte > h3:first-child { margin-top: 0; }
.carte-titre { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.carte-titre h2, .carte-titre h3 { margin: 0; }
.carte-titre .actions { margin-left: auto; }
.bandeau {
  display: inline-block; background: var(--re-green-primary); color: var(--re-grey-band); font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; padding: 6px 14px; border-radius: 6px; font-size: .85rem;
}
.bandeau-gris { background: var(--re-grey-band); color: #fff; }

.kpi { padding: 14px 16px; }
.kpi .val { font-size: 1.7rem; font-weight: 800; color: var(--re-grey-band); line-height: 1.1; }
.kpi .lib { font-size: .82rem; color: var(--re-grey-mid); }
.kpi.alerte .val { color: var(--re-red); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--re-grey-light); background: #fff;
  color: var(--re-grey-band); padding: 7px 13px; border-radius: 7px; font: inherit; font-weight: 600;
  cursor: pointer; font-size: .88rem; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: #b9c4d0; background: var(--re-grey-wash); }
.btn-primaire { background: var(--re-green-ink); border-color: var(--re-green-ink); color: #fff; }
.btn-primaire:hover { background: #17661e; border-color: #17661e; }
.btn-bleu { background: var(--re-blue-ink); border-color: var(--re-blue-ink); color: #fff; }
.btn-bleu:hover { background: #015f85; }
.btn-danger { color: var(--re-red); }
.btn-petit { padding: 3px 9px; font-size: .8rem; }
.btn-lien { background: none; border: 0; color: var(--re-blue-ink); padding: 0; cursor: pointer; font: inherit; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--re-grey-light); color: var(--re-grey-band); white-space: nowrap;
}
.badge-vert { background: var(--re-green-wash); color: var(--re-green-ink); }
.badge-bleu { background: var(--re-blue-wash); color: var(--re-blue-ink); }
.badge-orange { background: var(--re-orange-wash); color: #92400E; }
.badge-rouge { background: #FDE6EF; color: #B00045; }
.badge-mhh { background: #F3E8FF; color: #6B21A8; }

/* statuts */
.st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.st-devis_envoye { background: #E8EEF5; color: #334155; }
.st-devis_a_faire { background: #FFF7E6; color: #92400E; }
.st-attente_elements { background: var(--re-orange-wash); color: #92400E; }
.st-etude_en_cours { background: #E0F2FE; color: #075985; }
.st-etude_terminee { background: #FDE6EF; color: #B00045; }
.st-sans_suite { background: #F1F5F9; color: #94A3B8; text-decoration: line-through; }
.st-a_envoyer { background: var(--p-mauve); color: var(--p-mauve-t); }
.st-archive { background: var(--p-gris); color: var(--discret); }
.st-livree { background: var(--re-green-wash); color: var(--re-green-ink); }

.alerte {
  border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; border: 1px solid; font-size: .9rem;
}
.alerte-info { background: var(--re-blue-wash); border-color: #bfe3f5; color: #064e6e; }
.alerte-ok { background: var(--re-green-wash); border-color: #c4eecb; color: #14532d; }
.alerte-warn { background: var(--re-orange-wash); border-color: #f6d9a8; color: #7c3d06; }
.alerte-err { background: #FDE6EF; border-color: #f7c1d5; color: #8a0037; }
.messages { list-style: none; padding: 0; margin: 0 0 14px; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--re-grey-light); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--re-grey-mid); font-weight: 700; background: var(--re-grey-wash); }
tbody tr:hover { background: #fafcfe; }
td.r, th.r { text-align: right; }
.table-wrap { overflow-x: auto; }
tr.inactif td:first-child { box-shadow: inset 3px 0 0 var(--re-orange); }

/* formulaires */
form p { margin: 0 0 12px; }
label { display: block; font-weight: 600; font-size: .84rem; color: var(--re-grey-band); margin-bottom: 3px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password],
input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cdd6e0; border-radius: 7px; font: inherit; color: var(--re-grey-band);
  background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--re-blue-sky); outline-offset: 0; border-color: var(--re-blue-accent); }
input[type=checkbox], input[type=radio] { width: auto; margin-right: 6px; }
td select { min-width: 110px; }
td input[type=date] { min-width: 140px; }
td input[type=number] { min-width: 90px; }
.helptext { display: block; font-size: .78rem; color: var(--re-grey-mid); margin-top: 2px; }
.errorlist { color: var(--re-red); list-style: none; padding: 0; margin: 2px 0; font-size: .82rem; }
.form-ligne { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.form-ligne p { margin: 0; }
.choix-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.choix-inline label { font-weight: 400; display: inline-flex; align-items: center; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 14px; }
.filtres > * { flex: 0 1 180px; }
.filtres input[type=search] { flex-basis: 280px; }

/* onglets */
.onglets { display: flex; gap: 2px; border-bottom: 2px solid var(--re-grey-light); margin-bottom: 16px; flex-wrap: wrap; }
.onglets a {
  padding: 8px 14px; color: var(--re-grey-mid); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.onglets a.actif { color: var(--re-grey-band); border-bottom-color: var(--re-green-dark); }
.onglets a:hover { text-decoration: none; color: var(--re-grey-band); }
.onglets .compte { font-size: .75rem; background: var(--re-grey-light); border-radius: 999px; padding: 0 6px; margin-left: 4px; }

/* frise statuts */
.frise { display: flex; gap: 0; margin: 4px 0 6px; flex-wrap: wrap; }
.frise form { display: contents; }
.frise button {
  flex: 1 1 0; min-width: 110px; border: 0; background: var(--re-grey-light); color: var(--re-grey-mid);
  padding: 8px 6px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
  margin-right: -6px;
}
.frise button:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.frise button.fait { background: var(--re-green-pale); color: var(--re-grey-band); }
.frise button.courant { background: var(--re-green-ink); color: #fff; }
.frise button:hover { filter: brightness(.96); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.colonne { background: #E9EEF4; border-radius: 10px; padding: 10px; min-height: 300px; }
.colonne h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; display: flex; justify-content: space-between; }
.colonne.survol { outline: 2px dashed var(--re-green-dark); background: var(--re-green-wash); }
.ticket {
  background: #fff; border-radius: 8px; padding: 10px 11px; margin-bottom: 8px; box-shadow: var(--re-shadow);
  border-left: 4px solid var(--re-grey-light); cursor: grab; font-size: .85rem;
}
.ticket:active { cursor: grabbing; }
.ticket.mhh { border-left-color: #A855F7; }
.ticket.inactif { border-left-color: var(--re-orange); }
.ticket .t-num { font-size: .74rem; color: var(--re-grey-mid); }
.ticket .t-nom { font-weight: 700; color: var(--re-grey-band); display: block; }
.ticket .t-meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

/* tableau « Aujourd'hui » (colonnes façon Trello) */
.tableau-jour { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); }
.tableau-jour .colonne { border-top: 5px solid var(--re-grey-light); max-height: calc(100vh - 150px); overflow-y: auto; }
.tableau-jour .ticket { display: block; color: inherit; cursor: pointer; }
.tableau-jour .ticket:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-1px); }
.tableau-jour .ticket small { display: block; margin-top: 2px; color: var(--re-grey-mid); }
.col-vide { color: var(--re-grey-mid); font-style: italic; font-size: .82rem; text-align: center; padding: 14px 4px; margin: 0; }
.col-rouge { border-top-color: var(--re-red) !important; }
.col-orange { border-top-color: var(--re-orange) !important; }
.col-gris { border-top-color: #94A3B8 !important; }
.col-jaune { border-top-color: #EAB308 !important; }
.col-bleu { border-top-color: var(--re-blue-accent) !important; }
.col-rose { border-top-color: #DB2777 !important; }

/* tableau de bord : 5 colonnes, études écrites en clair */
.tdb { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.tdb-col { background: #EEF2F6; border-radius: 10px; padding: 8px; min-height: 260px; }
.tdb-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--re-grey-band); margin: 2px 2px 10px; display: flex; justify-content: space-between; gap: 6px; }
.tdb-col h2 span { background: #fff; border-radius: 999px; padding: 0 8px; font-size: .78rem; color: var(--re-grey-mid); }
.tdb-carte { display: block; background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; color: var(--re-grey-text); box-shadow: 0 1px 3px rgba(0,0,0,.07); font-size: .84rem; line-height: 1.4; }
.tdb-carte:hover { text-decoration: none; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.tdb-carte b { display: block; color: var(--re-grey-band); font-size: .92rem; }
.tdb-mhh { border-left: 3px solid #A78BFA; }
.tdb-info { display: block; color: var(--re-grey-mid); font-size: .78rem; }
.tdb-etudes { list-style: none; margin: 8px 0 4px; padding: 6px 0 0; border-top: 1px solid var(--re-grey-light); }
.tdb-etudes li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; white-space: nowrap; font-size: .8rem; }
.tdb-etudes li span:first-child { color: var(--re-grey-band); font-weight: 600; }
.et-cours { color: #0369A1; font-weight: 600; }
.et-ok { color: #15803D; font-weight: 600; }
.et-ok::before { content: "✓ "; }
.et-attente { color: #B45309; font-weight: 600; }
.et-neutre { color: var(--re-grey-mid); }
.tdb-proposer { display: block; margin-top: 4px; font-size: .78rem; color: #6D28D9; }
.tdb-note { display: block; margin-top: 6px; font-size: .78rem; color: var(--re-grey-mid); }
.tdb-urgent { color: var(--re-red); font-weight: 700; }
.tdb-pied { display: block; margin-top: 6px; font-size: .72rem; color: #9AA5B1; }
.tdb-vide { text-align: center; color: #9AA5B1; font-style: italic; font-size: .82rem; margin: 18px 0; }
.surveiller { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; font-size: .88rem; }
.surveiller-titre { font-weight: 700; color: var(--re-grey-mid); text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; padding-top: 3px; }
.surveiller details { min-width: 240px; }
.surveiller summary { cursor: pointer; color: var(--re-grey-band); }
.surveiller summary b { background: var(--re-grey-light); border-radius: 999px; padding: 0 7px; font-size: .78rem; margin-left: 4px; }
.surveiller ul { margin: 6px 0 0; padding-left: 18px; }
.surveiller li { margin: 3px 0; }
/* 3 études RE2020 : pastilles E / C / V */
.pastilles { display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.pastille {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: .68rem; font-weight: 800; border: 2px solid transparent; cursor: help;
}
.p-absent { background: #F1F5F9; color: #CBD5E1; border-color: #E2E8F0; }
.p-manquant { background: #fff; color: var(--re-red); border: 2px dashed var(--re-red); }
.p-au_devis { background: #fff; color: var(--re-grey-mid); border-color: #94A3B8; }
.p-commande { background: #fff; color: var(--re-blue-ink); border-color: var(--re-blue-accent); }
.p-en_cours { background: var(--re-blue-accent); color: #fff; }
.p-termine { background: var(--re-green-dark); color: #fff; }
.legende-pastilles { display: flex; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: var(--re-grey-mid); align-items: center; }
.legende-pastilles .pastille { width: 16px; height: 16px; font-size: .6rem; margin-right: 3px; }

.etudes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 800px) { .etudes { grid-template-columns: 1fr; } }
.etude { border: 1px solid var(--re-grey-light); border-radius: 9px; padding: 12px 14px; border-top: 5px solid #CBD5E1; background: #fff; }
.etude h3 { margin: 0 0 4px; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.etude .etat { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.etude p { margin: 4px 0 0; font-size: .82rem; }
.etude.e-termine { border-top-color: var(--re-green-dark); }
.etude.e-termine .etat { color: var(--re-green-ink); }
.etude.e-en_cours { border-top-color: var(--re-blue-accent); }
.etude.e-en_cours .etat { color: var(--re-blue-ink); }
.etude.e-commande { border-top-color: var(--re-blue-sky); }
.etude.e-commande .etat { color: var(--re-blue-ink); }
.etude.e-au_devis .etat { color: var(--re-grey-mid); }
.etude.e-manquant { border-top-color: var(--re-red); border-style: dashed; background: #FFF7FA; }
.etude.e-manquant .etat { color: var(--re-red); }
.etude.e-absent { opacity: .6; }
.commandes-frise { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.commandes-frise li { background: var(--re-grey-wash); border: 1px solid var(--re-grey-light); border-radius: 8px; padding: 6px 10px; font-size: .82rem; }
.commandes-frise li b { color: var(--re-grey-band); }

/* listes */
.liste-simple { list-style: none; margin: 0; padding: 0; }
.liste-simple li { padding: 8px 0; border-bottom: 1px solid var(--re-grey-light); display: flex; gap: 10px; align-items: baseline; }
.liste-simple li:last-child { border-bottom: 0; }
.liste-simple .droite { margin-left: auto; text-align: right; white-space: nowrap; }
.vide { color: var(--re-grey-mid); font-style: italic; padding: 8px 0; }

.fil { list-style: none; padding: 0; margin: 0; }
.fil li { padding: 8px 0 8px 18px; border-left: 2px solid var(--re-grey-light); position: relative; font-size: .88rem; }
.fil li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--re-grey-light); }
.fil li.relance::before { background: var(--re-orange); }
.fil li.statut::before { background: var(--re-green-dark); }
.fil li.actualisation::before { background: var(--re-blue-accent); }
.fil li.mail::before { background: var(--re-blue-sky); }
.fil .quand { font-size: .76rem; color: var(--re-grey-mid); }

dl.fiche { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; font-size: .9rem; }
dl.fiche dt { color: var(--re-grey-mid); }
dl.fiche dd { margin: 0; color: var(--re-grey-band); overflow-wrap: anywhere; }

.saisie-rapide { background: var(--re-green-wash); border-color: #c4eecb; }
.mail-apercu { white-space: pre-wrap; font-family: inherit; background: var(--re-grey-wash); border: 1px solid var(--re-grey-light); border-radius: 8px; padding: 14px; font-size: .9rem; margin: 0; }
.progress { height: 8px; background: var(--re-grey-light); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--re-green-dark); }

.connexion { max-width: 380px; margin: 10vh auto; }
.connexion .logo { font-weight: 800; font-size: 1.4rem; color: var(--re-grey-band); text-align: center; margin-bottom: 18px; }
.connexion .logo span { color: var(--re-green-dark); }

/* portail client */
.portail-haut { background: var(--re-green-primary); padding: 14px 24px; display: flex; align-items: center; gap: 16px; }
.portail-haut .logo { font-weight: 800; color: var(--re-grey-band); font-size: 1.15rem; }
.portail-haut .logo small { font-weight: 400; }
.portail-haut .droite { margin-left: auto; font-size: .88rem; color: var(--re-grey-band); }
.portail-haut form { display: inline; }
.portail-haut button { background: none; border: 0; color: var(--re-grey-band); text-decoration: underline; cursor: pointer; font: inherit; }
.portail-main { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
.pied { text-align: center; font-size: .8rem; color: var(--re-grey-mid); padding: 20px; }
.pied strong { color: var(--re-green-dark); }

/* impression (devis) */
.papier { background: #fff; max-width: 820px; margin: 0 auto; padding: 36px 40px; box-shadow: var(--re-shadow); }
@media print {
  .app { display: block; }
  .nav, .entete .actions, .no-print, .messages { display: none !important; }
  main { padding: 0; }
  body { background: #fff; }
  .papier { box-shadow: none; padding: 0; max-width: none; }
}

/* ================= Saisie rapide « + Demande » ================= */
.nav-saisie { margin: 0 4px 10px; padding: 10px; border-radius: 8px; border: 0; background: var(--re-green-primary); color: var(--re-grey-band); font: inherit; font-weight: 800; cursor: pointer; }
.nav-saisie:hover { filter: brightness(1.05); }
dialog.saisie { border: 0; border-radius: 16px; padding: 0; width: min(620px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--re-grey-text); }
dialog.saisie::backdrop { background: rgba(30, 41, 59, .45); }
.saisie form { padding: 20px 24px 18px; }
.saisie-tete { display: flex; align-items: center; margin-bottom: 12px; }
.saisie-tete h2 { margin: 0; font-size: 1.25rem; }
.saisie-fermer { margin-left: auto; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--re-grey-mid); }
.saisie-canal, .saisie-nature { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.saisie-canal label, .saisie-nature label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; border: 1px solid var(--re-grey-light); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.saisie-canal label:has(input:checked), .saisie-nature label:has(input:checked) { background: var(--re-green-wash); border-color: #9ad8a3; color: var(--re-green-ink); }
.saisie-canal input, .saisie-nature input { margin: 0; }
.saisie-nature label { font-size: .95rem; padding: 8px 16px; }
.saisie-recherche { position: relative; margin-bottom: 10px; }
.saisie-suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 4px 0 0; padding: 4px; background: #fff; border: 1px solid var(--re-grey-light); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.saisie-suggestions li { padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.saisie-suggestions li:hover { background: var(--re-grey-wash); }
.saisie-suggestions b { display: block; color: var(--re-grey-band); }
.saisie-suggestions small { color: var(--re-grey-mid); }
.saisie-reconnu { margin: 6px 0 0; font-size: .84rem; color: var(--re-green-ink); font-weight: 600; }
.saisie-pied { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.saisie-pied .muted { margin-right: auto; font-size: .84rem; }

.atraiter { list-style: none; margin: 0; padding: 0; }
.atraiter > li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--re-grey-light); }
.atraiter > li:last-child { border-bottom: 0; }
.at-qui { flex: 1; min-width: 0; display: grid; gap: 2px; }
.at-qui b { color: var(--re-grey-band); font-size: .98rem; }
.at-qui small { color: var(--re-grey-mid); }
.at-note { color: var(--re-grey-text) !important; background: var(--re-grey-wash); border-radius: 6px; padding: 4px 8px; margin-top: 4px; }
.at-traite { color: var(--re-green-ink) !important; }
.at-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.at-repondu summary { list-style: none; }
.at-repondu summary::-webkit-details-marker { display: none; }
.at-repondu[open] form { display: flex; gap: 6px; margin-top: 6px; }
.at-repondu input[type=text] { min-width: 240px; }

/* ================= Accueil (vue d'ensemble) ================= */
.acc { max-width: 1400px; }
.acc-entete { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.acc-entete h1 { font-size: 2rem; font-weight: 800; margin: 0; color: var(--re-grey-band); letter-spacing: -.01em; }
.acc-entete p { margin: 2px 0 0; color: var(--re-grey-mid); }
.acc-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.acc-actions .btn { padding: 10px 16px; border-radius: 10px; }
.acc-portee { margin: 0 0 18px; font-size: .82rem; color: #9AA5B1; }

.acc-resume { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .acc-resume { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-carte {
  display: block; background: #fff; border: 1px solid #E6EBF0; border-radius: 14px; padding: 18px 20px 20px;
  color: var(--re-grey-text); min-height: 128px; transition: box-shadow .15s, transform .15s;
}
.acc-carte:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-1px); }
.acc-carte strong { display: block; font-size: 1.5rem; color: var(--re-grey-band); margin: 10px 0 4px; font-weight: 800; }
.acc-sous { font-size: .86rem; color: var(--re-grey-mid); }
.acc-retard { color: var(--re-red); }

.acc-etiquette { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.acc-etiquette svg, .acc-rapide svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.et-vert { color: #2F8A3A; } .et-bleu { color: #0277A6; } .et-ocre { color: #A16207; } .et-rose { color: #B4235A; }

.acc-corps { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .acc-corps { grid-template-columns: 1fr; } }
.acc-cote { display: grid; gap: 18px; }
.acc-bloc { background: #fff; border: 1px solid #E6EBF0; border-radius: 14px; padding: 20px 22px; }
.acc-bloc h2 { font-size: 1.2rem; font-weight: 800; color: var(--re-grey-band); margin: 0 0 14px; }
.acc-bloc-titre { display: flex; align-items: baseline; justify-content: space-between; }
.acc-bloc-titre a { font-size: .86rem; font-weight: 600; color: #2F8A3A; }
.acc-bloc-vert { background: #F1FAF2; border-color: #DCEFDF; }
.acc-bloc-rose { background: #FDF3F6; border-color: #F6DCE5; }
.acc-texte { margin: 10px 0 0; color: var(--re-grey-band); line-height: 1.55; }
.acc-petit { font-size: .84rem; color: var(--re-grey-mid); }

.acc-liste { list-style: none; margin: 0; padding: 0; }
.acc-liste li + li { border-top: 1px solid #EEF1F4; }
.acc-liste a { display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 4px; color: inherit; }
.acc-liste a:hover { text-decoration: none; background: #FAFBFC; }
.acc-ligne b { display: block; color: var(--re-grey-band); font-weight: 600; }
.acc-ligne small { color: var(--re-grey-mid); }
.acc-date { font-weight: 700; color: var(--re-grey-band); font-size: .9rem; white-space: nowrap; }
.acc-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-align: center; }
.pill-energie { background: #E3F5E6; color: #23702D; }
.pill-carbone { background: #ECE9E2; color: #5B5240; }
.pill-vmc { background: #E2F2FB; color: #0A6390; }
.acc-vide { color: var(--re-grey-mid); font-style: italic; padding: 14px 4px; }

.acc-rapide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-rapide a { display: flex; flex-direction: column; gap: 22px; padding: 16px 18px; border-radius: 12px; font-weight: 700; color: var(--re-grey-band); }
.acc-rapide a:hover { text-decoration: none; filter: brightness(.97); }
.r-vert { background: #E8F6EA; } .r-bleu { background: #E6F2FA; } .r-ocre { background: #F7EFDC; } .r-rose { background: #F8E8EE; }
.r-vert svg { color: #2F8A3A; } .r-bleu svg { color: #0277A6; } .r-ocre svg { color: #A16207; } .r-rose svg { color: #B4235A; }
.acc-surveiller { list-style: none; margin: 10px 0 0; padding: 0; }
.acc-surveiller li { padding: 4px 0; }
.acc-surveiller a { color: var(--re-grey-band); }
@media (max-width: 700px) { .acc-liste a { grid-template-columns: 1fr; gap: 6px; } }
/* ================= Pages de travail : liste + fiche à droite ================= */
.badge-doux { background: rgba(255,255,255,.18) !important; color: #e6e6e6 !important; }
.nav a.actif .badge-doux { background: rgba(0,0,0,.12) !important; color: var(--re-grey-band) !important; }
.travail { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .travail { grid-template-columns: 1fr; } }
.tr-liste { list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid #E6EBF0; border-radius: 14px; position: sticky; top: 16px; max-height: calc(100vh - 140px); overflow-y: auto; }
.tr-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.tr-ligne + .tr-ligne { margin-top: 2px; }
.tr-ligne:hover { background: var(--re-grey-wash); }
.tr-ligne:focus { outline: 2px solid var(--re-blue-sky); outline-offset: -2px; }
.tr-ligne.actif { background: var(--re-green-wash); border-color: #c4eecb; }
.tr-ligne.actif::after { content: "2ᵉ clic : ouvrir le dossier"; grid-column: 1 / -1; font-size: .72rem; color: var(--re-green-ink); }
.tr-titre { font-weight: 700; color: var(--re-grey-band); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-depuis { font-size: .78rem; color: var(--re-grey-mid); white-space: nowrap; }
.tr-info { font-size: .84rem; color: var(--re-grey-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-badge { justify-self: end; font-size: .72rem; color: var(--re-blue-ink); background: var(--re-blue-wash); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.tr-vide { padding: 30px 12px; text-align: center; color: var(--re-grey-mid); font-style: italic; }
.tr-panneau { background: #fff; border: 1px solid #E6EBF0; border-radius: 14px; padding: 20px 24px; min-height: 320px; transition: opacity .15s; }
.tr-panneau.charge { opacity: .5; }
.tr-invite { text-align: center; padding: 70px 20px; color: var(--re-grey-band); }
.tf-entete { display: flex; gap: 12px; align-items: flex-start; }
.tf-entete h2 { margin: 0; font-size: 1.35rem; }
.tf-entete p { margin: 2px 0 0; }
.tf-entete .btn { margin-left: auto; }
.tf-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0; font-size: .88rem; }
.tf-contact dt { color: var(--re-grey-mid); }
.tf-contact dd { margin: 0 0 0 -12px; color: var(--re-grey-band); }
.tf-note { background: #FFFBEB; border-radius: 8px; padding: 8px 12px; font-size: .88rem; }
.tf-bloc { border-top: 1px solid #EEF1F4; padding: 14px 0 4px; margin-top: 10px; }
.tf-bloc h3 { font-size: .95rem; margin: 0 0 10px; }
.tf-message { background: var(--re-grey-wash); border-radius: 8px; padding: 10px 12px; }
.tf-table { width: 100%; font-size: .9rem; }
.tf-table td { padding: 5px 0; border-bottom: 1px solid #EEF1F4; }
.tf-total td { font-weight: 800; color: var(--re-grey-band); border-bottom: 0; }
.tf-liens { font-size: .86rem; margin: 6px 0 0; }
.tf-alerte { color: #92400E; font-size: .84rem; margin: 4px 0; }
.tf-boutons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.tf-actions { border-top: 1px solid #EEF1F4; margin-top: 14px; padding-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tf-repondu { display: flex; gap: 8px; flex: 1 1 100%; }
.tf-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tf-pieces li { padding-left: 26px; position: relative; }
.tf-pieces li::before { position: absolute; left: 0; font-weight: 800; }
.tf-pieces li.ok::before { content: "✓"; color: #15803D; }
.tf-pieces li.ko::before { content: "✗"; color: var(--re-red); }
.tf-pieces li.ko { color: var(--re-grey-band); font-weight: 600; }
.tf-pieces small { color: var(--re-grey-mid); font-weight: 400; margin-left: 6px; }
.tf-depot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tf-depot select { width: auto; }
.tf-etudes { list-style: none; margin: 0; padding: 0; }
.tf-etudes li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEF1F4; }
.tf-etude-nom { font-weight: 700; color: var(--re-grey-band); min-width: 120px; }
.tf-etudes form { margin-left: auto; }
.tf-docs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
/* =====================================================================
   THÈME PASTEL « RE2020 SOLENE-R » — fond crème, menu clair, cartes blanches,
   couleurs douces. Ce bloc vient en dernier : il harmonise tout le reste.
   ===================================================================== */
:root {
  --fond: #F6F3EC;          /* page */
  --fond-menu: #EFEBE2;     /* barre latérale */
  --carte: #FFFFFF;
  --trait: #E8E2D6;         /* bordures */
  --trait-doux: #F0EBE1;
  --encre: #36332D;         /* titres */
  --texte: #4D4942;
  --discret: #8C867B;
  --vert: #3E7A5E;          /* action principale (vert sauge foncé) */
  --vert-fonce: #31634B;
  /* pastels : fond / texte */
  --p-vert: #E2EFE5;   --p-vert-t: #2F6B4B;
  --p-bleu: #E1EAF4;   --p-bleu-t: #345C86;
  --p-ocre: #F5E9D2;   --p-ocre-t: #84581A;
  --p-rose: #F5E2E4;   --p-rose-t: #9A3D4A;
  --p-mauve: #E8E3F2;  --p-mauve-t: #5B4B8A;
  --p-gris: #ECE8E0;   --p-gris-t: #6B665D;
  --titre-font: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  /* les anciennes variables pointent vers la nouvelle palette */
  --re-grey-wash: var(--fond); --re-grey-light: var(--trait); --re-grey-band: var(--encre);
  --re-grey-text: var(--texte); --re-grey-mid: var(--discret);
  --re-green-wash: var(--p-vert); --re-green-ink: var(--vert); --re-blue-wash: var(--p-bleu); --re-blue-ink: var(--p-bleu-t);
  --re-orange-wash: var(--p-ocre); --re-shadow: 0 1px 2px rgba(60, 50, 30, .04);
}
body { background: var(--fond); color: var(--texte); }
h1, h2 { font-family: var(--titre-font); font-weight: 700; color: var(--encre); letter-spacing: -.005em; }
h1 { font-size: 1.75rem; }
a { color: var(--p-bleu-t); }
.icone { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- menu latéral clair */
.nav { background: var(--fond-menu); color: var(--texte); border-right: 1px solid var(--trait); gap: 2px; }
.nav .logo { display: flex; gap: 10px; align-items: center; color: var(--encre); font-family: var(--titre-font); font-size: 1.12rem; padding: 4px 8px 14px; }
.nav .logo small { display: block; font-family: var(--re-font); font-size: .72rem; color: var(--discret); font-weight: 400; }
.logo-pastille { width: 34px; height: 34px; border-radius: 10px; background: var(--vert); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--re-font); font-weight: 800; }
.logo-marque { color: var(--vert); }
.moi-carte { display: flex; gap: 10px; align-items: center; background: #E6E1D6; border-radius: 12px; padding: 9px 12px; margin: 0 2px 12px; }
.moi-carte b { display: block; color: var(--encre); font-size: .9rem; }
.moi-carte small { display: block; color: var(--discret); font-size: .75rem; }
.moi-initiales { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--vert); font-weight: 800; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }
.nav a { color: var(--texte); padding: 9px 12px; border-radius: 10px; gap: 10px; font-size: .92rem; }
.nav a .icone { color: var(--discret); }
.nav a:hover { background: #E6E1D6; text-decoration: none; }
.nav a.actif { background: var(--p-vert); color: var(--p-vert-t); font-weight: 700; }
.nav a.actif .icone { color: var(--p-vert-t); }
.nav .badge { background: var(--p-rose); color: var(--p-rose-t); }
.nav .badge-doux, .nav a.actif .badge-doux { background: #E2DDD2 !important; color: var(--p-gris-t) !important; }
.nav-titre { font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--discret); margin: 16px 12px 4px; }
.nav .sep { border-color: var(--trait); }
.nav-saisie { background: var(--vert); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 2px 12px; border-radius: 10px; }
.nav-saisie:hover { background: var(--vert-fonce); filter: none; }
.nav .moi { padding: 10px 12px; }
.nav .moi button { color: var(--discret); text-decoration: underline; }

/* ---------- cartes, blocs */
.carte, .acc-carte, .acc-bloc, .tr-liste, .tr-panneau, .papier { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; box-shadow: var(--re-shadow); }
.acc-carte strong, .acc-bloc h2, .kpi .val, .ce-total { font-family: var(--titre-font); }
.acc-bloc-vert { background: #EEF5EF; border-color: #DDEBDF; }
.acc-bloc-rose { background: #F8EDEE; border-color: #EEDADD; }
.acc-bloc-titre a { color: var(--vert); }
.et-vert { color: var(--p-vert-t); } .et-bleu { color: var(--p-bleu-t); } .et-ocre { color: var(--p-ocre-t); } .et-rose { color: var(--p-rose-t); }
.r-vert { background: var(--p-vert); } .r-bleu { background: var(--p-bleu); } .r-ocre { background: var(--p-ocre); } .r-rose { background: var(--p-rose); }
.r-vert svg { color: var(--p-vert-t); } .r-bleu svg { color: var(--p-bleu-t); } .r-ocre svg { color: var(--p-ocre-t); } .r-rose svg { color: var(--p-rose-t); }

/* ---------- boutons */
.btn { background: var(--carte); border: 1px solid var(--trait); color: var(--encre); border-radius: 10px; }
.btn:hover { background: #FAF8F3; border-color: #D9D1C2; }
.btn-primaire { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn-primaire:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.btn-bleu { background: var(--p-bleu); border-color: #CBD9EA; color: var(--p-bleu-t); }
.btn-bleu:hover { background: #D4E1EF; }
.btn-danger { color: var(--p-rose-t); }

/* ---------- tableaux : tous dans les mêmes tons */
table { border-collapse: separate; border-spacing: 0; }
th { background: #F8F5EF; color: var(--discret); border-bottom: 1px solid var(--trait); font-size: .72rem; letter-spacing: .06em; }
th:first-child { border-top-left-radius: 10px; } th:last-child { border-top-right-radius: 10px; }
td { border-bottom: 1px solid var(--trait-doux); color: var(--texte); }
tbody tr:hover { background: #FBF9F5; }
tfoot td { border-bottom: 0; }
.table-wrap { border-radius: 12px; }
tr.inactif td:first-child { box-shadow: inset 3px 0 0 #E5B66B; }

/* ---------- étiquettes et statuts */
.badge { background: var(--p-gris); color: var(--p-gris-t); font-weight: 700; }
.badge-vert { background: var(--p-vert); color: var(--p-vert-t); }
.badge-bleu { background: var(--p-bleu); color: var(--p-bleu-t); }
.badge-orange { background: var(--p-ocre); color: var(--p-ocre-t); }
.badge-rouge { background: var(--p-rose); color: var(--p-rose-t); }
.badge-mhh { background: var(--p-mauve); color: var(--p-mauve-t); }
.st { font-weight: 700; }
.st-devis_a_faire { background: var(--p-ocre); color: var(--p-ocre-t); }
.st-devis_envoye { background: var(--p-gris); color: var(--p-gris-t); }
.st-attente_elements { background: #F7EDDA; color: #86601F; }
.st-etude_en_cours { background: var(--p-bleu); color: var(--p-bleu-t); }
.st-etude_terminee { background: var(--p-rose); color: var(--p-rose-t); }
.st-a_envoyer { background: var(--p-mauve); color: var(--p-mauve-t); }
.st-archive { background: var(--p-gris); color: var(--discret); }
.st-livree { background: var(--p-vert); color: var(--p-vert-t); }
.st-sans_suite { background: var(--p-gris); color: var(--discret); }
.pill-energie { background: var(--p-vert); color: var(--p-vert-t); }
.pill-carbone { background: var(--p-ocre); color: var(--p-ocre-t); }
.pill-vmc { background: var(--p-bleu); color: var(--p-bleu-t); }
.et-cours { color: var(--p-bleu-t); } .et-ok { color: var(--p-vert-t); } .et-attente { color: var(--p-ocre-t); }
.tr-badge { background: var(--p-bleu); color: var(--p-bleu-t); }

/* ---------- alertes */
.alerte { border-radius: 12px; }
.alerte-info { background: var(--p-bleu); border-color: #CFDCEC; color: var(--p-bleu-t); }
.alerte-ok { background: var(--p-vert); border-color: #CBE0D1; color: var(--p-vert-t); }
.alerte-warn { background: var(--p-ocre); border-color: #EAD6B1; color: var(--p-ocre-t); }
.alerte-err { background: var(--p-rose); border-color: #EBCBD0; color: var(--p-rose-t); }
.tf-note { background: #FBF3E1; }
.tf-message, .mail-apercu, .at-note { background: #F8F5EF; border-color: var(--trait); }

/* ---------- onglets, frise, champs */
.onglets { border-bottom-color: var(--trait); }
.onglets a.actif { color: var(--encre); border-bottom-color: var(--vert); }
.onglets .compte { background: var(--p-gris); }
.frise button { background: #EDE8DE; color: var(--discret); }
.frise button.fait { background: var(--p-vert); color: var(--p-vert-t); }
.frise button.courant { background: var(--vert); color: #fff; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password],
input[type=search], input[type=url], select, textarea { border-color: #DDD5C7; border-radius: 10px; background: #FFFEFC; }
input:focus, select:focus, textarea:focus { outline-color: #BFD8C8; border-color: var(--vert); }
label { color: var(--encre); }
.saisie-rapide { background: #EEF5EF; border-color: #DDEBDF; }

/* ---------- colonnes (vue par statut, pages de travail) */
.colonne, .tdb-col { background: #EFEBE2; border-radius: 14px; }
.colonne.survol { outline-color: var(--vert); background: var(--p-vert); }
.ticket, .tdb-carte { border-radius: 12px; box-shadow: 0 1px 2px rgba(60,50,30,.06); border-left-color: var(--trait); }
.ticket.mhh, .tdb-mhh { border-left-color: #B7A6DE; }
.ticket.inactif { border-left-color: #E5B66B; }
.tr-ligne:hover { background: #FAF7F1; }
.tr-ligne.actif { background: var(--p-vert); border-color: #CBE0D1; }
.tr-ligne.actif::after { color: var(--p-vert-t); }
.p-en_cours { background: #8FB2D6; } .p-termine { background: #7FAE8F; }
.p-commande { border-color: #8FB2D6; color: var(--p-bleu-t); }

/* ---------- fenêtre « + Demande » */
dialog.saisie { border-radius: 18px; background: var(--carte); }
dialog.saisie::backdrop { background: rgba(54, 51, 45, .35); }
.saisie-canal label:has(input:checked), .saisie-nature label:has(input:checked) { background: var(--p-vert); border-color: #BFD8C8; color: var(--p-vert-t); }
.saisie-reconnu { color: var(--p-vert-t); }

/* ---------- connexion et espace client */
.connexion .logo { font-family: var(--titre-font); color: var(--encre); }
.portail-haut { background: var(--fond-menu); border-bottom: 1px solid var(--trait); }
.portail-haut .logo { font-family: var(--titre-font); color: var(--encre); }
.bandeau { background: var(--p-vert); color: var(--p-vert-t); }
.nav .logo span { color: inherit; }
.nav .logo .logo-marque { color: var(--vert); }
.nav .logo .logo-pastille { color: #fff; }
.nav-saisie { white-space: nowrap; font-size: .9rem; }
h1, h2, h3, .nav .logo, .acc-carte strong, .acc-bloc h2, .connexion .logo, .portail-haut .logo { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

.tf-commande { display: grid; gap: 6px; }
.tf-commande label { display: flex; align-items: center; gap: 6px; font-weight: 600; background: #FAF8F3; border: 1px solid var(--trait); border-radius: 10px; padding: 8px 12px; }
.tf-commande label:has(input:checked) { background: var(--p-vert); border-color: #CBE0D1; color: var(--p-vert-t); }
.tf-commande .num { margin-left: auto; }
/* sélecteur « Mes dossiers | Tous les dossiers » */
.portee { display: inline-flex; background: #ECE7DD; border-radius: 12px; padding: 3px; gap: 2px; }
.portee a { padding: 7px 14px; border-radius: 9px; color: var(--discret); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.portee a:hover { text-decoration: none; color: var(--encre); }
.portee a.actif { background: #fff; color: var(--encre); box-shadow: 0 1px 3px rgba(60,50,30,.12); }
.portee a span { display: inline-block; min-width: 20px; text-align: center; background: var(--p-gris); color: var(--p-gris-t); border-radius: 999px; padding: 0 6px; font-size: .75rem; margin-left: 4px; }
.portee a.actif span { background: var(--p-vert); color: var(--p-vert-t); }
/* ancienneté : orange > 15 j, rouge > 30 j */
.jours { display: inline-block; border-radius: 999px; padding: 0 8px; font-weight: 700; font-size: .78rem; }
.jours-orange { background: #F8E2C4; color: #9A5B0C; }
.jours-rouge { background: #F6D3D7; color: #A3263A; }
.tf-bloc h3 .jours { margin-left: 6px; vertical-align: 1px; }
/* canal d'arrivée des demandes (À traiter) */
.canal { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .03em; border-radius: 6px; padding: 1px 7px; margin-right: 7px; vertical-align: 1px; }
.canal-telephone { background: var(--p-vert); color: var(--p-vert-t); }
.canal-mail { background: var(--p-bleu); color: var(--p-bleu-t); }
.canal-accueil { background: var(--p-ocre); color: var(--p-ocre-t); }
.canal-mhh { background: var(--p-mauve); color: var(--p-mauve-t); }
.canal-point { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.canal-point.canal-telephone { background: #7FAE8F; } .canal-point.canal-mail { background: #8FB2D6; }
.canal-point.canal-accueil { background: #D9B26F; } .canal-point.canal-mhh { background: #A897D6; }
/* indication du 2e clic, propre à chaque ligne (vide = rien à ouvrir) */
.tr-ligne.actif::after { content: attr(data-astuce); }

/* lisibilité des tableaux : numéros, téléphones, dates et statuts ne passent jamais sur deux lignes */
.nowrap, td .st, td .badge, td .pill, .tf-contact dd, .tr-depuis { white-space: nowrap; }
.cell-nom { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tableau-dossiers td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.tableau-dossiers .pill { padding: 2px 9px; font-size: .74rem; }
.ligne-cliquable { cursor: pointer; }
/* pages de travail : l'apporteur sous le nom du client, les jours seuls à droite */
.tr-ligne-dossier .tr-badge { grid-column: 1; justify-self: start; }
.tr-ligne-dossier .tr-info { grid-column: 1 / -1; }
.tableau-dossiers th, .tableau-dossiers td { padding-left: 8px; padding-right: 8px; }
.tableau-dossiers .cell-nom { max-width: 170px; }

.tableau-dossiers .cell-nom { max-width: 160px; }
.tableau-dossiers .pill { padding: 2px 7px; }

/* ================================================================ Fiche dossier (v2) */
.fd-entete { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.fd-qui { flex: 1; min-width: 260px; }
.fd-numero, .fd-client { font-size: 1.55rem; line-height: 1.25; margin: 0; }
.fd-client a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--trait); text-underline-offset: 5px; }
.fd-client a:hover { text-decoration-color: var(--vert); }
.fd-client span { font-weight: 400; color: var(--discret); }
.fd-apporteur { margin: 6px 0 0; font-size: .92rem; }
.fd-apporteur a { font-weight: 700; color: var(--encre); }
.fd-projet { margin: 2px 0 0; font-size: .9rem; }
.fd-autres { margin: 6px 0 0; font-size: .85rem; }
.fd-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fd-statut { display: flex; align-items: center; gap: 6px; }
.fd-boutons { display: flex; gap: 6px; align-items: flex-start; }
.fd-menu { position: relative; }
.fd-menu > summary { list-style: none; cursor: pointer; }
.fd-menu > summary::-webkit-details-marker { display: none; }
.fd-menu-liste { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--carte); border: 1px solid var(--trait);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(60, 50, 30, .12); padding: 6px; min-width: 260px; display: grid; gap: 2px; }
.fd-menu-liste form { margin: 0; }
.fd-menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: .88rem;
  color: var(--encre); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.fd-menu-item:hover { background: var(--fond); text-decoration: none; }
.fd-danger { color: var(--p-rose-t); }
.fd-menu-statut { display: grid; grid-template-columns: 1fr auto; gap: 4px 6px; padding: 8px 10px; border-bottom: 1px solid var(--trait); margin-bottom: 4px !important; }
.fd-menu-statut label { grid-column: 1 / -1; font-size: .78rem; color: var(--discret); margin: 0; }
.fd-menu-statut select { padding: 4px 6px; }

.fd-afaire { border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid #CBE0D1; background: var(--p-vert); color: var(--p-vert-t); }
.fd-afaire-orange { background: var(--p-ocre); border-color: #EAD6B1; color: var(--p-ocre-t); }
.fd-afaire-rouge { background: var(--p-rose); border-color: #EBCBD0; color: var(--p-rose-t); }
.fd-afaire-gris { background: var(--p-gris); border-color: var(--trait); color: var(--p-gris-t); }
.fd-etiquette { margin: 0 0 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: .85; }
.fd-afaire-texte { margin: 0; font-size: 1rem; color: var(--encre); }
.fd-afaire-detail { margin: 3px 0 0; font-size: .88rem; }
.fd-afaire-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fd-afaire-actions form { margin: 0; }

.fd-grille { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.fd-colonne { display: grid; gap: 16px; align-content: start; }
@media (max-width: 900px) { .fd-grille { grid-template-columns: 1fr; } .fd-droite { align-items: flex-start; } }

.fd-etudes th, .fd-etudes td { white-space: nowrap; font-size: .86rem; }
.fd-etudes thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); text-align: center; }
.fd-etudes tbody th { text-align: left; font-weight: 700; color: var(--encre); padding-right: 10px; }
.fd-etudes tbody th small { display: block; font-weight: 400; color: var(--discret); white-space: normal; max-width: 200px; }
.fd-etudes td { text-align: center; }
.fd-etudes td.fd-ok { color: var(--p-vert-t); }
.fd-etudes td.fd-ok a { color: var(--p-vert-t); }
.fd-etudes td.fd-vide { color: var(--discret); }
.fd-etudes td.fd-non { text-align: left; color: var(--discret); white-space: normal; }
.fd-etudes tbody th .fd-outil { display: block; width: max-content; margin-top: 4px; font-weight: 600; }
.fd-corriger { margin-top: 12px; font-size: .85rem; }
.fd-corriger summary { cursor: pointer; color: var(--discret); }

.fd-coord { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: .9rem; }
.fd-coord dt { color: var(--discret); }
.fd-coord dd { margin: 0; overflow-wrap: anywhere; }
.fd-notes { margin: 12px 0 0; font-size: .85rem; color: var(--discret); }

.fd-version .carte-titre h2 { font-size: 1.05rem; }
.fd-version .carte-titre .badge { margin-left: auto; }
.fd-archivee { background: #FBFAF6; }
.fd-archivee h2, .fd-archivee .fd-docs a { color: var(--discret); }
.fd-note-version { margin: -4px 0 10px; font-style: italic; color: var(--discret); }
.fd-pieces { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; font-size: .88rem; }
.fd-pieces .ok { color: var(--p-vert-t); }
.fd-pieces .ko { color: var(--texte); }
.fd-docs { list-style: none; padding: 0; margin: 0 0 10px; }
.fd-docs li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 0; border-top: 1px solid var(--trait); font-size: .88rem; }
.fd-docs li:first-child { border-top: 0; }
.fd-docs-droite { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.fd-docs-droite form { margin: 0; }
.fd-coche { margin: 0; }
.fd-depot { margin-top: 8px; }
.fd-depot > summary { list-style: none; display: inline-block; cursor: pointer; }
.fd-depot > summary::-webkit-details-marker { display: none; }
.fd-depot form { margin-top: 10px; }
.fd-actualisation details > summary { list-style: none; display: inline-block; cursor: pointer; }
.fd-actualisation details > summary::-webkit-details-marker { display: none; }
.fd-radio { display: block; font-weight: 400; margin: 4px 0; }

.fd-mails-haut { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fd-filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.fd-filtres a { font-size: .82rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--trait); color: var(--texte); }
.fd-filtres a.actif { background: var(--carte); border-color: #D9D1C2; color: var(--encre); font-weight: 700; }
.fd-filtres a:hover { text-decoration: none; }
.fd-ecrire { margin-left: auto; position: relative; }
.fd-ecrire > summary { list-style: none; cursor: pointer; }
.fd-ecrire > summary::-webkit-details-marker { display: none; }
.fd-ecrire form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: 320px; }
.fd-info-mails { font-size: .8rem; margin: 0 0 10px; }
.fd-mails { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .fd-mails { grid-template-columns: 1fr; } }
.fd-mails-liste { position: static; max-height: none; }
.fd-mails-liste li { list-style: none; }
.fd-mail { display: block; padding: 10px 12px; border-radius: 10px; color: var(--texte); border: 1px solid transparent; }
.fd-mail:hover { background: #FAF7F1; text-decoration: none; }
.fd-mail.actif { background: var(--p-vert); border-color: #CBE0D1; }
.fd-mail-l1 { display: flex; align-items: center; gap: 6px; }
.fd-mail-l1 b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--encre); font-size: .88rem; }
.fd-mail-l1 small { margin-left: auto; white-space: nowrap; }
.fd-mail-l2 { display: block; font-size: .82rem; color: var(--discret); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.fd-sens { font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.fd-sens-in { background: var(--p-bleu); color: var(--p-bleu-t); }
.fd-sens-out { background: var(--p-vert); color: var(--p-vert-t); }
.fd-sens-val { background: var(--p-ocre); color: var(--p-ocre-t); }
.fd-sens-ann { background: var(--p-gris); color: var(--p-gris-t); }
.fd-mail-vue h3 { margin: 8px 0 2px; }
.fd-mail-entete { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fd-mail-corps { border-top: 1px solid var(--trait); padding-top: 10px; margin-top: 10px; line-height: 1.55; font-size: .92rem; }
.fd-pj { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.fd-pj-item { font-size: .82rem; padding: 3px 9px; border: 1px solid var(--trait); border-radius: 8px; }
.fd-note-form { display: flex; gap: 8px; margin-bottom: 14px; }
.fd-note-form input { flex: 1; }

/* dossiers inactifs : grisés dans les listes */
.jours-gris { background: var(--p-gris); color: var(--p-gris-t); }
.tr-ligne.tr-gris .tr-titre, .tr-ligne.tr-gris .tr-info { color: #A9A398; }
.tr-ligne.tr-gris { opacity: .8; }
tr.inactif td { color: #A9A398; }
tr.inactif td:first-child { box-shadow: inset 3px 0 0 #CFC8BB; }
.fd-etudes tbody th { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.fd-statut .jours, .fd-statut .pill, .fd-statut .st { white-space: nowrap; }
.acc-rapide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-num { font-weight: 400; font-size: .76rem; color: var(--discret); margin-left: 4px; }
.acc-rapide a { min-width: 0; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 16px 8px; font-size: .9rem; overflow: hidden; }
.acc-rapide a span, .acc-rapide a { overflow-wrap: anywhere; }
/* coordonnées de la fiche : chaque « libellé valeur » reste d'un seul tenant, sur une ligne */
p.tf-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0; font-size: .86rem; }
p.tf-contact span { white-space: nowrap; }
p.tf-contact i { font-style: normal; color: var(--discret); margin-right: 3px; }
.tf-sous-titre { margin: 10px 0 4px; font-size: .82rem; font-weight: 700; color: var(--encre); } .tf-adresse { grid-template-columns: minmax(0,2fr) minmax(90px,.7fr) minmax(0,1.3fr); }
@media (max-width: 900px) { .tr-liste { position: static; max-height: 45vh; } }
.saisie-apporteur { border: 1px solid var(--trait); background: var(--fond); border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; } .saisie-apporteur-titre { margin: 0 0 6px; font-weight: 700; font-size: .88rem; } .saisie-nouvel-app { font-size: .8rem; margin-top: 4px; } .saisie-app-ok { color: var(--p-vert-t); font-size: .8rem; }
.tarifs-edit input { width: 100%; min-width: 90px; padding: 5px 7px; text-align: right; } .tarifs-edit th[scope=row] { text-align: left; white-space: nowrap; font-weight: 700; }
.fd-afaire-alerte { margin: 0 0 6px; padding: 6px 10px; border-radius: 8px; background: var(--p-ocre); color: var(--p-ocre-t); font-weight: 700; font-size: .88rem; }
.etat-app { font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--p-gris); color: var(--p-gris-t); } .etat-app-attente { background: var(--p-ocre); color: var(--p-ocre-t); } .etat-app-cours { background: var(--p-bleu); color: var(--p-bleu-t); } .etat-app-ok { background: var(--p-vert); color: var(--p-vert-t); }
.acces-app { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--trait); } .acces-app:first-child { border-top: 0; } .acces-mail { font-size: .85rem; color: var(--discret); overflow-wrap: anywhere; } .acces-etat { font-size: .8rem; color: var(--discret); white-space: nowrap; } .acces-actions { display: flex; gap: 6px; margin-top: 6px; } .acces-actions form { margin: 0; } .acces-coupe { opacity: .55; }
.liste-simple li.acces-app { display: grid; justify-content: stretch; align-items: start; }
.saisie-adresse { border: 1px solid var(--trait); border-radius: 12px; padding: 8px 12px 2px; margin-bottom: 10px; } .saisie-adresse-titre { margin: 0 0 4px; font-weight: 700; font-size: .85rem; } .saisie-adresse-champs { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(80px,.8fr) minmax(0,1.4fr); gap: 0 10px; } .saisie-auto { position: relative; } .saisie-auto .saisie-suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; } @media (max-width: 600px) { .saisie-adresse-champs { grid-template-columns: 1fr; } }
.saisie-auto { margin: 0 0 10px; } .saisie-auto label { display: block; } .acc-rapide a, .acc-rapide a span { overflow-wrap: normal; word-break: normal; } .acc-rapide a { font-size: .82rem; padding: 14px 6px; }
.tf-commande-directe > summary { list-style: none; display: inline-block; cursor: pointer; } .tf-commande-directe > summary::-webkit-details-marker { display: none; }
.ville-cp { display: flex; gap: 6px; } .ville-cp .saisie-auto { flex: 1; margin: 0; } .ville-cp > input { width: 80px; flex: 0 0 80px; } .saisie-auto input { width: 100%; }
.saisie-erreur { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: var(--p-rose); color: var(--p-rose-t); font-weight: 700; font-size: .88rem; } .champ-manquant { border-color: var(--p-rose-t) !important; box-shadow: 0 0 0 2px var(--p-rose) !important; } .ville-cp .saisie-auto-cp { flex: 0 0 90px; } .saisie-auto-cp .saisie-suggestions { min-width: 220px; }
.tf-fiche-rens h3 .badge { margin-left: 6px; vertical-align: middle; } .tf-reponses { margin-top: 8px; font-size: .84rem; } .tf-reponses td:first-child { width: 42%; } .tf-fiche-rens summary { cursor: pointer; }
.tf-reponses .tf-rubrique th { text-align: left; padding-top: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--encre); }
/* gestion des accès aux documents (couleurs de la plateforme) */
.fd-docs-droite form { display: inline; margin: 0; }
.fd-acces { font: inherit; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--trait); background: var(--p-gris); color: var(--p-gris-t); }
.fd-acces::before { content: "○ "; }
.fd-acces.on { background: var(--p-vert); border-color: #CBE0D1; color: var(--p-vert-t); }
.fd-acces.on::before { content: "✓ "; }
.fd-acces-interne { cursor: default; opacity: .8; }
.fd-acces-interne::before { content: ""; }
.fd-acces-cadenas { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--p-ocre); color: var(--p-ocre-t); }
.fd-acces-tout { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -2px 0 10px; font-size: .85rem; }
.fd-acces-tout form { margin: 0; }
/* tableau des documents : une colonne par fonction, interrupteurs alignés */
.fd-tdocs { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.fd-tdocs th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--discret); font-weight: 700; padding: 6px 6px; border-bottom: 1px solid var(--trait); text-align: left; white-space: nowrap; }
.fd-tdocs td { padding: 7px 6px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.fd-tdocs .fd-col-btn, .fd-tdocs .fd-col-sw, .fd-tdocs .fd-col-coche { text-align: center; width: 1%; white-space: nowrap; }
.fd-tdocs .fd-col-date { width: 1%; white-space: nowrap; color: var(--discret); }
.fd-tdocs .fd-col-regle { width: 1%; white-space: nowrap; }
.fd-tdocs .fd-col-nom small { display: block; }
.fd-doc-nom { font-weight: 600; color: var(--encre); overflow-wrap: anywhere; }
.fd-tdocs form { margin: 0; }
.fd-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; border: 1px solid var(--trait); background: var(--p-gris); cursor: pointer; padding: 0; vertical-align: middle; transition: background .15s; }
.fd-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.fd-switch.on { background: var(--vert); border-color: var(--vert); }
.fd-switch.on::after { left: 18px; }
.fd-switch:focus-visible { outline: 2px solid var(--p-bleu-t); outline-offset: 2px; }
.fd-regle { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--p-ocre); color: var(--p-ocre-t); }
.fd-regle-interne { background: var(--p-gris); color: var(--p-gris-t); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fd-grille-docs { grid-template-columns: 1fr; } .fd-grille-docs > .fd-colonne:last-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; } .fd-tdocs .fd-col-nom { min-width: 200px; }
.regle-relance { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--p-bleu); color: var(--p-bleu-t); font-size: .85rem; } .regle-relance summary { cursor: pointer; } .regle-relance ul { margin: 6px 0 0; padding-left: 18px; } .portee-inactifs { margin-left: 10px; border-left: 1px solid var(--trait); }
.journal-filtres { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fiche-encart-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .fiche-encart-actions { display: flex; gap: 6px; flex-wrap: wrap; } .fiche-encart-actions form { margin: 0; } .fiche-encart-note { font-size: .8rem; margin: 8px 0 0; } .fiche-encart-reponses { margin-top: 8px; } .fiche-encart-reponses summary { cursor: pointer; } .tf-pj { font-size: .85rem; margin: 6px 0; }
.acc-rappel { display: block; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--p-rose); color: var(--p-rose-t); font-size: .9rem; } .acc-rappel:hover { text-decoration: none; filter: brightness(.98); } .tf-nc > summary { list-style: none; display: inline-block; cursor: pointer; } .tf-nc > summary::-webkit-details-marker { display: none; }
.nouvelle-etude h2 { margin-top: 18px; font-size: 1.05rem; } .nouvelle-etude h2:first-of-type { margin-top: 0; }
/* Boîte re2020 */
.lien-discret { background: none; border: 0; padding: 0; color: var(--p-bleu-t); text-decoration: underline; cursor: pointer; font: inherit; font-size: .82rem; }
.txt-rouge { color: #b0413e; }
.boite-etat { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.boite-actions { margin-left: auto; white-space: nowrap; } .boite-actions form { display: inline; }
.tf-ranger { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .tf-ranger form { margin: 0; }
.tf-ranger .btn small { margin-left: 4px; } .tf-ignorer { margin: 10px 0 0; }
.boite-table { width: 100%; border-collapse: collapse; font-size: .85rem; } .boite-table th, .boite-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.boite-table td.objet { max-width: 340px; overflow-wrap: anywhere; } .boite-table form { display: flex; gap: 6px; margin: 0; } .boite-table input { width: 130px; }
.boite-ignores { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .boite-ignores form { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border: 1px solid var(--trait); border-radius: 8px; font-size: .82rem; margin: 0; }
.onglets a.onglet-droite { margin-left: auto; color: var(--p-bleu-t); font-size: .85rem; }
/* Demandes déjà traitées */
.retour-lien { margin: 0 0 6px; font-size: .85rem; }
.traitees { padding: 6px 12px; }
.traitees-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.traitees-table th { text-align: left; font-size: .78rem; color: var(--p-bleu-t); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--trait); }
.traitees-table td { padding: 9px 8px; vertical-align: top; border-bottom: 1px solid var(--trait); }
.traitees-table .nowrap { white-space: nowrap; } .traitee-objet { max-width: 320px; overflow-wrap: anywhere; }
.traitee-ligne { cursor: pointer; } .traitee-ligne:hover td, .traitee-ligne.ouverte td { background: var(--p-bleu); }
.traitee-detail td { background: #fbfaf6; } .traitee-detail p { margin: 0 0 6px; font-size: .82rem; }
.traitees-table form { margin: 0; }
.mail-html { display: block; width: 100%; height: 70vh; min-height: 360px; border: 1px solid var(--trait); border-radius: 10px; background: #fff; resize: vertical; } .mail-html-lien { margin: 4px 0 0; font-size: .8rem; text-align: right; }
/* À traiter : pré-tri de l'agent */
.cat { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-radius: 6px; padding: 1px 7px; margin-right: 7px; vertical-align: 1px; white-space: nowrap; }
.cat-dossier { background: var(--p-vert); color: var(--p-vert-t); } .cat-nouvelle { background: var(--p-bleu); color: var(--p-bleu-t); }
.cat-classer { background: var(--p-ocre); color: var(--p-ocre-t); } .cat-autre { background: var(--p-gris); color: var(--p-gris-t); }
.cat-newsletter { background: #EEE8F5; color: #6A5390; }
.cat-point { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.cat-point.cat-dossier { background: #7FAE8F; } .cat-point.cat-nouvelle { background: #8FB2D6; } .cat-point.cat-classer { background: #D9B26F; }
.cat-point.cat-autre { background: #B9B3A8; } .cat-point.cat-newsletter { background: #A897D6; }
.tf-agent { margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-size: .88rem; }
.tf-agent p { margin: 0 0 8px; } .tf-agent .tf-boutons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .tf-agent form { margin: 0; }
.tf-agent details summary { cursor: pointer; font-size: .82rem; color: var(--p-bleu-t); text-decoration: underline; list-style: none; }
.tf-agent details[open] summary { margin-bottom: 6px; }
.cat-devis { background: var(--p-bleu); color: var(--p-bleu-t); } .cat-etude { background: var(--p-ocre); color: var(--p-ocre-t); }
.cat-non_traite { background: var(--p-rose); color: var(--p-rose-t); }
.cat-point.cat-devis { background: #8FB2D6; } .cat-point.cat-etude { background: #D9B26F; } .cat-point.cat-non_traite { background: #D99AA3; }
.tf-repondre > summary { list-style: none; display: inline-block; cursor: pointer; } .tf-repondre[open] > summary { margin-bottom: 10px; }
.tf-repondre textarea { width: 100%; font: inherit; font-size: .88rem; }
.tf-docs-joindre { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; margin-bottom: 10px; } .tf-docs-joindre label { font-weight: 400; }
.tf-reponse-envoyee { border-left: 3px solid var(--p-vert-t); padding-left: 10px; } .tf-reponse-envoyee p { margin: 0 0 6px; font-size: .82rem; }
.onglet-precision { font-size: .68rem; font-weight: 400; color: var(--p-gris-t); margin-left: 3px; }
.tf-demande-source > summary { cursor: pointer; font-size: .88rem; } .tf-demande-source[open] > summary { margin-bottom: 8px; } .mail-html-court { height: 45vh; min-height: 260px; }
/* Double authentification */
.deuxfa .carte { max-width: 420px; } .deuxfa h2 { margin: 0 0 10px; font-size: 1.1rem; }
.deuxfa-etapes { padding-left: 20px; font-size: .9rem; margin: 0 0 8px; } .deuxfa-etapes li { margin-bottom: 6px; }
.deuxfa-qr { display: flex; justify-content: center; margin: 6px 0 10px; } .deuxfa-qr svg { width: 210px; height: 210px; background: #fff; padding: 6px; border-radius: 8px; }
.deuxfa-cle { font-size: .82rem; margin-bottom: 10px; } .deuxfa-cle summary { cursor: pointer; color: var(--p-bleu-t); }
.deuxfa-cle-texte { font-family: monospace; font-size: .95rem; letter-spacing: .05em; background: var(--p-gris); padding: 6px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.deuxfa-saisie { font-size: 1.4rem; letter-spacing: .25em; text-align: center; }
.deuxfa-codes { columns: 2; list-style: none; padding: 0; font-family: monospace; font-size: 1rem; margin: 10px 0 14px; } .deuxfa-codes li { padding: 3px 0; }
