/* =====================================================
   CATEGORY SHOPPING - CSS V5.1
   Niche: E-commerce / Code promo / Affiliation
   Couleurs: #bf360c (primary), #ffab91 (accent), #81d4fa (info)
   ===================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   VARIABLES CSS
   ===================================================== */
:root {
    --primary: #bf360c;
    --primary-light: #e64a19;
    --accent: #ffab91;
    --info: #81d4fa;
    --white: #ffffff;
    --dark: #1a1a2e;
    --dark-mid: #2d2d44;
    --text-main: #1e1e2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --bg-light: #fafaf9;
    --bg-warm: #fff8f6;
    --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 16px rgba(191, 54, 12, 0.08);
    --shadow-hover: 0 8px 32px rgba(191, 54, 12, 0.16);
}

/* =====================================================
   UTILITAIRES
   ===================================================== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 10px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 24px;
    line-height: 1.25;
    font-family: var(--font-base);
}

/* =====================================================
   HERO CATÉGORIE
   ===================================================== */
.cat-hero {
    background-color: var(--dark);
    color: var(--white);
    padding: 72px 24px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 100%;
    overflow: hidden;
}

.cat-hero__inner {
    flex: 1;
    max-width: 600px;
    min-width: 0;
}

.cat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.cat-hero__title {
    font-size: 38px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.18;
    margin: 0 0 18px;
    font-family: var(--font-base);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-hero__subtitle {
    font-size: 17px;
    color: #d1d5db;
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 520px;
}

.cat-hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cat-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cat-hero__stat-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    font-family: var(--font-base);
}

.cat-hero__stat-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.cat-hero__stat-sep {
    width: 1px;
    height: 40px;
    background-color: #374151;
    flex-shrink: 0;
}

.cat-hero__visual {
    flex: 0 0 auto;
    max-width: 420px;
    width: 100%;
}

.cat-hero__visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    object-fit: cover;
}

/* =====================================================
   KPI SECTION
   ===================================================== */
.kpi-section {
    padding: 60px 0 48px;
    background-color: var(--bg-warm);
}

.kpi-section .section-label {
    text-align: center;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.kpi-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.kpi-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: #fff1ee;
    border-radius: var(--radius-sm);
}

.kpi-card__value {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    font-family: var(--font-base);
}

.kpi-card__label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.45;
}

.kpi-disclaimer {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin: 0;
    padding: 0 12px;
    font-style: italic;
}

/* =====================================================
   ARTICLES SECTION - TIMELINE
   ===================================================== */
.articles-section {
    padding: 64px 0 80px;
    background-color: var(--bg-light);
}

.articles-header {
    text-align: center;
    margin-bottom: 52px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.articles-header__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 12px;
    font-family: var(--font-base);
}

.articles-header__desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Timeline layout */
.timeline {
    position: relative;
    padding: 8px 0;
    list-style: none;
    margin: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 46%;
    margin-bottom: 48px;
    margin-left: 0;
}

.timeline-item--right {
    margin-left: 54%;
}

.timeline-dot {
    position: absolute;
    top: 28px;
    right: -30px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-item--right .timeline-dot {
    right: auto;
    left: -30px;
}

.timeline-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.timeline-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.timeline-card__img-wrap {
    overflow: hidden;
    height: 200px;
}

.timeline-card__img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-card:hover .timeline-card__img-wrap img {
    transform: scale(1.04);
}

.timeline-card__body {
    padding: 22px 24px 24px;
}

.timeline-card__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.timeline-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px;
    line-height: 1.35;
    font-family: var(--font-base);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.timeline-card__title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.timeline-card__title a:hover,
.timeline-card__title a:focus {
    color: var(--primary);
    text-decoration: underline;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.timeline-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 14px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.timeline-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background-color: #fff1ee;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* NO ARTICLES */
.no-articles {
    text-align: center;
    padding: 72px 24px;
}

.no-articles__icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.no-articles__text {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
}

/* =====================================================
   DEALS SLIDER SECTION
   ===================================================== */
.deals-slider-section {
    padding: 64px 0;
    background-color: var(--white);
}

.deals-slider-section .section-title {
    margin-bottom: 32px;
}

.deals-slider-wrap {
    position: relative;
    overflow: hidden;
}

.deals-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--border);
}

.deals-slider::-webkit-scrollbar {
    height: 4px;
}
.deals-slider::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 2px;
}
.deals-slider::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.deals-slide {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background-color: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.deals-slide:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.deals-slide__icon {
    width: 56px;
    height: 56px;
    background-color: #fff1ee;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.deals-slide__title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    font-family: var(--font-base);
}

.deals-slide__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.deals-slider__nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.deals-slider__btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    color: var(--text-muted);
}

.deals-slider__btn:hover,
.deals-slider__btn:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* =====================================================
   TABLEAU COMPARATIF
   ===================================================== */
.comparison-section {
    padding: 64px 0;
    background-color: var(--bg-light);
}

.comparison-intro {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: -12px 0 28px;
    max-width: 720px;
}

.table-responsive-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: var(--font-base);
    min-width: 640px;
}

.comparison-table thead {
    background-color: var(--dark);
}

.comparison-table thead th {
    color: var(--white);
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.comparison-table tbody tr {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.15s ease;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: #fff8f6;
}

.comparison-table tbody td {
    padding: 13px 18px;
    color: var(--text-main);
    vertical-align: middle;
}

.comparison-table tbody td[data-label="Enseigne"] strong {
    color: var(--primary);
    font-weight: 700;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge--green {
    background-color: #dcfce7;
    color: #166534;
}

.badge--orange {
    background-color: #fff7ed;
    color: #9a3412;
}

.badge--red {
    background-color: #fee2e2;
    color: #991b1b;
}

.comparison-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
    font-style: italic;
    line-height: 1.5;
}

.comparison-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* =====================================================
   DISCLAIMER BLOG
   ===================================================== */
.disclaimer-section {
    padding: 40px 0 56px;
    background-color: var(--bg-warm);
}

.disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-box__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-box__text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.disclaimer-box__text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .cat-hero {
        padding: 56px 20px 48px;
        gap: 32px;
    }

    .cat-hero__title {
        font-size: 32px;
    }

    .cat-hero__subtitle {
        font-size: 16px;
    }

    .cat-hero__stat-number {
        font-size: 24px;
    }

    .cat-hero__visual {
        max-width: 320px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .kpi-card__value {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .articles-header__title {
        font-size: 28px;
    }

    .timeline::before {
        left: 50%;
    }

    .timeline-item {
        width: 46%;
    }

    .timeline-item--right {
        margin-left: 54%;
    }

    .timeline-card__img-wrap {
        height: 180px;
    }

    .timeline-card__img-wrap img {
        height: 180px;
    }

    .timeline-card__title {
        font-size: 17px;
    }

    .deals-slide {
        flex: 0 0 240px;
    }

    .comparison-section {
        padding: 48px 0;
    }

    .disclaimer-box {
        padding: 20px 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .section-label {
        font-size: 11px;
    }

    .cat-hero {
        flex-direction: column;
        padding: 40px 16px 36px;
        gap: 28px;
        align-items: flex-start;
    }

    .cat-hero__inner {
        max-width: 100%;
    }

    .cat-hero__title {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .cat-hero__subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .cat-hero__stats {
        gap: 16px;
    }

    .cat-hero__stat-number {
        font-size: 22px;
    }

    .cat-hero__stat-label {
        font-size: 11px;
    }

    .cat-hero__stat-sep {
        height: 32px;
    }

    .cat-hero__visual {
        max-width: 100%;
        width: 100%;
    }

    .kpi-section {
        padding: 40px 0 32px;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .kpi-card {
        padding: 20px 16px;
        gap: 8px;
    }

    .kpi-card__icon {
        width: 44px;
        height: 44px;
    }

    .kpi-card__value {
        font-size: 26px;
    }

    .kpi-card__label {
        font-size: 13px;
    }

    .articles-section {
        padding: 48px 0 56px;
    }

    .articles-header {
        margin-bottom: 36px;
    }

    .articles-header__title {
        font-size: 24px;
    }

    .articles-header__desc {
        font-size: 15px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0;
        margin-bottom: 28px;
    }

    .timeline-item--right {
        margin-left: 0;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-card__img-wrap {
        height: 200px;
    }

    .timeline-card__img-wrap img {
        height: 200px;
    }

    .timeline-card__body {
        padding: 18px 18px 20px;
    }

    .timeline-card__title {
        font-size: 16px;
    }

    .timeline-card__desc {
        font-size: 14px;
    }

    .deals-slider-section {
        padding: 48px 0;
    }

    .deals-slide {
        flex: 0 0 240px;
        padding: 22px 18px;
    }

    .deals-slide__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .deals-slide__title {
        font-size: 15px;
    }

    .deals-slide__desc {
        font-size: 13px;
    }

    .deals-slider__nav {
        justify-content: center;
    }

    .deals-slider__btn {
        width: 36px;
        height: 36px;
    }

    .comparison-section {
        padding: 40px 0;
    }

    .comparison-intro {
        font-size: 14px;
    }

    .disclaimer-section {
        padding: 32px 0 40px;
    }

    .disclaimer-box {
        flex-direction: column;
        gap: 12px;
        padding: 18px 16px;
    }

    .disclaimer-box__icon {
        margin-top: 0;
    }

    .disclaimer-box__text strong {
        font-size: 14px;
    }

    .disclaimer-box__text p {
        font-size: 13px;
    }

    .comparison-disclaimer {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .cat-hero {
        padding: 32px 12px 28px;
        gap: 20px;
    }

    .cat-hero__badge {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 14px;
    }

    .cat-hero__title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cat-hero__subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cat-hero__stats {
        gap: 12px;
    }

    .cat-hero__stat-number {
        font-size: 20px;
    }

    .cat-hero__stat-label {
        font-size: 10px;
    }

    .cat-hero__stat-sep {
        height: 28px;
    }

    .kpi-section {
        padding: 32px 0 24px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kpi-card {
        padding: 16px 14px;
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }

    .kpi-card__icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .kpi-card__value {
        font-size: 22px;
    }

    .kpi-card__label {
        font-size: 12px;
    }

    .articles-section {
        padding: 36px 0 40px;
    }

    .articles-header {
        margin-bottom: 28px;
    }

    .articles-header__title {
        font-size: 20px;
    }

    .articles-header__desc {
        font-size: 14px;
    }

    .timeline-item {
        margin-bottom: 20px;
    }

    .timeline-card__img-wrap {
        height: 170px;
    }

    .timeline-card__img-wrap img {
        height: 170px;
    }

    .timeline-card__body {
        padding: 14px 14px 16px;
    }

    .timeline-card__title {
        font-size: 15px;
    }

    .timeline-card__desc {
        font-size: 13px;
    }

    .timeline-card__tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .deals-slider-section {
        padding: 36px 0;
    }

    .deals-slide {
        flex: 0 0 200px;
        padding: 18px 14px;
    }

    .deals-slide__icon {
        width: 42px;
        height: 42px;
        margin-bottom: 10px;
    }

    .deals-slide__title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .deals-slide__desc {
        font-size: 12px;
    }

    .deals-slider__btn {
        width: 32px;
        height: 32px;
    }

    .deals-slider__nav {
        margin-top: 14px;
    }

    .comparison-section {
        padding: 32px 0;
    }

    .comparison-intro {
        font-size: 13px;
    }

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table thead th {
        padding: 12px 12px;
        font-size: 12px;
    }

    .comparison-table tbody td {
        padding: 10px 12px;
    }

    .badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    .disclaimer-section {
        padding: 24px 0 32px;
    }

    .disclaimer-box {
        padding: 14px 12px;
        gap: 10px;
    }

    .disclaimer-box__text strong {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .disclaimer-box__text p {
        font-size: 12px;
    }

    .kpi-disclaimer {
        font-size: 11px;
    }

    .no-articles {
        padding: 48px 12px;
    }

    .no-articles__text {
        font-size: 16px;
    }
}