#corrige-html, #corrige-html * {
  box-sizing: border-box;
}

#corrige-html {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  color: #111;
  background: transparent;
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.28;
  text-align: left;
  container-type: inline-size;
  container-name: bac-document;
  overflow-wrap: break-word;
}

#corrige-html .corrige-bac-pages {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
}

#corrige-html .corrige-bac-page {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: auto;
  padding: 20px 14px 16px;
  background: white;
  border-bottom: 1px solid #d2d2d2;
}

#corrige-html .corrige-bac-contenu {
  min-width: 0;
  width: 100%;
}

#corrige-html .corrige-bac-page p {
  margin: 0 0 10px;
  padding: 0;
  font: inherit;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

#corrige-html .corrige-bac-page p.corrige-bac-centre {
  text-align: center;
}

#corrige-html .corrige-bac-page p.corrige-bac-petit {
  font-size: 13px;
}

#corrige-html .corrige-bac-page p.corrige-bac-gras {
  font-weight: 700;
}

#corrige-html .corrige-bac-page p.corrige-bac-suite-page {
  text-align-last: justify;
}

#corrige-html .corrige-bac-page h3 {
  margin: 0 0 12px;
  padding: 4px 6px;
  background-color: #a3d5c6;
  color: #101010;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

#corrige-html .corrige-bac-page h4 {
  margin: 14px 0 9px;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

#corrige-html .corrige-bac-page ul {
  margin: 8px 0 12px 0;
  padding: 0 0 0 30px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

#corrige-html .corrige-bac-page li {
  margin: 0 0 7px;
  padding: 0;
}

#corrige-html .corrige-bac-formule {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 4px 0 11px;
  padding: 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  scrollbar-width: thin;
}

#corrige-html .corrige-bac-formule math[display="block"] {
  width: max-content;
  max-width: none;
  margin: 0 auto;
  font-size: 1em;
  text-align: center;
}

#corrige-html .corrige-bac-page math {
  font-family: 'Cambria Math', 'STIX Two Math', 'Noto Sans Math', serif;
  line-height: normal;
}

#corrige-html .corrige-bac-formule math[display="block"] mtd {
  math-style: normal;
}

#corrige-html .corrige-bac-page a {
  color: #1765b3;
  text-decoration: underline;
  text-underline-offset: 1px;
}

#corrige-html .corrige-bac-page a.corrige-bac-lien-url {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: anywhere;
  word-break: normal;
}

#corrige-html .corrige-bac-espacement-exercice {
  height: 32px;
}

#corrige-html .corrige-bac-pied-de-page {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: auto;
  padding-top: 25px;
  color: #888;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

#corrige-html .corrige-bac-pied-de-page span {
  min-width: 0;
}

#corrige-html .corrige-bac-garde .corrige-bac-titres-garde {
  margin: 0 0 50px;
  text-align: center;
}

#corrige-html .corrige-bac-garde p.corrige-bac-titre-garde {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.28;
  font-weight: 700;
  text-align: center;
}

#corrige-html .corrige-bac-garde .corrige-bac-infos-garde {
  text-align: center;
}

#corrige-html .corrige-bac-garde .corrige-bac-infos-garde p {
  text-align: center;
  margin: 0 0 47px;
}

#corrige-html .corrige-bac-garde .corrige-bac-infos-garde p:nth-child(3) {
  margin-bottom: 22px;
}

#corrige-html .corrige-bac-garde .corrige-bac-infos-garde p.corrige-bac-candidat {
  font-size: 14px;
  margin: 44px 0;
}

#corrige-html .corrige-bac-garde .corrige-bac-infos-garde p.corrige-bac-petit {
  font-size: 13px;
  margin-bottom: 33px;
}

#corrige-html .corrige-bac-garde .corrige-bac-bas-garde {
  margin-top: 48px;
  text-align: center;
}

#corrige-html .corrige-bac-garde .corrige-bac-bas-garde p {
  text-align: center;
  margin-bottom: 29px;
}

#corrige-html .corrige-bac-retour-ligne {
  display: block;
}

#corrige-html .corrige-bac-tableau-zone {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 15px;
  overflow-x: auto;
  scrollbar-width: thin;
}

#corrige-html .corrige-bac-page table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  min-width: 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.25;
  color: #111;
  text-align: center;
}

#corrige-html .corrige-bac-page th,
#corrige-html .corrige-bac-page td {
  min-width: 0;
  padding: 5px 3px;
  background: transparent;
  vertical-align: middle;
  font: inherit;
  font-weight: 400;
  text-align: center;
  overflow-wrap: anywhere;
}

#corrige-html .corrige-bac-page th {
  width: 20%;
  border: 1px solid #666;
}

#corrige-html .corrige-bac-page td {
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}

#corrige-html .corrige-bac-page td:last-child {
  border-right: 1px solid #666;
}

#corrige-html .corrige-bac-page table tr:first-child td {
  border-top: 1px solid #666;
}

#corrige-html .corrige-bac-tableau-signes td:nth-child(2),
#corrige-html .corrige-bac-tableau-variations td:nth-child(2) {
  width: 15%;
}

#corrige-html .corrige-bac-variation-dessin {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}

#corrige-html .corrige-bac-fleches {
  display: block;
  width: 100%;
  height: 100%;
  fill: #111;
  stroke: #111;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

#corrige-html .corrige-bac-variation-dessin span {
  position: absolute;
  z-index: 1;
  background: white;
}

#corrige-html .corrige-bac-variation-zero-gauche { left: 4%; bottom: 0; }
#corrige-html .corrige-bac-variation-neuf { left: 49%; top: 0; }
#corrige-html .corrige-bac-variation-zero-droite { right: 4%; bottom: 0; }

#corrige-html .corrige-bac-page p.corrige-bac-separateur {
  margin: 28px 0 30px;
  text-align: left;
  letter-spacing: -1px;
}

#corrige-html .corrige-bac-page p.corrige-bac-source {
  margin-bottom: 9px;
  font-style: italic;
}

@container bac-document (min-width: 400px) {
  #corrige-html .corrige-bac-page p,
  #corrige-html .corrige-bac-page ul {
    hyphens: none;
    -webkit-hyphens: none;
  }
}

@container bac-document (min-width: 718px) {
  #corrige-html .corrige-bac-pages {
    padding: 18px;
    gap: 18px;
    background: #eeeeee;
  }

  #corrige-html .corrige-bac-page {
    aspect-ratio: 595.32 / 841.92;
    height: auto;
    padding: 12% 11.9% 4.3%;
    border: 0;
    box-shadow: 0 0 1px rgba(0, 0, 0, .12);
    font-size: 15.5px;
  }

  #corrige-html .corrige-bac-page p {
    margin-bottom: 10px;
  }

  #corrige-html .corrige-bac-page h3 {
    font-size: 17.4px;
  }

  #corrige-html .corrige-bac-page h4 {
    font-size: 15.5px;
    margin: 13px 0 9px;
  }

  #corrige-html .corrige-bac-pied-de-page {
    white-space: nowrap;
    font-size: 11.6px;
  }

  #corrige-html .corrige-bac-garde .corrige-bac-titres-garde {
    margin-bottom: 86px;
  }

  #corrige-html .corrige-bac-garde p.corrige-bac-titre-garde {
    font-size: 34px;
  }

  #corrige-html .corrige-bac-garde .corrige-bac-bas-garde {
    margin-top: 165px;
  }
  
  #corrige-html .corrige-bac-page .corrige-bac-fin-automatismes {
    margin-bottom: 130px;
  }
  
  #corrige-html .corrige-bac-page .corrige-bac-fin-exercice-1 {
    margin-bottom: 100px;
  }
    
  #corrige-html .corrige-bac-page .corrige-bac-fin-exercice-2 {
    margin-bottom: 100px;
  }
}

@container bac-document (max-width: 717.99px) {
  #corrige-html .corrige-bac-page:last-child {
    border-bottom: 0;
  }

  #corrige-html .corrige-bac-formule,
  #corrige-html .corrige-bac-tableau-zone {
    background: linear-gradient(to right, white 25%, transparent) 0 0 / 28px 100% no-repeat local,
      linear-gradient(to left, white 25%, transparent) 100% 0 / 28px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.30), transparent) 0 0 / 10px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.30), transparent) 100% 0 / 10px 100% no-repeat scroll;
  }
}

@container bac-document (min-width: 718px) and (max-width: 790px) {
  #corrige-html .corrige-bac-page p {
    margin-bottom: 7px;
  }

  #corrige-html .corrige-bac-formule {
    margin: 2px 0 6px;
    padding: 0;
  }

  #corrige-html .corrige-bac-page h4 {
    margin: 10px 0 6px;
  }

  #corrige-html .corrige-bac-page li {
    margin-bottom: 4px;
  }

  #corrige-html .corrige-bac-garde p.corrige-bac-titre-garde {
    font-size: 28px;
    margin-bottom: 8px;
  }

  #corrige-html .corrige-bac-garde .corrige-bac-titres-garde {
    margin-bottom: 52px;
  }

  #corrige-html .corrige-bac-garde .corrige-bac-infos-garde p {
    margin-bottom: 24px;
  }

  #corrige-html .corrige-bac-garde .corrige-bac-infos-garde p.corrige-bac-candidat {
    margin: 24px 0;
  }

  #corrige-html .corrige-bac-garde .corrige-bac-infos-garde p.corrige-bac-petit {
    margin-bottom: 18px;
  }

  #corrige-html .corrige-bac-garde .corrige-bac-bas-garde {
    margin-top: 100px;
  }
}
