/* Page Examens & Convocations */

.examens-page {
  padding: 7rem 0 3rem;
  min-height: 100vh;
  background: var(--bg-light);
}

.examens-header {
  margin-bottom: 2.5rem;
}

.exam-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(107, 15, 26, 0.08);
  position: sticky;
  top: 90px;
}

/* Feuille de convocation (aperçu + impression) */
.convocation-sheet {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 2rem 2.25rem;
  min-height: 520px;
  font-size: 0.92rem;
  color: #1a1a1a;
  line-height: 1.45;
}

.convoc-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.convoc-header .republic {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.convoc-header .ministry {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.convoc-header .institute {
  font-size: 1rem;
  font-weight: 800;
  color: #6B0F1A;
  margin-top: 0.25rem;
}

.convoc-header .direction {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.convoc-header .tel {
  font-size: 0.75rem;
  color: #555;
}

.convoc-header .session-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.3rem 0.9rem;
  border: 2px solid #6B0F1A;
  color: #6B0F1A;
  font-weight: 700;
  font-size: 0.85rem;
}

.convoc-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin: 1.25rem 0 1rem;
  text-decoration: underline;
  color: #6B0F1A;
}

.convoc-body p {
  margin-bottom: 0.5rem;
}

.convoc-student {
  margin: 1rem 0 1.25rem;
  padding: 0.75rem 1rem;
  background: #f8f4f5;
  border-left: 4px solid #6B0F1A;
  border-radius: 0 8px 8px 0;
}

.convoc-student .row-field {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.convoc-student .label {
  min-width: 150px;
  font-weight: 600;
}

.convoc-student .value {
  font-weight: 700;
  text-transform: uppercase;
}

.convoc-period {
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.convoc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.convoc-table th,
.convoc-table td {
  border: 1px solid #333;
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.convoc-table th {
  background: #6B0F1A;
  color: #fff;
  font-weight: 600;
}

.convoc-table tr:nth-child(even) td {
  background: #faf7f8;
}

.convoc-nb {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  padding: 0.75rem;
  border: 1px dashed #999;
  border-radius: 6px;
}

.convoc-nb strong {
  color: #6B0F1A;
}

.convoc-sign {
  margin-top: 2rem;
  text-align: right;
  padding-right: 1rem;
}

.convoc-sign .role {
  font-weight: 600;
  font-size: 0.85rem;
}

.convoc-sign .name {
  font-weight: 800;
  margin-top: 2.5rem;
  color: #6B0F1A;
}

/* Impression */
@media print {
  body * {
    visibility: hidden;
  }
  .convocation-sheet,
  .convocation-sheet * {
    visibility: visible;
  }
  .convocation-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 1.5cm;
  }
  .no-print,
  nav,
  footer,
  .exam-form-card,
  .examens-header {
    display: none !important;
  }
  .examens-page {
    padding: 0;
    background: #fff;
  }
}

@media (max-width: 991.98px) {
  .exam-form-card {
    position: static;
  }
}
