/* ==========================================
   Carte de recherche
========================================== */

.kp-search-card{
    background:#fff;
    border:1px solid #ECE7DD;
    border-radius:28px;
    padding:32px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}

/* ==========================================
   En-tête
========================================== */

.kp-search-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:36px;
    padding-bottom:24px;
    border-bottom:1px solid #ECECEC;
}

.kp-search-title{
    margin:0;
    font-size: 25px;
    font-weight:700;
    line-height:1.2;
}

.kp-search-header {

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

}

.kp-search-reset {

    font-size: 0.9rem;
    font-weight: 600;
    color: #8a8a8a;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;

}

.kp-search-reset:hover {

	color: var(--e-global-color-primary);

}

/* ==========================================
   Sections
========================================== */

.kp-filter-section{
    margin-bottom:36px;
}

.kp-filter-section:last-child{
    margin-bottom:0;
}

.kp-filter-title{
    margin:0 0 18px;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#7A7A7A;
}

.kp-filter-content{
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* ==========================================
   Checkboxes
========================================== */

.kp-checkbox{
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
    user-select:none;
    font-size:15px;
    line-height:1.4;
}

.kp-checkbox input{
    display:none;
}

.kp-checkbox-box{
    width:20px;
    height:20px;
    flex-shrink:0;
    border:2px solid #D8D8D8;
    border-radius:6px;
    background:#fff;
    transition:.2s ease;
    position:relative;
}

.kp-checkbox:hover .kp-checkbox-box{
    border-color:#E3B72E;
}

.kp-checkbox input:checked + .kp-checkbox-box{
    background:#E3B72E;
    border-color:#E3B72E;
}

.kp-checkbox-box::after{
    content:"";
    position:absolute;
    left:6px;
    top:2px;
    width:5px;
    height:10px;
    border:solid #fff;
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
    opacity:0;
    transition:.15s;
}

.kp-checkbox input:checked + .kp-checkbox-box::after{
    opacity:1;
}

.kp-checkbox-label{
    color:#444;
    transition:color .2s;
}

.kp-checkbox:hover .kp-checkbox-label{
    color:#111;
}

/* ==========================================
   Listes déroulantes
========================================== */

.kp-filter-content select{
	width:100%;
	height:48px;
	padding:0 44px 0 16px;

	border:1px solid #DDD8CE;
	border-radius:12px;

	background-color:#FFFFFF;

	font-family:inherit;
	font-size:15px;
	font-weight:400;
	color:#333333;

	cursor:pointer;

	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		background-color .2s ease;

	appearance:none;
	-webkit-appearance:none;
	-moz-appearance:none;

	background-image:
		linear-gradient(45deg, transparent 50%, #777 50%),
		linear-gradient(135deg, #777 50%, transparent 50%);

	background-position:
		calc(100% - 19px) 21px,
		calc(100% - 14px) 21px;

	background-size:
		5px 5px,
		5px 5px;

	background-repeat:no-repeat;
}

.kp-filter-content select:hover{
	border-color:#CFC7B8;
}

.kp-filter-content select:focus{
	outline:none;
	border-color:#E3B72E;
	box-shadow:0 0 0 4px rgba(227, 183, 46, .15);
}

.kp-filter-content select:disabled{
	cursor:not-allowed;
	opacity:.6;
	background-color:#F5F5F5;
}

/* ==========================================
   Titres des accordéons
========================================== */

.kp-search-widget .kp-filter-toggle{
	display:flex !important;
	align-items:center !important;
	justify-content:space-between !important;

	width:100% !important;
	min-width:0 !important;
	min-height:0 !important;

	margin:0 0 18px !important;
	padding:0 !important;

	background:transparent !important;
	background-color:transparent !important;

	border:0 !important;
	border-radius:0 !important;
	box-shadow:none !important;

	color:inherit !important;

	font-family:inherit !important;
	font-size:inherit !important;
	font-weight:inherit !important;
	line-height:inherit !important;

	text-align:left !important;
	text-transform:none !important;
	letter-spacing:normal !important;

	cursor:pointer !important;
	appearance:none !important;
	-webkit-appearance:none !important;
}

.kp-search-widget .kp-filter-toggle:hover,
.kp-search-widget .kp-filter-toggle:focus,
.kp-search-widget .kp-filter-toggle:active{
	background:transparent !important;
	background-color:transparent !important;
	border:0 !important;
	box-shadow:none !important;
	outline:none !important;
	color:inherit !important;
}

.kp-search-widget .kp-filter-toggle .kp-filter-title{
	margin:0 !important;
	color:#7A7A7A;
}

.kp-search-widget .kp-filter-toggle::after{
	content:"";
	display:block;
	flex:0 0 auto;

	width:9px;
	height:9px;
	margin-right:4px;

	border-right:2px solid #A7A7A7;
	border-bottom:2px solid #A7A7A7;

	transform:rotate(45deg);
	transition:
		transform .25s ease,
		border-color .2s ease;
}

.kp-search-widget .kp-filter-toggle:hover::after{
	border-color:#333333;
}

.kp-search-widget .kp-filter-toggle[aria-expanded="false"]::after{
	transform:rotate(-45deg);
}

.kp-search-widget .kp-filter-toggle[aria-expanded="true"]::after{
	transform:rotate(45deg);
}

/* L’ancien span n’est plus nécessaire visuellement. */
.kp-search-widget .kp-filter-icon{
	display:none;
}

/* ==========================================
   Ouverture / fermeture des accordéons
========================================== */

.kp-filter-section:not(.is-open) .kp-filter-content{
	display:none;
}

.kp-filter-section.is-open .kp-filter-toggle::after{
	transform:rotate(45deg);
}

.kp-filter-section:not(.is-open) .kp-filter-toggle::after{
	transform:rotate(-45deg);
}

/* ========================================
   Voir plus / Voir moins
======================================== */

.kp-search-widget .kp-show-more {

	display: inline !important;

	margin: 12px 0 0 !important;
	padding: 0 !important;

	width: auto !important;
	min-width: 0 !important;
	height: auto !important;

	background: transparent !important;
	background-color: transparent !important;

	border: none !important;
	box-shadow: none !important;

	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;

	color: #E57A58 !important;
	text-align: left !important;

	cursor: pointer;

}

.kp-search-widget .kp-show-more:hover,
.kp-search-widget .kp-show-more:focus {

	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #d96a46 !important;
	text-decoration: underline;

}

@media (max-width:767px){

    .kp-search-widget .kp-mobile-toggle{
        display:flex !important;
        align-items:center;
        justify-content:space-between;

        width:100%;
        margin:0;
        padding:18px 20px;

        background:#FFFFFF !important;
        color:#E57A58 !important;

        border:1px solid #F0DDD6 !important;
        border-radius:18px;

        box-shadow:0 8px 24px rgba(0,0,0,.06) !important;

        font-family:inherit;
        font-size:17px;
        font-weight:600;
        line-height:1.2;

        cursor:pointer;

        transition:
            transform .2s ease,
            box-shadow .2s ease,
            border-color .2s ease;
    }

    .kp-search-widget .kp-mobile-toggle:hover,
    .kp-search-widget .kp-mobile-toggle:focus,
    .kp-search-widget .kp-mobile-toggle:active{
        background:#FFFFFF !important;
        color:#E57A58 !important;
        border-color:#E57A58 !important;
        box-shadow:0 10px 28px rgba(0,0,0,.09) !important;
        outline:none !important;
        text-decoration:none !important;
    }

    .kp-search-widget .kp-mobile-toggle:active{
        transform:scale(.98);
    }

    .kp-search-widget .kp-mobile-toggle-icon{

    display:flex;
    align-items:center;
    justify-content:center;

    width:32px;
    height:32px;

    flex-shrink:0;

    background:#FFF4F0;
    border-radius:50%;

    transition:
        transform .25s ease,
        background-color .2s ease;

}

    .kp-search-widget .kp-mobile-toggle-icon::before{
    
        content:"";
    
        width:8px;
        height:8px;
    
        border-right:2px solid #E57A58;
        border-bottom:2px solid #E57A58;
    
        transform:rotate(45deg);
        transition:transform .25s ease;
    
    }
    
    .kp-search-widget.is-open .kp-mobile-toggle-icon::before{
    
        transform:rotate(-135deg);
    
    }

    .kp-search-header{
        display:none;
    }

    .kp-search-body{
        display:none;
    }

    .kp-search-widget.is-open .kp-search-body{
        display:block;
        margin-top:20px;
    }

}

@media (min-width:768px){

    .kp-search-widget .kp-mobile-toggle{
        display:none !important;
    }

    .kp-search-header{
        display:flex;
    }

    .kp-search-body{
        display:block;
    }

}

/* ===========================
   Recherche rapide KinéPéyi
=========================== */

.kp-quick-search-widget {
	display: flex;
    align-items:center;
	gap: 24px;
	width: 100%;
}

.kp-quick-search-field:first-of-type {
	flex: 1.4;
	min-width: 0;
}

.kp-quick-search-field:last-of-type {
	flex: 1.2;
	min-width: 0;
}

/* Labels */

.kp-quick-search-field label {
	display: none;
}

/* Listes déroulantes */

.kp-quick-search-field select {
	width: 100%;
	height: 70px;
	padding: 0 64px 0 26px;

	border: 2px solid transparent;
	border-radius: 22px;

	background-color: #ffffff;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23231f1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 22px center;
	background-size: 18px;

	color: #231f1c;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;

	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	cursor: pointer;
	transition:
		border-color .2s ease,
		box-shadow .2s ease;
}

.kp-quick-search-field select:hover {
	border-color: #e4cd5b;
}

.kp-quick-search-field select:focus {
	outline: none;
	border-color: #e4cd5b;
	box-shadow: 0 0 0 5px rgba(228,205,91,.20);
}

/* Bouton */

.kp-quick-search-button {
	flex: 0.9;
	min-width: 220px;
	max-width: 260px;
}

.kp-quick-search-button button,
.kp-quick-search-widget button[type="submit"] {
	width: 100%;
	height: 70px;
	padding: 0 30px;

	border: 2px solid #e4cd5b !important;
	border-radius: 22px !important;

	background: #e4cd5b !important;
	color: #231f1c !important;
	align-items: center;

	font-family: inherit;
	font-size: 18px;
	font-weight: 700;

	cursor: pointer;
	box-shadow: none !important;

	transition:
		background-color .2s ease,
		border-color .2s ease,
		transform .2s ease !important;
}

.kp-quick-search-button button:hover,
.kp-quick-search-button button:focus,
.kp-quick-search-widget button[type="submit"]:hover,
.kp-quick-search-widget button[type="submit"]:focus {
	background: #f0dc73 !important;
	border-color: #f0dc73 !important;
	color: #231f1c !important;
	transform: translateY(-2px);
}

.kp-quick-search-button button:active,
.kp-quick-search-widget button[type="submit"]:active {
	transform: translateY(0);
}

/* Mobile */

@media (max-width: 767px) {

	.kp-quick-search-widget {
	flex-direction: column;
	align-items: center;
	gap: 18px;
    }
    
	.kp-quick-search-field,
    .kp-quick-search-button {
	width: 100%;
	max-width: 420px;
    }

}

/* ==========================================
   Carte KinéPéyi - Responsive
========================================== */

@media (max-width: 767px){

    .kp-map-row{

        display:flex;
        flex-direction:column;
        gap:20px;

    }

    .kp-map-address{

        width:100%;

    }
    
    .kp-map-address *{
    text-align:center;
    }

    .kp-map-button{

        display:flex;
        align-items:center;
        justify-content:center;

        width:100%;
        box-sizing:border-box;

    }

}