.col-5.avis-date {
    font-weight: bold;
    font-size: 20px;
}

.col-6.avis-city {
    font-weight: bold;
}

.actu-image img {
  max-width: 100%;
  height: auto;
}

div#block-crms2025-primary-local-tasks {
    display: none;
}

@media (max-width: 575.98px) {
  .hero-section .display-1 {
    font-size: 2.5rem; /* Ajustez la taille selon vos besoins */
  }
}

h2 {
    font-family: "Playfair-bold",Georgia,"Times New Roman",Times,serif;
    font-weight: bold;
}

div#block-crms2025-content {
    padding: 20px;
}

.home-content h2 {
    font-family: "Roboto",Arial,Helvetica,sans-serif;
    font-size: 14pt;
}

.home-content p {
  font-family: 'Playfair Display', serif;
  font-size: 15pt;
}

.home-content a {
    text-decoration: none;
    color: #7e8080;
    border: 1px solid grey;
    padding: 5px;
    font-family: "Roboto",Arial,Helvetica,sans-serif;
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 10px;
}

.home-content a:hover {
    background-color: grey;
    color: white;
    border: 1px solid grey;
    padding: 5px;
}

/* Styling the language switcher block */
.header-bg .language-switcher-language-url ul.links {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-bg .language-switcher-language-url ul.links li {
  margin: 0 0.5rem;
}

.header-bg .language-switcher-language-url ul.links li a {
  color: rgba(255, 255, 255, 0.55);
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.header-bg .language-switcher-language-url ul.links li.is-active a {
  color: #fff;
}

.header-bg .language-switcher-language-url ul.links li a:hover {
  color: #fff;
}

/* Adjustments for smaller screens */
@media (max-width: 991.98px) {
  .header-bg .language-switcher-language-url ul.links {
    flex-direction: column;
    margin-top: 1rem;
    align-items: flex-start;
  }
}

/*
 * Styles généraux pour les liens de langue
 * Ces règles s'appliquent à tous les liens de langue pour les transformer en cercles
 */
.header-bg .language-switcher-language-url ul.links li a {
  /* Masque le texte original pour utiliser le drapeau à la place */
  text-indent: -9999px;
  overflow: hidden;

  /* Définit la taille et la forme du bouton */
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid #fff; /* Bordure blanche pour le cercle */
  border-radius: 50%; /* Rend le bouton rond */

  /* Propriétés pour l'image de fond (le drapeau) */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;

  /* Animations et transitions */
  transition: background-color 0.2s ease-in-out;
}

/*
 * Applique le drapeau SVG pour la langue française
 */
.header-bg .language-switcher-language-url ul.links li a[hreflang="fr"] {
  background-image: url("/themes/crms2025/images/FR.svg");
}

/*
 * Applique le drapeau SVG pour la langue néerlandaise
 */
.header-bg .language-switcher-language-url ul.links li a[hreflang="nl"] {
  background-image: url("/themes/crms2025/images/NL.svg");
}

/*
 * Style pour la langue active (basé sur html[lang])
 * Ajoute une bordure rouge et enlève l'opacité pour la langue courante
 */
html[lang="fr"] .header-bg .language-switcher-language-url ul.links li a[hreflang="fr"],
html[lang="nl"] .header-bg .language-switcher-language-url ul.links li a[hreflang="nl"] {
  border-color: #B43A3F;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(180, 58, 63, 0.3);
}

/* Langue inactive légèrement transparente */
html[lang="fr"] .header-bg .language-switcher-language-url ul.links li a[hreflang="nl"],
html[lang="nl"] .header-bg .language-switcher-language-url ul.links li a[hreflang="fr"] {
  opacity: 0.6;
}

html[lang="fr"] .header-bg .language-switcher-language-url ul.links li a[hreflang="nl"]:hover,
html[lang="nl"] .header-bg .language-switcher-language-url ul.links li a[hreflang="fr"]:hover {
  opacity: 1;
}

/*
 * Réduit la taille des icônes sur les petits écrans
 */
@media (max-width: 991.98px) {
  .header-bg .language-switcher-language-url ul.links li a {
    width: 32px;
    height: 32px;
  }
}

/*
 * Styles pour le lien de l'utilisateur
 */
.header-bg .user-link-icon {
  /* Aligne le lien à droite */
  float: right;

  /* Définit la taille et la forme du bouton */
  display: block;
  width: 50px;
  height: 32px;
  border-radius: 50%; /* Rend le bouton rond */

  /* Propriétés pour l'image de fond (icône utilisateur) */
  background-image: url("/themes/crms2025/images/user.svg");
  background-size: 60%; /* Ajuste la taille de l'icône à l'intérieur du cercle */
  background-repeat: no-repeat;
  background-position: center center;

  /* Animations et transitions */
  transition: background-color 0.2s ease-in-out;
}

/* * Ajout d'une marge pour espacer le lien utilisateur
 * de l'élément de langue
 */
.header-bg .language-switcher-language-url {
  margin-right: 10px;
}

/*
 * Réduit la taille des icônes sur les petits écrans
 */
@media (max-width: 991.98px) {
  .header-bg .user-link-icon {
    width: 32px;
    height: 32px;
  }
}

a.actu-more {
    text-decoration: none;
    color: #7e8080;
    border: 1px solid grey;
    padding: 5px;
}

/* Pager responsive avec Bootstrap */
.pager {
  margin: 2rem 0;
}

.pager__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager__item {
  margin: 0;
}

.pager__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  color: #0d6efd;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.pager__item a:hover {
  color: #0a58ca;
  background-color: #e9ecef;
  border-color: #adb5bd;
  text-decoration: none;
  transform: translateY(-1px);
}

.pager__item a:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  z-index: 3;
}

/* Page active */
.pager__item.is-active a {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  cursor: default;
}

.pager__item.is-active a:hover {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  transform: none;
}

/* Ellipsis */
.pager__item--ellipsis {
  color: #6c757d;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

/* Boutons Next et Last avec icônes */
.pager__item--next a,
.pager__item--last a {
  font-weight: 600;
  padding: 0.375rem 1rem;
  min-width: auto;
}

.pager__item--next a span[aria-hidden="true"],
.pager__item--last a span[aria-hidden="true"] {
  font-size: 0.875rem;
}

/* Responsivité */
@media (max-width: 767.98px) {
  .pager__items {
    gap: 0.125rem;
  }

  .pager__item a {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
  }

  .pager__item--ellipsis {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }

  .pager__item--next a,
  .pager__item--last a {
    padding: 0.25rem 0.75rem;
  }
}

@media (max-width: 575.98px) {
  /* Sur très petits écrans, on cache certains numéros de page */
  .pager__item:not(.is-active):not(.pager__item--ellipsis):not(.pager__item--next):not(.pager__item--last) {
    display: none;
  }

  /* On garde visible la page active et quelques pages autour */
  .pager__item.is-active,
  .pager__item.is-active + .pager__item,
  .pager__item.is-active + .pager__item + .pager__item {
    display: block !important;
  }

  .pager__items {
    justify-content: space-between;
  }

  .pager__item a {
    min-width: 2rem;
    height: 2rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .pager__item--ellipsis {
    min-width: 2rem;
    height: 2rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Amélioration de l'accessibilité */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Animation subtile pour les interactions */
.pager__item a {
  position: relative;
}

.pager__item a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 0.375rem;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.pager__item a:hover::before {
  opacity: 1;
}

.pager__item.is-active a::before {
  display: none;
}

.container-fluid.hero {
    --bs-gutter-x: 0;
}

div#toolbar-administration {
    z-index: 1050 !important;
}

/* Tableau composition */

.view-membres--rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.view-membres--rows .views-row {
    padding: 20px 0px;
    margin-right: 25px;
    border-bottom: 1px solid grey;
}

.view-membres--rows .views-row>div .user--fonction {
    padding-left: 10px;
}

.view-membres--rows > div > div .user--description {
    width: 100%;
}

.views-row.first .row.publications-list {
    border-top: 1px solid;
}

.row.publications-list {
    border-bottom: 1px solid;
    padding: 10px 0;
}

.publications-list a {
text-decoration: none;
}

a.publications-title {
text-decoration: none;
font-size: 1.1em;
font-weight: bold;
color:#7e8080;
}

a.publication-title {
    font-size: 1.1em;
}

h3.publication-category {
  margin-top: 100px;
  margin-bottom: 20px;
  font-size: 36px;
}

ul.publications-list {
    list-style-type: none;
}

img.icon-download {
    width: 15px;
}


.home-content h1 {
  display: none;
}

.col-12.actu-image {
    margin-bottom: 10px;
}

div#block-crms2025-page-title {
    margin-top: 20px;
}

.views-field.views-field-nothing {
    font-weight: bold;
}

.name.half-underline {
    border-bottom: 1px solid;
    padding-bottom: 20px;
}

.block-layout.block-layout--txt {
    margin-top: 20px;
}
