:root {
    --green: #026168;
    --green-dark: #014c51;
    --orange: #ffb80c;
    --dark: #1b2326;
    --text: #252b2d;
    --muted: #697477;
    --light: #f4f6f6;
    --border: #e2e7e7;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER */

.ts-topbar {
    background: var(--dark);
    color: white;
    font-size: 13px;
}

.ts-topbar-inner {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ts-topbar-links {
    display: flex;
    gap: 24px;
}

.ts-topbar-links a {
    font-weight: 700;
}

.ts-topbar-links > a:last-child {
    color: var(--orange);
}

.ts-main-header {
    background: white;
}

.ts-header-row {
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 38px;
    align-items: center;
    min-height: 105px;
}

.ts-logo {
    display: block;
    width: 265px;
    height: auto;
}

.ts-search form {
    display: flex;
    width: 100%;
}

.ts-search label {
    flex: 1;
}

.ts-search input[type="search"] {
    width: 100%;
    height: 46px;
    border: 1px solid #d6dddd;
    border-radius: 4px 0 0 4px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.ts-search input[type="search"]:focus {
    border-color: var(--green);
}

.ts-search input[type="submit"] {
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: var(--green);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.ts-shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    background: var(--orange);
    color: #161616;
    border-radius: 4px;
    font-weight: 900;
    white-space: nowrap;
}

.ts-navigation {
    background: var(--green);
    color: white;
}

.ts-nav-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    font-size: 14px;
    font-weight: 800;
}

.ts-nav-inner a {
    position: relative;
}

.ts-nav-inner a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -5px;
    height: 2px;
    background: var(--orange);
    transition: right .2s ease;
}

.ts-nav-inner a:hover::after {
    right: 0;
}

/* HERO */

.ts-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(255,184,12,.18), transparent 32%),
        linear-gradient(135deg, var(--green-dark), var(--green));
    color: white;
    padding: 90px 0;
}

.ts-hero-grid {
    display: grid;
    grid-template-columns: 1.6fr .8fr;
    gap: 70px;
    align-items: center;
}

.ts-kicker {
    display: block;
    margin-bottom: 15px;
    color: var(--orange);
    font-weight: 900;
    letter-spacing: .14em;
    font-size: 12px;
}

.ts-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(42px, 5.7vw, 70px);
    line-height: 1.03;
    letter-spacing: -.025em;
}

.ts-hero-content > p {
    max-width: 700px;
    margin: 27px 0 32px;
    font-size: 19px;
    color: rgba(255,255,255,.91);
}

.ts-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 0 22px;
    border-radius: 4px;
    font-weight: 900;
}

.ts-btn-orange {
    background: var(--orange);
    color: #171717;
}

.ts-btn-outline {
    border: 2px solid rgba(255,255,255,.6);
    color: white;
}

.ts-hero-card {
    padding: 34px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
}

.ts-card-label {
    color: var(--orange);
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 900;
}

.ts-hero-card h2 {
    margin: 8px 0 12px;
    font-size: 30px;
}

.ts-hero-card p {
    color: rgba(255,255,255,.86);
}

.ts-hero-card a {
    display: inline-block;
    margin-top: 8px;
    color: var(--orange);
    font-weight: 900;
}

/* CATEGORIES */

.ts-categories {
    padding: 75px 0;
    background: var(--light);
}

.ts-section-title span,
.ts-kicker-dark {
    color: var(--green);
    font-size: 12px;
    letter-spacing: .13em;
    font-weight: 900;
}

.ts-section-title h2 {
    margin: 5px 0 32px;
    font-size: 38px;
    line-height: 1.15;
}

.ts-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ts-category-card {
    min-height: 190px;
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ts-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.07);
}

.ts-category-icon {
    display: inline-flex;
    min-width: 54px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0 10px;
    background: var(--orange);
    color: #171717;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
}

.ts-category-card strong,
.ts-category-card span {
    display: block;
}

.ts-category-card strong {
    color: var(--green);
    font-size: 20px;
    line-height: 1.2;
}

.ts-category-card span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

/* FEATURED */

.ts-featured {
    padding: 80px 0;
    background: white;
}

.ts-featured-grid {
    display: grid;
    grid-template-columns: 1.5fr .6fr;
    gap: 70px;
    align-items: center;
}

.ts-featured h2 {
    max-width: 760px;
    margin: 8px 0 20px;
    font-size: 42px;
    line-height: 1.12;
}

.ts-featured-content p {
    max-width: 750px;
    color: var(--muted);
    font-size: 17px;
}

.ts-text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--green);
    font-weight: 900;
}

.ts-featured-store {
    padding: 34px;
    background: var(--dark);
    color: white;
    border-radius: 7px;
    border-top: 5px solid var(--orange);
}

.ts-featured-store strong {
    color: var(--orange);
    font-size: 22px;
}

.ts-featured-store a {
    color: var(--orange);
    font-weight: 900;
}

/* ARTICLES */

.ts-latest {
    padding: 75px 0 90px;
    background: var(--light);
}

.ts-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ts-post-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
}

.ts-post-image img {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
}

.ts-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 235px;
    background:
        linear-gradient(135deg, var(--green-dark), var(--green));
    color: rgba(255,255,255,.15);
    font-size: 36px;
    font-weight: 900;
}

.ts-post-content {
    padding: 25px;
}

.ts-post-meta {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ts-post-card h3 {
    margin: 8px 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.ts-post-card p {
    color: var(--muted);
    font-size: 14px;
}

.ts-read-more {
    display: inline-block;
    margin-top: 5px;
    color: var(--green);
    font-weight: 900;
}

.ts-empty {
    grid-column: 1 / -1;
    padding: 60px;
    text-align: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.ts-empty span {
    color: var(--orange);
    font-weight: 900;
    letter-spacing: .12em;
    font-size: 12px;
}

/* FOOTER */

.site-footer {
    padding-top: 55px;
    background: var(--dark);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    padding-bottom: 45px;
}

.footer-grid strong {
    color: var(--orange);
}

.footer-grid p,
.footer-grid a {
    color: rgba(255,255,255,.78);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .ts-header-row {
        grid-template-columns: 220px 1fr;
    }

    .ts-shop-button {
        display: none;
    }

    .ts-nav-inner {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }

    .ts-hero-grid,
    .ts-featured-grid {
        grid-template-columns: 1fr;
    }

    .ts-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ts-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .container {
        width: min(100% - 28px, 1200px);
    }

    .ts-topbar-inner {
        display: block;
        padding: 8px 0;
    }

    .ts-topbar-links {
        margin-top: 4px;
        gap: 15px;
    }

    .ts-header-row {
        display: block;
        padding: 18px 0;
    }

    .ts-logo {
        width: 220px;
        margin-bottom: 16px;
    }

    .ts-navigation {
        overflow: hidden;
    }

    .ts-nav-inner {
        gap: 22px;
    }

    .ts-hero {
        padding: 60px 0;
    }

    .ts-category-grid,
    .ts-posts-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ts-featured h2,
    .ts-section-title h2 {
        font-size: 32px;
    }
}

/* =========================
   ARTICLE
   ========================= */

.ts-single-header {
    padding: 55px 0 45px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.ts-article-width {
    max-width: 900px;
}

.ts-breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 13px;
}

.ts-breadcrumb a {
    color: var(--green);
    font-weight: 700;
}

.ts-article-category {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ts-single-header h1 {
    margin: 10px 0 18px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.ts-article-intro {
    margin: 0;
    color: #556064;
    font-size: 20px;
    line-height: 1.55;
}

.ts-article-info {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.ts-article-image-wrap {
    max-width: 1100px;
    padding-top: 45px;
}

.ts-article-main-image {
    display: block;
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    border-radius: 8px;
}

.ts-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 760px) 280px;
    justify-content: center;
    gap: 70px;
    padding-top: 60px;
    padding-bottom: 80px;
}

.ts-article-content {
    font-size: 17px;
    line-height: 1.8;
}

.ts-article-content > p {
    margin: 0 0 24px;
}

.ts-article-content h2 {
    margin: 50px 0 17px;
    color: var(--dark);
    font-size: 31px;
    line-height: 1.2;
}

.ts-article-content h3 {
    margin-top: 35px;
    font-size: 23px;
}

.ts-article-content a:not(.ts-btn) {
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(2,97,104,.3);
    text-underline-offset: 3px;
}

.ts-article-content strong {
    color: var(--dark);
}

.ts-expert-box {
    margin-top: 60px;
    padding: 35px;
    background: var(--green);
    color: white;
    border-radius: 8px;
    border-left: 6px solid var(--orange);
}

.ts-expert-label {
    color: var(--orange);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
}

.ts-expert-box h2 {
    margin: 8px 0 15px;
    color: white;
    font-size: 28px;
}

.ts-expert-box p {
    color: rgba(255,255,255,.9);
}

.ts-article-sidebar {
    align-self: start;
    position: sticky;
    top: 25px;
}

.ts-sidebar-box {
    margin-bottom: 20px;
    padding: 25px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 7px;
}

.ts-sidebar-box > span {
    display: block;
    margin-bottom: 7px;
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}

.ts-sidebar-box strong {
    display: block;
    font-size: 18px;
}

.ts-sidebar-box p {
    color: var(--muted);
    font-size: 14px;
}

.ts-sidebar-box a {
    color: var(--green);
    font-size: 14px;
    font-weight: 900;
}

.ts-related {
    padding: 70px 0 90px;
    background: var(--light);
}

.ts-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ts-related-card {
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.ts-related-category {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ts-related-card h3 {
    margin: 8px 0 12px;
    font-size: 21px;
    line-height: 1.3;
}

.ts-related-card p {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {

    .ts-single-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ts-article-sidebar {
        position: static;
    }

    .ts-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .ts-single-header {
        padding: 40px 0 35px;
    }

    .ts-single-grid {
        padding-top: 40px;
    }

    .ts-article-content {
        font-size: 16px;
    }

    .ts-article-content h2 {
        font-size: 27px;
    }
}

/* Sélecteur de langue */
.ts-language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ts-language-switcher a {
    min-width: 28px;
    text-align: center;
    padding: 2px 6px;
    border-radius: 3px;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    font-weight: 900;
}

.ts-language-switcher a:hover,
.ts-language-switcher a.active {
    background: var(--orange);
    color: #171717;
}


/* =========================
   SOURCES SCIENTIFIQUES
   ========================= */

.ts-article-content h2:last-of-type {
    margin-top: 60px;
}

.ts-scientific-sources {
    margin-top: 55px;
    padding: 28px 30px;
    background: #f6f8f8;
    border: 1px solid var(--border);
    border-left: 5px solid var(--green);
    border-radius: 8px;
}

.ts-scientific-sources h2 {
    margin: 0 0 16px;
    font-size: 23px;
    color: var(--dark);
}

.ts-scientific-sources ul {
    margin: 0;
    padding-left: 20px;
}

.ts-scientific-sources li {
    margin-bottom: 12px;
    color: #50595c;
    font-size: 14px;
    line-height: 1.6;
}

.ts-scientific-sources li:last-child {
    margin-bottom: 0;
}

.ts-scientific-sources p {
    margin: 0;
    color: #50595c;
    font-size: 14px;
    line-height: 1.6;
}

.ts-scientific-sources em {
    color: var(--dark);
}

@media (max-width: 650px) {
    .ts-scientific-sources {
        padding: 22px;
    }
}
