﻿.box-container {
    
    margin: 0 auto;
    padding: 2.5rem;
    max-width: 300px;
    
    background-color: var(--color_white);
    /* box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1); */
}

.box-container .box {
    margin-bottom: 4rem;
}

.box-container .box-img {
    position: relative;
}
.box-container .box:nth-child(2n) .box-img{
    margin-right: 1.25;
}
.box-container .box:nth-child(2n + 1) .box-img{
    margin-left: 1.25;
}
.box-container .box-img:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color_info);
    border-radius: 4px;

    position: absolute;
    z-index: 1;
}
.box-container .box:nth-child(2n + 1) .box-img:before{
    top: -1.25rem;
    left: -1.25rem;
}
.box-container .box:nth-child(2n) .box-img:before{
    top: -1.25rem;
    right: -1.25rem;
}
.box-container .box-img img {
    position: relative;
    width: 100%;
    z-index: 1;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.box-container .box-img img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
}
.box-container .box-body span {
    display: block;
    color: var(--color);
}

.box-container .box-body span.box-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background-color: var(--color_info);
    color: var(--color_white);
    font-size: 12px;
    text-transform: uppercase;
}

.box-container .box-body h2{
    font-size: 1.25rem;
    text-transform: uppercase;
    line-height: 1.5rem;
    margin-bottom: 1rem;
}

.box-container .box-body h2:before {
    content: '';
    display: block;
    margin: 0.75rem auto 0.75rem 0;

    width: 3rem;
    height: 0.125rem;

    background-color: var(--color_info);
}

.box-container .box-body p {
    margin-bottom: 1rem;
}

.box-container .box-body a {
    display: block;
    width: max-content;
    margin: 0 auto;
    padding: 10px 20px;
    
    color: var(--color_layout);
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;

}

.box-container .box-body a:after {
    content: '>';
    display: inline-block;
    font-weight: 900;
    margin-left: 1rem;
    vertical-align: middle;
    transform: translateX(0px);
    transition: all 0.3s;

}
.box-container .box-body a:hover:after {
    transform: translateX(5px);
    transition: all 0.3s;
}
@media (min-width: 640px) {
    .box-container {
        max-width: 100%;
    }
    .box-container .box {
        display: flex;
        justify-content: space-between;
    }
    .box-container .box:nth-child(2n) {
        flex-direction: row-reverse;
    }
    .box-container .box-body {
        width: 65%;
        /* max-width: 450px; */
        flex: none;
    }
    .box-container .box-img {
        width: 33%;
    }
    .box-container .box:nth-child(2n) .box-body{
        margin-right: 1.25rem;
    }
    
    .box-container .box:nth-child(2n + 1) .box-body{
        margin-left: 1.25rem;
    }
}
@media (min-width: 768px) {
    .box-container {
        max-width: 400px;
    }
    .box-container .box {
        display: block;
    }
    .box-container .box-body {
        width: 100%;
        max-width: 100%;
    }
    .box-container .box-img {
        width: 100%;
    }
    .box-container .box:nth-child(2n) .box-body{
        margin-right: 0;
    }
    .box-container .box:nth-child(2n + 1) .box-body{
        margin-left: 0;
    }
}
@media (min-width: 992px) {
    .box-container {
        max-width: 100%;
    }
    .box-container .box {
        display: flex;
        justify-content: space-between;
    }
    .box-container .box-body {
        width: 65%;
        /* max-width: 450px; */
    }
    .box-container .box-img {
        width: 33%;
    }
    .box-container .box:nth-child(2n) .box-body{
        margin-right: 1.25rem;
    }
    
    .box-container .box:nth-child(2n + 1) .box-body{
        margin-left: 1.25rem;
    }
}

.box-container .box.disabled-box {
    color: #8f8f8f !important;
    opacity: 0.85;
    filter: grayscale(100%) brightness(0.92);
    transition: opacity .18s ease, filter .18s ease;
}

.pagination {
    --loader: 40px;
    --border_loader: 4px;

    width: 100%;
    display: flex;
    justify-content: center;    
}

.pagination a {
    opacity: 0.8;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color_secondary);
    font-size: 1.125rem;
    color: var(--color_white);
    border-radius: 99px;
    vertical-align: middle;
    outline: none;
    transition: all .3s ease-in-out;
}

.pagination a:hover {
    opacity: 1;
    transition: all .3s ease-in-out;
}

.pagination a:after {
    content: '>';
    display: inline;
    font-size: 1.125rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.js-loadMore {
    width: var(--loader);
    height: var(--loader);
    display: inline-block;
    border-radius: var(--loader);
    border: var(--border_loader) solid #facabb;
    position: relative;
    background-color: transparent !important;

}

.js-loadMore:after {
    content: '';
    position: absolute;
    top: calc(-1 * var(--border_loader));
    left: calc(-1 * var(--border_loader));
    bottom: calc(-1 * var(--border_loader));
    right: calc(-1 * var(--border_loader));
    border-radius: var(--loader);
    border: var(--border_loader) solid transparent;
    border-top-color: var(--color_secondary);
    animation: spin 1s linear infinite;
    margin-left: 0 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 

.box {
    width: 100%;
    background: #fefefe;
    box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
    padding: 16px;
    border-radius: 16px;
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 1rem;
}
    
@media screen and (min-width: 640px) {
    .box {
        flex-direction: row;
    }
}
@media screen and (min-width: 768px) {
    .box {
        flex-direction: column;
    }
}
@media screen and (min-width: 992px) {
    .box {
        flex-direction: row;
    }
}
  
.box_img {
    width: 100%;
    height: auto;
    max-width: 200px;
    flex-shrink: 0;
    max-height: 200px;
    box-shadow: 4px 13px 30px 1px rgba(252, 56, 56, 0.2);
    border-radius: 20px;
    overflow: hidden;
}
    
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
.box_body {
    padding: 0;
    text-align: center;
    position: relative;
}
    
@media screen and (min-width: 640px) {
    .box_body {
        padding-left: 2rem;
        text-align: left;
    }
}
@media screen and (min-width: 768px) {
    .box_body {
        padding-left: 0rem;
        text-align: center;
    }
}
@media screen and (min-width: 992px) {
    .box_body {
        padding-left: 2rem;
        text-align: left;
    }
}
  
.box_code {
    color: #7b7992;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}
  
.box_body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0d0925;
}
  
.box_body p {
    color: #4e4a67;
    line-height: 1.5;
    margin-top: 16px;
    margin-bottom: 16px;
}

.box_body span {
    padding: 10px 0;
    display: block;
    color: #fe5722;
}

.box_body .box_badge {
    padding: 6px 10px;
    display: inline-block;
    border-radius: 4px;
    background-color: var(--color_secondary);
    color: var(--color_white);
}
  
.box_body a {
    display: inline-flex;
    background-image: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%);
    padding: 10px 36px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    justify-content: center;
    text-align: center;
    letter-spacing: 1px;
}




@media screen and (min-width: 992px) {
    .box_body a.btn-jc {
        position: absolute;
        top: 0;
        right: 0;
    }
} */
/* --- pages listing / categories / marques générées --- */
.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 2.5rem 0.5rem;
    color: #2b2b2b;
}
.page-intro {
    margin: 0 2.5rem 1.5rem;
    color: #6b7280;
    max-width: 70ch;
    line-height: 1.6;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
    padding: 2.5rem;
    background-color: #fff;
}
.brand-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease;
}
.brand-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.brand-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.brand-card .brand-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}
.brand-card img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}
.brand-card p {
    font-weight: 700;
    font-size: .95rem;
    margin: 0;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6b7280;
}
.empty-state p { margin-bottom: 1.5rem; }
.empty-state .button {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 5px;
    background-color: #f5a25e;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}