/*
Theme Name: L'Europe s'engage en France - Specifics FO styles for search
Author: ANCT
Author URI: https://agence-cohesion-territoires.gouv.fr/
Description: Theme de l'Europe s'engage en France basé sur le design system de l'Etat
License: LICENCE OUVERTE 2.0
License URI: https://github.com/etalab/licence-ouverte/blob/master/LO.md
*/

@charset "utf-8";

/******************************************************************************
  Search base
*******************************************************************************/
/* Exposed form */
.view-recherche .views-exposed-form {
    position: relative;
    margin-bottom: 0;
}
.view-recherche .views-exposed-form div {display: inline-block;}
.view-recherche .form-wrapper fieldset legend, .view-recherche .form-wrapper label {
    font-family: 'Filson Soft', sans-serif;
    text-rendering: optimizelegibility;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
}
.view-recherche .views-exposed-form input[type='text'] {
    border: 1px solid #e1e1e1;
    -webkit-box-shadow: 0 1px #fff, inset 0 1px 4px rgba(0,0,0,.15);
    -moz-box-shadow: 0 1px #fff, inset 0 1px 4px rgba(0,0,0,.15);
    box-shadow: 0 1px #fff, inset 0 1px 4px rgba(0,0,0,.15);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 8px 12px;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}
.view-recherche .views-exposed-form .form-item-texte { width: 79%; }

.view-recherche .views-exposed-form .form-item-items-per-page {
    position: absolute;
    padding: 8px;
    right: 22%;
    cursor: pointer;
}
.view-recherche .views-exposed-form .form-item-items-per-page label { font-size: 76%; font-weight: normal; vertical-align: bottom; }
.view-recherche .views-exposed-form .form-item-items-per-page select { cursor: pointer; }

.view-recherche .views-exposed-form .form-actions { width: 20%; float: right; margin: 0;margin-left: 10px;position: absolute; }
.view-recherche .views-exposed-form input[type='submit'] {
    padding: 0.5rem;
    border-radius: 5px;
    background-color: var(--secondary-blue-paon);
    color: var(--grey-1000);
    width: 100%;
}
.view-recherche .views-exposed-form input[type='submit']:hover { background-color: var(--primary-color); }
.view-recherche .views-exposed-form input[type='submit'] + input[type='submit'][name='reset'] {
    position: relative;
    left: -360px;
    top: -41px;
    width: 170px;
    font-size: 88%;
    border: none;
    margin-top: 0.5rem;
    padding: 0 1rem;
    background-color: var(--grey-1000);
    color: var(--secondary-blue-paon);
}
.view-recherche .views-exposed-form #edit-reset:hover { color: var(--primary-color); text-decoration: underline; }
.view-recherche .views-exposed-form #edit-reset::after { content: "X"; }

.view-recherche .views-exposed-form.bef-exposed-form .bef-toggle.bef-toggle--select-all {display: none;}
.view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-by, 
.view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-order {position: absolute; z-index: 9;}
.view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-by label {
    font-weight: normal;
    font-size: 14px;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}
.view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-order label {display: none; }
.view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-by select, 
.view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-order select {
    cursor: pointer;
    height: 40px;
    color: var(--grey-1000);
    background-color: var(--secondary-blue-paon);
    border-radius: 3px;
    padding: 0 8px;
    font-size: 12px;
}
.view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-by select option,
.view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-order select option {
    color: var(--grey-50) !important;
    background-color: var(--grey-1000) !important;
}

.view-recherche .pager li.is-active a {
    background: var(--secondary-blue-paon);
    color: var(--grey-1000);
    pointer-events: none;
    opacity: .65;
}

@media (max-width: 767px) {
    .view-recherche .views-exposed-form .form-item-items-per-page { display: none; }
    .view-recherche .views-exposed-form input[type='submit'] { 
        background-image: url('data:image/svg+xml,<svg width="25" height="26" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Lancer la recherche</title><path fill="%23ffffff" d="M18.5082 16.1152L13.9316 11.5385C14.7927 10.3546 15.3016 8.89864 15.3016 7.32598C15.3016 3.36826 12.0817 0.148438 8.12402 0.148438C4.16634 0.148438 0.946472 3.36826 0.946472 7.32598C0.946472 11.2837 4.16638 14.5035 8.12402 14.5035C9.62414 14.5035 11.018 14.0406 12.171 13.2506L16.7719 17.8516L18.5082 16.1152ZM3.05134 7.32598C3.05134 4.52889 5.32692 2.25326 8.12402 2.25326C10.9212 2.25326 13.1968 4.52884 13.1968 7.32598C13.1968 10.1231 10.9212 12.3987 8.12402 12.3987C5.32692 12.3987 3.05134 10.1231 3.05134 7.32598Z"></path></svg>');
        background-repeat: no-repeat;
        background-position: center;
        color: transparent;
    }
    .view-recherche .views-exposed-form input[type='submit'] + input[type='submit'] {
        right: 25%;
    }
    .view-recherche fieldset .form-checkboxes .bef-toggle--select-all, .view-recherche fieldset .form-checkboxes .bef-toggle--deselect-all {display: none;}
}
@media screen and (max-width: 992px) {
    .view-recherche .views-exposed-form input[type='submit'] + input[type='submit'][name='reset'] {
        left: -190px;
    }
}

/* Header */
/* Header - Did you mean */
.view-recherche .view-header .sapi-did-you-mean { margin: 0.5rem 0 1.5rem 0.2rem; }
.view-recherche .view-header {margin-top: 1rem;}

/* Header - Facet summary */
.view-recherche .views-filters-summary span {display: inline-block;}
.view-recherche .views-filters-summary .items {margin-top: 10px;display: contents;}
.view-recherche .views-filters-summary .items .item .value-container {
    margin: 8px 10px 0px 0;
    padding: 0 8px;
    color: var(--secondary-blue-paon);
    border: 1px solid var(--secondary-blue-paon);
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    font-weight: normal;
    font-size: 88%;
}
.view-recherche .views-filters-summary .items .item .value {
    border: none;
    margin-bottom: 0;
    vertical-align: middle;
}
.view-recherche .views-filters-summary .items .item .value-container:has(a:hover) {color: var(--secondary-blue-paon-alt-4);border-color: var(--secondary-blue-paon-alt-4);}
.view-recherche .views-filters-summary a.remove-filter {
    margin-left: 0;
    padding: 1px 8px 0 8px;
    vertical-align: middle;
    color: var(--secondary-blue-paon);
    border: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background-color: transparent;
}
.view-recherche .views-filters-summary a.remove-filter:hover {color: var(--primary-color);}
.view-recherche .views-filters-summary a.reset {vertical-align: middle;}
.view-recherche.facets-right .view-header .views-filters-summary {max-width:calc(100% - 220px)}

.view-recherche .view-header ul {  margin-bottom: 0.5rem; padding-left: 0; list-style: none; }
.view-recherche .view-header ul li.facet-summary-item--facet {
    float: left;
    margin-right: 1rem;
    margin: 0 10px 5px 0;
    color: var(--secondary-blue-paon); 
    border: 1px solid var(--secondary-blue-paon);
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    font-weight: normal;
}

.view-recherche .view-header ul li.facet-summary-item--facet, .view-recherche .view-header ul li.facet-summary-item--clear { font-size: 88%; margin-top: 0.5rem; }
.view-recherche .view-header ul li.facet-summary-item--facet a { color: var(--secondary-blue-paon); display: block; padding: 4px 14px; font-size: 88%; }
.view-recherche .view-header ul li.facet-summary-item--facet:hover, .view-recherche .view-header ul li.facet-summary-item--facet a:hover { background-color: var(--secondary-blue-paon); color: var(--grey-1000); text-decoration: none; border-radius: 5px; }
.view-recherche .view-header ul li.facet-summary-item--facet a span.facet-item__status.js-facet-deactivate { display: none; }
.view-recherche .view-header ul li.facet-summary-item--facet a span.facet-item__value::after { content: "X"; padding-left: 0.5rem; }
.view-recherche .view-header ul li.facet-summary-item--clear { padding: 3px; display: inline-block; }
.view-recherche .view-header ul li.facet-summary-item--clear a { color: var(--grey-50); }

/* Header - Results summary */
.view-recherche .view-header .result-summary { margin-bottom: 1rem; margin-top: 1rem; display: inline-block; }

/* Header - Funds facet */
.view-recherche .views-exposed-form.bef-exposed-form .form-wrapper {margin-bottom: 5px;}
.view-recherche .views-exposed-form > fieldset legend {
    position: absolute !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    word-wrap: normal;
}
.view-recherche fieldset > .form-checkboxes {
    margin-bottom: 0.5rem;
    padding-left: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: space-between;
    align-items: center;
}
.view-recherche fieldset .form-checkboxes .form-item.js-form-type-checkbox {
    border: thin solid #e1e1e1;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 4px;
}
.view-recherche fieldset .form-checkboxes .bef-toggle--select-all, .view-recherche fieldset .form-checkboxes .bef-toggle--deselect-all {
    margin: 10px 0 0;
    padding: 5px 10px;
    font-size: 88%;
    color: #333;
    border: none;
    float: right;
}
.view-recherche fieldset .form-checkboxes .bef-toggle--select-all:hover, .view-recherche fieldset .form-checkboxes .bef-toggle--deselect-all:hover {color: var(--primary-color);}
.view-recherche fieldset .form-checkboxes .form-item.js-form-type-checkbox label {
    cursor: pointer;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 88%;
}
.view-recherche fieldset .form-checkboxes .form-item.js-form-type-checkbox input[type="checkbox"], .view-recherche fieldset .form-checkboxes .form-item.js-form-type-checkbox .new-checkbox {display: none;}
.view-recherche fieldset .form-checkboxes .form-item.js-form-type-checkbox.highlight {
    background-color: var(--secondary-blue-paon-alt-4);
    color: var(--grey-1000);
}
.view-recherche .view-header .block-facet--links { display: inline-block; max-width: calc(100% - 120px); }
.view-recherche .view-header .facets-widget-links ul { 
    margin-bottom: 0.5rem; 
    padding-left: 0; 
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: space-between;
    align-items: center;
}
.view-recherche .view-header #block-recherche-projets-facet-fonds { max-width: calc(100% - 200px); }
.view-recherche .view-header .block-facet--links .facets-widget-links { margin: 0; }
.view-recherche .view-header .facets-widget-links .facet-item { display: inline-block; margin-right: 1.5rem; }
.view-recherche .view-header .facets-widget-links .facet-item label.is-active { display: inline-block; border: thin solid #e1e1e1; border-radius: 6px; padding: 8px 10px; margin-top: 4px; }
.view-recherche .view-header .facets-widget-links .facet-item.facets-reset label .facet-item__count { display: none; }
.view-recherche .view-header .facets-widget-links .facet-item:not(.facets-reset) label .facet-item__value { text-transform: uppercase; }

@media (max-width: 767px) {
    /*.view-recherche .view-header {padding-right: 50px;}*/
    .view-recherche .view-header #block-recherche-projets-facet-fonds {
        max-width: 100%;
    }
    
}

/* Header - Display buttons */
.view-recherche .view-display-btn { float: right; margin-top: 0.5rem; }
.view-recherche.facets-right:not(.facets-left) .view-display-btn {
    float: left;
    margin-right: 20px;
}
.view-recherche .view-header .block-facet--links + .view-display-btn { margin-top: 0; }
.view-recherche .view-display-btn a { display: inline-block; }
.view-recherche .view-display-btn a:hover, .view-recherche .view-display-btn a:focus { text-decoration: none; }
.view-recherche .view-display-btn span.disabled-element { pointer-events: none; opacity: .65; }

@media (max-width: 767px) {
    .view-recherche .view-display-btn {
         display: none;
    }
    .view-recherche .view-display-btn a.display-grid {
        display: none;
    }
    .view-recherche.view-recherche-projets .view-display-btn {
        display: block;
        margin-bottom: 1rem;
        margin-top: 1rem !important;
        text-align: center;
        float: none !important;
        width: 100%;
        margin-left: 0;
        margin-right: 0 !important;
    }
    .view-recherche.view-recherche-projets .view-display-btn a {
        width: 49%;
    }
    .view-recherche.view-recherche-projets .view-display-btn a > span {
        width: 100%;
    }
}

/* bef secondary exposed form options - Facets */
.view-recherche.facets-right {
    right: 0;
    margin-right: 0;
}
.view-recherche.facets-right .bef--secondary.form-wrapper {margin-top: 72px;}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .form-item {
    margin-bottom: 50px;
    padding-left: 10px;
    padding-right: 15px;
    width: 100%;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset {
    margin-bottom: 20px !important;
    margin-top: 0;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .form-item label,
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset legend {
    display: block;
    padding-bottom: 22px;
    margin-bottom: 2rem;
    border-bottom-width: 1px;
    position: relative;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset legend {margin-bottom: 1rem;}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .form-item label {position: relative;}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .form-item label:before, .view-recherche .views-exposed-form .form-wrapper.bef--secondary fieldset legend:before {
    background: var(--grey-50);
    bottom: 0;
    content: "";
    display: block;
    height: 1px;
    left: 0;
    margin: 0 0 -1px;
    position: absolute;
    width: 40px;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper {width: 100%;}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .form-item {
    margin-bottom: 0;
    padding: 0;
    text-align: center;
    position: relative;
    width: fit-content;
    float: left;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .form-item:nth-of-type(2) {
    float: right;
    width: fit-content;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .form-item > label {
    position: relative;
    font-size: 80%;
    left: 15px;
    margin-bottom: 0;
    padding-bottom: 0;
    font-weight: normal;
    border: none;
    width: fit-content;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .form-item:nth-of-type(2) > label {left: 0;}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .form-item > label::before {width: 0;}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .form-item input {
    width: 60px;
    text-align: center;
    padding: 5px;
    float: left;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider {
    width:100%;
    top: 10px;
    padding-right: 20px;
    padding-left: 20px;
    border: none;
    box-shadow: none;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider.noUi-horizontal {
    height: 12px;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider .noUi-connect {
    background: #3a719c;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider .noUi-connects {top:-4px;}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider.noUi-horizontal .noUi-handle {
    border-radius: 5px;
    cursor: pointer;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider.noUi-horizontal .noUi-handle:active {background-color: var(--primary-color);}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider.noUi-horizontal .noUi-handle:active::after, .view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .form-item .bef-slider.noUi-horizontal .noUi-handle:active::before {background: var(--grey-1000);}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider.noUi-horizontal .noUi-handle::after,
.view-recherche .views-exposed-form .bef--secondary.form-wrapper fieldset .fieldset-wrapper:has(.bef-slider) .bef-slider.noUi-horizontal .noUi-handle::before {
    background: var(--primary-color);
}

.view-recherche .views-exposed-form .bef--secondary.form-wrapper .form-item p { margin: 0; color: var(--grey-625); }
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .form-item .title-box { margin-bottom: 1rem; display: block; }

.view-recherche .views-exposed-form .bef--secondary.form-wrapper .form-item.js-form-type-date {text-align: center;}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .form-item.js-form-type-date label {text-align: left; margin-bottom: 1rem;}

.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul { padding-left: 0; }
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul li { list-style: none; }
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul li a { 
    display: inline;
    font-weight: normal;
    font-size: 88%;
    cursor: pointer;
    color: var(--grey-50);
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul li a:hover { color: var(--primary-color); }
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul li > ul { padding-left: 1.5rem; }
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul li > ul > li:before {
    content: "\f054";
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    margin-right: 5px;
    font-size: 10px;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links a.bef-soft-limit-link {
    font-size: 80%;
    color: var(--grey-50);
    background: var(--grey-950);
    border-radius: 5px;
    padding: 10px 20px;
    text-decoration: none;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links a.bef-soft-limit-link:hover { 
    color: var(--grey-50); 
    background: var(--grey-950-hover);
    text-decoration: none;
}

/* Search results */
/* No result message (full width) */
.view-recherche .view-empty {
    display: inline-block;
    margin-bottom: 50px;
    margin-top: 30px;
}

.search-result.item {
    margin-bottom: 1.5rem;
    max-width: 1170px;
}

.search-result.item.map { display: block; border: none; max-width: 301px; }
.search-result.item.map:hover { 
    background-color: var(--grey-1000) ; 
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.search-result.item h3  { font-size: 20px; margin-bottom: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-result.item h3 a { color: var(--grey-50); }
.search-result.item.map h3 { white-space: normal; margin-bottom: 0.8rem; font-size: 123%; }

.search-result.item .illustration, .search-result.item .description {
	float: left;
}

/* Search result - Illustration area */
.search-result.item .illustration {
    flex: 0 0 30%;
    width: 30%;
}
.search-result.item .illustration .bundle-corner { border-radius: 5px 0 0 0; }
.search-result.item .illustration {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    text-align: center;
    /*min-width: 260px;*/
}
.search-result.item .illustration img {
    /*max-width: 259px;
    max-height: 261px;*/
    width: 100%;
    height: 100%;
    border-radius: 5px 0 0 5px;
}

.search-result.item.map .illustration { margin: 0 0.5rem 0 0; }

/* Search result - Description area */
.search-result.item .description {
    flex: 0 0 70%;
    width: 70%;
}
.search-result.item .description {
	padding: 1rem 1rem 0.8rem 1rem;
    padding-bottom: 10px;
    text-align: justify;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-result.item .description .icon { color: var(--secondary-blue-paon); vertical-align: top; }
.search-result.item .description .infos { text-align: left; }
.search-result.item .description .infos > div { display: inline-block; margin-right: 1rem; letter-spacing: -1px; }
.search-result.item .description .infos .icon i { font-size: 18px; }
.search-result.item .description .infos .field { display: inline-block; color: var(--secondary-blue-paon); vertical-align: top; font-size: 88%; }
.search-result.item .description .infos .field.field--name-field-fonds .field__item { display: block; float: left; margin: 0; }

.search-result.item.map .description { padding-top: 0; padding-bottom: 0.2rem; width: 100%; }
.search-result.item.map .description .icon { margin-top: 0; }
.search-result.item.map .description .infos .field { vertical-align: top; margin: 2px 0; font-size: 100%; }

.search-result.item .description .excerpt { 
    margin-top: 0.2rem;
    font-size: 88%;
    margin-bottom: 1rem;
}
.search-result.item .description .excerpt p { 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 6.75em;
    text-overflow: ellipsis;
    overflow: hidden;
}
.search-result.result-spe.item .description .excerpt { margin-bottom: 0.5rem }

.search-result.item.map .excerpt { font-size: 77%; text-align: justify; margin-bottom: 0.8rem; }
.search-result.item.map p { margin-top: 0; }

.search-result.item .description .thematiques { margin-bottom: 5px; }
.search-result.item .description .thematiques .label { font-size: 88%; float: left; margin-right: 5px; color: var(--grey-50); padding: 8px 0; }
.search-result.item .description .thematiques .values, .search-result.item .description .tags .values { display: block; }
.search-result.item .description .thematiques .values { text-align: left; margin-left: 105px; }

.search-result.item.map .description .thematiques { text-align: center; }
.search-result.item.map .description .thematiques .label { float: none; }
.search-result.item.map .description .thematiques .values { margin-left: 0; margin-top: 0.3rem; text-align: center; }

.search-result.item .description .tags { background: #f1f1f1; padding: 10px; border-radius: 5px; }
.search-result.item .description .tags .icon { float: left; color: var(--grey-200); }

.search-result.item .description .result-button a:hover {	background: var(--primary-color); text-decoration: none; }
.search-result.item .description .result-button a, .search-result.item .description .result-button a:visited {
    display: inline-block;
    padding: 5px;
    margin: 0 2px 2px 0;
    border-radius: 3px;
	background: var(--secondary-blue-paon);
	color: var(--grey-1000);
    font-size: 80%;
}

/*  Search result - List / Grid styles */
.view-recherche .grid .search-result.item {
    flex-direction: column;
    min-height: 630px;
    position: relative;
}
.view-recherche .grid .search-result.item .illustration, .view-recherche .grid .search-result.item .description {
    flex: 0 0 100%;
    width: 100%;
}
.view-recherche .grid .search-result.item .illustration .bundle-corner { border-radius: 5px 5px 0 0; }
.view-recherche .grid .search-result.item .illustration img { max-width: 100%; max-height: 100%; border-radius: 5px 5px 0 0; } 

.view-recherche .grid .search-result.item .description h3  { text-align: center; }

.view-recherche .grid .search-result.item .description .infos { height: 0; }
.view-recherche .grid .search-result.item .description .infos .info span, .view-recherche .grid .search-result.item .description .infos .info > div { display: none; }
.view-recherche .grid .search-result.item .description .infos .info span.field_fonds, .view-recherche .grid .search-result.item .description .infos .info .field--name-field-fonds { 
    display: block;
    right: 1rem;
    top: 1rem;
    position: absolute;
}
.view-recherche .grid .search-result.item .description .infos .info .label-fonds {
    -webkit-box-shadow: 0 15px 10px -10px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
    -moz-box-shadow: 0 15px 10px -10px rgba(0,0,0,0.5),0 1px 4px rgba(0,0,0,0.3);
    box-shadow: 4px 3px 10px -1px rgba(0,0,0,0.5);
}

.view-recherche .grid .search-result.item .description .excerpt p, .view-recherche .grid .search-result.result-spe.item .description .excerpt p { -webkit-line-clamp: 7; max-height: 11.75em; }

.view-recherche .grid .search-result.item .description .thematiques { margin-bottom: 20px; text-align: center; }
.view-recherche .grid .search-result.item .description .thematiques .label { float: none; }
.view-recherche .grid .search-result.item .description .thematiques .values {text-align: center; }
.view-recherche .grid .search-result.item .description .thematiques .values, .view-recherche .grid .search-result.item .description .tags .values { 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 4.5em;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 81%; 
    margin-left: 0;
    margin-top: 5px;
}

@media (max-width: 991px) {
    .view-recherche .grid .view-content .views-row {
        width: 48%;
    }
}

@media (max-width: 767px) {
    .search-result.item {
        flex-direction: column;
    }
    .search-result.item .illustration, .search-result.item .description {
        flex: 0 0 100%;
        width: 100%;
    }
}


/******************************************************************************
  Search - Recherche transverse specific
*******************************************************************************/
/* Header - Part 1 (full width) */
.view-recherche.view-recherche-transverse {padding-top: 2rem;margin-bottom: 75px;}
.view-recherche.view-recherche-transverse .view-filters { position: relative; }
.view-recherche.view-recherche-transverse .views-exposed-form .form-item-texte { width: 79%; }
.view-recherche.view-recherche-transverse .views-exposed-form input[type='text'] { height: 60px; background-image: none; }
.view-recherche.view-recherche-transverse .views-exposed-form .form-item-items-per-page {
    position: absolute;
    padding: 8px;
    top: 9px;
    cursor: pointer;
}
.view-recherche.view-recherche-transverse .views-exposed-form input[type='submit'] { font-size: 122%; padding: 0.8rem; }
.view-recherche.view-recherche-transverse .views-exposed-form input[type='submit'] + input[type='submit'] { top: 11px; }
.view-recherche.view-recherche-transverse .views-exposed-form input[type='submit'] + input[type='submit'][name='reset'] {top:-48px}

.view-recherche.view-recherche-transverse .view-content {padding-top: 20px;}

/* Header - Part 2 (right column) */
.view-recherche.view-recherche-transverse .view-header.part-1 { 
    border-bottom-width: 1px;
    position: relative;
    margin-top: -1px;
}
.view-recherche.view-recherche-transverse .view-header.part-1:before {
    background: var(--grey-50);
    bottom: 0px;
    content: "";
    display: block;
    height: 1px;
    margin: 0 0 -1px;
    position: absolute;
    width: 40px;
}
.view-recherche.view-recherche-transverse .view-header.part-1 .result-summary {
    min-width: auto;
    font-size: 120%;
    margin-top: 8px;
    margin-bottom: 10px;
}
.view-recherche.view-recherche-transverse .view-header.part-1 .widget.block { float: right; }

.view-recherche.view-recherche-transverse .view-header.part-1 .view-sorts { float: right; margin: 0.6rem 1rem 0 0; font-size: 88%; }
.view-recherche.view-recherche-transverse .view-header.part-1 .view-sorts label { font-weight: normal; margin-top: 0.5rem; margin-right: 0.5rem; }
.view-recherche.view-recherche-transverse .view-header.part-1 .view-sorts .widget.block .search-api-sorts-widget-widget { 
    background-color: var(--secondary-blue-paon);
    border-radius: 3px;
    padding: 0.5rem;
}
.view-recherche.view-recherche-transverse .view-header.part-1 .widget.block .search-api-sorts-widget-widget select { background-color: var(--secondary-blue-paon); color: var(--grey-1000); }
.view-recherche.view-recherche-transverse .view-header.part-1 .widget.block .search-api-sorts-widget-widget select option { background-color: var(--grey-1000); color: var(--grey-50); cursor: pointer; }
.view-recherche.view-recherche-transverse .view-header.part-1 .widget.block .search-api-sorts-widget-widget:hover, .view-recherche.view-recherche-transverse .view-header.part-2 .widget.block .search-api-sorts-widget-widget:hover select { background-color: var(--primary-color); cursor: pointer; }

.view-recherche.view-recherche-transverse .views-exposed-form.bef-exposed-form .form-item.form-item-sort-by {
    bottom: -68px;
    right: 190px;
}
.view-recherche.view-recherche-transverse .views-exposed-form.bef-exposed-form .form-item.form-item-sort-order {
    bottom: -68px;
    right: 125px;
}
.view-recherche.view-recherche-transverse .view-header.part-2 {margin-top: 10px;}

@media screen and (max-width: 992px) {
    .view-recherche.view-recherche-transverse .view-header.part-1 {
        margin-left: 70px;
    }
}
@media screen and (min-width: 1200px) { 
    .view-recherche.view-recherche-transverse .view-header.part-1 .result-summary {
        font-size: 150%;
        margin-top: 8px;
        margin-bottom: 10px;
    }
    .view-recherche.view-recherche-transverse .form-wrapper.bef--secondary {margin-top: 28px;}
}
@media screen and (max-width: 767px) {
    .view-recherche.view-recherche-transverse .view-header.part-1 .result-summary {font-size: 100%;}
    .view-recherche .views-exposed-form.bef-exposed-form .form-item.form-item-sort-by label {color: transparent;}
    .view-recherche.view-recherche-transverse .views-exposed-form.bef-exposed-form .form-item.form-item-sort-by {
        bottom: -60px;
        right: 65px;
    }
    .view-recherche.view-recherche-transverse .views-exposed-form.bef-exposed-form .form-item.form-item-sort-order {
        bottom: -60px;
        right: 0;
    }
    .view-recherche.view-recherche-transverse .form-wrapper.bef--secondary {
        margin-top: 72px !important;
        background-color: var(--grey-1000);
    }
}
@media screen and (max-width: 500px) {
    .view-recherche.view-recherche-transverse .views-exposed-form input[type='text'] {font-size: 75%;}
    .view-recherche.view-recherche-transverse .view-header.part-1 {margin-left: 0 !important;padding-bottom: 50px;border: none;}
    .view-recherche.view-recherche-transverse .view-header.part-1:before {width: 0;}
    .view-recherche.view-recherche-transverse .view-header.part-1 .result-summary {margin-top: 0;margin-left: 5px;margin-bottom: 1rem;}
    .view-recherche.view-recherche-transverse .form-wrapper.bef--secondary {margin-top: 108px !important;}
    .view-recherche.view-recherche-transverse .views-exposed-form.bef-exposed-form .form-item.form-item-sort-by {
        bottom: -105px;
        right: 65px;
    }
    .view-recherche.view-recherche-transverse .views-exposed-form.bef-exposed-form .form-item.form-item-sort-order {
        bottom: -105px;
        right: 0;
    }
    .view-recherche.view-recherche-transverse .search-results {margin-top: 10px !important;}
}

/* Secondary exposed form options column (facets) */
.view-recherche.view-recherche-transverse .form-wrapper.bef--secondary {margin-top: 78px;}

/* Results column */
.view-recherche.view-recherche-transverse .search-results {margin-top: 25px;}

/******************************************************************************
  Search - Recherche médias specific
*******************************************************************************/
.view-recherche.view-recherche-medias .view-header .view-display-btn { display: none; }
.view-recherche.view-recherche-medias .search-results .views-view-grid.horizontal .views-col { margin-bottom: 30px; }

@media (min-width: 768px) {
    .view-recherche.view-recherche-medias .search-results .views-view-grid.horizontal .views-col:first-child { padding-left: 0; }
    .view-recherche.view-recherche-medias .search-results .views-view-grid.horizontal .views-col:last-child { padding-right: 0; }
}

/******************************************************************************
  Search facets
*******************************************************************************/
.facets-widget-links, .facets-widget-searchbox_links, .facets-widget-svg-france-map, .facets-widget-tags_cloud, .facets-widget-date_range {
    margin-top: 1rem;
    display: block !important;
}
.facets-widget-range_slider {
    margin-top: 3rem;
    margin-bottom: 4.5rem;
}
.facets-widget-links .facet-item .new-checkbox, .facets-widget-searchbox_links .facet-item .new-checkbox {display: none;}

/* List links */
.facets-widget-searchbox_links ul, .facets-widget-links ul {list-style: none;}
.facets-widget-searchbox_links > li.facet-item , .facets-widget-links > li.facet-item {list-style: none;}
.facets-widget-searchbox_links li.facet-item label, .facets-widget-links li.facet-item label, .facets-widget-searchbox_links .facet-item li label, .facets-widget-links .facet-item li label  {
    display: inline;
    font-weight: normal;
    font-size: 88%;
    cursor: pointer;
}
.facets-widget-searchbox_links li.facet-item label:hover, .facets-widget-links li.facet-item label:hover, .facets-widget-searchbox_links .facet-item li label:hover, .facets-widget-links .facet-item li label:hover {
    text-decoration: underline;
    color: var(--primary-color);
}
.facets-widget-searchbox_links ul li ul {padding-left: 1.5rem;}
.facets-widget-searchbox_links .facet-item.facet-item--expanded li.facet-item:before {
    content: "\f054";
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    margin-right: 5px;
    font-size: 10px;
}
.facets-widget-links ul li.facet-item label span.facet-item__value { color: var(--grey-50); text-decoration: none; }
.facets-widget-links ul li.facet-item label:hover .facet-item__value { color: var(--primary-color); text-decoration: underline; }
a.facets-soft-limit-link { width: 100%; display: block; text-align: center; }

.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul li > ul > li:has(a.bef-link--selected):before {
    content: "\f00d";
    vertical-align: middle;
    color: var(--secondary-blue-paon);
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul li a.bef-link--selected {color: var(--secondary-blue-paon);}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links ul li a.bef-link--selected:hover {color: var(--secondary-blue-paon-alt-4);}

/* France map */
.facets-widget-svg-france-map .clickable-dep > polyline, .facets-widget-svg-france-map .clickable-dep > path, .facets-widget-svg-france-map .clickable-dep > polygon { fill: var(--primary-color); }
.facets-widget-svg-france-map .clickable-dep:hover > polyline, .facets-widget-svg-france-map .clickable-dep:hover > path, .facets-widget-svg-france-map .clickable-dep:hover > polygon { fill: var(--secondary-blue-paon); }
.facets-widget-svg-france-map .clickable-dep-active > polyline, .facets-widget-svg-france-map .clickable-dep-active > path, .facets-widget-svg-france-map .clickable-dep-active > polygon { fill: var(--secondary-blue-paon); }
.facets-widget-svg-france-map .clickable-dep-france > polyline, .facets-widget-svg-france-map .clickable-dep-france > path, .facets-widget-svg-france-map .clickable-dep-france > polygon { fill: var(--primary-b-persan-alt-2); }
.facets-widget-svg-france-map .clickable-dep-france:hover > polyline, .facets-widget-svg-france-map .clickable-dep-france:hover > path, .facets-widget-svg-france-map .clickable-dep-france:hover > polygon { fill: var(--secondary-blue-paon); }

/* Range slider */
.facets-widget-range_slider  ul { padding : 0 15px 0 15px; list-style: none; }
.facets-widget-range_slider .ui-slider-horizontal { height: 0.6em; }
.facets-widget-range_slider .ui-slider-horizontal .ui-slider-handle { top: -0.4em; }
.facets-widget-range_slider .ui-slider-pips .ui-slider-pip-selected-2, .facets-widget-range_slider .ui-slider-pips [class*=ui-slider-pip-selected] { color: var(--primary-color); }
.facets-widget-range_slider .ui-slider-pips [class*=ui-slider-pip-initial], .facets-widget-range_slider .ui-slider-pips .ui-slider-pip-initial-2 { color: var(--secondary-blue-paon); }
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active { border-radius: 5px; }

/* Tags */
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links.facets-widget-tags_cloud {text-align: center;}
.facets-widget-tags_cloud ul, .view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links.facets-widget-tags_cloud ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.facets-widget-tags_cloud ul.tags-facets-cloud li, .view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links.facets-widget-tags_cloud ul li { 
	padding: 5px;
    margin: 0 2px 2px 0;
    border-radius: 3px;
	background: var(--secondary-blue-paon);
    font-size: 85%;
}
.facets-widget-tags_cloud li a, .view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links.facets-widget-tags_cloud ul li a { padding: 5px; color: var(--grey-1000); }
.facets-widget-tags_cloud li:hover { background: var(--primary-color) !important; }
.facets-widget-tags_cloud li:hover a { text-decoration: none; }
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links.facets-widget-tags_cloud ul li:has(a.bef-link--selected) {
    border: 1px solid var(--secondary-blue-paon);
    background-color: var(--grey-1000);
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links.facets-widget-tags_cloud ul li a.bef-link--selected {color: var(--secondary-blue-paon);}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links.facets-widget-tags_cloud ul li:has(a.bef-link--selected):hover {
    border-color: var(--secondary-blue-paon-alt-4);
    background-color: var(--grey-1000) !important;
}
.view-recherche .views-exposed-form .bef--secondary.form-wrapper .bef-links.facets-widget-tags_cloud ul li:hover a.bef-link--selected {color: var(--secondary-blue-paon-alt-4);}

/* Fonds - Recherche projets */
#block-recherche-projets-facet-fonds {
    display: inline-flex;
    align-items: baseline;
}
#block-recherche-projets-facet-fonds .main-nav-list {
    max-height: 50px;
    width: initial;
    overflow: hidden;
}
#block-recherche-projets-facet-fonds .facets-widget-links {
    width: max-content;
}
#block-recherche-projets-facet-fonds .facets-widget-links ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
}
.view-recherche .view-header #block-recherche-projets-facet-fonds .facets-widget-links .facet-item label.is-active { margin-top: 0; }

#block-recherche-projets-facet-fonds .prev-button, #block-recherche-projets-facet-fonds .next-button {
    align-items: center;
    display: flex;
    height: 45px;
    width: 50px;
    justify-content: center;
}
fieldset .fieldset-wrapper .form-checkboxes .prev-button, fieldset .fieldset-wrapper .form-checkboxes .next-button {
    align-items: center;
    display: flex;
    height: 45px;
    width: 50px;
    justify-content: center;
}
