/* ==========================================================================
   TO XIII — Modules Homepage (Actualités, Boutique, Partenaires)
   ========================================================================== */

/* ---- Section ---- */
.to13-section {
    margin: 2rem 0;
}

.to13-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.to13-section__title {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--theme-palette-color-4, #192a3d);
    margin: 0;
    letter-spacing: -0.02em;
}

.to13-partenaires .to13-section__title {
    color: #c9a84c;
}

.to13-section__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-palette-color-4, #192a3d);
    text-decoration: none;
    white-space: nowrap;
}

.to13-section__link:hover {
    text-decoration: underline;
}

/* ---- Carousel ---- */
.to13-carousel {
    position: relative;
}

.to13-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0.5rem 1rem;
}

.to13-carousel__track::-webkit-scrollbar {
    display: none;
}

/* Navigation flèches */
.to13-carousel__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 0.25rem;
}

.to13-carousel__prev,
.to13-carousel__next {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--theme-palette-color-4, #192a3d);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.to13-carousel__prev:hover,
.to13-carousel__next:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---- Card base ---- */
.to13-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.to13-card:hover {
    transform: translateY(-4px);
}

.to13-card__image {
    position: relative;
    overflow: hidden;
}

.to13-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Card Actualités ---- */
.to13-card--actu {
    width: 280px;
    background: var(--theme-palette-color-4, #192a3d);
}

.to13-card--actu .to13-card__image {
    height: 380px;
}

.to13-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}

.to13-card__title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.to13-card__cta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Card Produit ---- */
.to13-card--product {
    width: 240px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.to13-card__image--product {
    height: 280px;
    background: #f8f9fa;
}

.to13-card__body {
    padding: 1rem;
    text-align: center;
}

.to13-card__product-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--theme-palette-color-4, #192a3d);
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.to13-card__price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-palette-color-4, #192a3d);
    margin-bottom: 1rem;
}

.to13-card__old-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.3rem;
}

.to13-card__btn {
    display: inline-block;
    padding: 0.6rem 2rem;
    background: #7ec8e3;
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s;
}

.to13-card--product:hover .to13-card__btn {
    background: #5bb3d2;
}

/* ---- Card Partenaires ---- */
.to13-partenaires {
    background: var(--theme-palette-color-4, #192a3d);
    padding: 2rem 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
}

.to13-partenaires .to13-section__link {
    color: #c9a84c;
}

.to13-card--partenaire {
    width: 320px;
}

.to13-card--partenaire .to13-card__image {
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
}

.to13-card__overlay--dark {
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .to13-card--actu { width: 220px; }
    .to13-card--actu .to13-card__image { height: 300px; }
    .to13-card--product { width: 180px; }
    .to13-card__image--product { height: 220px; }
    .to13-card--partenaire { width: 260px; }

    .to13-section__title { font-size: 1.3rem; }
}
