:root {
  --pba-dore: #C8AB68;
  --pba-blue: #23283F;
  --pba-green: #2E7D32;
  --pba-grey: #F5F5F5;
  --pba-dark: #1E1E1E;
  --pba-white: #FFFFFF;
}

/* — Animations clés — */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

/* — Global — */

h1, h2, h3, h4 {
  animation: fadeInUp 0.6s ease-out;
}

/* — Header/logo/title — */

.logo {
  width: 180px;
  animation: pulse 3s ease-in-out infinite;
}
.title {
  flex: 1;
  padding-left: 20px;
}
.title h1, .title h2, .title h3, .title h4 {
  margin: 0;
  font-size: 26px;
  color: var(--pba-blue);
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.title p {
  margin: 4px 0 0;
  font-style: italic;
}

/* — Info-section & form fields — */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  animation: fadeInUp 0.7s ease-out;
}
.info-item label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.info-item input,
.info-item select {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--pba-white);
}
.info-item input:focus,
.info-item select:focus {
  border-color: var(--pba-dore);
  box-shadow: 0 0 6px rgba(253, 168, 43, 0.4);
  outline: none;
}

/* — Tableau des critères — */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--pba-white);
  animation: fadeInUp 0.8s ease-out;
  font-size: 14px;
}
th, td {
  border: 1px solid #ddd;
  padding: 12px;
  vertical-align: top;
  transition: background 0.3s;
}
th {
  background: var(--pba-blue);
  color: var(--pba-white);
  text-transform: uppercase;
  font-size: 14px;
}
.category-header {
  background: var(--pba-dore);
  color: var(--pba-white);
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}
tbody tr:hover {
  background: rgba(253, 168, 43, 0.1);
}

/* — Zones de commentaires & synthèse — */
.comments-section, .synthesis-section, .conclusion-section {
  background: #fff;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.9s ease-out;
  margin-bottom: 20px;
}
.comments-section textarea,
.synthesis-item textarea {
  width: 100%;
  min-height: 60px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  transition: border-color 0.3s;
}
.comments-section textarea:focus,
.synthesis-item textarea:focus {
  border-color: var(--pba-blue);
  outline: none;
}

/* — Bouton de soumission — */
.btn-submit {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--pba-green);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-submit:hover {
  background: #276c2b;
  transform: translateY(-2px);
}

/* — Titres de sections — */
.section-header {
  background: var(--pba-dore);
  color: var(--pba-white);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.5px;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* — Lignes de signature — */
.signature-line {
  border-top: 2px solid #23283F;
  margin: 20px auto;
  width: 80%;
  height: 2px;
}

/* — Responsive design — */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    width: 140px;
    margin-bottom: 10px;
  }

  .title {
    padding-left: 0;
  }

  table, th, td {
    font-size: 13px;
  }

  .btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .info-section {
    grid-template-columns: 1fr;
  }

  table, th, td {
    font-size: 12px;
    padding: 8px;
  }

  .section-header {
    font-size: 14px;
    padding: 8px;
  }

  .btn-submit {
    font-size: 15px;
  }
}
