/* ============================================================
   Box Plus - Template d'article de blog
   Encadre "L'essentiel a retenir", sommaire, tableau, FAQ
   Compatible navigateurs modernes et IE11 (degradation propre)
   ============================================================ */

/* --- Encadre "L'essentiel a retenir" --- */
.bp-encadre {
  background: #f9f9f9;
  border-left: 4px solid #000;
  padding: 18px 22px;
  margin: 0 0 28px;
  border-radius: 4px;
}

.bp-encadre p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.bp-encadre strong {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

/* --- Sommaire --- */
.bp-sommaire {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 28px 0;
}

.bp-sommaire-titre {
  margin: 0 0 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  color: #000;
}

.bp-sommaire ul {
  margin: 0;
  padding-left: 18px;
}

.bp-sommaire li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.bp-sommaire a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #fcf06b;
}

.bp-sommaire a:hover {
  background: #fcf06b;
}

/* --- Tableau comparatif --- */
.bp-tableau-wrap {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}

.bp-tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.bp-tableau th,
.bp-tableau td {
  border: 1px solid #000;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.bp-tableau thead {
  background: #000;
  color: #fcf06b;
}

.bp-tableau thead th {
  font-weight: 700;
}

.bp-tableau tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.bp-tableau tbody tr:hover {
  background: #fcf06b;
  color: #000;
}

/* --- FAQ accordeon --- */
.bp-faq {
  margin: 24px 0;
}

.bp-faq details {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #fff;
}

.bp-faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.bp-faq summary::-webkit-details-marker {
  display: none;
}

.bp-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  margin-top: -12px;
  font-size: 22px;
  line-height: 24px;
  font-weight: 400;
  color: #000;
}

.bp-faq details[open] summary::after {
  content: "\2013";
}

.bp-faq details[open] summary {
  border-bottom: 1px solid #e0e0e0;
}

.bp-faq details p {
  margin: 0;
  padding: 14px 18px;
  line-height: 1.65;
  font-size: 15px;
}

/* --- Mobile --- */
@media screen and (max-width: 768px) {
  .bp-encadre,
  .bp-sommaire {
    padding: 14px 16px;
  }

  .bp-tableau {
    font-size: 14px;
  }

  .bp-tableau th,
  .bp-tableau td {
    padding: 8px 10px;
  }

  .bp-faq summary {
    font-size: 15px;
    padding: 12px 40px 12px 14px;
  }

  .bp-faq details p {
    padding: 12px 14px;
  }
}
