/* Emailing — charte Terranota (gabarit PROSPECTS-CONGRES) : blanc, bleu nuit, liseré vert, icônes au trait. */
:root {
  --nuit: #1e1a34; --vert: #44d62c; --vert-fonce: #2f9e1c; --vert-pale: #ecf9e8; --vert-trait: #9be58c;
  --fond: #f4f5f9; --carte: #fff; --texte: #1e1a34; --doux: #6b6880; --trait: #e3e5ee;
  --rouge: #d63939; --rouge-pale: #fdecec; --jaune-pale: #fff5d9; --jaune: #8a6400;
  --rayon: 14px; --ombre: 0 1px 2px rgba(30,26,52,.05), 0 4px 14px rgba(30,26,52,.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--fond); color: var(--texte); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.barre { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: #fff; border-bottom: 3px solid var(--vert); box-shadow: 0 2px 10px rgba(30,26,52,.06); }
.barre .logo { height: 30px; display: block; }
.barre .titre { flex: 1; display: flex; flex-direction: column; line-height: 1.15; padding-left: 10px; border-left: 1px solid var(--trait); min-width: 0; }
.barre .titre b { font-size: 15px; color: var(--nuit); }
.barre .titre span { font-size: 12px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moi { font-size: 13px; color: var(--doux); white-space: nowrap; }

main { padding: 16px; max-width: 860px; margin: 0 auto 60px; }
h1 { font-size: 21px; margin: 4px 0 2px; color: var(--nuit); }
.sous { color: var(--doux); margin: 0 0 6px; font-size: 14px; }
h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--nuit); margin: 0 0 10px; }
h2::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--vert); }
h2 .num { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--doux); font-size: 13px; }
.carte { background: var(--carte); border-radius: var(--rayon); padding: 16px; margin-top: 12px; box-shadow: var(--ombre); }
.carte.fermee { opacity: .65; }

.tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tete .ecart { flex: 1; }
.retour { background: none; border: 0; color: var(--nuit); display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 10px 18px; font-weight: 700;
  background: var(--nuit); color: #fff; }
.btn svg.i { color: var(--vert); }
.btn.second { background: #fff; color: var(--nuit); border: 1px solid var(--trait); font-weight: 600; }
.btn.second svg.i { color: var(--vert-fonce); }
.btn.danger { background: var(--rouge); }
.btn.danger svg.i { color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.lien { background: none; border: 0; color: var(--doux); text-decoration: underline; padding: 0; font-size: 13px; }

.ligne { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--trait); text-decoration: none; color: inherit; }
.ligne:first-of-type { border-top: 0; }
a.ligne:hover b { text-decoration: underline; }
.ligne .qui { flex: 1; min-width: 0; }
.ligne .qui b { display: block; color: var(--nuit); }
.ligne .qui small { color: var(--doux); font-size: 13px; }
.pastille { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--fond); color: var(--doux); white-space: nowrap; }
.pastille.ok, .pastille.terminee { background: var(--vert-pale); color: var(--vert-fonce); }
.pastille.en_cours { background: var(--nuit); color: #fff; }
.pastille.pause, .pastille.attention { background: var(--jaune-pale); color: var(--jaune); }
.pastille.echec { background: var(--rouge-pale); color: var(--rouge); }

.champ { display: block; margin-top: 10px; }
.champ > span { display: block; font-size: 12px; color: var(--doux); margin-bottom: 4px; font-weight: 500; }
.champ input, .champ textarea, .champ select, select.petit { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--trait); background: #fbfbfd; }
.champ textarea { min-height: 240px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--vert-trait); border-color: var(--vert); }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.aide { font-size: 13px; color: var(--doux); margin: 6px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

.depot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border: 2px dashed var(--trait); border-radius: 12px; color: var(--doux); text-align: center; cursor: pointer; }
.depot:hover, .depot.survol { border-color: var(--vert); background: var(--vert-pale); }
.depot .rond { width: 46px; height: 46px; border-radius: 50%; background: var(--vert-pale); color: var(--vert-fonce); display: grid; place-items: center; }
.depot b { color: var(--nuit); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 6px; border-top: 1px solid var(--trait); vertical-align: middle; }
th { font-size: 12px; color: var(--doux); font-weight: 600; border-top: 0; }
td.nb, th.nb { text-align: right; font-variant-numeric: tabular-nums; }
.defile { max-height: 300px; overflow: auto; }

.apercu { border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; }
.apercu .ent { background: var(--fond); padding: 10px 14px; font-size: 13px; color: var(--doux); }
.apercu .ent b { color: var(--nuit); }
.apercu .corps-mail { display: block; width: 100%; height: 420px; border: 0; background: #f4f5f9; }

.jauge { height: 10px; border-radius: 99px; background: var(--fond); overflow: hidden; margin: 8px 0; }
.jauge i { display: block; height: 100%; background: var(--vert); transition: width .4s; }
.chiffres { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.chiffres b { font-size: 20px; color: var(--nuit); display: block; }

.mot { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-top: 10px; }
.mot.ok { background: var(--vert-pale); color: var(--vert-fonce); }
.mot.attention { background: var(--jaune-pale); color: var(--jaune); }
.mot.echec { background: var(--rouge-pale); color: var(--rouge); }

.vide { text-align: center; color: var(--doux); padding: 30px 16px; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--nuit); color: #fff; padding: 10px 18px; border-radius: 99px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); }
#toast.vu { opacity: 1; }
#toast.erreur { background: var(--rouge); }

@media (max-width: 560px) {
  .barre .titre span, .moi { display: none; }
  .champ textarea { min-height: 180px; }
}
