/* Fichier CSS : /asset/css/page/reality/reality.css */
.page-title-reality {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  margin: 0 !important;
  line-height: 1 !important;
  color: #007d32;
}
html[data-theme="dark"] .page-title-reality {
  color: var(--color-dark-mode-page-title-reality);
}
.page-title-reality img {
  /* Contenu lié au titre de la page */
}
.reality-page-title-icon {
  width: auto;
  height: 3rem;
  margin: 0 0 0 0.9375rem !important;
}
html[data-theme="dark"] .reality-page-title-icon {
  filter: invert(1) brightness(0.6);
}
.page-nav-subtitle {
  font-size: 1.2rem;
  font-weight: bold;
  color: #004487;
  margin-bottom: 1rem;
  line-height: 1rem;
}
html[data-theme="dark"] .page-nav-subtitle {
  font-weight: normal;
  color: #ffc876;
}
.keep-in-line-icon-and-page-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
/* reality nav */
.reality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: var(--space-md 0);
  justify-content: center;
  margin-top: var(--space-md);
  margin-bottom: 0;
}
/* cartes */
.reality-item {
  background-color: var(--source-color-white-transparent) !important;
  border: 1px solid var(--color-reality-item-border);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold);
  color: var(--color-reality-item);
  text-decoration: none;
  max-width: 14.375rem;
  flex-basis: 14.375rem;
  flex-grow: 1;
  flex-shrink: 1;
  aspect-ratio: 1.8 / 1;
  box-sizing: border-box;
  padding: 0.3125rem var(--space-xs) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0;
  box-shadow: var(--shadow-z2);
  min-height: 0 !important;
}
html[data-theme="dark"] .reality-item {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-weight: var(--fw-normal) !important;
  border: none;
}
.reality-item img {
  margin: 0 !important;
  display: block;
}
.reality-item:hover {
  background-color: var(--color-card-hover);
  transform: scale(var(--transform-scale-md));
  box-shadow: var(--shadow-z2);
}
html[data-theme="dark"] .reality-item:hover {
  background-color: #333333 !important;
}
.reality-item .reality-icon {
  height: 3.75rem;
  width: auto;
  object-fit: contain;
  max-width: none;
  margin: var(--space-sm) 0 var(--space-xs) 0;
}
html[data-theme="dark"] .reality-item .reality-icon {
  filter: invert(1);
}
.reality-item .reality-text,
.reality-item .reality-subtext {
  margin: 0.3125rem 0 0 0;
  line-height: 1;
  display: block;
  width: 100%;
  color: inherit;
  flex-shrink: 0;
  text-align: center;
}
.reality-item .reality-text {
  font-weight: var(--fw-bold);
  font-size: var(--font-size-reality-nav-item-text);
  margin-bottom: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.reality-item .reality-subtext-bottom {
  font-weight: var(--fw-bold);
  font-size: var(--font-size-reality-nav-item-subtext-bottom);
  transform-origin: center center;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25rem;
  color: #00802d;
}
html[data-theme="dark"] .reality-item .reality-subtext-bottom {
  color: #FFD65F !important;
  font-weight: normal !important;
}
.carousel-container {
  max-width: 31.25rem;
  position: relative;
  border: 2px solid var(--color-carousel-container-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-z2);
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}
.mySlides {
  display: none;
  flex-direction: column;
  position: relative;
  width: 100%;
}
.mySlides img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}
/* Numéro de slide */
.number-text {
  position: absolute;
  top: 0.9375rem;
  left: 0.9375rem;
  color: var(--source-color-white);
  font-size: var(--font-size-carousel-number-text);
  background-color: var(--color-black-transparent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  z-index: 10;
}
.carousel_caption_text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: auto; /* Permet à la boîte de s'adapter au texte */
  padding: 0.625rem 0.9375rem; /* Ajuste l'espace intérieur en haut/bas et sur les côtés */
  color: var(--color-carousel-caption-text);
  font-size: 1rem;
  font-weight: var(--fw-normal);
  text-align: center;
  background-color: #1e1e1e;
  white-space: normal;
  z-index: 10;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 37%;
  width: auto;
  padding: var(--space-sm) var(--space-md);
  color: white;
  font-weight: var(--fw-normal);
  font-size: 1.6rem;
  border-radius: var(--radius-sm) 3.125rem 3.125rem 1.25rem;
  user-select: none;
  z-index: 11;
}
.prev {
  left: 4px;
}
.next {
  right: 4px;
}
.slide-to-the-right {
  float: right;
  margin-left: var(--space-md);
  width: 25rem;
  max-width: 25rem;
}
.content-warning-overlay {
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  padding: 20%;
}
.warning-icon {
  width: 3.2rem !important;
  height: auto;
  margin-bottom: var(--space-xs);
}
.warning-text {
  color: white;
  font-size: 1rem;
  font-weight: var(--fw-normal);
  line-height: 1.3;
  font-style: italic;
  max-width: 70%;
  padding-top: 1rem;
}
.tts-content-container {
  position: relative;
  margin-top: 20px;
}
.book-summary-wrapper {
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.book-summary-wrapper.expanded {
  max-height: 2000px;
}
.expand-btn {
  display: block;
  margin: 10px auto 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
}
.expand-btn::after {
  content: attr(data-see-more);
}
.expand-btn.is-expanded::after {
  content: attr(data-see-less);
}
.content-wrapper {
  overflow: hidden;
  margin-top: var(--space-md);
}
.resource-text {
  line-height: 1.5;
}
.box {
  margin-bottom: calc(5 / 16 * 1rem); /* Réduit la marge inférieure par défaut de la boîte */
}
.warning-img {
  width: 100%;
}
.warning-img-light {
  display: block !important;
}
.warning-img-dark {
  display: none !important;
}
html[data-theme="dark"] .warning-img-light {
  display: none !important;
}
html[data-theme="dark"] .warning-img-dark {
  display: block !important;
}
h3 {
  font-size: 1.1rem;
  margin-top: -.5rem !important;
  font-weight: var(--fw-bold) !important;
  color: #004487;
}
html[data-theme="dark"] h3 {
  color: #ffc876 !important;
  font-weight: var(--fw-normal) !important;
}
/*@media@media@media@media@media@media@media@media@media@media@media@media*/
/*@media@media@media@media@media@media@media@media@media@media@media@media*/
/*@media@media@media@media@media@media@media@media@media@media@media@media*/
/*@media@media@media@media@media@media@media@media@media@media@media@media*/
@media (max-width: 1200px) {
  /* Écrans larges et ordinateurs de bureau */
}
@media (max-width: 992px) {
  /* Tablettes en mode paysage et petits ordinateurs */  /* Tablettes en mode portrait et grands smartphones */
  .page-title-reality img {
    width: 2.6rem;
    height: 2.6rem;
  }
  .reality-page-title-icon {
    width: 4rem;
    height: 4rem;
    display: block;
    margin: 0 0 0 var(--space-md);
  }
  .slide-to-the-right {
    width: 21.875rem;
    float: none !important;
    max-width: 100% !important;
    display: block !important;
    margin: var(--space-md) auto !important;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.2rem !important;
  }
  h3 {

    font-size: 1rem !important;
  }
  .page-nav-subtitle {
    font-size: 1rem !important;
    margin-bottom: .5rem !important;
    line-height: 1rem !important;
  }
}
@media (max-width: 576px) {
  /* Smartphones standards */

}
@media (max-width: 400px) {
  /* Petits smartphones */
}