.cotation-produits__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(28, 65, 109, 0.12);
    border-radius: 16px;
    background: var(--color-white);
    font-family: var(--font-body, 'Satoshi');
    color: var(--color-primary);
}

.cotation-produits__table thead th {
    padding: 16px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-titres, 'Cabinet');
    font-weight: 700;
    font-size: 18px;
    text-align: right;
    white-space: nowrap;
}

.cotation-produits__table thead th:first-child {
    border-top-left-radius: 15px;
    text-align: left;
}

.cotation-produits__table thead th:last-child {
    border-top-right-radius: 15px;
}

.cotation-produits__table tbody th,
.cotation-produits__table tbody td {
    padding: 16px 24px;
    border-top: 1px solid rgba(28, 65, 109, 0.1);
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
}

.cotation-produits__table tbody tr:nth-child(even) > * {
    background: var(--fond-bleu);
}

.cotation-produits__table tbody tr:last-child > :first-child {
    border-bottom-left-radius: 15px;
}

.cotation-produits__table tbody tr:last-child > :last-child {
    border-bottom-right-radius: 15px;
}

.cotation-produits__identite {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cotation-produits__identite picture,
.cotation-produits__identite img {
    flex: none;
    width: 64px;
    height: 64px;
}

.cotation-produits__identite img {
    object-fit: contain;
}

.cotation-produits__nom {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cotation-produits__titre {
    font-family: var(--font-titres, 'Cabinet');
    font-weight: 700;
}

a.cotation-produits__titre {
    color: inherit;
    text-decoration: none;
}

a.cotation-produits__titre:hover,
a.cotation-produits__titre:focus-visible {
    text-decoration: underline;
}

.cotation-produits__ligne[hidden] {
    display: none;
}

.cotation-produits__plus {
    margin: 24px 0 0;
    text-align: center;
}

.cotation-produits__sous-titre {
    font-size: 16px;
    opacity: 0.7;
}

.cotation-produits__table tbody .cotation-produits__chiffre {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cotation-produits__table tbody .cotation-produits__cours {
    font-family: var(--font-titres, 'Cabinet');
    font-weight: 700;
}

.cotation-produits__variation.is-hausse {
    color: #1B7A3D;
}

.cotation-produits__variation.is-baisse {
    color: #C0392B;
}

.cotation-produits__fleche {
    margin-right: 6px;
}

.cotation-produits__table tbody .cotation-produits__action {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.cotation-produits:not(.is-loaded) td[data-cotation]::after {
    content: "";
    display: inline-block;
    width: 72px;
    height: 16px;
    border-radius: 8px;
    vertical-align: middle;
    background: linear-gradient(90deg, rgba(28, 65, 109, 0.08) 25%, rgba(28, 65, 109, 0.18) 50%, rgba(28, 65, 109, 0.08) 75%);
    background-size: 200% 100%;
    animation: cotation-produits-chargement 1.2s linear infinite;
}

@keyframes cotation-produits-chargement {
    from { background-position: 100% 0; }
    to   { background-position: -100% 0; }
}

.cotation-produits__ligne.is-unavailable .cotation-produits__identite {
    filter: grayscale(1);
}

.cotation-produits__ligne.is-introuvable td {
    font-style: italic;
    opacity: 0.7;
}

.cotation-produits__info {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
    cursor: help;
}

.cotation-produits__info svg {
    width: 18px;
    height: 18px;
}

.cotation-produits__bulle {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 2;
    width: max-content;
    max-width: 260px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(28, 65, 109, 0.18);
    color: var(--color-primary);
    font-family: var(--font-body, 'Satoshi');
    font-weight: 400;
    font-size: 16px;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: opacity 0.2s, visibility 0.2s;
}

.cotation-produits__info:hover .cotation-produits__bulle,
.cotation-produits__info:focus .cotation-produits__bulle {
    opacity: 1;
    visibility: visible;
}

.cotation-produits__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cotation-produits__date {
    margin: 16px 0 0;
    font-size: 16px;
    text-align: right;
    opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
    .cotation-produits:not(.is-loaded) td[data-cotation]::after {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .cotation-produits__table thead th,
    .cotation-produits__table tbody th,
    .cotation-produits__table tbody td {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .cotation-produits__table,
    .cotation-produits__table tbody {
        display: block;
    }

    .cotation-produits__table {
        border: 0;
        border-radius: 0;
        background: none;
    }

    .cotation-produits__table thead {
        display: none;
    }

    .cotation-produits__ligne {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 16px;
        border: 1px solid rgba(28, 65, 109, 0.12);
        border-radius: 16px;
        background: var(--color-white);
    }

    .cotation-produits__ligne + .cotation-produits__ligne {
        margin-top: 16px;
    }

    .cotation-produits__table tbody tr > *,
    .cotation-produits__table tbody tr:nth-child(even) > * {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
    }

    .cotation-produits__produit,
    .cotation-produits__action,
    .cotation-produits__ligne.is-introuvable td {
        grid-column: 1 / -1;
    }

    .cotation-produits__table tbody .cotation-produits__chiffre {
        text-align: left;
    }

    .cotation-produits__chiffre::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-family: var(--font-body, 'Satoshi');
        font-weight: 400;
        font-size: 16px;
        color: var(--color-primary);
        opacity: 0.7;
    }

    .cotation-produits__table tbody .cotation-produits__action {
        width: auto;
    }

    .cotation-produits__action .button {
        display: block;
        width: 100%;
        text-align: center;
    }

    .cotation-produits__date {
        text-align: left;
    }
}

@media (max-width: 450px) {
    .cotation-produits__ligne {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cotation-produits__table tbody .cotation-produits__chiffre {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
    }

    .cotation-produits__chiffre::before {
        margin-bottom: 0;
    }
}
