/* Formulaire de recherche dans le header */
.sfa-search-container {
    display: inline-flex;
}

.sfa-search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 3px;
    border:1px solid #4CB2DC;
}

.sfa-search-form:focus-within {
    background: #fff;
}

input[type="search"].sfa-search-input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    width: 200px;
    border:0;
}

button[type="submit"].sfa-search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border:0 0 0 1px solid #000;
    transition: color 0.3s ease;
}

.sfa-search-submit:hover {
    color: #4CB2DC;
}
.sfa-search-form-container {
    box-sizing: border-box;
    background: #F8F8F8;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 30px;
}
.sfa-search-form-container .event-filter-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.sfa-search-form-container form {
    border:0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    background: transparent;
}

.sfa-search-form-container form:focus-within {
    background: transparent;
}

.sfa-search-form-container form label {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #2E2E30;
}
.sfa-search-form-container input {
    background: #FFFFFF;
    border: 1px solid #E7EBF0 !important;
    border-radius: 4px !important;
    height: 48px !important;
    padding: 0 18px !important;
    color: #565657;
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.sfa-search-form-container button {
    background: #4CB2DC;
    border-radius: 6px;
    padding: 0;
    height: 48px;
    width: 48px;
    border: none;
    line-height: 0 !important;
}
/* Page de résultats */
.sfa-search-results {
    margin: 40px auto;
    max-width: 1180px;
    padding: 0 20px;
}

.sfa-search-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.sfa-search-header h2 {
    margin: 0px 0px 20px 0px;
    padding: 0px 0px 0px 20px;
    border-style: solid;
    border-width: 0px 0px 0px 5px;
    border-color: var( --e-global-color-primary );
    color: var( --e-global-color-a017a84 );
    font-family: "Proxima Nova", Sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
}

.sfa-result-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.sfa-no-search,
.sfa-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Liste des résultats */
.sfa-search-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sfa-search-item {
    background: #fff;
    padding-top: 25px;
    padding-bottom: 25px;
    border-radius: 8px;
    border-bottom: 1px solid #E1E1E1;
}

.sfa-search-item-type {
    margin-bottom: 12px;
    float: right;
}

.sfa-type-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    background: #e0e0e0;
    color: #666;
}

.sfa-type-badge.page {
    background: #e3f2fd;
    color: #1976d2;
}

.sfa-type-badge.post {
    background: #e8f5e9;
    color: #388e3c;
}

.sfa-type-badge.revues {
    background: #fff3e0;
    color: #f57c00;
}

.sfa-search-item-title {
    margin: 0 0 15px 0;
    color: var( --e-global-color-secondary );
    font-family: "Proxima Nova", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.sfa-search-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sfa-search-item-title a:hover {
    color: #4CB2DC;
}

.sfa-search-item-excerpt {
    color: var( --e-global-color-a017a84 );
    font-family: "Proxima Nova", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 15px;
}

.sfa-search-item-link {
    display: inline-block;
    color: #4CB2DC;
    text-decoration: none;
    font-family: "Proxima Nova", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.sfa-search-item-link svg {
    vertical-align: bottom;
}

.sfa-search-item-link:hover {
    color: #3a9bc4;
}

/* Pagination */
.sfa-search-pagination {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sfa-search-pagination a,
.sfa-search-pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sfa-search-pagination a:hover {
    background: #4CB2DC;
    color: #fff;
}

.sfa-search-pagination .current {
    background: #4CB2DC;
    color: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sfa-search-container {
        margin-right: 10px;
    }

    .sfa-search-input {
        width: 150px;
    }

    .sfa-search-input:focus {
        width: 180px;
    }

    .sfa-search-header h2 {
        font-size: 22px;
    }

    .sfa-search-item {
        padding: 20px;
    }

    .sfa-search-item-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .sfa-search-form {
        width: 100%;
    }

    .sfa-search-input {
        width: calc(100% - 50px);
    }

    .sfa-search-input:focus {
        width: calc(100% - 50px);
    }
}
