/* Identité visuelle reprise du site transparencecitoyenne.fr :
   bleu marine des boutons/liens (#242969), rouge du logo (#e80810),
   noir/blanc pour le texte et le fond. */

:root {
  --tc-navy: #242969;
  --tc-navy-dark: #171b46;
  --tc-red: #e80810;
  --tc-ink: #1a1a1a;
  --tc-muted: #5a5a66;
  --tc-line: #e2e2ea;
  --tc-panel: #f6f6fb;
  --tc-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", Arial, sans-serif;
  color: var(--tc-ink);
  background: var(--tc-bg);
  line-height: 1.55;
}

a { color: var(--tc-navy); }

.tc-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.tc-header {
  border-bottom: 1px solid var(--tc-line);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--tc-ink);
}

.tc-brand img { height: 130px; width: auto; display: block; }

.tc-brand .tc-brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.tc-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tc-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tc-navy);
  white-space: nowrap;
}

.tc-trust-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--tc-navy);
}

main.tc-main {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 24px 40px;
}

footer.tc-footer {
  border-top: 1px solid var(--tc-line);
  padding: 16px 24px;
  text-align: center;
  color: var(--tc-muted);
  font-size: 0.85rem;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  color: var(--tc-navy-dark);
  margin: 0 0 0.35em;
}

h2 { font-size: 1.12rem; color: var(--tc-navy-dark); margin: 0 0 0.55em; }

.tc-lead { color: var(--tc-muted); font-size: 1rem; margin: 0 0 1em; }

.tc-card {
  background: var(--tc-panel);
  border: 1px solid var(--tc-line);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 16px 0;
}

.tc-card p { margin: 0; }

.tc-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

.tc-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--tc-navy);
  font-size: 0.95rem;
  font-family: inherit;
}

.tc-btn-primary { background: var(--tc-navy); color: #fff; }
.tc-btn-primary:hover { background: var(--tc-navy-dark); border-color: var(--tc-navy-dark); }

.tc-btn-outline { background: transparent; color: var(--tc-navy); }
.tc-btn-outline:hover { background: var(--tc-navy); color: #fff; }

form p { margin: 0 0 16px; }

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }

input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--tc-line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

input[type=checkbox] { width: auto; margin-right: 8px; }

.tc-helptext { color: var(--tc-muted); font-size: 0.82rem; margin-top: 4px; }

.tc-errorlist { color: var(--tc-red); font-size: 0.85rem; list-style: none; padding: 0; margin: 4px 0; }

.tc-code {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #fff;
  border: 2px dashed var(--tc-navy);
  border-radius: 8px;
  padding: 16px 20px;
  display: inline-block;
  margin: 16px 0;
}

.tc-warning {
  background: #fdecec;
  border: 1px solid var(--tc-red);
  color: #7a0509;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
}

.tc-messages { list-style: none; padding: 0; margin: 16px 0; }
.tc-messages li {
  background: #eef6ee;
  border: 1px solid #bfe3bf;
  color: #1e4620;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.tc-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.tc-pill-recu { background: #eceef7; color: var(--tc-navy-dark); }
.tc-pill-recevabilite { background: #fff2e0; color: #93500b; }
.tc-pill-instruction { background: #e3ecfb; color: #1d4ed8; }
.tc-pill-cloture { background: #e6f4ea; color: #1e7a34; }

.tc-timeline { list-style: none; padding: 0; margin: 20px 0; }
.tc-timeline li {
  border-left: 3px solid var(--tc-navy);
  padding: 4px 0 16px 18px;
  margin-left: 6px;
  position: relative;
}
.tc-timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--tc-navy);
}
.tc-timeline .tc-date { font-size: 0.8rem; color: var(--tc-muted); }

.tc-thread { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.tc-msg { max-width: 85%; padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; }
.tc-msg .tc-date { display: block; font-size: 0.75rem; color: var(--tc-muted); margin-top: 4px; }
.tc-msg-citoyen { align-self: flex-end; background: var(--tc-navy); color: #fff; }
.tc-msg-citoyen .tc-date { color: #d7d9ef; }
.tc-msg-instructeur { align-self: flex-start; background: var(--tc-panel); border: 1px solid var(--tc-line); }

.tc-attachments { margin: 8px 0; padding: 0; list-style: none; font-size: 0.88rem; }
.tc-attachments li::before { content: "📎 "; }
