.view-fiche-rubrique {
  max-width: 1200px;
  margin: 30px auto 20px;
  padding: 20px;
  position: relative;
/*  background-color: #ffffff; */
  background-color: #fff6e8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.view-fiche-rubrique h1 {
  color: #365ab5;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5em;
  font-weight: bold;
}

.view-fiche-rubrique .field-description {
  font-size: 0.9em;
  color: #333333;
  line-height: 1.4;
  margin-right: 120px;
}

.view-fiche-rubrique .field-image {
  position: absolute;
  top: -30px;
  right: 20px;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border-radius: 10px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  /* background-color: #e6f2ff; */
}

.view-fiche-rubrique .field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Style pour un éventuel type de rubrique */
.rubrique-type-bubble {
  background-color: #ff0000;
  color: #ffffff;
  font-size: 0.8em;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  .view-fiche-rubrique {
    padding: 15px;
    margin-top: 60px;
  }

  .view-fiche-rubrique .field-description {
    margin-right: 0;
  }

  .view-fiche-rubrique .field-image {
    position: absolute;
    top: -45px;
    right: 50%;
    transform: translateX(50%);
    width: 90px;
    height: 90px;
  }
}

/* Pour replier le champ description de la fiche rubrique */
.field-description.collapsible {
  max-height: 3em;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.field-description.expanded {
  max-height: 1000px;
}

.toggle-description {
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
}

.field-group-format-wrapper {
  display: none;
}
.field-group-format-toggler {
  cursor: pointer;
}



details {
    padding: 1rem;
    margin-bottom: 1rem;
    border : none;
}


.field-group-details {
  margin-bottom: 1em;
}

.field-group-details summary.description-toggle {
  cursor: pointer;
  padding: 0.75em 1em;
  background-color: #365ab5; /* bleu oldup */
  /* background-color: #ffb400; ancien orange */
  color: white;
  font-weight: bold; 
  font-size: larger; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.field-group-details summary.description-toggle:hover {
  background-color: #e9e9e9;
  /* color: #ffb400; */
  color: #365ab5;
}

.field-group-details summary.description-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3498db;
}

.field-group-details summary.description-toggle .toggle-icon {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.field-group-details[open] summary.description-toggle .toggle-icon {
  transform: rotate(180deg);
}

.field-group-details-wrapper {
  padding: 1em 0;
}
