body mark {
    background-color: #00A8A938;
    padding-top: 0;
}
.search-page .loader-search {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0; /* Un peu d'espace pour respirer */
}

.search-page .loader-search .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Gris clair */
    border-top: 5px solid #00a8a9; /* Bleu */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.search-none{
    margin: auto;
}
.search-none img{
    max-width: 96px;
    margin-bottom: 1.5rem;
}
.search-none p{
    text-align: center;
    font-weight: 500;
}
.search-form.top{
    position: relative;
}
.search-form.top .suggestions-list-top,
#suggestions-list{
    position: absolute;
    width: 100%;
    z-index: 1000;
}
.search-form.top .suggestions-list-top .suggestion-item{
    cursor: pointer;
}
/* --- Section Filtres & Recherche --- */
 /* --- Section Filtres & Recherche --- */
.search-page .input-group .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}
.search-page .input-group .form-control {
    border-left: 0;
}
.search-page .input-group-text {
    border-right: 0;
}

.search-page .bloc-search-field .input-group{
	position: relative;
    border: 1px solid #E3E3E3;
    border-radius: 50px;
    background: #FDFAFA;
}
.search-page .bloc-search-field .input-group .input-icon{
	border: none;
	background: transparent;
}
.search-page .bloc-search-field .input-group .input-icon .search-icon-v2 {
    background-image: url(../images/icons/search-icon-v2.svg);
    display: inline-block;
    height: 25px;
    width: 24px;
    min-width: 24px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}
.search-page .bloc-search-field .input-group .input-clear-icon{
	border: none;
	background: transparent;
    visibility: hidden;
}
.search-page .bloc-search-field .input-group .input-clear-icon.is-visible {
    visibility: visible;
}
.search-page .bloc-search-field .input-group .input-clear-icon .input-clear {
    background-image: url(../images/icons/clear-input.svg);
    display: inline-block;
    height: 24px;
    width: 24px;
    min-width: 24px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}
.search-page #suggestions-list{
    position: absolute;
    width: 100%;
    z-index: 1000;
    display: flex;
    top: 106%;
}
.search-page #suggestions-list .suggestion-item{
    cursor: pointer;
}
.search-page .bloc-search-field .input-group #search-input{
    border: none;
    height: 55px;
    font-weight: 500;
    padding-left: 0;
    background: #FDFAFA;
}

.search-page .bloc-filtres-field .dropdown>button{
    position: relative;
    border: 1px solid #E3E3E3;
    border-radius: 50px;
    background: #FDFAFA;
    height: 55px;
    font-weight: 500;
    padding: 20px;
}
.search-page .bloc-filtres-field input[type=checkbox] {
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-page .bloc-filtres-field input[type=checkbox]::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 18px;
    height: 18px;
    background-color: transparent;
    border-radius: 6px;
    opacity: 0;
    transition: .3s ease-in-out;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.search-page .bloc-filtres-field input[type=checkbox]:checked {
    background-color: transparent !important;
    border-color: #00A8A9 !important;
}

.search-page .bloc-filtres-field input[type=checkbox]:checked::before {
    opacity: 1;
    background-color: #00A8A9;
}

.search-page .bloc-filtres-field input[type=checkbox]::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 5px;
    background-color: #FDFAFA;
    border: 1px solid #E3E3E3;
    border-radius: 6px;
    -webkit-transition: 240ms;
    transition: 240ms;
}

.search-page .bloc-filtres-field input[type=checkbox]:checked::after {
    border-color: #00A8A9;
}
.search-page .bloc-sort-field .dropdown>button{
    position: relative;
    border: 1px solid #E3E3E3;
    border-radius: 50px;
    background: #FDFAFA;
    height: 55px;
    font-weight: 500;
    padding: 20px;
}


/* Style pour les dropdowns Bootstrap */
.search-page .dropdown-menu {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.search-page .dropdown-item-interactive {
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}

/* Empêche le surlignage bleu au clic sur un item avec checkbox */
.search-page .dropdown-item-interactive:active {
    background-color: transparent; 
    color: #212529;
}

/* --- Catégories (Tags) --- */
.search-page .btn-category-actualites, .btn-category-actualites:hover {
    background-color: #F8E8E5; color: #B95C50; border: none; font-weight: 500;
}
.search-page .btn-category-contenus, .btn-category-contenus:hover {
    background-color: #E8E8F6; color: #5151B5; border: none; font-weight: 500;
}
.search-page .btn-category-services, .btn-category-services:hover {
    background-color: #E5EFF8; color: #4F8AB9; border: none; font-weight: 500;
}
.search-page .btn-category-dispositif, .btn-category-dispositif:hover {
    background-color: #DFF7F7; color: #329999; border: none; font-weight: 500;
}


/* --- Cartes de Résultats --- */
.search-page .card {
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}
.search-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
.search-page .card-title {
    color: #212529;
}
.search-page .card-body a {
    text-decoration: none;
}
.search-page .card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.search-page .tag-resultat,.search-page  .tag-resultat:hover {
    background-color: #DFF7F7;
    color: #329999;
    font-weight: normal;
}

/* Style de base pour tous les badges de type */
.card-type-indicator {
    display: inline-block;
    padding: 11px 17px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    text-transform: uppercase;
    margin-bottom: 0.75rem !important;
}

/* Couleurs spécifiques pour chaque type */
.search-page .card-type-indicator.type-post {
  color: #660000;
  background-color: #F0E5E5;
}

.search-page .card-type-indicator.type-page {
  color: #4432AA;
  background-color: #E7E4F4;
}

.search-page .card-type-indicator.type-dispositifs {
  color: #00A8A9;
  background-color: #E0F4F4;
}

.search-page .card-type-indicator.type-fiche_service {
  color: #6d1c74;
  background-color: rgba(109,28,116,.08); 
}

.search-page .card-type-indicator.type-etudes {
    color: #bc511a;
    background-color: rgb(255 98 7 / 10%);
}

.search-page .card-type-indicator.type-espace_presse {
  color: #00baef;
  background-color: rgb(0 181 230 / 10%);
}

.search-page .card-type-indicator.type-evenements {
  color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.1);
}

.search-page .card-type-indicator.type-documents {
  color: #f1c40f;
  background-color: rgba(241, 196, 15, 0.15);
}


.search-page .card-type-indicator:not([class*="type-"]) {
    background-color: #95a5a6;
}
.search-page .pagination .page-link {
  color: #00a8a9;
  border: 1px solid #00a8a9;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}
.search-page .pagination .page-link:hover {
  color: #fff;
  background-color: #00a8a9;
  border-color: #00a8a9;
}
.search-page .pagination .page-item.active .page-link {
  background-color: #00a8a9;
  border-color: #00a8a9;
  color: #fff;
}
.search-page .pagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: #ddd;
  background-color: #f8f9fa;
  cursor: not-allowed;
}
.search-page .pagination .page-link {
  border-radius: 6px;
}
.search-page .pagination .page-item {
  margin: 0 3px;
}