/* BGD701 — encadrés propres au cours, en complément des callouts Quarto. */

:root {
  --bgd-bleu: #14315C;
  --bgd-vert: #1F6F4A;
}

/* Bandeau d'objectifs en tête de séance */
.objectifs {
  border-left: 5px solid var(--bgd-bleu);
  background: #E8EEF6;
  padding: 0.9em 1.2em;
  margin: 1.3em 0;
  border-radius: 3px;
}

.objectifs > p:first-child {
  margin-top: 0;
}

/* Exercices */
.exercice {
  border: 1px solid var(--bgd-bleu);
  border-left: 6px solid var(--bgd-bleu);
  border-radius: 3px;
  padding: 0.9em 1.2em;
  margin: 1.5em 0;
  background: #ffffff;
}

.exercice > .titre {
  display: block;
  font-weight: 700;
  color: var(--bgd-bleu);
  margin-bottom: 0.6em;
  font-size: 1.02em;
}

/* Corrigés */
.corrige {
  border: 1px solid var(--bgd-vert);
  border-left: 6px solid var(--bgd-vert);
  border-radius: 3px;
  padding: 0.9em 1.2em;
  margin: 1.5em 0;
  background: #F6FBF8;
}

/* Corrigés dépliants : un callout Quarto repeint aux couleurs du corrigé. */
.callout.corrige {
  border-left-color: var(--bgd-vert) !important;
  padding: 0;
  background: #F6FBF8;
}

.callout.corrige .callout-header {
  background: #EAF4EE !important;
  color: var(--bgd-vert);
  font-weight: 700;
}

.callout.corrige .callout-icon::before {
  content: "";
  display: none;
}

.callout.corrige .callout-icon-container {
  display: none;
}

.callout.corrige .callout-title-container::before {
  content: "Corrigé — ";
  font-weight: 700;
}

.corrige > .titre {
  display: block;
  font-weight: 700;
  color: var(--bgd-vert);
  margin-bottom: 0.6em;
  font-size: 1.02em;
}

/* Le code : lisible, et copiable tel quel */
pre code {
  font-size: 0.87em;
  line-height: 1.45;
}

/* Tableaux un peu plus aérés */
table {
  font-size: 0.94em;
}

/* Barème d'une sous-question, dans les corrigés d'examen */
.pts {
  display: inline-block;
  font-weight: 700;
  color: var(--bgd-vert);
  font-size: 0.9em;
  margin-right: 0.4em;
}
