/* PandaCodeur : genie logiciel avance.
 * Complete pc-examen.css, qui ne connait ni les accordeons de corrige,
 * ni le QCM, ni les cartes de sommaire.
 */

.pc-chapeau {
  font-size: 1.06rem;
  padding: 14px 16px;
  margin-bottom: 26px;
  border-left: 4px solid #e2571e;
  background: rgba(226, 87, 30, .06);
  border-radius: 0 6px 6px 0;
}

/* --------------------------------------------------- titres de partie */
.pc-partie {
  margin: 34px 0 6px;
  font-size: 1.12rem;
  color: #c44714;
  border: 0;
  padding: 0;
}

.pc-bareme {
  font-size: .84rem;
  font-weight: 700;
  color: #6b7f92;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 14px;
}

.pc-meta {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 9px;
  background: #fafbfc;
  border: 1px solid rgba(0, 0, 0, .12);
  font-size: .92rem;
}
.pc-meta p { margin: 0 0 6px; }
.pc-meta p:last-child { margin: 0; }

/* ------------------------------------------------------------- le QCM */
.pc-qcm { margin: 0 0 8px; padding-left: 24px; }
.pc-qcm > li { margin-bottom: 16px; }

.pc-choix {
  margin: 7px 0 0;
  padding-left: 22px;
  list-style: lower-alpha;   /* a, b, c, d : les corriges s'y referent */
}
.pc-choix > li { margin-bottom: 3px; }

/* ---------------------------------------------- corriges en accordeon */
.pc-sol {
  border: 1px solid rgba(226, 87, 30, .3);
  border-radius: 8px;
  background: #fff;
  margin: 0 0 12px;
}
.pc-sol > summary {
  cursor: pointer;
  padding: 11px 15px;
  font-weight: 700;
  font-size: .92rem;
  color: #c44714;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pc-sol > summary::-webkit-details-marker { display: none; }
.pc-sol > summary:hover { background: rgba(226, 87, 30, .06); }
.pc-sol-fleche {
  width: 0;
  height: 0;
  flex: none;
  border-left: 6px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  transition: transform .18s;
}
.pc-sol[open] > summary .pc-sol-fleche { transform: rotate(90deg); }
.pc-sol[open] > summary .pc-sol-voir,
.pc-sol:not([open]) > summary .pc-sol-masquer { display: none; }
.pc-sol-corps {
  padding: 4px 17px 16px;
  border-top: 1px solid rgba(226, 87, 30, .18);
  font-size: .95rem;
}
.pc-sol-corps > *:first-child { margin-top: 13px; }
.pc-sol-corps > *:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- rappels, tab */
.pc-rappel {
  margin: 18px 0;
  padding: 13px 17px;
  border-radius: 9px;
  background: rgba(27, 126, 60, .06);
  border: 1px solid rgba(27, 126, 60, .26);
}
.pc-rappel-t {
  margin: 0 0 7px;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #15682f;
}
.pc-rappel p:last-child { margin-bottom: 0; }

.pc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: .91rem;
}
.pc-table th,
.pc-table td {
  border: 1px solid rgba(0, 0, 0, .14);
  padding: 8px 11px;
  text-align: left;
  vertical-align: top;
}
.pc-table th { background: #f4f6f8; font-weight: 700; }
.pc-table tbody tr:nth-child(even) { background: #fafbfc; }

.pc-figure { margin: 26px 0; text-align: center; }
.pc-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 9px;
  background: #fff;
}

.pc-liste { margin: 0 0 16px; padding-left: 24px; }
.pc-liste li { margin-bottom: 7px; }

/* ------------------------------------------- cartes du sommaire index */
.pc-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.pc-carte {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
a.pc-carte:hover { border-color: #e2571e; text-decoration: none; }
.pc-carte-num {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94350d;
}
.pc-carte-titre { font-weight: 700; font-size: 1rem; line-height: 1.4; }
.pc-carte-desc { font-size: .86rem; line-height: 1.55; opacity: .8; }

@media (max-width: 575.98px) {
  .pc-grille { grid-template-columns: 1fr; }
  .pc-table { font-size: .85rem; }
  .pc-table th, .pc-table td { padding: 6px 8px; }
}
