/** @format */

* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-family: -apple-system, sans-serif;
    letter-spacing: -0.5px;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: #121212;
    font-size: 16px;
}
body {
    display: flex;
    flex-direction: column;
}

#container {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    width: 420px;
    margin-top: 50px;
    padding: 14px;
    padding-bottom: 0;
    background: #1e293b; /* bleu nuit */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    font-family: system-ui;
    color: #fff;
}
.top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top img {
    height: 48px;
    width: 48px;
    padding: 6px;
    background: #0f172a;
    border-radius: 10px;
}
.title {
    font-size: 18px;
    font-weight: 700;
}
.badge {
    padding: 4px 8px;
    background: #334155;
    border-radius: 20px;
    font-size: 12px;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}
.box {
    padding: 8px 10px;
    background: #0f172a;
    border-radius: 10px;
    font-size: 13px;
}

a {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
    padding: 3px 10px;

    background-color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    color: #5151ff;
}
.footer {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 12px;
}

.ListeEventsFuturs {
    width: 100%;

    display: flex;
    flex-direction: column;
    margin-top: 16px;
    padding-top: 16px;
    background-color: #0f172a;
    border-radius: 12px 12px 0 0px;
}

.ListeEventsFuturs > h4 {
    padding: 0 20px;
}

.visiblePart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
    padding-bottom: 12px;
    font-size: 1rem;
    font-weight: bold;
}

.visiblePart > div {
    /* padding: 8px; */
    height: 2rem;
    width: 2rem;

    display: flex;
    justify-content: center;
    align-items: center;

    padding-left: 3px;
    background-color: #30e478;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
    cursor: pointer;
    transition: 0.2s;
}

.eventsContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* background-color: rgba(176, 224, 230, 0.488); */
    padding: 20px;
}

.eventsContainer .event {
    width: 100%;
    margin-top: 26px;
    padding: 12px;
    background-color: #334155;
}

.event-details h4 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.event-description {
    margin-bottom: 12px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

.event-meta {
    display: flex;
    gap: 0px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 4px;

    /* background-color: red; */
    padding: 2px 4px;
    font-weight: bold;
    color: #121212;
}

.event-markets {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #475569;
}

.event-markets .section-title {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.event-markets ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-markets li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #e2e8f0;
}

.event-markets .muted {
    color: #64748b;
}

.event-markets ul li {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.event-markets ul li > span {
    width: 50%;
}

.event-markets a {
    padding: 0;
    text-align: left;
    cursor: pointer;
    font-size: 0.7rem;
}

.affichageInfoMarket {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 4px;
    font-weight: 600;
    color: #94a3b8;
}

.event-markets .market-meta {
    font-weight: 600;
    color: #d7e8ff;
}

/* Cotes sections (Polymarket & The Odds) */
.event-odds {
    margin-top: 12px;
    padding: 10px;
    background: #243046;
    border: 1px solid #475569;
}
.event-odds .section-title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
}
.event-odds .odd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #3a4a63;
}
.event-odds .odd:last-child {
    border-bottom: none;
}
.event-odds .odd-label {
    font-weight: 600;
    color: #cbd5e1;
}
.event-odds .odd-value {
    font-weight: 700;
    color: #e2e8f0;
}

/* Bloc The Odds (FR) */
.fr-odds {
    background: #1f2a3c;
}
.fr-odds .fr-odds-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fr-odds .fr-odd-row {
    display: flex;
    flex-direction: column;

    justify-content: space-evenly;
    align-items: center;
    gap: 2px;
    padding: 3px 12px;
    background: #243046;
    font-size: 13px;
    color: #e2e8f0;
}
.fr-odds .fr-bk-name {
    width: 100%;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: #e2e8f0;
    text-transform: uppercase;
}
.fr-odds .fr-outcome-group {
    display: flex;
    gap: 8px;
}
.fr-odds .fr-outcome-box {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    background: #1e293b;
    flex: 1 1 90px;
}

.fr-odds .fr-outcome-name {
    font-size: 7px;
    font-weight: 700;
    text-align: center;
    color: #cbd5e1;
    text-transform: uppercase;
}
.fr-odds .fr-outcome-price {
    margin-top: 0px;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}
.merged-odds {
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
    color: #e2e8f0;
    border-collapse: collapse;
}
.merged-odds th,
.merged-odds td {
    padding: 6px 8px;
    border: 1px solid #475569;
    text-align: left;
}
.merged-odds th {
    background: #243046;
    font-weight: 700;
}
.merged-odds td.best-price {
    font-weight: 800;
    color: #2adb00;
}

.affichageNameEquipes {
    height: 30px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #475569;
}

.affichageNameEquipes > div {
    font-weight: 600;
    text-align: center;
    color: #d7e8ff;
}

.affichageNameEquipes > .equipe {
    color: #fff;
    text-shadow: 0 0 10px rgba(251, 255, 0, 0.352);
}

.affichageNameEquipes a {
    height: 10px;
    width: 30px;
    display: block;
    margin-top: 0px;
    padding: 0;
    padding: 0;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
}

/* Bloc cotes */
.event-odds {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #475569;
}

.event-odds .section-title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
}

.odds-container {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}

.odd {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 8px 10px;
    background: #1e293b;
    text-align: center;
    color: #e2e8f0;
    flex: 1 1 90px;
}

.odd-label {
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #cbd5e1;
    text-transform: uppercase;
}

.odd-value {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.btn-load-fr {
    width: 100%;
    margin-top: 20px;
    padding: 6px 10px;
    background-color: #3b82f6;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
}

.arbitrage-msg {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: #ffffff;
}

.book-links li {
    display: flex;
    gap: 20px;
    color: #dbdbdb;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.book-links a {
    background-color: rgb(255, 255, 255);
    width: 100px;
}

.book-links li > span {
    background-color: #ffff00;
    color: #121212;
}
