/* --- Bootstrap Light (version miniaturisée) --- */

/* Container */
.container, .container-fluid {
    width: 100%;
    padding-right: 0.3rem;
    padding-left: 0.3rem;
    margin-right: auto;
    margin-left: auto;
}

/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: -0.75rem;
    margin-right: -0.3rem;
    margin-left: -0.3rem;
}

/* Col */
.col, .col-auto, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    position: relative;
    width: 100%;
    padding-right: 0.3rem;
    padding-left: 0.3rem;
}

/* Flexbox */
.flex-column {
    flex-direction: column;
}
.flex-row {
    flex-direction: row;
}
.justify-content-center {
    justify-content: center;
}
.align-items-center {
    align-items: center;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #555;
    vertical-align: top;
    border-collapse: collapse;
}
.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
}

/* Card */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58,59,69,.15);
}

/* Button */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #555;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Responsive */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive > .table {
        margin-bottom: 0;
    }
    .table-responsive > .table > thead > tr > th,
    .table-responsive > .table > tbody > tr > th,
    .table-responsive > .table > tfoot > tr > th,
    .table-responsive > .table > thead > tr > td,
    .table-responsive > .table > tbody > tr > td,
    .table-responsive > .table > tfoot > tr > td {
        white-space: nowrap;
    }
}

/* Custom Styles for Offres Actives */
.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto; /* Permet le scroll horizontal si nécessaire */
}

.offers-grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr 0.5fr;
    gap: 0;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.offers-grid-header > div {
    text-align: left;
}

.offers-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.offers-grid-header,
.offer-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 0.5fr 0.5fr;
    gap: 0;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.offers-grid-header {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    border-radius: 12px 12px 0 0;
}

.offer-card:last-child {
    border-bottom: none;
}

.offer-field {
    padding: 0;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-active { background-color: #28a745; }
.status-inactive { background-color: #dc3545; }

/* Hover effect */
.offer-card:hover {
    background-color: #f5f5f5;
}

/* Exchange action */
.exchange-action {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 91, 255, 0.9);
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.exchange-action:hover {
    background-color: rgba(46, 91, 255, 1);
}

.offer-card {
    position: relative;
    overflow: hidden;
}

.offer-card:hover .exchange-action {
    display: flex;
}