/* =============================================
   CATEGORY SHOPPING - COIFFURE
   Styles creatifs V5.1
   Couleurs: #3b4f3b, #4caf50, #ff9800
   ============================================= */

:root {
    --cat-green-dark: #3b4f3b;
    --cat-green: #4caf50;
    --cat-green-light: #e8f5e9;
    --cat-orange: #ff9800;
    --cat-orange-light: #fff3e0;
    --cat-text: #1e2920;
    --cat-text-muted: #5a6b5a;
    --cat-bg: #f7faf7;
    --cat-border: #d0ddd0;
    --cat-white: #ffffff;
    --cat-radius: 12px;
    --cat-radius-sm: 8px;
    --cat-shadow: 0 4px 20px rgba(59, 79, 59, 0.10);
    --cat-shadow-hover: 0 8px 32px rgba(59, 79, 59, 0.18);
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html, body { overflow-x: hidden; }

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

/* =============================================
   HERO SECTION
   ============================================= */
.cat-hero {
    background-color: var(--cat-green-dark);
    color: var(--cat-white);
    padding: 70px 24px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 100%;
    overflow: hidden;
}

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

.cat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--cat-green);
    color: var(--cat-white);
    font-family: var(--font-system);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.cat-hero__title {
    font-family: var(--font-system);
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: var(--cat-white);
    line-height: 1.2;
    margin: 0 0 18px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-hero__subtitle {
    font-family: var(--font-system);
    font-size: 16px;
    color: #c8d8c8;
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 500px;
}

.cat-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-hero__count,
.cat-hero__theme {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-system);
    font-size: 13px;
    color: #b0c8b0;
    font-weight: 500;
}

.cat-hero__sep {
    color: #6a896a;
}

.cat-hero__visual {
    position: relative;
    flex: 0 0 auto;
    width: 380px;
    max-width: 42vw;
}

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

.cat-hero__visual-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    background-color: var(--cat-white);
    color: var(--cat-green-dark);
    font-family: var(--font-system);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    white-space: nowrap;
}

.cat-hero__visual-badge--1 {
    top: -14px;
    right: -10px;
    color: var(--cat-orange);
}

.cat-hero__visual-badge--2 {
    bottom: -14px;
    left: -10px;
    color: var(--cat-green);
}

/* =============================================
   TIMELINE SECTION - ARTICLES
   ============================================= */
.timeline-section {
    background-color: var(--cat-bg);
    padding: 60px 24px;
}

.timeline-section__container {
    max-width: 820px;
    margin: 0 auto;
}

.timeline-section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--cat-border);
}

.timeline-section__header-icon {
    width: 52px;
    height: 52px;
    background-color: var(--cat-green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cat-white);
}

.timeline-section__label {
    font-family: var(--font-system);
    font-size: 20px;
    font-weight: 800;
    color: var(--cat-text);
    margin: 0 0 4px;
}

.timeline-section__sublabel {
    font-family: var(--font-system);
    font-size: 13px;
    color: var(--cat-text-muted);
    margin: 0;
}

/* TIMELINE VERTICALE */
.timeline {
    position: relative;
    padding-left: 0;
}

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

.timeline__item {
    position: relative;
    margin-bottom: 40px;
    width: calc(50% - 32px);
    min-width: 0;
}

.timeline__item--left {
    margin-left: 0;
    margin-right: auto;
}

.timeline__item--right {
    margin-left: auto;
    margin-right: 0;
}

/* CONNECTEUR POINT */
.timeline__connector {
    position: absolute;
    top: 24px;
    width: 44px;
    height: 44px;
    z-index: 2;
}

.timeline__item--left .timeline__connector {
    right: -54px;
}

.timeline__item--right .timeline__connector {
    left: -54px;
}

.timeline__dot {
    width: 44px;
    height: 44px;
    background-color: var(--cat-green-dark);
    border: 3px solid var(--cat-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cat-white);
    box-shadow: 0 2px 10px rgba(59,79,59,0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.timeline__item:hover .timeline__dot {
    background-color: var(--cat-green);
    transform: scale(1.1);
}

/* CARD TIMELINE */
.timeline__card {
    background-color: var(--cat-white);
    border-radius: var(--cat-radius);
    box-shadow: var(--cat-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--cat-border);
}

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

.timeline__card-image {
    position: relative;
    overflow: hidden;
    height: 160px;
    background-color: var(--cat-green-light);
}

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

.timeline__card-num {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--cat-green-dark);
    color: var(--cat-white);
    font-family: var(--font-system);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 4px;
}

.timeline__card-body {
    padding: 18px 20px 20px;
}

.timeline__card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-system);
    font-size: 11px;
    color: var(--cat-text-muted);
    margin-bottom: 10px;
    text-transform: capitalize;
}

.timeline__card-title {
    font-family: var(--font-system);
    font-size: 15px;
    font-weight: 700;
    color: var(--cat-text);
    margin: 0 0 10px;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.timeline__card-title a {
    color: var(--cat-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.timeline__card-title a:hover {
    color: var(--cat-green);
}

.timeline__card-title a:focus {
    outline: 2px solid var(--cat-green);
    outline-offset: 2px;
    border-radius: 2px;
}

.timeline__card-desc {
    font-family: var(--font-system);
    font-size: 13px;
    color: var(--cat-text-muted);
    line-height: 1.55;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* EMPTY STATE */
.timeline__empty {
    text-align: center;
    padding: 60px 24px;
    background-color: var(--cat-white);
    border-radius: var(--cat-radius);
    border: 2px dashed var(--cat-border);
}

.timeline__empty-icon {
    margin-bottom: 20px;
}

.timeline__empty-title {
    font-family: var(--font-system);
    font-size: 18px;
    font-weight: 700;
    color: var(--cat-text);
    margin: 0 0 10px;
}

.timeline__empty-text {
    font-family: var(--font-system);
    font-size: 14px;
    color: var(--cat-text-muted);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============================================
   TRENDS TABLE SECTION
   ============================================= */
.trends-section {
    background-color: var(--cat-white);
    padding: 60px 24px;
}

.trends-section__container {
    max-width: 900px;
    margin: 0 auto;
}

.trends-section__intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.trends-section__intro-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background-color: var(--cat-green-light);
    border-radius: var(--cat-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trends-section__title {
    font-family: var(--font-system);
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    color: var(--cat-text);
    margin: 0 0 10px;
}

.trends-section__desc {
    font-family: var(--font-system);
    font-size: 14px;
    color: var(--cat-text-muted);
    line-height: 1.6;
    margin: 0;
}

.trends-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--cat-radius);
    border: 1px solid var(--cat-border);
    margin-bottom: 16px;
}

.trends-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-system);
    font-size: 14px;
    background-color: var(--cat-white);
}

.trends-table__caption {
    text-align: left;
    font-size: 12px;
    color: var(--cat-text-muted);
    padding: 0 0 12px;
    font-family: var(--font-system);
}

.trends-table thead tr {
    background-color: var(--cat-green-dark);
    color: var(--cat-white);
}

.trends-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

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

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

.trends-table tbody tr:hover {
    background-color: var(--cat-green-light);
}

.trends-table tbody td {
    padding: 14px 18px;
    color: var(--cat-text);
    vertical-align: middle;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.trend-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.trend-badge--care {
    background-color: var(--cat-green-light);
    color: var(--cat-green-dark);
}

.trend-badge--tool {
    background-color: var(--cat-orange-light);
    color: #b45309;
}

.trend-badge--accessory {
    background-color: #e3f2fd;
    color: #1565c0;
}

.trend-entretien {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--cat-text);
}

.trend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.trend-dot--green { background-color: #4caf50; }
.trend-dot--orange { background-color: #ff9800; }
.trend-dot--red { background-color: #ef5350; }

.trend-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.trends-section__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-family: var(--font-system);
    font-size: 12px;
    color: var(--cat-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* =============================================
   HISTORY TIMELINE
   ============================================= */
.history-timeline {
    background-color: var(--cat-green-dark);
    padding: 70px 24px;
    color: var(--cat-white);
}

.history-timeline__container {
    max-width: 800px;
    margin: 0 auto;
}

.history-timeline__main-title {
    font-family: var(--font-system);
    font-size: clamp(20px, 3.5vw, 30px);
    font-weight: 800;
    color: var(--cat-white);
    text-align: center;
    margin: 0 0 14px;
}

.history-timeline__intro {
    font-family: var(--font-system);
    font-size: 15px;
    color: #a8c8a8;
    text-align: center;
    line-height: 1.65;
    margin: 0 auto 56px;
    max-width: 580px;
}

.history-timeline__track {
    position: relative;
    padding-left: 32px;
}

.history-timeline__track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background-color: #506550;
}

.history-timeline__event {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 44px;
    min-width: 0;
}

.history-timeline__event:last-child {
    margin-bottom: 0;
}

.history-timeline__event-year {
    flex-shrink: 0;
    width: 70px;
    text-align: right;
}

.history-timeline__event-year span {
    font-family: var(--font-system);
    font-size: 13px;
    font-weight: 800;
    color: var(--cat-green);
    letter-spacing: 0.04em;
    background-color: #2d3d2d;
    padding: 3px 8px;
    border-radius: 4px;
}

.history-timeline__event-line {
    position: absolute;
    left: -32px;
    top: 10px;
    width: 32px;
    height: 2px;
    background-color: #506550;
}

.history-timeline__event-line--last {
    background-color: var(--cat-green);
}

.history-timeline__event-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: #506550;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
    transition: background-color 0.2s ease;
}

.history-timeline__event:hover .history-timeline__event-icon {
    background-color: var(--cat-green);
}

.history-timeline__event-icon--current {
    background-color: var(--cat-orange);
}

.history-timeline__event:hover .history-timeline__event-icon--current {
    background-color: #e68900;
}

.history-timeline__event-content {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 4px;
}

.history-timeline__event-title {
    display: block;
    font-family: var(--font-system);
    font-size: 16px;
    font-weight: 700;
    color: var(--cat-white);
    margin-bottom: 8px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.history-timeline__event-text {
    font-family: var(--font-system);
    font-size: 13px;
    color: #9ab89a;
    line-height: 1.65;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =============================================
   THEMES SECTION
   ============================================= */
.themes-section {
    background-color: var(--cat-bg);
    padding: 70px 24px;
}

.themes-section__container {
    max-width: 1000px;
    margin: 0 auto;
}

.themes-section__title {
    font-family: var(--font-system);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: var(--cat-text);
    text-align: center;
    margin: 0 0 14px;
}

.themes-section__intro {
    font-family: var(--font-system);
    font-size: 15px;
    color: var(--cat-text-muted);
    text-align: center;
    line-height: 1.6;
    margin: 0 auto 44px;
    max-width: 560px;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.theme-card {
    background-color: var(--cat-white);
    border: 1px solid var(--cat-border);
    border-radius: var(--cat-radius);
    padding: 28px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.theme-card:hover {
    box-shadow: var(--cat-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--cat-green);
}

.theme-card__icon {
    width: 56px;
    height: 56px;
    background-color: var(--cat-green-light);
    border-radius: var(--cat-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: background-color 0.2s ease;
}

.theme-card:hover .theme-card__icon {
    background-color: var(--cat-green-dark);
}

.theme-card:hover .theme-card__icon svg {
    stroke: var(--cat-white);
}

.theme-card__title {
    display: block;
    font-family: var(--font-system);
    font-size: 15px;
    font-weight: 700;
    color: var(--cat-text);
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.theme-card__text {
    font-family: var(--font-system);
    font-size: 13px;
    color: var(--cat-text-muted);
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =============================================
   DISCLAIMER
   ============================================= */
.cat-disclaimer {
    background-color: var(--cat-orange-light);
    border-top: 3px solid var(--cat-orange);
    padding: 22px 24px;
}

.cat-disclaimer__inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #5a3e00;
    font-family: var(--font-system);
    font-size: 13px;
    line-height: 1.6;
}

.cat-disclaimer__icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--cat-orange);
}

.cat-disclaimer__inner p {
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =============================================
   RESPONSIVE - MOBILE FIRST
   ============================================= */
@media (max-width: 900px) {
    .cat-hero {
        flex-direction: column;
        padding: 50px 20px 40px;
        text-align: center;
        align-items: center;
    }

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

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

    .cat-hero__meta {
        justify-content: center;
    }

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

    .cat-hero__visual-badge--1,
    .cat-hero__visual-badge--2 {
        display: none;
    }

    /* TIMELINE FULL WIDTH ON TABLET */
    .timeline::before {
        left: 22px;
        transform: none;
    }

    .timeline__item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline__connector {
        left: -54px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .cat-hero {
        padding: 40px 16px 32px;
    }

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

    .timeline-section {
        padding: 40px 16px;
    }

    .timeline-section__container {
        max-width: 100%;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline__item {
        width: calc(100% - 52px);
        margin-left: 52px !important;
    }

    .timeline__connector {
        left: -46px !important;
        width: 36px;
        height: 36px;
    }

    .timeline__dot {
        width: 36px;
        height: 36px;
    }

    .timeline__card-image {
        height: 140px;
    }

    .trends-section {
        padding: 40px 16px;
    }

    .trends-section__intro {
        flex-direction: column;
        gap: 14px;
    }

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

    .trends-table tbody td {
        padding: 12px 12px;
        font-size: 13px;
    }

    .history-timeline {
        padding: 50px 16px;
    }

    .history-timeline__track {
        padding-left: 20px;
    }

    .history-timeline__event {
        flex-direction: column;
        gap: 10px;
    }

    .history-timeline__event-year {
        width: auto;
        text-align: left;
    }

    .history-timeline__event-line {
        display: none;
    }

    .themes-section {
        padding: 50px 16px;
    }

    .themes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .timeline-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cat-hero__title {
        font-size: 22px;
    }

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

    .timeline__item {
        width: calc(100% - 44px);
        margin-left: 44px !important;
    }

    .timeline::before {
        left: 14px;
    }

    .timeline__connector {
        left: -40px !important;
        width: 30px;
        height: 30px;
    }

    .timeline__dot {
        width: 30px;
        height: 30px;
    }

    .timeline__card-body {
        padding: 14px 16px 16px;
    }

    .timeline__card-title {
        font-size: 14px;
    }

    .trends-table tbody td,
    .trends-table thead th {
        display: block;
        padding: 6px 12px;
    }

    .trends-table tbody td::before {
        content: attr(data-label) ' : ';
        font-weight: 700;
        color: var(--cat-text-muted);
        font-size: 11px;
        display: block;
        margin-bottom: 2px;
    }

    .trends-table thead tr {
        display: none;
    }

    .trends-table tbody tr {
        display: block;
        border: 1px solid var(--cat-border);
        border-radius: var(--cat-radius-sm);
        margin-bottom: 12px;
        padding: 10px 0;
    }

    .history-timeline__event-content {
        padding-top: 0;
    }

    .history-timeline__event-title {
        font-size: 14px;
    }

    .themes-section__title {
        font-size: 20px;
    }

    .theme-card {
        padding: 20px 18px;
    }
}