@charset "utf-8";
/* CSS Document */

/* =========================================================
   VARIABLES
   ========================================================= */

.favorites-table-card {
    --favorites-primary: #003366;
    --favorites-primary-dark: #002447;
    --favorites-primary-light: #f2f6fa;
    --favorites-text: #10213f;
    --favorites-muted: #68758b;
    --favorites-border: #dce4ed;
    --favorites-border-light: #e9eef4;
    --favorites-background: #ffffff;

    width: 100%;
    overflow: hidden;
    color: var(--favorites-text);
    font-family: "Overpass", Arial, sans-serif;
    background-color: var(--favorites-background);
    border: 1px solid var(--favorites-border);
    border-radius: 10px;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.favorites-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 76px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--favorites-border-light);
}

.favorites-table-title {
    margin: 0;
    color: var(--favorites-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.favorites-table-title span {
    font-weight: 700;
}


/* =========================================================
   OUTILS
   ========================================================= */

.favorites-table-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
    max-width: 590px;
}


/* =========================================================
   RECHERCHE
   ========================================================= */

.favorites-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 260px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid var(--favorites-border);
    border-radius: 7px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.favorites-search:focus-within {
    border-color: var(--favorites-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08);
}

.favorites-search > .fa-magnifying-glass {
    position: absolute;
    left: 13px;
    color: var(--favorites-primary);
    font-size: 14px;
    pointer-events: none;
}

.favorites-search input {
    width: 100%;
    height: 100%;
    padding: 0 42px 0 38px;
    color: var(--favorites-text);
    font-family: inherit;
    font-size: 12px;
    background: transparent;
    border: 0;
    outline: none;
}

.favorites-search input::placeholder {
    color: #738097;
    opacity: 1;
}

.favorites-search-eye {
    position: absolute;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--favorites-primary);
    font-size: 13px;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.favorites-search-eye:hover,
.favorites-search-eye:focus {
    background-color: var(--favorites-primary-light);
    outline: none;
}


/* =========================================================
   BOUTONS FILTRES ET EXPORT
   ========================================================= */

.favorites-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 115px;
    height: 40px;
    padding: 0 17px;
    color: var(--favorites-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    background-color: #ffffff;
    border: 1px solid var(--favorites-border);
    border-radius: 7px;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.favorites-tool-button i {
    color: var(--favorites-primary);
    font-size: 15px;
}


.favorites-tool-button:hover,
.favorites-tool-button:focus {
    color: var(--favorites-primary);
    background-color: var(--favorites-primary-light);
    border-color: var(--favorites-primary);
    outline: none;
}


/* =========================================================
   TABLEAU
   ========================================================= */

.favorites-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.favorites-table {
    width: 100%;
    min-width: 1080px;
    margin: 0;
    color: var(--favorites-text);
    font-size: 12px;
    border-collapse: collapse;
    table-layout: auto;
}

.favorites-table th,
.favorites-table td {
    vertical-align: middle;
    border-bottom: 1px solid var(--favorites-border-light);
}

.favorites-table thead th {
    height: 34px;
    padding: 8px 12px;
    color: #263754;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    background-color: #fbfcfd;
}

.favorites-table tbody td {
    height: 54px;
    padding: 10px 12px;
    color: var(--favorites-text);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
    background-color: #ffffff;
}

.favorites-table tbody tr:last-child td {
    border-bottom: 0;
}

.favorites-table tbody tr {
    transition: background-color 0.2s ease;
}

.favorites-table tbody tr:hover td {
    background-color: #fbfdff;
}

.favorites-align-center {
    text-align: center !important;
}

.favorites-column-star {
    width: 48px;
    padding-right: 4px !important;
    text-align: center !important;
}

.favorites-column-action {
    width: 120px;
    text-align: center !important;
}

.favorites-column-menu {
    width: 42px;
    text-align: center !important;
}


/* =========================================================
   ENTREPRISE
   ========================================================= */

.favorites-company-name {
    display: block;
    margin-bottom: 1px;
    color: #003366;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}

.favorites-company-name:hover,
.favorites-company-name:focus {
    color: var(--favorites-primary);
    text-decoration: underline;
}

.favorites-company-siren {
    display: block;
    color: var(--favorites-muted);
    font-size: 10px;
    line-height: 1.35;
}


/* =========================================================
   ÉTOILE
   ========================================================= */

.favorite-star-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #436087;
    font-size: 15px;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.favorite-star-button:hover,
.favorite-star-button:focus {
    color: var(--favorites-primary);
    background-color: var(--favorites-primary-light);
    outline: none;
}

.favorite-star-button.is-favorite {
    color: #f5b942;
}


/* =========================================================
   TRI
   ========================================================= */

.favorites-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.favorites-sort-label i {
    color: var(--favorites-primary);
    font-size: 9px;
}


/* =========================================================
   BOUTON VOIR LA FICHE
   ========================================================= */

.favorites-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 99px;
    height: 32px;
/*    padding: 0 14px;*/
    color: #003366;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #b9d0f6;
    border-radius: 6px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.favorites-view-button:hover,
.favorites-view-button:focus {
    color: #ffffff;
    text-decoration: none;
    background-color: var(--favorites-primary);
    border-color: var(--favorites-primary);
    outline: none;
}


/* =========================================================
   TROIS POINTS
   Aucun menu ni contenu n’est associé à ce bouton
   ========================================================= */

.favorites-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--favorites-primary);
    font-size: 14px;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    cursor: default;
}

.favorites-more-button:hover,
.favorites-more-button:focus {
    background-color: transparent;
    outline: none;
}

/* ==========================================================
   FAVORIS - COMPOSANT COMMUN
   Utilisable dans Favoris + Résultats de recherche
========================================================== */

.favorite-star-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    padding: 0;

    color: #526b91;
    background: transparent;

    border: 0;
    border-radius: 50%;

    box-shadow: none;
    outline: none;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;
}

.favorite-star-button:hover,
.favorite-star-button:focus {
    color: #f4a900;
    background: #fff8df;
    outline: none;
    box-shadow: none;
}

.favorite-star-button:active {
    transform: scale(0.92);
}


/* Favori actif */

.favorite-star-button.is-favorite {
    color: #f4a900;
}

.favorite-star-button.is-favorite:hover,
.favorite-star-button.is-favorite:focus {
    color: #d99500;
    background: #fff8df;
}


/* Font Awesome */

.favorite-star-button .fa-star {
    line-height: 1;
}
/* =========================================================
   PIED DU TABLEAU
   ========================================================= */

.favorites-table-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 5px 15px;
    border-top: 1px solid var(--favorites-border-light);
}

.favorites-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 34px;
    padding: 7px 18px;
    color: #003366;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #b9d0f6;
    border-radius: 6px;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.favorites-all-button:hover,
.favorites-all-button:focus {
    color: #ffffff;
    text-decoration: none;
    background-color: var(--favorites-primary);
    border-color: var(--favorites-primary);
    outline: none;
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 991px) {
    .favorites-table-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .favorites-table-tools {
        max-width: none;
    }

    .favorites-search {
        min-width: 200px;
    }

    .favorites-tool-button {
        min-width: 105px;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
   Transformation des lignes en cartes
   ========================================================= */

@media (max-width: 767px) {
    .favorites-table-card {
        overflow: visible;
        border-radius: 8px;
    }

    .favorites-table-header {
        padding: 16px;
    }

    .favorites-table-title {
        white-space: normal;
    }

    .favorites-table-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .favorites-search {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
    }

    .favorites-tool-button {
        width: 100%;
        min-width: 0;
    }

    .favorites-table-responsive {
        padding: 12px;
        overflow: visible;
        background-color: #f7f9fc;
    }

    .favorites-table {
        display: block;
        min-width: 0;
    }

    .favorites-table thead {
        display: none;
    }

    .favorites-table tbody {
        display: block;
    }

    .favorites-table tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin-bottom: 12px;
        padding: 46px 14px 14px;
        background-color: #ffffff;
        border: 1px solid var(--favorites-border);
        border-radius: 9px;
    }

    .favorites-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .favorites-table tbody tr:hover td {
        background-color: transparent;
    }

    .favorites-table tbody td {
        display: block;
        height: auto;
        min-height: 58px;
        padding: 9px 8px;
        background-color: transparent;
        border-bottom: 1px solid var(--favorites-border-light);
    }

    .favorites-table tbody td::before {
        display: block;
        margin-bottom: 4px;
        color: var(--favorites-muted);
        font-size: 9px;
        font-weight: 600;
        line-height: 1.2;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .favorites-table tbody td:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .favorites-table tbody td:nth-child(2) {
        grid-column: 1 / -1;
        min-height: auto;
        padding-top: 0;
    }

    .favorites-company-name {
        padding-right: 35px;
        font-size: 14px;
        white-space: normal;
    }

    .favorites-column-star {
        position: absolute;
        top: 9px;
        left: 9px;
        width: auto;
        padding: 0 !important;
    }

    .favorites-column-star::before {
        display: none !important;
    }

    .favorites-column-menu {
        position: absolute;
        top: 9px;
        right: 9px;
        width: auto;
        padding: 0 !important;
    }

    .favorites-column-menu::before {
        display: none !important;
    }

    .favorites-align-center,
    .favorites-column-action {
        width: auto;
        text-align: left !important;
    }

    .favorites-column-action {
        display: flex !important;
        align-items: flex-end;
    }

    .favorites-view-button {
        width: 100%;
    }

    .favorites-table-footer {
        padding: 12px;
    }

    .favorites-all-button {
        width: 100%;
    }
}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 480px) {
    .favorites-table-tools {
        grid-template-columns: 1fr;
    }

    .favorites-search {
        grid-column: auto;
    }

    .favorites-table tbody tr {
        grid-template-columns: 1fr;
    }

    .favorites-table tbody td:nth-child(2) {
        grid-column: auto;
    }

    .favorites-table tbody td:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--favorites-border-light);
    }

    .favorites-table tbody td.favorites-column-action {
        border-bottom: 0;
    }
}


/* =========================================================
   TABLEAU DES RECHERCHES FAVORITES
   CSS complémentaire
   ========================================================= */

/*
 * Largeur minimale spécifique à ce tableau.
 */
.favorites-searches-table {
    min-width: 1120px;
}


/*
 * Largeurs approximatives des colonnes.
 */
.favorites-searches-table th:nth-child(2),
.favorites-searches-table td:nth-child(2) {
    width: 190px;
}

.favorites-searches-table th:nth-child(3),
.favorites-searches-table td:nth-child(3) {
    width: 445px;
}

.favorites-searches-table th:nth-child(4),
.favorites-searches-table td:nth-child(4) {
    width: 130px;
}

.favorites-searches-table th:nth-child(5),
.favorites-searches-table td:nth-child(5) {
    width: 145px;
}

.favorites-searches-table th:nth-child(6),
.favorites-searches-table td:nth-child(6) {
    width: 115px;
}


/* =========================================================
   ÉTIQUETTES DES CRITÈRES
   ========================================================= */

.favorite-search-criteria {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.favorite-search-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    color: #243652;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    background-color: #f3f5f8;
    border-radius: 5px;
}

.favorite-search-tag--more {
    justify-content: center;
    min-width: 25px;
    padding-right: 6px;
    padding-left: 6px;
    color: #003366;
    font-weight: 600;
    cursor: help;
}


/* =========================================================
   BOUTON VOIR LES RÉSULTATS
   ========================================================= */

.favorites-searches-table .favorites-view-button {
    min-width: 112px;
}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .favorites-searches-table {
        min-width: 0;
    }

    /*
     * Le nom de la recherche occupe toute la largeur.
     */
    .favorites-searches-table tbody td:nth-child(2) {
        grid-column: 1 / -1;
    }

    /*
     * Les critères occupent également toute la largeur.
     */
    .favorites-searches-table tbody td:nth-child(3) {
        grid-column: 1 / -1;
    }

    .favorite-search-criteria {
        gap: 6px;
    }

    .favorite-search-tag {
        min-height: 26px;
        padding: 5px 8px;
        white-space: normal;
    }
}


@media (max-width: 480px) {
    .favorites-searches-table tbody td:nth-child(2),
    .favorites-searches-table tbody td:nth-child(3) {
        grid-column: auto;
    }

    .favorite-search-criteria {
        align-items: flex-start;
        flex-direction: column;
    }

    .favorite-search-tag {
        width: 100%;
    }

    .favorite-search-tag--more {
        width: auto;
    }
}


/* ==========================================================
   FAVORIS - BOUTONS DE SYNTHÈSE
   Réutilise elite-credits-box
========================================================== */

.favorites-summary-row {
    margin-bottom: 15px;
}

.favorites-summary-button {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 82px;

    padding: 16px 48px 16px 20px;

    border: 1px solid #dce5ef;
    border-radius: 8px;

    text-decoration: none !important;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;
}


/* On conserve l'icône du composant Elite,
   mais légèrement plus grande ici */

.favorites-summary-button .elite-credits-icon {
    flex: 0 0 auto;

    width: 44px;
    height: 44px;

    margin-right: 15px;

    font-size: 20px;
}


/* Contenu */

.favorites-summary-button .elite-credits-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.favorites-summary-button .elite-credits-content strong {
    font-size: 18px;
    line-height: 1.2;
}

.favorites-summary-button .elite-credits-content span {
    margin-top: 3px;

    font-size: 12px;
    line-height: 1.3;
}


/* Flèche à droite */

.favorites-summary-arrow {
    position: absolute;
    top: 50%;
    right: 20px;

    color: #003366;

    font-size: 14px;

    opacity: 0;

    transform: translate(-5px, -50%);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}


/* Hover */

.favorites-summary-button:hover,
.favorites-summary-button:focus {
    background: #f8fbff;
    border-color: #abc7ef;

    text-decoration: none;

    transform: translateY(-1px);
}

.favorites-summary-button:hover .favorites-summary-arrow,
.favorites-summary-button:focus .favorites-summary-arrow {
    opacity: 1;
    transform: translate(0, -50%);
}


/* Mobile */

@media (max-width: 767px) {

    .favorites-summary-button {
        min-height: 72px;
        padding: 13px 42px 13px 15px;
    }

    .favorites-summary-button .elite-credits-icon {
        width: 38px;
        height: 38px;

        margin-right: 12px;

        font-size: 17px;
    }

    .favorites-summary-button .elite-credits-content strong {
        font-size: 16px;
    }

}













/* ==========================================================
   HISTORIQUE - AUCUNE RECHERCHE
========================================================== */

.history-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 330px;

    padding: 45px 25px;

    color: #142b58;
    background: #ffffff;

    text-align: center;
}


/* Icône */

.history-empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 66px;
    height: 66px;

    margin-bottom: 20px;

    color: #003366;
    background: #eef4ff;

    border-radius: 50%;

    font-size: 26px;
}


/* Titre */

.history-empty-state h3 {
    margin: 0 0 10px;

    color: #102957;

    font-size: 18px;
    font-weight: 600;
}


/* Texte */

.history-empty-state p {
    max-width: 520px;

    margin: 0 0 24px;

    color: #617291;

    font-size: 12px;
    line-height: 1.7;
}


/* Bouton */

.history-empty-state-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;
    min-height: 43px;

    padding: 10px 18px;

    color: #ffffff !important;
    background: #003366;

    border: 1px solid #003366;
    border-radius: 6px;

    box-shadow: none;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none !important;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.history-empty-state-button i {
    margin-left: 11px;
}

.history-empty-state-button:hover,
.history-empty-state-button:focus {
    color: #ffffff !important;
    background: #0454c7;
    border-color: #0454c7;

    text-decoration: none;
}


/* Mobile */

@media (max-width: 600px) {

    .history-empty-state {
        min-height: 280px;
        padding: 35px 18px;
    }

    .history-empty-state-button {
        width: 100%;
        min-width: 0;
    }

}