.fb-wrapper {
    max-width: 1110px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fb-filter-row,
.fb-filter-row-secondary {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

#fb-filters{
    margin-bottom: 40px;
}

.fb-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 17px!important;
}

.fb-btn-primary {
    padding: 10px 18px;
    border-radius: 4px;
    border: none;
    background: #00b472;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.fb-select {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 180px;
    font-size: 17px!important;
}

/* Liste des formations */

.fb-results {
    margin-top: 15px;
}

.fb-formation {
display: grid;
    grid-template-columns: 66px 1fr 220px;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    margin-bottom: 30px;
    background-color: #fff8ed;
    padding: 15px;
    border-radius: 9px;
}

/* Logo carré + crop */
.fb-formation-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-formation-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-logo-placeholder {
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-formation-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 96%;
}

.fb-formation-title {
    margin: 0;
    font-size: 18px;
}

.fb-formation-title a {
    text-decoration: none;
    color: #008060;
}

/* Boutons / pastilles */

.fb-btn-link2 {
padding: 4px 10px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 400;
    margin-top: 5px;
    display: inline-block;
    background-color: #ffe3b2;
    color: #000;
}

.fb-days {
padding: 4px 10px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
    background-color: #e7f4ff;
    color: #0062b7;
    margin-left: 10px;
}

.fb-btn-link3 {
    padding: 4px 0px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    background-color: transparent;
    color:#373737;
}

/* Métadonnées formation (lieux + date) */

.fb-formation-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-meta-line-1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.fb-meta-line-2 {
    display: flex;
    align-items: center;
}

/* Puces uniquement sur la ligne des lieux */
.fb-meta-line-1 span::before {
    /* content: "• "; */
    color: #ccc;
}
.fb-meta-line-1 span:first-child::before {
    content: "";
}

/* Pas de puce sur la ligne de date */
.fb-meta-line-2 span::before {
    content: "";
}

.fb-formateur {
    margin-left: 12px;
}

.fb-formation-badges {
display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-flow: column;
    text-align: center;
}


.fb-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

/* Type de formation */
.fb-badge-type {
    background: #e7f4ff;
    color: #0062b7;
}

/* Statut des places */
.fb-badge-disponible {
    background: #d9fdc7;
    color: #0e6111;
}
.fb-badge-dernieres {
    background: #fff3e0;
    color: #e67e22;
}
.fb-badge-complet {
    background: #f2f2f2;
    color: #777;
}

.fb-no-results {
    padding: 20px 0;
    color: #777;
}

/* Lieux cliquables */
.fb-click-lieu {
    cursor: pointer;
    text-decoration: none;
}

/* Admin : résultats de recherche de cours */
.fb-course-results {
    margin-top: 6px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}
.fb-course-results:empty {
    border: none;
}
.fb-course-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fb-course-item {
    padding: 6px 10px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
}
.fb-course-item:last-child {
    border-bottom: none;
}
.fb-course-item:hover {
    background: #f5faff;
}

/* Responsive */
@media (max-width: 768px) {
    .fb-meta-line-2 {
    display: block;
    align-items: center;
            text-align: center;
}
.fb-formation-meta{
    margin-top: 30px;
}
.fb-meta-line-1 {
    margin-top: 20px;    gap: 0px 10px;display: block;text-align: center;
        align-content: center;
        align-items: center;
}
    .fb-dates{width:auto;}
    .fb-formation {
        padding: 20px!important;
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
                width: 90%;
        margin: 0 5% 30px !important;
        border-radius: 18px;
    }
    .fb-formation-badges {
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 8px;
    }
    .fb-formation-badges {
    display: block;
    }
    .fb-formation-title{
        text-align: center;    font-size: 20px;
    }
    .fb-btn-link3 {
    padding: 4px 8px;
    }
    .fb-badge-type{display:none!important;
    }
    }
}



