/* Fichier CSS : /asset/css/page/reality/link.css */
/* ============================================================
   TITRES DE SECTIONS ET SOUS-TITRES
   ============================================================ */
.ws-resource-section h2 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  color: var(--color-ws-ressource-section-h2);
  border-bottom: 3px solid var(--color-ws-ressource-section-h2-border);
  padding-bottom: calc(10 / 16 * 1rem);
  margin-bottom: calc(20 / 16 * 1rem);
  margin-top: 0;
}
html[data-theme="dark"] .ws-resource-section h2 {
  color: #8ba0ff;
  font-weight: var(--fw-normal);
  border-bottom: 3px solid #8ba0ff;
}
.ws-resource-section h3 {
  font-size: 1rem;
  margin-top: calc(15 / 16 * 1rem);
  margin-bottom: calc(10 / 16 * 1rem);
}
.ws-section-title-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(45 / 16 * 1rem);
  height: calc(45 / 16 * 1rem);
  background-color: var(--color-ws-section-title-icon-box);
  border: calc(2 / 16 * 1rem) solid var(--color-ws-section-title-icon-box-border);
  border-radius: var(--radius-sm);
  margin-right: calc(15 / 16 * 1rem);
  margin-left: calc(15 / 16 * 1rem);
  font-size: 1.1em;
  flex-shrink: 0;
  box-shadow: var(--shadow-z1);
}
html[data-theme="dark"] .ws-section-title-icon-box {
  background-color: #000000;
  border: none;
}
.ws-section-title-text {
  line-height: 1.2;
}
/* ============================================================
   DESCRIPTION DE SECTION
   ============================================================ */
/* ============================================================
   GRILLE ET CARTES
   ============================================================ */
.ws-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(320 / 16 * 1rem), 1fr));
  gap: calc(15 / 16 * 1rem);
}
.ws-card {
  display: block;
  padding: calc(15 / 16 * 1rem);
  border: calc(1 / 16 * 1rem) solid var(--color-ws-card);
  border-radius: var(--radius-md);
  background-color: var(--source-color-white-transparent) !important;
  cursor: default;
  overflow: hidden;
  box-shadow: var(--shadow-z2);
  position: relative;
}
html[data-theme="dark"] .ws-card {
  background-color: #000000 !important;
  border: none;
}
/* ============================================================
   BLOC IMAGE / BADGE / BOUTON (Ajusté à 80 %)
   ============================================================ */
.ws-card-right-block {
  float: right;
  width: calc(128 / 16 * 1rem);
  margin-left: calc(15 / 16 * 1rem);
  margin-bottom: calc(10 / 16 * 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
/* ============================================================
   IMAGE (Ajustée à 80 %)
   ============================================================ */
.ws-card-image-icon {
  width: calc(120 / 16 * 1rem);
  height: calc(120 / 16 * 1rem);
  object-fit: cover;
  border-radius: 50%;
  border: solid calc(2 / 16 * 1rem) #000;
  box-shadow: var(--shadow-z2);
}
/* ============================================================
   BADGES
   ============================================================ */
.ws-card-link-type {
  display: inline-block;
  margin-top: calc(8 / 16 * 1rem);
  margin-bottom: calc(6 / 16 * 1rem);
  padding: calc(4 / 16 * 1rem) calc(10 / 16 * 1rem);
  font-size: 1em;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  text-align: center;
  box-shadow: var(--shadow-z1);
  white-space: nowrap;
}
.ws-card-link-type.link-type-facebook {
  background-color: #dbe7ff;
  color: #174ea6;
}
html[data-theme="dark"] .ws-card-link-type.link-type-facebook {
  background-color: #243b68;
  color: #b9d0ff;
}
.ws-card-link-type.link-type-website {
  background-color: #e5f4e5;
  color: #27632a;
}
html[data-theme="dark"] .ws-card-link-type.link-type-website {
  background-color: #29452c;
  color: #b8e6bc;
}
/* ============================================================
   BOUTON D'ACTION
   ============================================================ */
.ws-card-action-btn {
  margin-top: calc(10 / 16 * 1rem);
  padding: calc(5 / 16 * 1rem) calc(10 / 16 * 1rem);
  background-color: #ffffff;
  color: #000000;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  display: flex;
  white-space: nowrap;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 11;
  box-shadow: var(--shadow-z2);
  border: none;
}
html[data-theme="dark"] .ws-card-action-btn {
  background-color: #222222;
  color: #ffffff;
  border: none;
  font-weight: normal;
}
.ws-card-action-btn:hover {
  background-color: #ededed;
  color: #000000;
}
html[data-theme="dark"] .ws-card-action-btn:hover {
  background-color: #333333;
  color: #ffffff;
}
.ws-card-action-btn::before {
  content: "";
  background-image: url("/asset/img/gl/hand-pointer.svg");
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  margin-right: calc(5 / 16 * 1rem);
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  filter: brightness(0);
}
html[data-theme="dark"] .ws-card-action-btn::before {
  filter: brightness(0) invert(1);
}
/* ============================================================
   TEXTE DE LA CARTE (Titres réduits)
   ============================================================ */
.ws-card-title-meta {
  font-size: 0.70rem;
  color: #ff4d00;
  font-style: italic;
  margin-top: calc(5 / 16 * 1rem);
  margin-bottom: calc(10 / 16 * 1rem);
  display: block;
}
html[data-theme="dark"] .ws-card-title {
  font-weight: var(--fw-normal);
  color: var(--color-dark-mode-title);
}
.ws-card-desc {
  display: block;
  font-size: 0.95em;
  line-height: 1.4;
  padding-top: calc(15 / 16 * 1rem);
  margin-top: calc(8 / 16 * 1rem);
  position: relative;
  color: var(--color-ws-card-desc);
}
html[data-theme="dark"] .ws-card-desc {
  color: white;
}
.ws-card-desc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 39%;
  height: 3px;
  background-image: linear-gradient(to right, var(--color-ws-card-desc) 65%, rgba(255, 255, 255, 0) 0%);
  background-size: calc(15 / 16 * 1rem) 2px;
  background-repeat: repeat-x;
}
html[data-theme="dark"] .ws-card-desc::before {
  background-image: linear-gradient(to right, #ffffff 65%, rgba(255, 255, 255, 0) 0%);
}
.toc-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toc-list li {
  margin-bottom: 0;
}
.toc-list a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-weight: var(--fw-bold);
  background-color: #ffffff;
  color: #000000;
  padding: calc(4 / 16 * 1rem) calc(6 / 16 * 1rem);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-z2);
  text-align: left;
}
html[data-theme="dark"] .toc-list a {
  background-color: #000000;
  color: #ffffff;
  border: none;
  font-weight: normal;
}
.toc-list a:hover {
  background-color: #ededed;
  color: #000000;
}
html[data-theme="dark"] .toc-list a:hover {
  background-color: #333333;
}
.toc-thumbnail {
  font-size: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: calc(10 / 16 * 1rem);
}
.ws-resource-section:last-of-type + .back-to-index {
  margin-bottom: 0;
}
/*@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: calc(635 / 16 * 1rem)) {
  .ws-resource-section h2 {
    font-size: 1rem;
    text-align: left;
  }
}