#print-container {
  width: 100%;
  box-sizing: border-box;
}

/* Structure interne */
.builder * {
  box-sizing: border-box !important;
}

body {
  background: white;
}

.builder {
  max-width: 750px;
  margin: auto;
  font-family: "Courier New", monospace;
  padding: 20px;
  background: #ede8d8;
  border: 3px solid #000;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
  position: relative;
}

/* Effet document impérial */
.builder::before {
  content: "ADEPTUS ADMINISTRATUM";
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 10px;
  opacity: 0.3;
}

h1 {
  text-align: center;
  border-bottom: 3px double black;
  padding-bottom: 5px;
  letter-spacing: 2px;
}

.section {
  background: rgba(255,255,255,0.6);
  padding: 15px;
  margin-top: 20px;
  border: 2px solid black;
}

/* Labels */
label {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
}

/* Inputs */
input, select, textarea {
  width: 100%;
  padding: 6px;
  margin-top: 2px;
  border: none;
  border-bottom: 1px solid black;
  background: transparent;
  font-family: inherit;
}

textarea {
  border: 1px solid black;
}

/* Grid */
.char-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.char-col {
  background: rgba(255,255,255,0.05);
  padding: 8px;
  border-radius: 4px;
}

/* Largeurs personnalisées */
.col-10 { flex: 0 0 10%; }
.col-20 { flex: 0 0 20%; }
.col-25 { flex: 0 0 25%; }
.col-30 { flex: 0 0 30%; }
.col-33 { flex: 0 0 33.33%; }
.col-40 { flex: 0 0 40%; }
.col-50 { flex: 0 0 50%; }
.col-60 { flex: 0 0 60%; }
.col-70 { flex: 0 0 70%; }
.col-80 { flex: 0 0 80%; }
.col-100 { flex: 0 0 100%; }

/* Talents */
#selectedTalents li {
  background: #dcd6c5;
  padding: 6px;
  margin: 4px 0;
  border: 1px solid black;
  display: flex;
  justify-content: space-between;
}

/* Boutons style impérial */
button {
  margin-top: 10px;
  padding: 8px 12px;
  background: black;
  color: #ede8d8;
  border: 1px solid black;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
}

button:hover {
  background: #333;
}

/* Corruption highlight */
#char-cp {
  background: #3b0000;
  color: #ffb3b3;
  font-weight: bold;
}

/* Impression */
@media print {
  body {
    background: white;
  }

  button {
    display: none;
  }

  .builder {
    box-shadow: none;
    border: none;
  }

  .section {
    page-break-inside: avoid !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-inside: avoid !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
  }

}

/* Empêcher les coupures */
* {
  page-break-inside: avoid;
}