@charset "UTF-8";
/* Sélecteur de thématique */
.res-picker {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.dark .res-picker {
  background: #1a2332;
  border-color: #374151;
}
.res-picker__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.625rem;
}
.dark .res-picker__label {
  color: #d1d5db;
}

.res-select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
}
.dark .res-select {
  background: #0f172a;
  border-color: #374151;
  color: #e5e7eb;
}

.select2-container--default .select2-selection--single {
  height: auto;
  padding: 0.375rem 0.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #111827;
}

.dark .select2-container--default .select2-selection--single {
  background: #0f172a;
  border-color: #374151;
}
.dark .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #e5e7eb;
}
.dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-top-color: #9ca3af;
}
.dark .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-bottom-color: #9ca3af;
  border-top-color: transparent;
}
.dark .select2-dropdown {
  background: #1a2332;
  border-color: #374151;
}
.dark .select2-container--default .select2-results__option {
  color: #e5e7eb;
  background: transparent;
}
.dark .select2-container--default .select2-results__option--highlighted[aria-selected],
.dark .select2-container--default .select2-results__option--highlighted[data-selected],
.dark .select2-container--default .select2-results__option[aria-selected=true],
.dark .select2-container--default .select2-results__option[data-selected=true] {
  background: #0099b8;
  color: #fff;
}
.dark .select2-search--dropdown {
  background: #1a2332;
}
.dark .select2-search--dropdown .select2-search__field {
  background: #0f172a;
  border-color: #374151;
  color: #e5e7eb;
}

/* Boutons de thématiques (page sommaire) */
.res-pills {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.625rem;
}

.res-pill {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.625rem 1.125rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
  color: #4b5563;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-transition: color 0.15s, border-color 0.15s, background-color 0.15s;
  -o-transition: color 0.15s, border-color 0.15s, background-color 0.15s;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.res-pill:hover {
  color: #0099b8;
  border-color: #66cfe1;
}
.dark .res-pill {
  background: #1a2332;
  border-color: #374151;
  color: #9ca3af;
}
.dark .res-pill:hover {
  color: #66cfe1;
  border-color: #00afcd;
}

/* Définition et sommaire de la thématique */
.res-def {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
  background: #f8fafc;
  border-left: 3px solid #00afcd;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 0;
}
.dark .res-def {
  background: #1a2332;
  color: #d1d5db;
}

.res-toc {
  position: sticky;
  top: 4rem;
  z-index: 30;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.625rem;
  padding: 0.75rem 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.dark .res-toc {
  background: #0f172a;
  border-color: #374151;
}
@media (max-width: 639px) {
  .res-toc {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    overflow-x: auto;
  }
}
.res-toc__link {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}
.res-toc__link:hover {
  color: #0099b8;
}
.dark .res-toc__link {
  background: #1a2332;
  color: #9ca3af;
}
.dark .res-toc__link:hover {
  color: #66cfe1;
}

/* Sections de résultats */
.res-section {
  margin-top: 2.5rem;
}
.res-section__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  scroll-margin-top: 8.5rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.125rem;
  font-weight: 700;
  color: #003d49;
}
.dark .res-section__title {
  border-color: #374151;
  color: #66cfe1;
}
.res-section__title::before {
  content: "";
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  width: 4px;
  height: 1.5rem;
  border-radius: 2px;
  background: #00afcd;
}
.res-section__title--video::before {
  background: #dc2626;
}
.res-section__title--publication::before {
  background: #15803d;
}
.res-section__title--retour::before {
  background: #b45309;
}
.res-section__count {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
}
.dark .res-section__count {
  background: #1a2332;
  color: #9ca3af;
}

/* Listes et grilles */
.res-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.75rem;
}

.res-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .res-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .res-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Carte horizontale (articles, publications, retours d'expérience)
   Le markup est généré par generateTagCard() / generateTagRetourCard() de feedformater.php.
   Les enfants sont ciblés par leur balise plutôt que par une classe, pour ne pas répéter
   des attributs class sur les milliers d'éléments d'une page de thématique :

   <article class="res-card">
       <a><img></a>          couverture (facultatif)
       <div>
           <h3><a>titre</a></h3>
           <p>source ou année</p>
           <div>description</div>   (facultatif)
           <footer>date</footer>    (facultatif)
       </div>
   </article> */
.res-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.dark .res-card {
  background: #1a2332;
  border-color: #374151;
}
.res-card > a {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  width: 72px;
}
.res-card > a img {
  display: block;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}
.dark .res-card > a img {
  border-color: #374151;
}
.res-card > div {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  min-width: 0;
}
.res-card h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.res-card h3 a {
  color: #111827;
  text-decoration: none;
}
.res-card h3 a:hover {
  color: #00afcd;
}
.dark .res-card h3 a {
  color: #fff;
}
.dark .res-card h3 a:hover {
  color: #66cfe1;
}
.res-card h3 + p {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}
.res-card > div > div {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #6b7280;
}
.dark .res-card > div > div {
  color: #9ca3af;
}
.res-card footer {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: #9ca3af;
}

/* Carte verticale (vidéos), générée par generateTagVideoCard() :

   <article class="res-vcard">
       <a><img><span><svg></svg></span></a>
       <div>
           <h3><a>titre</a></h3>
           <p>source</p>
           <p>description</p>   (facultatif)
           <footer>date</footer>
       </div>
   </article> */
.res-vcard {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  overflow: hidden;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  -webkit-transition: -webkit-transform 0.15s, -webkit-box-shadow 0.15s;
  transition: -webkit-transform 0.15s, -webkit-box-shadow 0.15s;
  -o-transition: transform 0.15s, box-shadow 0.15s;
  transition: transform 0.15s, box-shadow 0.15s;
  transition: transform 0.15s, box-shadow 0.15s, -webkit-transform 0.15s, -webkit-box-shadow 0.15s;
}
.res-vcard:hover {
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
          box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.dark .res-vcard {
  background: #1a2332;
  border-color: #374151;
}
.res-vcard > a {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  background: #f3f4f6;
  overflow: hidden;
}
.dark .res-vcard > a {
  background: #0f172a;
}
.res-vcard > a img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  -o-transition: transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}
.res-vcard:hover > a img {
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}
.res-vcard > a span {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-transition: background-color 0.15s;
  -o-transition: background-color 0.15s;
  transition: background-color 0.15s;
}
.res-vcard > a span svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
  -webkit-transform: translateX(2px);
      -ms-transform: translateX(2px);
          transform: translateX(2px);
}
.res-vcard:hover > a span {
  background: #00afcd;
}
.res-vcard > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  padding: 1rem;
}
.res-vcard h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.res-vcard h3 a {
  color: #111827;
  text-decoration: none;
}
.res-vcard h3 a:hover {
  color: #00afcd;
}
.dark .res-vcard h3 a {
  color: #fff;
}
.dark .res-vcard h3 a:hover {
  color: #66cfe1;
}
.res-vcard h3 + p {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}
.res-vcard p + p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dark .res-vcard p + p {
  color: #9ca3af;
}
.res-vcard footer {
  margin: auto 0 0;
  padding-top: 0.5rem;
  font-size: 0.6875rem;
  color: #9ca3af;
}

/* Tags d'une carte */
.res-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.625rem 0 0;
}

.res-card .res-tags {
  margin-top: 0.625rem;
  font-size: 0.75rem;
}

.res-tag {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}
.res-tag:hover {
  background: #bae6fd;
}
.dark .res-tag {
  background: rgba(12, 74, 110, 0.5);
  color: #7dd3fc;
}
.dark .res-tag:hover {
  background: rgba(12, 74, 110, 0.8);
}

/* Pastilles de qualification (type de recherche, statut, ...) */
.res-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
}
.dark .res-badge {
  background: #0f172a;
  color: #9ca3af;
}
.res-badge--emploi {
  background: #cffafe;
  color: #0e7490;
}
.dark .res-badge--emploi {
  background: rgba(22, 78, 99, 0.5);
  color: #67e8f9;
}
.res-badge--stage {
  background: #dcfce7;
  color: #15803d;
}
.dark .res-badge--stage {
  background: rgba(20, 83, 45, 0.5);
  color: #86efac;
}

/* Pastille d'initiales */
.res-avatar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
}
.dark .res-avatar {
  background: rgba(12, 74, 110, 0.5);
  color: #7dd3fc;
}

/* Encart d'information (carte des retours, ...) */
.res-note {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #f0f9ff;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
}
.res-note svg {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: #00afcd;
}
.res-note a {
  color: #0099b8;
  font-weight: 600;
}
.res-note a:hover {
  text-decoration: underline;
}
.dark .res-note {
  background: #1a2332;
  color: #d1d5db;
}
.dark .res-note a {
  color: #66cfe1;
}

/* Message quand la thématique ne contient rien */
.res-empty {
  font-size: 0.9375rem;
  color: #6b7280;
}
.dark .res-empty {
  color: #9ca3af;
}