/* ============================================
   IMAGE MISE EN AVANT WP-PRO (Grade A)
   ============================================ */
.wp-pro-featured-img {
  display: block;
  max-width: 750px;
  max-height: 280px;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

@media (max-width: 800px) {
  .wp-pro-featured-img {
    max-width: 100vw;
    max-height: 220px;
  }
}
/* ============================================
   ACCORDÉON STYLE BOOTSTRAP
   ============================================ */

.ux-accordion {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.ux-accordion-item {
  border-bottom: 1px solid #dee2e6;
}

.ux-accordion-item:last-child {
  border-bottom: none;
}

.ux-accordion-header {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 500;
  background: #e9ecef;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #212529;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.ux-accordion-header:hover {
  background: #dee2e6;
}

/* État actif/ouvert - en-tête bleu foncé */
.ux-accordion-header.active,
.ux-accordion-header[aria-expanded="true"],
.ux-accordion-item.open .ux-accordion-header {
  background: #1a3a5c;
  color: #ffffff;
}

.ux-accordion-header.active:hover,
.ux-accordion-header[aria-expanded="true"]:hover,
.ux-accordion-item.open .ux-accordion-header:hover {
  background: #152e4a;
}

/* Icône chevron */
.ux-accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.ux-accordion-header.active .ux-accordion-icon,
.ux-accordion-header[aria-expanded="true"] .ux-accordion-icon,
.ux-accordion-item.open .ux-accordion-icon {
  transform: rotate(180deg);
}

/* Contenu de l'accordéon */
.ux-accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #ffffff;
  transition: max-height 0.35s ease, padding 0.3s ease;
  border-top: none;
}

.ux-accordion-content.open {
  max-height: 1000px;
  padding: 20px;
  border-top: 1px solid #dee2e6;
}

/* ============================================
   STYLES POUR BLOCS WORDPRESS DETAILS/ACCORDÉON
   ============================================ */

/* Conteneur groupe d'accordéons WordPress */
.wp-block-details-accordion-group,
.wp-block-group.is-style-accordion {
  border: 1px solid #d3d8de;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* WordPress native Details block */
.wp-block-details {
  border: none;
  border-bottom: 1px solid #d3d8de;
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.wp-block-details:last-child,
.wp-block-details:last-of-type {
  border-bottom: none;
}

/* Enlever les bordures individuelles quand groupés */
.wp-block-group .wp-block-details:first-child {
  border-radius: 0;
}

.wp-block-group .wp-block-details:last-child {
  border-radius: 0;
}

/* Summary - En-tête de l'accordéon */
.wp-block-details summary {
  padding: 16px 20px;
  padding-right: 50px;
  font-size: 1rem;
  font-weight: 500;
  background: #e7eaed;
  color: #212529;
  cursor: pointer;
  list-style: none;
  display: block;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 0;
}

.wp-block-details summary::-webkit-details-marker {
  display: none;
}

.wp-block-details summary::marker {
  display: none;
  content: "";
}

/* Chevron à droite - style Bootstrap */
.wp-block-details summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid #495057;
  border-bottom: 2px solid #495057;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease, border-color 0.2s ease;
}

.wp-block-details summary:hover {
  background: #dde1e5;
}

/* État ouvert - En-tête bleu foncé */
.wp-block-details[open] summary {
  background: #1e4976;
  color: #ffffff;
}

.wp-block-details[open] summary:hover {
  background: #17395d;
}

/* Chevron rotation quand ouvert */
.wp-block-details[open] summary::after {
  border-color: #ffffff;
  transform: translateY(-25%) rotate(-135deg);
}

/* Contenu de l'accordéon */
.wp-block-details > *:not(summary) {
  padding: 20px;
  margin: 0;
  background: #ffffff;
}

.wp-block-details > p:not(summary),
.wp-block-details > div:not(summary) {
  padding: 20px;
  margin: 0;
  line-height: 1.7;
  color: #333;
}

/* Premier bloc après summary */
.wp-block-details[open] > *:not(summary):first-of-type {
  border-top: 1px solid #d3d8de;
}

/* ============================================
   SOMMAIRE CLASSIQUE (liens hypertexte)
   ============================================ */

.sommaire-classique {
  background: #f8f9fa;
  border-left: 4px solid #1a3a5c;
  padding: 20px 25px;
  margin-bottom: 2rem;
  border-radius: 0 6px 6px 0;
}

.sommaire-classique h2,
.sommaire-classique h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #1a3a5c;
  font-size: 1.3rem;
}

.sommaire-classique ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sommaire-classique ul li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.sommaire-classique ul li:last-child {
  border-bottom: none;
}

.sommaire-classique ul li a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sommaire-classique ul li a:hover {
  color: #1a3a5c;
  text-decoration: underline;
}

/* ============================================
   ÉTIQUETTES / TAGS EN BAS DES FICHES
   ============================================ */

.entry-footer.wp-pro-tags,
.wp-pro-tags {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid #e9ecef;
}
