
/* Bulletin TCF Le Plan B — feuille indépendante */

.tcf-bulletin {
  --tcf-blue: #16366d;
  --tcf-border: #cbd5e1;
  background: #fff;
  color: #18283f;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 820px;
  margin: 24px auto;
  padding: 36px;
  box-sizing: border-box;
  border: 1px solid var(--tcf-border);
}

.tcf-bulletin-header {
  border-bottom: 3px solid var(--tcf-blue);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.tcf-bulletin-brand {
  font-size: 25px;
  font-weight: 800;
  color: var(--tcf-blue);
}

.tcf-bulletin-subtitle {
  font-size: 13px;
  margin-top: 6px;
}

.tcf-bulletin-title {
  font-size: 21px;
  text-align: center;
  margin: 28px 0;
  color: var(--tcf-blue);
}

.tcf-bulletin-identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 24px;
  margin-bottom: 28px;
}

.tcf-bulletin-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}

.tcf-bulletin-value {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tcf-bulletin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 25px;
  table-layout: fixed;
}

.tcf-bulletin-table th,
.tcf-bulletin-table td {
  border: 1px solid var(--tcf-border);
  padding: 13px 12px;
  font-size: 13px;
}

.tcf-bulletin-table th {
  background: #eaf0fa;
  color: var(--tcf-blue);
  font-weight: 700;
}

.tcf-bulletin-table th:first-child,
.tcf-bulletin-table td:first-child {
  width: 32%;
  text-align: left;
}

.tcf-bulletin-table th:not(:first-child),
.tcf-bulletin-table td:not(:first-child) {
  text-align: center;
}

.tcf-bulletin-footer {
  border-top: 1px solid var(--tcf-border);
  padding-top: 14px;
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .tcf-bulletin {
    padding: 14px;
    margin: 12px auto;
  }

  .tcf-bulletin-table th,
  .tcf-bulletin-table td {
    padding: 8px 4px;
    font-size: 11.5px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .tcf-bulletin-table th:first-child,
  .tcf-bulletin-table td:first-child {
    width: 30%;
    padding-left: 6px;
  }

  .tcf-bulletin-identity {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff !important;
  }

  .tcf-bulletin {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .tcf-bulletin-table {
    break-inside: avoid;
  }

  .tcf-bulletin-table th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Adresse du site sur le bulletin */
.tcf-bulletin-brand::after {
    content: "www.tcf-leplanb.com";
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #153b73;
    margin-top: 5px;
}

@media print { .tcf-no-print { display: none !important; } }

/* Isolation : le style global d'un en-tête de page ne doit pas toucher le bulletin */
.tcf-bulletin header.tcf-bulletin-header {
  background: #fff;
  color: #18283f;
  padding: 0 0 18px;
  text-align: left;
}
.tcf-bulletin .tcf-bulletin-brand { color: var(--tcf-blue); }
