/* TeraFinances - La Terre de la finance
   Design moderne & professionnel, identité secteur finance */

:root {
    /* Palette finance : confiance, stabilité, premium */
    --tf-navy: #0f172a;
    --tf-navy-light: #1e293b;
    --tf-navy-muted: #334155;
    --tf-slate: #475569;
    --tf-slate-light: #64748b;
    --tf-gold: #b8860b;
    --tf-gold-light: #c9a227;
    --tf-gold-muted: #d4af37;
    --tf-accent: #0ea5e9;
    --tf-bg: #f8fafc;
    --tf-bg-card: #ffffff;
    --tf-border: #e2e8f0;
    --tf-border-strong: #cbd5e1;
    --tf-text: #0f172a;
    --tf-text-muted: #475569;
    --tf-text-soft: #64748b;
    --tf-success: #059669;
    --tf-error: #dc2626;
    --tf-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --tf-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --tf-shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.1);
    --tf-radius: 6px;
    --tf-radius-sm: 4px;
    --tf-font-sans: "Aptos", "Segoe UI", Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
    --tf-font-serif: "Aptos", "Segoe UI", Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--tf-font-sans);
    font-weight: 400;
    color: var(--tf-text);
    background-color: var(--tf-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

a:hover {
    text-decoration: underline;
}

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

h1, h2, h3, h4, h5 {
    font-family: var(--tf-font-serif);
    font-weight: 700;
    margin: 0;
    color: var(--tf-navy);
    line-height: 1.3;
}

p {
    margin: 0 0 0.75rem;
    line-height: 1.65;
    color: var(--tf-text-muted);
}

.tf-main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

/* Header / Topbar – identité finance */
.tf-header {
    background: var(--tf-bg-card);
    border-bottom: 1px solid var(--tf-border);
    box-shadow: 0 1px 0 0 var(--tf-border);
}

.tf-masthead {
    border-bottom: 1px solid var(--tf-border);
    background: var(--tf-bg-card);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 1160px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.tf-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    grid-column: 2;
    justify-self: center;
}

.tf-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.tf-logo-image {
    width: 54px;
    height: auto;
}

.tf-logo-text {
    display: flex;
    flex-direction: column;
}

.tf-user-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    gap: 0.6rem;
}

.tf-user-dropdown {
    position: relative;
}

.tf-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tf-navy-muted);
    background: none;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tf-user-trigger:hover {
    border-color: var(--tf-gold);
    color: var(--tf-gold);
    background: rgba(184, 134, 11, 0.06);
}

.tf-user-trigger[aria-expanded="true"] {
    border-color: var(--tf-gold);
    color: var(--tf-gold);
    background: rgba(184, 134, 11, 0.08);
}

.tf-user-icon {
    display: inline-flex;
    line-height: 0;
}

.tf-user-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.tf-user-label {
    white-space: nowrap;
}

.tf-bank-select {
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tf-text-muted);
    background-color: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--tf-slate) 50%), linear-gradient(135deg, var(--tf-slate) 50%, transparent 50%);
    background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.tf-bank-select:focus {
    border-color: var(--tf-gold);
    box-shadow: 0 0 0 3px rgba(183, 146, 74, 0.16);
    outline: none;
}

.tf-bank-select option[disabled] {
    color: var(--tf-text-soft);
}

.tf-value-selector {
    position: relative;
}

.tf-value-submenu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 14rem;
    padding: 0.45rem 0;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 320;
}

.tf-value-submenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tf-value-submenu-title {
    margin: 0;
    padding: 0.35rem 0.85rem 0.45rem;
    font-size: 0.78rem;
    color: var(--tf-text-soft);
    border-bottom: 1px solid var(--tf-border);
}

.tf-value-submenu a {
    display: block;
    padding: 0.45rem 0.85rem;
    color: var(--tf-navy-muted);
    font-size: 0.875rem;
}

.tf-value-submenu a:hover {
    color: var(--tf-gold);
    background: var(--tf-bg);
    text-decoration: none;
}

.tf-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.35rem;
    min-width: 11rem;
    padding: 0.4rem 0;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 300;
}

.tf-user-dropdown.tf-user-open .tf-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tf-user-menu a,
.tf-user-menu-name {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--tf-navy-muted);
    transition: background 0.15s, color 0.15s;
}

.tf-user-menu a:hover {
    background: var(--tf-bg);
    color: var(--tf-gold);
    text-decoration: none;
}

.tf-user-menu-name {
    font-weight: 600;
    color: var(--tf-navy);
    border-bottom: 1px solid var(--tf-border);
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
}

.tf-logo-main {
    font-family: var(--tf-font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--tf-navy);
}

.tf-logo-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tf-text-soft);
    margin-top: 0.2rem;
    letter-spacing: 0.06em;
}

/* Navigation – barre bleu marine, accent or */
.tf-nav {
    background: var(--tf-navy);
    position: relative;
}

.tf-nav-mobile-actions {
    display: none;
}

.tf-user-dropdown-mobile {
    display: none;
}

.tf-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tf-gold) 0%, var(--tf-gold-light) 50%, var(--tf-gold) 100%);
    opacity: 0.95;
}

.tf-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    margin-left: auto;
    border-radius: var(--tf-radius-sm);
    transition: background 0.2s;
}

.tf-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tf-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    margin: 5px 0;
    border-radius: 1px;
    transition: opacity 0.2s, transform 0.2s;
}

.tf-nav-list {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
    list-style: none;
    display: flex;
    gap: 0;
    align-items: stretch;
    justify-content: center;
}

.tf-nav-list > li {
    display: flex;
    align-items: stretch;
}

.tf-nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tf-nav-list > li > a:hover {
    color: var(--tf-gold-light);
    border-bottom-color: var(--tf-gold);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.tf-nav-list > li:not(.tf-nav-has-sub):first-child > a {
    padding-left: 1.2rem;
}

.tf-nav-has-sub {
    position: relative;
}

.tf-nav-has-sub > a::after {
    content: "";
    display: inline-block;
    width: 0.35em;
    height: 0.35em;
    margin-left: 0.4em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    vertical-align: 0.12em;
    transition: transform 0.2s;
}

.tf-nav-has-sub:hover > a::after,
.tf-nav-has-sub.tf-sub-open > a::after {
    transform: rotate(-135deg);
    vertical-align: -0.05em;
}

.tf-nav-sub-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: var(--tf-radius-sm);
    transition: background 0.2s;
}

.tf-nav-sub-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tf-nav-sub-toggle span {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    margin-top: -0.15rem;
    transition: transform 0.25s ease;
}

.tf-nav-has-sub.tf-sub-open .tf-nav-sub-toggle span {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.tf-nav-sub {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-top: 3px solid var(--tf-gold);
    border-radius: 0 0 var(--tf-radius) var(--tf-radius);
    box-shadow: var(--tf-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
    z-index: 200;
}

.tf-nav-has-sub:hover .tf-nav-sub,
.tf-nav-has-sub:focus-within .tf-nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tf-nav-sub li {
    border-bottom: 1px solid var(--tf-border);
}

.tf-nav-sub li:last-child {
    border-bottom: none;
}

.tf-nav-sub a {
    display: block;
    padding: 0.6rem 1rem 0.6rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--tf-navy-muted);
    transition: background 0.15s, color 0.15s;
}

.tf-nav-sub a:hover {
    background: #f8fafc;
    color: var(--tf-gold);
    padding-left: 1.35rem;
    text-decoration: none;
}

/* Hero d’accueil */
.tf-hero {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tf-hero-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    min-width: 0;
}

.tf-hero-article {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1.75rem;
    box-shadow: var(--tf-shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.tf-hero-article-secondary {
    margin-top: 0;
}

.tf-hero-title-secondary {
    font-size: 1.3rem;
}

.tf-hero-article:hover {
    box-shadow: var(--tf-shadow-md);
    border-color: var(--tf-border-strong);
}

.tf-hero-link {
    display: block;
    min-width: 0;
    color: inherit;
}

.tf-hero-link:hover {
    text-decoration: none;
}

.tf-hero-image {
    margin-bottom: 1rem;
    border-radius: var(--tf-radius);
    overflow: hidden;
    height: 220px;
    background: linear-gradient(160deg, rgba(15, 31, 59, 0.07), rgba(15, 31, 59, 0.03));
}

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

.tf-hero-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tf-gold);
    margin-bottom: 0.5rem;
}

.tf-hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--tf-navy);
}

.tf-hero-excerpt {
    font-size: 0.95rem;
    color: var(--tf-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.tf-hero-meta {
    font-size: 0.8rem;
    color: var(--tf-text-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.65rem;
    line-height: 1.45;
    max-width: 100%;
}

.tf-hero-views {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.tf-hero-views::before {
    content: '\00a0|\00a0';
}

.tf-hero-views .tf-icon-eye {
    flex-shrink: 0;
}

.tf-hero-sidebar {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--tf-shadow);
}

/* Espace publicité hero (accueil) – format 9:16 */
.tf-hero-ad {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 200px;
}

.tf-hero-ad.tf-ad-zone {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    display: block;
    position: sticky;
    top: 1.5rem;
}

.tf-hero-ad .tf-ad-item.is-active {
    position: absolute;
    inset: 0;
}

.tf-hero-ad-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.tf-hero-ad-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    vertical-align: middle;
}

.tf-hero-ad .tf-ad-link,
.tf-hero-ad .tf-ad-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-hero-ad .tf-ad-video-wrap {
    width: 100%;
    height: 100%;
}

.tf-hero-ad .tf-ad-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-hero-ad-placeholder {
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--tf-text-soft);
    background: rgba(98, 116, 141, 0.08);
}

.tf-hero-ad-placeholder code {
    font-size: 0.8rem;
    color: var(--tf-text-muted);
}

/* Sidebar = espace publicitaire (pages Bourse, OPCVM, etc.) – format 9:16 */
.tf-page-sidebar-ad {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.tf-page-sidebar-ad.tf-ad-zone {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    display: block;
}

.tf-page-sidebar-ad .tf-ad-item.is-active {
    position: absolute;
    inset: 0;
}

.tf-page-sidebar-ad .tf-hero-ad-link,
.tf-page-sidebar-ad .tf-hero-ad-img {
    width: 100%;
}

.tf-page-sidebar-ad.tf-ad-zone .tf-ad-link,
.tf-page-sidebar-ad.tf-ad-zone .tf-ad-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-page-sidebar-ad .tf-ad-video-wrap {
    width: 100%;
    height: 100%;
}

.tf-page-sidebar-ad .tf-ad-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Page article – colonne de droite, format 9:16 */
.tf-article-sidebar-ad.tf-ad-zone {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    display: block;
}

.tf-article-sidebar-ad .tf-ad-item.is-active {
    position: absolute;
    inset: 0;
}

.tf-article-sidebar-ad .tf-ad-link,
.tf-article-sidebar-ad .tf-ad-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-article-sidebar-ad .tf-ad-video-wrap {
    width: 100%;
    height: 100%;
}

.tf-article-sidebar-ad .tf-ad-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-page-sidebar-ad .tf-hero-ad-placeholder {
    width: 100%;
    border: none;
    box-shadow: none;
}

/* Bandeau publicitaire au-dessus des communiqués (accueil) – format horizontal type 970×250 */
.tf-home-communiques-ad,
.tf-home-communiques-ad .tf-container,
.tf-home-communiques-ad-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.tf-home-communiques-ad-inner.tf-ad-zone {
    width: 100%;
    aspect-ratio: 970 / 250;
    overflow: hidden;
    display: block;
}

.tf-home-communiques-ad-inner .tf-ad-item.is-active {
    position: absolute;
    inset: 0;
}

.tf-home-communiques-ad-inner .tf-ad-link,
.tf-home-communiques-ad-inner .tf-ad-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-home-communiques-ad-inner .tf-ad-video-wrap {
    width: 100%;
    height: 100%;
}

.tf-home-communiques-ad-inner .tf-ad-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-home-communiques-ad-placeholder {
    background: rgba(98, 116, 141, 0.08);
    border: none;
    box-shadow: none;
}

/* Zones publicitaires dynamiques (rotation + transition) */
.tf-ad-zone {
    position: relative;
    overflow: hidden;
    min-height: 120px;
}
.tf-ad-zone-empty .tf-hero-ad-placeholder {
    min-height: 160px;
}
.tf-ad-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.tf-ad-item.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}
.tf-ad-zone .tf-ad-link,
.tf-ad-zone .tf-ad-img {
    display: block;
    width: 100%;
}
.tf-ad-zone .tf-ad-img {
    height: auto;
    max-height: 380px;
    object-fit: cover;
    vertical-align: middle;
}
.tf-ad-video-wrap {
    width: 100%;
    line-height: 0;
}
.tf-ad-video {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

/* Bandeaux horizontaux : garder l'image entière (pas de découpe) */
.tf-home-communiques-ad-inner.tf-ad-zone .tf-ad-link,
.tf-home-communiques-ad-inner.tf-ad-zone .tf-ad-img,
.tf-home-communiques-ad-inner.tf-ad-zone .tf-ad-video-wrap,
.tf-home-communiques-ad-inner.tf-ad-zone .tf-ad-video,
.tf-listing-inline-ad-inner.tf-ad-zone .tf-ad-link,
.tf-listing-inline-ad-inner.tf-ad-zone .tf-ad-img,
.tf-listing-inline-ad-inner.tf-ad-zone .tf-ad-video-wrap,
.tf-listing-inline-ad-inner.tf-ad-zone .tf-ad-video {
    width: 100%;
    height: 100%;
}

.tf-home-communiques-ad-inner.tf-ad-zone .tf-ad-img,
.tf-home-communiques-ad-inner.tf-ad-zone .tf-ad-video,
.tf-listing-inline-ad-inner.tf-ad-zone .tf-ad-img,
.tf-listing-inline-ad-inner.tf-ad-zone .tf-ad-video {
    max-height: none;
    object-fit: contain;
    object-position: center;
}

/* Garder l'image pub article entière (pas de rognage) */
.tf-article-sidebar-ad.tf-ad-zone .tf-ad-link,
.tf-article-sidebar-ad.tf-ad-zone .tf-ad-img,
.tf-article-sidebar-ad.tf-ad-zone .tf-ad-video-wrap,
.tf-article-sidebar-ad.tf-ad-zone .tf-ad-video {
    width: 100%;
    height: 100%;
}

.tf-article-sidebar-ad.tf-ad-zone .tf-ad-img,
.tf-article-sidebar-ad.tf-ad-zone .tf-ad-video {
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.tf-block-title {
    font-family: var(--tf-font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    border-left: 3px solid var(--tf-gold);
    padding-left: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tf-navy-muted);
}

.tf-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.tf-list-item h3 {
    font-family: var(--tf-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: var(--tf-navy);
}

.tf-list-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tf-gold);
    margin-right: 0.35rem;
}

.tf-list-date {
    font-size: 0.75rem;
    color: var(--tf-text-soft);
}

/* Grille de rubriques */
.tf-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.tf-home-bottom {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    margin-top: 3.5rem;
    align-items: start;
}

.tf-home-chrono {
    min-width: 0;
}

.tf-home-chrono .tf-section-header {
    margin-bottom: 1rem;
}

.tf-home-chrono .tf-section-more-wrap,
.tf-home-technique .tf-section-more-wrap {
    margin-top: 1.25rem;
    padding-top: 0.25rem;
}

/* Les plus populaires */
.tf-home-popular {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    overflow: hidden;
    box-shadow: var(--tf-shadow);
    position: sticky;
    top: 1rem;
}

.tf-popular-header {
    background: var(--tf-navy);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    padding: 0.85rem 1rem;
}

.tf-popular-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    align-items: stretch;
    padding: 0.55rem 0.65rem;
    background: var(--tf-bg);
    border-bottom: 1px solid var(--tf-border);
}

.tf-popular-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.35rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: var(--tf-text-muted);
    text-decoration: none;
    border-radius: var(--tf-radius-sm);
    transition: background 0.2s, color 0.2s;
}

.tf-popular-tab:hover {
    background: var(--tf-border);
    color: var(--tf-text);
}

.tf-popular-tab.is-active {
    background: var(--tf-navy-muted);
    color: #fff;
}

.tf-popular-list {
    padding: 0.5rem 0;
}

.tf-popular-list.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.tf-popular-empty {
    padding: 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--tf-text-soft);
}

.tf-popular-item {
    display: grid;
    grid-template-columns: 1fr 32px;
    gap: 0 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--tf-border);
    align-items: start;
}

.tf-popular-item:last-child {
    border-bottom: none;
}

.tf-popular-item-has-image {
    grid-template-columns: 70px 1fr 32px;
}

.tf-popular-item-image {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 70px;
    height: 70px;
    border-radius: var(--tf-radius-sm);
    overflow: hidden;
}

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

.tf-popular-item-body {
    grid-column: 1;
    grid-row: 1 / -1;
    min-width: 0;
}

.tf-popular-item-has-image .tf-popular-item-body {
    grid-column: 2;
}

.tf-popular-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
}

.tf-popular-item-title a {
    color: var(--tf-navy);
    text-decoration: none;
}

.tf-popular-item-title a:hover {
    color: var(--tf-gold);
}

.tf-popular-item-meta {
    font-size: 0.72rem;
    color: var(--tf-text-soft);
    margin: 0 0 0.2rem 0;
}

.tf-popular-item-views {
    font-size: 0.75rem;
    color: var(--tf-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tf-popular-item-views .tf-icon-eye {
    flex-shrink: 0;
    color: var(--tf-text-soft);
}

.tf-popular-item-arrow {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--tf-radius-sm);
    background: var(--tf-border);
    color: var(--tf-text-muted);
    transition: background 0.2s, color 0.2s;
}

.tf-popular-item-has-image .tf-popular-item-arrow {
    grid-column: 3;
}

.tf-popular-item-arrow:hover {
    background: var(--tf-gold);
    color: #fff;
}

.tf-article-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tf-empty-list {
    margin: 0;
    padding: 1rem 0;
    color: var(--tf-text-soft);
    font-size: 0.95rem;
}

.tf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
    border-bottom: 2px solid var(--tf-border);
    padding-bottom: 0.4rem;
}

.tf-section-header h2 {
    font-size: 1.15rem;
    color: var(--tf-navy);
}

.tf-section-link {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tf-gold);
    transition: color 0.2s;
}

.tf-section-link:hover {
    color: var(--tf-navy-muted);
    text-decoration: none;
}

.tf-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tf-card-article {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--tf-shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.tf-card-article:hover {
    box-shadow: var(--tf-shadow-md);
    border-color: var(--tf-border-strong);
}

.tf-card-article-image {
    margin-bottom: 0.6rem;
    border-radius: var(--tf-radius-sm);
    overflow: hidden;
    height: 140px;
}

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

.tf-card-article a:hover {
    text-decoration: none;
}

.tf-card-article h3 {
    font-family: var(--tf-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--tf-navy);
}

.tf-card-article p {
    font-size: 0.875rem;
    color: var(--tf-text-muted);
}

.tf-card-date {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    color: var(--tf-text-soft);
}

/* Pages rubriques */
.tf-page-header {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--tf-border);
}

.tf-page-header h1 {
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
    color: var(--tf-navy);
}

.tf-page-header p {
    color: var(--tf-text-muted);
}

.tf-value-nav-submenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.4rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.tf-value-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 1.05rem;
    border: 1px solid var(--tf-border);
    border-radius: 999px;
    color: var(--tf-navy-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tf-value-nav-link:hover {
    text-decoration: none;
    color: var(--tf-gold);
    border-color: var(--tf-gold);
    background: rgba(183, 146, 74, 0.08);
}

.tf-value-nav-link.is-active {
    color: #fff;
    background: var(--tf-navy);
    border-color: var(--tf-navy);
}

.tf-page-header-center {
    text-align: center;
}

.tf-page-layout {
    margin-top: 1.25rem;
}

.tf-page-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.tf-page-main > .tf-empty {
    grid-column: 1 / -1;
}

.tf-page-inline-ad {
    grid-column: 1 / -1;
    margin: 0.35rem 0 0.75rem;
}

.tf-page-inline-ad .tf-listing-inline-ad-inner.tf-ad-zone {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 1000 / 300;
    margin-left: auto;
    margin-right: auto;
}

.tf-page-more-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem;
}

.tf-page-more-wrap a {
    margin-left: auto;
    margin-right: auto;
}

/* Bouton "Voir plus" dans une grille (.tf-page-main) */
.tf-page-main > .tf-page-more-wrap,
.tf-page-main .tf-page-more-wrap {
    grid-column: 1 / -1;
}

.tf-archive-filter {
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(170px, 1.1fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
    align-items: end;
    gap: 0.9rem;
    margin: 0 auto 1.15rem;
    max-width: 1000px;
    padding: 1.05rem 1.2rem;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: 12px;
    box-shadow: var(--tf-shadow);
}

.tf-archive-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tf-archive-filter-group-inline {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
}

.tf-archive-filter-group-inline label {
    margin: 0;
    min-width: 1.6rem;
}

.tf-archive-filter-group-inline input {
    flex: 1;
}

.tf-archive-filter-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tf-text-muted);
}

.tf-archive-filter-group input,
.tf-archive-filter-group select {
    width: 100%;
    min-height: 42px;
    padding: 0.5rem 0.72rem;
    border: 1px solid var(--tf-border-strong);
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
    color: var(--tf-text);
}

.tf-archive-filter-group input:focus,
.tf-archive-filter-group select:focus {
    outline: none;
    border-color: var(--tf-gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12);
}

.tf-archive-filter-group input[name="date_from"],
.tf-archive-filter-group input[name="date_to"],
.tf-archive-filter-group .tf-date-input {
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 15px 15px;
}

.tf-archive-filter-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-self: start;
}

.tf-archive-filter-actions .tf-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0.56rem 1rem;
}

.tf-archive-filter-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.9rem;
}

.tf-archive-filter-center .tf-archive-filter-group {
    min-width: 230px;
    max-width: 320px;
}

.tf-archive-filter-center .tf-archive-filter-actions {
    justify-self: auto;
}

.tf-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow);
}

.tf-archive-item + .tf-archive-item {
    border-top: 1px solid var(--tf-border);
}

.tf-archive-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
}

.tf-archive-link:hover .tf-archive-title {
    color: var(--tf-gold);
}

.tf-archive-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tf-navy);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-archive-date {
    font-size: 1rem;
    font-style: italic;
    font-weight: 700;
    color: #b4233a;
    white-space: nowrap;
    min-width: 9.5rem;
}

.tf-archive-category-inline {
    font-size: 0.78rem;
    color: var(--tf-text-soft);
    font-weight: 500;
}

.tf-article-row {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1rem 1.2rem;
    box-shadow: var(--tf-shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.tf-article-row:hover {
    box-shadow: var(--tf-shadow-md);
    border-color: var(--tf-border-strong);
}

.tf-article-row a {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tf-article-row-image {
    flex: 0 0 170px;
    max-width: 170px;
    border-radius: var(--tf-radius-sm);
    overflow: hidden;
}

.tf-article-row-image img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.tf-article-row a:hover {
    text-decoration: none;
}

.tf-article-row h2 {
    font-family: var(--tf-font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--tf-navy);
}

.tf-article-row p {
    font-size: 0.875rem;
    color: var(--tf-text-muted);
}

.tf-article-row-meta {
    font-size: 0.78rem;
    color: var(--tf-text-soft);
    margin-bottom: 0.25rem;
}

.tf-article-row-date {
    font-style: normal;
}

.tf-empty {
    background: var(--tf-bg-card);
    border: 1px dashed var(--tf-border-strong);
    border-radius: var(--tf-radius);
    padding: 1.5rem;
    text-align: center;
    color: var(--tf-text-soft);
}

/* Page Qui sommes-nous – carte image, chiffres & valeurs */
.tf-about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 1.75rem;
    align-items: center;
}

.tf-about-hero-main {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tf-article-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.7rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: rgba(183, 146, 74, 0.06);
    border: 1px solid rgba(183, 146, 74, 0.22);
}

.tf-article-logo img {
    width: 46px;
    height: auto;
    margin-right: 0.7rem;
    border-radius: 10px;
}

.tf-article-logo-text {
    display: flex;
    flex-direction: column;
}

.tf-article-logo-text-main {
    font-family: var(--tf-font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--tf-navy);
}

.tf-article-logo-text-sub {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-text-soft);
}

.tf-about-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--tf-gold);
    margin-bottom: 0.25rem;
}

.tf-about-highlight {
    font-size: 1.02rem;
    color: var(--tf-text-muted);
}

.tf-about-hero-side {
    background: linear-gradient(145deg, rgba(15, 33, 57, 0.97), #12325a);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    color: #f9fafb;
    box-shadow: var(--tf-shadow-md);
}

.tf-about-hero-side-title {
    font-family: var(--tf-font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
}

.tf-about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.tf-about-stat {
    padding: 0.75rem 0.8rem;
    border-radius: 10px;
    background: rgba(15, 33, 57, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.tf-about-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #e5e7eb;
    margin-bottom: 0.3rem;
}

.tf-about-stat-label {
    font-size: 0.76rem;
    color: rgba(226, 232, 240, 0.86);
}

.tf-about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.tf-about-card {
    background: var(--tf-bg-card);
    border-radius: 12px;
    border: 1px solid var(--tf-border);
    padding: 1rem 1.1rem;
    box-shadow: var(--tf-shadow);
}

.tf-about-card h3 {
    font-family: var(--tf-font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--tf-navy);
}

.tf-about-card p {
    font-size: 0.87rem;
    margin-bottom: 0.45rem;
}

.tf-about-list {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.86rem;
    color: var(--tf-text-muted);
}

.tf-about-list li {
    margin-bottom: 0.25rem;
}

.tf-page-sidebar-about {
    background: linear-gradient(160deg, #0f223d, #17375d);
    color: #e5e7eb;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: var(--tf-shadow-md);
}

.tf-page-sidebar-about .tf-block-title {
    border-left-color: rgba(214, 189, 126, 0.9);
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.tf-page-sidebar-about p {
    color: #e5e7eb;
}

.tf-page-sidebar-about small {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.86);
}

/* Variante minimaliste pour la page Qui sommes-nous */
.tf-page-about-minimal .tf-page-layout {
    grid-template-columns: 1fr;
    max-width: 1160px;
    margin: 1.75rem auto 0;
}

.tf-page-about-minimal .tf-page-main {
    gap: 1.5rem;
}

.tf-page-about-minimal .tf-about-hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tf-page-about-minimal .tf-about-hero-main {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 3.5rem;
}

.tf-page-about-minimal .tf-founder-photo {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tf-page-about-minimal .tf-founder-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tf-page-about-minimal .tf-about-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tf-page-about-minimal .tf-about-hero-content p {
    text-align: justify;
}

.tf-page-about-minimal .tf-founder-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--tf-text-soft);
    text-align: center;
}

.tf-page-about-minimal .tf-about-hero-side {
    display: none;
}

.tf-page-about-minimal .tf-article-row {
    box-shadow: none;
    border-radius: 10px;
    border-color: var(--tf-border);
    padding: 1.5rem 1.75rem;
}

.tf-page-about-minimal .tf-about-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.tf-page-about-minimal .tf-about-card {
    box-shadow: none;
    border-radius: 10px;
    border-color: var(--tf-border);
    background: #fff;
}

.tf-about-page {
    max-width: 1160px;
    margin: 0 auto 2rem;
}

.tf-about-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.25rem;
    align-items: stretch;
}

.tf-about-split-media,
.tf-about-split-content,
.tf-about-legal-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.tf-about-split-media {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tf-about-split-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    flex: 1;
    object-fit: cover;
}

.tf-about-split-content {
    padding: 1.1rem 1.25rem;
}

.tf-about-split-content p {
    text-align: justify;
}

/* Page Qui sommes-nous : logo seul sans encadrement */
.tf-about-split-content .tf-article-logo {
    padding: 0;
    margin-bottom: 1rem;
    border: none;
    background: transparent;
}

.tf-about-split-content .tf-article-logo img {
    width: 220px;
    max-width: 100%;
    margin-right: 0;
    border-radius: 0;
}

.tf-about-legal-card {
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
}

.tf-about-legal-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Qui sommes-nous — partenaires (mêmes logos que la barre supérieure) */
.tf-about-trust {
    margin-top: 2rem;
    padding: 1.75rem 0;
    background: var(--tf-brand-blue);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    box-shadow: none;
    /* Pleine largeur écran (sort du cadre .tf-about-page / .tf-main) */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
}

.tf-about-trust-inner {
    max-width: min(1360px, 100%);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.tf-about-trust-title {
    font-family: var(--tf-font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.35rem;
    padding: 0;
}

.tf-about-trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem 1.1rem;
}

.tf-about-trust-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.75rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tf-about-trust-logo-link:hover,
.tf-about-trust-logo-link:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
    background: transparent;
    opacity: 0.92;
}

.tf-about-trust-logo-img {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
}

.tf-about-trust-logo-link--finco .tf-about-trust-logo-img,
.tf-about-trust-logo-link--finansya .tf-about-trust-logo-img {
    height: 30px;
}

.tf-about-trust-logo-link--tera-training .tf-about-trust-logo-img {
    height: 38px;
    max-width: min(260px, 52vw);
}

.tf-page-about-minimal .tf-founder-caption {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    color: var(--tf-text-soft);
    text-align: center;
}

/* Page contact – grille coordonnées + formulaire */
.tf-contact-row {
    padding: 1.4rem 1.5rem;
}

.tf-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 1.4rem;
    align-items: flex-start;
}

.tf-contact-card {
    background: var(--tf-bg-card);
    border-radius: 12px;
    border: 1px solid var(--tf-border);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--tf-shadow);
}

.tf-contact-card-info {
    background: #0b1f3b;
    border-color: rgba(255, 255, 255, 0.16);
    color: #e5e7eb;
}

.tf-contact-card-info h2 {
    font-family: var(--tf-font-sans);
    font-size: 1.05rem;
    color: #f9fafb;
    margin-bottom: 0.4rem;
}

.tf-contact-card-info p {
    color: #e5e7eb;
}

.tf-contact-card-info a {
    color: #e5e7eb;
    text-decoration: none;
}

.tf-contact-card-info a:hover {
    color: var(--tf-gold-muted);
    text-decoration: none;
}

.tf-contact-tagline {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 0.6rem;
}

.tf-contact-symbol {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.tf-contact-meta {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.9);
}

.tf-contact-details {
    display: grid;
    gap: 0.9rem;
}

.tf-contact-detail-item {
    margin: 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.22);
    line-height: 1.55;
}

.tf-contact-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tf-contact-card-form h2 {
    font-family: var(--tf-font-sans);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.tf-contact-card-form p {
    font-size: 0.9rem;
    color: var(--tf-text-muted);
    margin-bottom: 0.9rem;
}

/* Homogeneisation visuelle page contact */
.tf-page-contact .tf-contact-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0 0;
}

.tf-page-contact .tf-contact-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.tf-page-contact .tf-contact-card {
    height: 100%;
    padding: 1.4rem 1.45rem;
}

/* Page contact : pas de fond blanc sur la colonne formulaire (comme Qui sommes-nous) */
.tf-page-contact .tf-contact-card-form {
    background: transparent;
    border: none;
    box-shadow: none;
}

.tf-page-contact .tf-form-card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.tf-page-contact .tf-contact-card-form,
.tf-page-contact .tf-contact-card-info {
    display: flex;
    flex-direction: column;
}

.tf-page-contact .tf-contact-card-form .tf-form-card {
    margin-top: 0.35rem;
    flex: 1;
}

.tf-page-contact .tf-contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.tf-page-contact .tf-form-group {
    margin-bottom: 0.9rem;
}

.tf-page-contact .tf-form-group:last-of-type {
    margin-bottom: 0.75rem;
}

.tf-page-contact .tf-form-group input,
.tf-page-contact .tf-form-group textarea {
    min-height: 44px;
}

.tf-page-contact .tf-form-group textarea {
    min-height: 150px;
}

.tf-page-contact .tf-form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
}

.tf-page-contact .tf-btn-primary {
    min-width: 210px;
}

.tf-page-contact .tf-contact-card-info h2 {
    margin-bottom: 0.8rem;
}

.tf-page-contact .tf-contact-tagline {
    margin-bottom: 0.65rem;
}

.tf-page-contact .tf-contact-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.2);
}

/* Page article */
.tf-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.tf-article-layout-draft {
    grid-template-columns: 1fr;
}

.tf-article-top-ad {
    grid-column: 1 / -1;
}

.tf-article-top-ad.tf-page-inline-ad {
    margin: 0 0 1rem;
}

.tf-home-technique-pre-ad .tf-page-inline-ad {
    margin: 0;
}

.tf-article-ad {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    display: block;
    position: sticky;
    top: 1rem;
}

.tf-article-ad-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.tf-article-ad-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    vertical-align: middle;
}

.tf-article-ad-placeholder {
    width: 100%;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--tf-text-soft);
    background: rgba(98, 116, 141, 0.08);
}

.tf-article-ad-placeholder code {
    font-size: 0.8rem;
    color: var(--tf-text-muted);
}

.tf-article-main {
    min-width: 0;
}

.tf-article-layout .tf-article-full {
    max-width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

.tf-article-layout .tf-article-main,
.tf-article-layout .tf-article-related {
    align-self: start;
}

.tf-article-related {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1.25rem;
    box-shadow: var(--tf-shadow);
    position: sticky;
    top: 1rem;
}

.tf-article-related-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tf-navy);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--tf-border);
}

.tf-article-related-empty {
    font-size: 0.9rem;
    color: var(--tf-text-soft);
    margin: 0;
}

.tf-article-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-article-related-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tf-border);
}

.tf-article-related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tf-article-related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tf-article-related-item a:hover {
    color: var(--tf-gold);
}

.tf-article-related-image {
    border-radius: var(--tf-radius-sm);
    overflow: hidden;
    height: 100px;
    margin-bottom: 0.5rem;
}

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

.tf-article-related-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.35;
    color: var(--tf-navy);
}

.tf-article-related-date {
    font-size: 0.75rem;
    color: var(--tf-text-soft);
}

.tf-article-full {
    max-width: 720px;
    margin: 2rem auto 0;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 2rem 2.25rem;
    box-shadow: var(--tf-shadow-md);
}

.tf-article-full-header {
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tf-border);
}

.tf-article-full-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tf-gold);
    margin-bottom: 0.35rem;
}

.tf-article-subtitle {
    font-size: 1.05rem;
    color: var(--tf-text-muted);
    margin-top: 0.35rem;
}

.tf-article-meta {
    font-size: 0.8rem;
    color: var(--tf-text-soft);
    margin-top: 0.5rem;
}

.tf-article-views {
    margin-left: 0.5rem;
}

.tf-article-views::before {
    content: '\00a0|\00a0';
}

.tf-icon-eye {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
    color: var(--tf-text-soft);
}

.tf-article-full-image {
    float: left;
    max-width: 320px;
    margin: 0 1.5rem 1rem 0;
    border-radius: var(--tf-radius);
    overflow: hidden;
}

.tf-article-full-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.tf-article-body {
    font-family: var(--tf-font-sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--tf-text-muted);
}

.tf-article-body p {
    margin-bottom: 1rem;
}

.tf-article-body h2,
.tf-article-body h3 {
    color: var(--tf-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Actions article : like, favoris */
.tf-article-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--tf-border);
}

.tf-action-form {
    margin: 0;
}

.tf-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--tf-border-strong);
    background: var(--tf-bg-card);
    color: var(--tf-text-muted);
}

.tf-btn-action:hover {
    border-color: var(--tf-gold);
    color: var(--tf-gold);
    background: rgba(184, 134, 11, 0.06);
}

.tf-btn-action.tf-active {
    border-color: var(--tf-gold);
    color: var(--tf-gold);
    background: rgba(184, 134, 11, 0.1);
}

.tf-icon-like { color: #c53030; }
.tf-btn-action.tf-active .tf-icon-like { color: #e53e3e; }

.tf-action-guest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--tf-text-muted);
}

.tf-action-hint {
    font-size: 0.8rem;
}
.tf-action-hint a { color: var(--tf-gold); }

/* Partager réseaux sociaux */
.tf-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem 0;
}

.tf-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tf-text-muted);
    margin-right: 0.25rem;
}

.tf-share-btn {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--tf-radius-sm);
    transition: opacity 0.2s, color 0.2s;
}

.tf-share-btn:hover { text-decoration: none; opacity: 0.9; }

.tf-share-fb { background: #1877f2; color: #fff; }
.tf-share-x  { background: #0f0f0f; color: #fff; }
.tf-share-in { background: #0a66c2; color: #fff; }
.tf-share-wa { background: #25d366; color: #fff; }

/* Commentaires */
.tf-comments {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tf-border);
}

.tf-comments-title {
    font-family: var(--tf-font-sans);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--tf-navy);
}

.tf-comment-form {
    margin-bottom: 1.5rem;
}

.tf-comment-form .tf-form-group { margin-bottom: 0.5rem; }

.tf-comments-guest {
    font-size: 0.9rem;
    color: var(--tf-text-muted);
    margin-bottom: 1rem;
}

.tf-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tf-comment {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.tf-comment-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #e4e6eb;
    color: #1c1e21;
    font-weight: 700;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-comment-thread {
    flex: 1;
    min-width: 0;
}

.tf-comment-bubble {
    background: #f0f2f5;
    border: 1px solid #e6e9ef;
    border-radius: 18px;
    padding: 0.58rem 0.72rem;
}

.tf-comment-meta {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.tf-comment-meta strong { color: #050505; }
.tf-comment-date {
    color: #65676b;
    margin-left: 0.45rem;
}

.tf-comment-body {
    font-size: 0.92rem;
    line-height: 1.45;
    color: #1c1e21;
}

.tf-comment-reply {
    margin-top: 0.45rem;
    margin-left: 1.3rem;
    padding: 0.42rem 0.65rem;
    border-radius: 16px;
    border: 1px solid #e6e9ef;
    background: #ffffff;
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
}

.tf-comment-reply-meta {
    font-size: 0.76rem;
    color: #65676b;
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.tf-comment-reply-body {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #1c1e21;
    flex: 1;
    min-width: 0;
}

.tf-comment-reply.is-admin {
    background: #ffffff;
}

.tf-comment-reply.is-user {
    background: #f8f9fb;
}

.tf-comment-reply-form {
    margin-top: 0.45rem;
    margin-left: 1.3rem;
    display: flex;
    gap: 0.45rem;
    align-items: flex-end;
}

.tf-comment-reply-form textarea {
    flex: 1;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #dce1e8;
    padding: 0.5rem 0.6rem;
    resize: vertical;
    background: #fff;
}

.tf-comment-reply-form[hidden] {
    display: none !important;
}

.tf-comment-reply-toggle {
    margin-top: 0.35rem;
    margin-left: 1.3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #65676b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.tf-comment-reply-toggle:hover,
.tf-comment-reply-toggle:focus-visible {
    color: #1c1e21;
    text-decoration: underline;
}

.tf-btn-small {
    padding: 0.38rem 0.7rem;
    font-size: 0.78rem;
}

.tf-admin-reply-form {
    margin-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tf-admin-reply-form textarea {
    width: 100%;
    min-width: 220px;
    min-height: 76px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #fff;
    padding: 0.5rem 0.6rem;
}

.tf-admin-reply-item {
    margin-bottom: 0.42rem;
    padding: 0.45rem 0.58rem;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    background: #f9fbff;
}

.tf-admin-reply-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.22rem;
}

.tf-admin-reply-item-head small {
    color: #6b7280;
    font-size: 0.72rem;
}

.tf-admin-replies-list {
    max-height: 220px;
    overflow: auto;
    padding-right: 0.15rem;
}

.tf-admin-reply-form-actions {
    display: flex;
    justify-content: flex-end;
}

.tf-admin-comments-kpis {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.tf-admin-comments-kpi {
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(137, 160, 189, 0.35);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.tf-admin-comments-kpi-label {
    display: block;
    font-size: 0.74rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tf-admin-comments-kpi-value {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.35rem;
    color: #0f223d;
}

.tf-table-comments td {
    vertical-align: top;
}

.tf-admin-comment-article {
    display: grid;
    gap: 0.15rem;
}

.tf-admin-comment-article strong {
    font-size: 0.76rem;
    color: #475569;
}

.tf-admin-comment-article span {
    font-size: 0.86rem;
    color: #0f172a;
    line-height: 1.35;
}

.tf-admin-comment-author {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    background: rgba(15, 34, 61, 0.07);
    border-radius: 999px;
    color: #0f223d;
    font-size: 0.78rem;
    font-weight: 600;
}

.tf-admin-comment-body {
    background: #fbfdff;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    padding: 0.45rem 0.58rem;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #0f172a;
}

.tf-admin-comment-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 96px;
}

.tf-pill-status.is-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.tf-pill-status.is-approved {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.tf-pill-status.is-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

/* Auth : inscription / connexion */
.tf-auth-box {
    max-width: 420px;
    margin: 1.5rem auto 0;
}

.tf-auth-switch {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--tf-text-muted);
    text-align: center;
}

.tf-auth-switch a { color: var(--tf-gold); }

/* Favoris : catégorie dans la liste */
.tf-article-row-cat {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--tf-text-soft);
}

.tf-article-row-views {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: var(--tf-text-soft);
}

.tf-article-row-views::before {
    content: '\00a0|\00a0';
}

/* Admin : formulaires, tableaux */
.tf-page-admin .tf-header {
    display: none;
}

.tf-page-admin .tf-main {
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 1.5rem 4rem;
}

.tf-admin-login {
    max-width: 420px;
    margin: 1.5rem auto 0;
}

.tf-form-card {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--tf-shadow);
}

.tf-form-group {
    margin-bottom: 1rem;
}

.tf-form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tf-navy-muted);
}

.tf-form-group input,
.tf-form-group select,
.tf-form-group textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--tf-border-strong);
    border-radius: var(--tf-radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--tf-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tf-form-group input:focus,
.tf-form-group select:focus,
.tf-form-group textarea:focus {
    outline: none;
    border-color: var(--tf-gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12);
}

.tf-form-group textarea {
    resize: vertical;
}

.tf-form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--tf-text-soft);
}

/* Sélecteur catégorie / section (admin articles) */
.tf-catsec-picker {
    margin-top: 0.35rem;
    padding: 1rem 1.1rem;
    background: var(--tf-bg);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
}

.tf-catsec-step + .tf-catsec-step {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--tf-border);
}

.tf-catsec-step-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tf-navy-muted);
}

.tf-catsec-step-hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--tf-text-soft);
}

.tf-catsec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tf-catsec-pill {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.tf-catsec-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.tf-catsec-pill > span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tf-navy-muted);
    background: var(--tf-bg-card);
    border: 1.5px solid var(--tf-border-strong);
    border-radius: 999px;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
}

.tf-catsec-pill:hover > span {
    border-color: var(--tf-gold-muted);
    color: var(--tf-navy);
}

.tf-catsec-pill input:focus-visible + span {
    outline: 2px solid var(--tf-gold);
    outline-offset: 2px;
}

.tf-catsec-pill input:checked + span {
    color: var(--tf-navy);
    background: rgba(184, 134, 11, 0.12);
    border-color: var(--tf-gold);
    box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.2);
}

.tf-catsec-pill--section input:checked + span {
    background: rgba(15, 23, 42, 0.06);
    border-color: var(--tf-navy-muted);
    box-shadow: none;
}

.tf-catsec-empty {
    margin: 0 0 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    color: var(--tf-text-soft);
    background: var(--tf-bg-card);
    border: 1px dashed var(--tf-border-strong);
    border-radius: var(--tf-radius-sm);
}

.tf-catsec-panels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tf-catsec-panel {
    padding: 0.75rem 0.9rem;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    box-shadow: var(--tf-shadow);
}

.tf-catsec-panel[hidden] {
    display: none;
}

.tf-catsec-panel-head {
    margin-bottom: 0.55rem;
}

.tf-catsec-panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tf-navy);
}

.tf-catsec-summary {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tf-border);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--tf-text-muted);
}

.tf-catsec-summary[hidden] {
    display: none;
}

.tf-catsec-summary-label {
    font-weight: 600;
    color: var(--tf-navy-muted);
}

.tf-catsec-summary-tag {
    display: inline-block;
    margin: 0.15rem 0.35rem 0.15rem 0;
    padding: 0.2rem 0.55rem;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
}

.tf-form-actions {
    margin-top: 0.8rem;
    text-align: right;
}

.tf-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--tf-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tf-btn-primary {
    background: var(--tf-navy);
    color: #fff;
    border-color: var(--tf-navy);
}

.tf-btn-primary:hover {
    background: var(--tf-navy-light);
    border-color: var(--tf-navy-light);
}

.tf-btn-ghost {
    border-color: var(--tf-gold);
    color: var(--tf-gold);
}

.tf-btn-ghost:hover {
    background: rgba(184, 134, 11, 0.08);
    color: var(--tf-navy);
}

.tf-alert {
    padding: 0.75rem 1rem;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    border-radius: var(--tf-radius-sm);
}

.tf-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.tf-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--tf-error);
}

.tf-admin-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.tf-admin-subnav {
    margin-top: 0.75rem;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #e5e7eb;
    border-radius: 999px;
}

.tf-admin-subnav-link {
    min-width: 0;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #374151;
}

.tf-admin-subnav-link:hover {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
    text-decoration: none;
}

.tf-admin-subnav-link.is-active {
    background: #111827;
    color: #f9fafb;
}

.tf-admin-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tf-admin-stat {
    flex: 1;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1rem 1.2rem;
    box-shadow: var(--tf-shadow);
}

.tf-admin-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tf-text-soft);
}

.tf-admin-stat-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tf-navy);
}

.tf-admin-latest {
    margin-top: 1.5rem;
}

.tf-admin-section {
    margin-top: 1.25rem;
}

.tf-ad-zones-dimensions-list {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    background: rgba(98, 116, 141, 0.06);
    border-radius: var(--tf-radius);
    font-size: 0.9rem;
}

.tf-ad-zones-dimensions-list li {
    padding: 0.25rem 0;
}

.tf-ad-zones-dimensions-list li + li {
    border-top: 1px solid var(--tf-border);
}

.tf-admin-filters {
    margin: 0 0 0.9rem;
    padding: 0.75rem 0.9rem;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: flex-end;
}

.tf-admin-filters .tf-form-group {
    margin-bottom: 0;
    min-width: 220px;
}

.tf-admin-filters-actions {
    display: flex;
    gap: 0.5rem;
}

.tf-admin-inline-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tf-admin-inline-input {
    width: 5.2rem;
    padding: 0.3rem 0.45rem;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    font-size: 0.82rem;
}

.tf-btn-inline {
    padding: 0.32rem 0.6rem;
    font-size: 0.74rem;
}

.tf-admin-two-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tf-admin-column h2 {
    margin-bottom: 0.7rem;
}

.tf-admin-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tf-admin-sidebar {
    align-self: flex-start;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--tf-shadow);
    position: sticky;
    top: 1.25rem;
}

.tf-admin-sidebar-title {
    font-family: var(--tf-font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tf-text-soft);
    margin-bottom: 0.75rem;
}

.tf-admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tf-admin-sidebar-link {
    display: block;
    padding: 0.4rem 0.55rem;
    border-radius: var(--tf-radius-sm);
    font-size: 0.9rem;
    color: var(--tf-text-muted);
}

.tf-admin-sidebar-link:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--tf-navy);
    text-decoration: none;
}

.tf-admin-sidebar-link.is-active {
    background: var(--tf-navy);
    color: #fff;
}

.tf-admin-main {
    min-width: 0;
}

.tf-admin-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--tf-radius-sm);
    border: 1px solid var(--tf-border-strong);
    background: var(--tf-bg-card);
    color: var(--tf-text-muted);
    cursor: pointer;
}

.tf-admin-toggle span {
    display: inline-block;
    width: 12px;
    height: 2px;
    background: var(--tf-text-muted);
    position: relative;
}

.tf-admin-toggle span::before,
.tf-admin-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 12px;
    height: 2px;
    background: var(--tf-text-muted);
}

.tf-admin-toggle span::before {
    top: -4px;
}

.tf-admin-toggle span::after {
    top: 4px;
}

.tf-admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 350;
}

.tf-page-admin.tf-admin-sidebar-open .tf-admin-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
}

.tf-page-admin.tf-admin-sidebar-open .tf-admin-sidebar {
    transform: translateX(0);
}

.tf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--tf-bg-card);
    border-radius: var(--tf-radius);
    overflow: hidden;
    box-shadow: var(--tf-shadow);
}

.tf-table th,
.tf-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--tf-border);
}

.tf-table th {
    text-align: left;
    background: var(--tf-navy);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tf-table tr:last-child td {
    border-bottom: none;
}

.tf-link-small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tf-gold);
    margin-right: 0.5rem;
}

.tf-link-small:hover {
    color: var(--tf-navy);
    text-decoration: underline;
}

.tf-link-danger {
    color: var(--tf-error);
}

/* Footer – pied de page moderne */
.tf-footer {
    position: relative;
    margin-top: 3.5rem;
    background: linear-gradient(165deg, var(--tf-navy) 0%, #060d18 55%, #0a1220 100%);
    overflow: hidden;
}

.tf-footer-accent {
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--tf-gold) 35%, var(--tf-gold-light) 65%, transparent 100%);
}

.tf-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 2.75rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 2.25rem 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
}

.tf-footer-brand {
    padding-right: 1rem;
}

.tf-footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tf-footer-logo-link:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}

.tf-footer-logo {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 52px;
    height: auto;
    object-fit: contain;
}

.tf-footer-tagline {
    margin: 0 0 1.35rem;
    max-width: 28rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.tf-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tf-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tf-social-icon:hover {
    background: var(--tf-gold);
    border-color: var(--tf-gold);
    color: var(--tf-navy);
    transform: translateY(-2px);
    text-decoration: none;
}

.tf-social-icon svg {
    display: block;
}

.tf-footer-heading {
    font-family: var(--tf-font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tf-footer-col p,
.tf-footer-col a,
.tf-footer-address {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.tf-footer-address {
    font-style: normal;
    margin: 0 0 1.1rem;
    font-size: 0.84rem;
}

.tf-footer-col a:hover {
    color: var(--tf-gold-light);
    text-decoration: none;
}

.tf-footer-links,
.tf-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-footer-links li,
.tf-footer-contact-list li {
    margin-bottom: 0.45rem;
}

.tf-footer-links a {
    display: inline-block;
    font-size: 0.86rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tf-footer-links a:hover {
    transform: translateX(3px);
}

.tf-footer-contact-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

.tf-footer-contact-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.tf-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1360px;
    margin: 0 auto;
    padding: 1rem 1.5rem 1.25rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.tf-footer-copy,
.tf-footer-credit {
    margin: 0;
    line-height: 1.45;
}

.tf-footer-credit {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.76rem;
}

/* ------------------------------------------------------------
   Modern refresh: consultant finance style
   ------------------------------------------------------------ */

:root {
    --tf-navy: #0b1628;
    --tf-navy-light: #16253b;
    --tf-navy-muted: #223754;
    --tf-slate: #3d4e65;
    --tf-slate-light: #5f7188;
    --tf-gold: #b7924a;
    --tf-gold-light: #c6a968;
    --tf-gold-muted: #d5be8f;
    --tf-bg: #f3f6fb;
    --tf-bg-card: #ffffff;
    --tf-border: #dce4f0;
    --tf-border-strong: #c4d1e3;
    --tf-text: #0f1f35;
    --tf-text-muted: #41526b;
    --tf-text-soft: #62748d;
    --tf-shadow: 0 2px 8px rgba(11, 22, 40, 0.05);
    --tf-shadow-md: 0 14px 36px rgba(11, 22, 40, 0.08);
    --tf-shadow-lg: 0 22px 56px rgba(11, 22, 40, 0.12);
    --tf-radius: 12px;
    --tf-radius-sm: 8px;
}

body {
    background:
        radial-gradient(circle at 100% 0%, rgba(16, 43, 79, 0.05), transparent 36%),
        radial-gradient(circle at 0% 10%, rgba(183, 146, 74, 0.06), transparent 28%),
        var(--tf-bg);
}

a {
    color: var(--tf-navy-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(183, 146, 74, 0.65);
    outline-offset: 2px;
}

.tf-main {
    max-width: 1360px;
    padding: 2.2rem 1.2rem 4.2rem;
}

.tf-page-article .tf-main {
    max-width: 1420px;
}

/* Header – style pro, lisible et pratique */
.tf-top-strip {
    background: #0f172a;
    border-bottom: none;
}

.tf-top-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1.25rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tf-top-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.24rem 0.65rem 0.24rem 0.35rem;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tf-top-brand:hover,
.tf-top-brand:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
    background: transparent;
    opacity: 0.9;
}

.tf-top-brand-badge {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: #ffffff;
    color: #0f1f35;
}

.tf-top-brand-finco .tf-top-brand-badge {
    color: #1f97f0;
}

.tf-top-brand-label {
    white-space: nowrap;
}

.tf-top-brand-logo {
    height: 20px;
    width: auto;
    display: block;
}

.tf-top-brand-finco {
    padding: 0.28rem 0.62rem;
}

.tf-top-brand-finco .tf-top-brand-logo {
    height: 22px;
}

.tf-top-brand-finansya {
    padding: 0.28rem 0.62rem;
}

.tf-top-brand-finansya .tf-top-brand-logo {
    height: 22px;
}

.tf-top-brand-tera-training {
    padding: 0.22rem 0.55rem;
}

.tf-top-brand-tera-training .tf-top-brand-logo {
    height: 28px;
    width: auto;
    max-width: min(200px, 42vw);
    object-fit: contain;
}

.tf-header {
    border-bottom: none;
    box-shadow: 0 1px 0 0 var(--tf-border);
}

.tf-masthead {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tf-border);
}

.tf-logo-link {
    gap: 0.75rem;
}

.tf-logo-link:hover {
    text-decoration: none;
}

.tf-logo-image {
    width: 320px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.tf-logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tf-navy);
}

.tf-logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tf-text-soft);
    letter-spacing: 0.03em;
}

.tf-logo-text {
    display: none;
}

.tf-user-trigger {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--tf-border);
    background: var(--tf-bg-card);
    color: var(--tf-text-muted);
}

.tf-user-trigger:hover {
    border-color: var(--tf-gold);
    color: var(--tf-gold);
    background: rgba(183, 134, 11, 0.06);
}

.tf-user-menu {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.tf-nav {
    background: var(--tf-navy);
}

.tf-nav::after {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--tf-gold) 20%, var(--tf-gold) 80%, transparent 100%);
    opacity: 0.9;
}

.tf-nav-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    justify-content: center;
}

.tf-nav-list > li > a {
    padding: 0.85rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tf-nav-list > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: var(--tf-gold);
}

.tf-nav-sub {
    border-radius: 0 0 8px 8px;
    border-top: 2px solid var(--tf-gold);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.tf-nav-sub a {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
}

.tf-page-header {
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--tf-border);
    padding-bottom: 1rem;
}

.tf-page-header h1 {
    font-size: 1.95rem;
    letter-spacing: -0.01em;
}

.tf-page-header p {
    font-size: 0.98rem;
    max-width: 68ch;
}

.tf-hero {
    margin-top: 1.1rem;
    gap: 1.6rem;
}

.tf-hero-article,
.tf-hero-sidebar,
.tf-card-article,
.tf-article-row,
.tf-form-card,
.tf-admin-stat,
.tf-table {
    border-radius: 12px;
}

.tf-hero-article {
    padding: 1.6rem;
    border-color: rgba(137, 160, 189, 0.35);
}

.tf-hero-image {
    height: 260px;
    background: linear-gradient(160deg, rgba(15, 31, 59, 0.07), rgba(15, 31, 59, 0.03));
}

.tf-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-hero-title {
    font-size: 1.92rem;
}

.tf-hero-excerpt {
    font-size: 1rem;
    color: var(--tf-text-muted);
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-hero-sidebar {
    padding: 1.2rem;
}

.tf-hero-ad {
    min-height: 220px;
}

.tf-hero-ad .tf-ad-img {
    max-height: none;
}

.tf-hero-ad-img {
    max-height: 400px;
}

.tf-block-title {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
}

.tf-list-item {
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed rgba(98, 116, 141, 0.33);
}

.tf-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tf-list-item h3 {
    font-size: 0.93rem;
    line-height: 1.45;
}

.tf-section-grid {
    margin-top: 2.2rem;
    gap: 1.25rem;
}

.tf-section-header {
    border-bottom: 1px solid var(--tf-border);
}

.tf-section-header h2 {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.tf-grid {
    gap: 0.9rem;
}

.tf-card-article {
    padding: 1rem;
}

.tf-card-article-image {
    height: 158px;
}

.tf-card-article-image img {
    height: 100%;
}

.tf-card-article h3 {
    font-size: 1rem;
    line-height: 1.4;
}

.tf-card-article p {
    font-size: 0.89rem;
    margin-bottom: 0.45rem;
}

.tf-card-date,
.tf-article-row-date,
.tf-article-meta,
.tf-list-date {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tf-text-soft);
}

.tf-page-layout {
    gap: 1.4rem;
}

.tf-page-sidebar:not(.tf-page-sidebar-ad) {
    border-color: rgba(137, 160, 189, 0.35);
    box-shadow: var(--tf-shadow);
}

.tf-article-row {
    padding: 1rem;
}

.tf-article-row a {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
        "image meta"
        "image title"
        "image excerpt";
    gap: 0.35rem 1rem;
    align-items: start;
}

.tf-article-row-image {
    grid-area: image;
    max-width: 220px;
    border-radius: 10px;
}

.tf-article-row-image img {
    height: 132px;
}

.tf-article-row-meta {
    grid-area: meta;
    margin-bottom: 0;
}

.tf-article-row h2 {
    grid-area: title;
    margin: 0;
    font-size: 1.07rem;
    line-height: 1.38;
}

.tf-article-row p {
    grid-area: excerpt;
    margin: 0;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-page-static .tf-article-row > div {
    display: block;
}

.tf-article-full {
    max-width: 860px;
    margin-top: 1.3rem;
    border-radius: 14px;
    border-color: rgba(137, 160, 189, 0.35);
    padding: 2.1rem 2.35rem;
}

.tf-article-full-header {
    border-bottom: 1px solid rgba(98, 116, 141, 0.28);
}

.tf-article-full-label {
    display: inline-block;
    padding: 0.28rem 0.56rem;
    border-radius: 999px;
    background: rgba(183, 146, 74, 0.14);
    border: 1px solid rgba(183, 146, 74, 0.3);
    margin-bottom: 0.65rem;
}

.tf-article-full h1 {
    font-size: 2.1rem;
    line-height: 1.3;
}

.tf-article-subtitle {
    font-size: 1.08rem;
}

.tf-article-full-image {
    float: none;
    max-width: 100%;
    margin: 0 0 1.4rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(137, 160, 189, 0.35);
}

.tf-article-full-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tf-article-body {
    font-size: 1.02rem;
}

.tf-article-body blockquote {
    margin: 1.15rem 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--tf-gold);
    background: rgba(15, 33, 57, 0.04);
    color: var(--tf-text-muted);
}

.tf-article-actions {
    border-top: 1px dashed rgba(98, 116, 141, 0.4);
}

.tf-btn-action {
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
}

.tf-share-bar {
    margin-top: 1rem;
    border-top: 1px dashed rgba(98, 116, 141, 0.35);
}

.tf-share-btn {
    border-radius: 999px;
}

.tf-comments {
    border-top: 1px solid rgba(98, 116, 141, 0.22);
}

.tf-comment {
    border-radius: 10px;
}

.tf-auth-box {
    max-width: 460px;
}

.tf-form-card {
    border-color: rgba(137, 160, 189, 0.33);
}

.tf-form-group input,
.tf-form-group select,
.tf-form-group textarea {
    border-radius: 9px;
    padding: 0.58rem 0.68rem;
    background: #fbfdff;
}

.tf-form-group input:focus,
.tf-form-group select:focus,
.tf-form-group textarea:focus {
    border-color: #ab8a4f;
    box-shadow: 0 0 0 3px rgba(183, 146, 74, 0.18);
}

.tf-btn {
    border-radius: 999px;
}

.tf-btn-primary {
    background: linear-gradient(90deg, #0f223d, #173256);
    border-color: #173256;
}

.tf-btn-primary:hover {
    background: linear-gradient(90deg, #142a49, #1f3d63);
}

.tf-btn-ghost {
    border-color: rgba(183, 146, 74, 0.6);
}

.tf-article-image-preview {
    margin-top: 0.6rem;
}

.tf-article-image-preview-img {
    max-width: 240px;
    height: auto;
    border-radius: 9px;
    border: 1px solid var(--tf-border);
    box-shadow: var(--tf-shadow);
}

.tf-page-admin .tf-main {
    background: #f4f7fc;
    padding-top: 1rem;
}

.tf-admin-layout {
    margin-top: 0.9rem;
    gap: 1.25rem;
}

.tf-admin-sidebar {
    border-color: rgba(137, 160, 189, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, #fdfefe, #f6f9fd);
}

.tf-admin-sidebar-link {
    padding: 0.48rem 0.62rem;
}

.tf-admin-sidebar-link.is-active {
    background: linear-gradient(90deg, #0f223d, #1a375d);
}

.tf-admin-header {
    gap: 1.2rem;
}

.tf-admin-subnav {
    background: #dce6f3;
}

.tf-admin-subnav-link.is-active {
    background: #132945;
}

.tf-admin-stats {
    margin-top: 1.2rem;
}

.tf-admin-stat {
    border-color: rgba(137, 160, 189, 0.35);
}

.tf-admin-stat-value {
    font-size: 1.7rem;
}

.tf-admin-filters {
    border-color: rgba(137, 160, 189, 0.35);
    padding: 0.8rem 1rem;
}

.tf-table {
    border: 1px solid rgba(137, 160, 189, 0.35);
    overflow: hidden;
}

.tf-table th {
    background: linear-gradient(90deg, #0f223d, #1a385d);
    font-size: 0.76rem;
}

.tf-table tbody tr:hover td {
    background: #f5f9ff;
}

/* Inbox contacts – style type Gmail */
.tf-table-inbox tbody tr.tf-contact-unread td {
    font-weight: 600;
    background: #f0f4ff;
    border-left: 3px solid var(--tf-gold);
}

.tf-table-inbox tbody tr.tf-contact-read td {
    font-weight: 400;
}

.tf-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tf-pill-unread {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.tf-pill-read {
    background: rgba(148, 163, 184, 0.18);
    color: #4b5563;
}

.tf-link-small {
    font-size: 0.78rem;
}

.tf-footer {
    margin-top: 4rem;
}

.tf-footer-inner,
.tf-footer-bottom {
    max-width: 1360px;
}

/* ——— Sections bas de page d'accueil : Communiqués & Partenariat ——— */
.tf-section {
    padding: 2.5rem 0;
}
.tf-home-communiques {
    margin-top: 3rem;
}
.tf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.tf-section-title {
    font-size: 1.25rem;
    color: var(--tf-navy);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tf-border);
}

.tf-home-communiques {
    background: var(--tf-bg-card);
    border-top: 1px solid var(--tf-border);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.tf-home-communiques-empty {
    margin: 0;
    color: var(--tf-text-soft);
    font-size: 0.95rem;
}
.tf-home-communiques-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tf-home-communiques-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}
.tf-home-communiques-item a {
    color: #1a1a1a;
    font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}
.tf-home-communiques-item a:hover {
    color: #0f172a;
}
.tf-home-communiques-item time {
    font-size: 0.84rem;
    font-style: italic;
    font-weight: 700;
    color: #b4233a;
}

.tf-home-partenariat {
    background: var(--tf-bg);
    border-top: 1px solid var(--tf-border);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-top: 2rem;
}
.tf-home-partenariat-empty {
    margin: 0;
    color: var(--tf-text-soft);
    font-size: 0.95rem;
}
.tf-home-partenariat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    align-items: center;
}
.tf-home-partenariat-item {
    display: flex;
    justify-content: center;
    align-items: center;
}
.tf-home-partenariat-link,
.tf-home-partenariat-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}
.tf-home-partenariat-link img,
.tf-home-partenariat-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}
.tf-home-partenariat-link:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* Mention d’auteur (contrôlée par article en admin, défaut : config) */
.tf-author-attribution {
    color: #b4233a;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.tf-author-attribution::before {
    content: " | ";
}

/* Bouton retour en haut */
.tf-back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 8px 22px rgba(11, 31, 59, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 500;
}

.tf-back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.tf-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tf-back-to-top:hover {
    transform: translateY(-2px);
}

.tf-page-admin .tf-back-to-top {
    display: none;
}

.tf-home-technique {
    margin-top: 2.25rem;
}

.tf-home-technique .tf-article-list {
    margin-top: 1.1rem;
}

/* Accueil: alignement vertical titre/image pour listes sans extrait */
.tf-home-chrono .tf-article-row a,
.tf-home-technique .tf-article-row a {
    grid-template-areas:
        "image meta"
        "image title";
    grid-template-rows: auto auto;
    row-gap: 0.4rem;
    align-content: center;
    align-items: start;
}

.tf-home-chrono .tf-article-row-meta,
.tf-home-technique .tf-article-row-meta {
    align-self: auto;
    margin-bottom: 0;
}

.tf-home-chrono .tf-article-row h2,
.tf-home-technique .tf-article-row h2 {
    align-self: auto;
    margin-top: 0;
}

/* ------------------------------------------------------------
   Brand book alignment (TERA Guidelines)
   ------------------------------------------------------------ */

:root {
    --tf-brand-blue: #0b1f3b;
    --tf-brand-orange: #f5a623;
    --tf-brand-orange-light: #ffc857;
    --tf-font-sans: "Poppins", "Segoe UI", Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
    --tf-font-serif: "Poppins", "Segoe UI", Calibri, -apple-system, BlinkMacSystemFont, sans-serif;
    --tf-navy: var(--tf-brand-blue);
    --tf-navy-light: #143056;
    --tf-navy-muted: #1d3f6d;
    --tf-gold: var(--tf-brand-orange);
    --tf-gold-light: var(--tf-brand-orange-light);
    --tf-gold-muted: #ffd274;
}

body {
    font-family: var(--tf-font-sans);
}

h1, h2, h3, h4, h5,
.tf-logo-main,
.tf-article-logo-text-main {
    font-family: var(--tf-font-sans);
}

.tf-top-strip {
    background: var(--tf-brand-blue);
}

.tf-nav::after {
    background: linear-gradient(90deg, var(--tf-brand-orange) 0%, var(--tf-brand-orange-light) 50%, var(--tf-brand-orange) 100%);
}

.tf-nav-list > li > a:hover,
.tf-nav-sub a:hover,
.tf-section-link,
.tf-popular-item-title a:hover,
.tf-user-trigger:hover,
.tf-user-trigger[aria-expanded="true"] {
    color: var(--tf-brand-orange);
}

/* ============================================================
   Responsive — tablette & mobile (section unique)
   ≤991px : mise en page empilée, grilles adaptées
   ≤719px : navigation tactile, confort lecture, anti-débordement
   ============================================================ */

@media (max-width: 991px) {
    .tf-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .tf-footer-brand {
        grid-column: 1 / -1;
    }

    .tf-page-main {
        grid-template-columns: 1fr;
    }

    .tf-archive-filter {
        grid-template-columns: 1fr;
        padding: 0.9rem;
    }

    .tf-archive-filter-actions {
        width: 100%;
    }

    .tf-archive-filter-actions .tf-btn {
        flex: 1;
        justify-content: center;
    }

    .tf-archive-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .tf-archive-date {
        min-width: 0;
        white-space: normal;
    }

    .tf-archive-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .tf-contact-grid,
    .tf-page-contact .tf-contact-grid {
        grid-template-columns: 1fr;
    }

    .tf-about-hero {
        grid-template-columns: 1fr;
    }

    .tf-about-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tf-hero {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .tf-hero-main {
        grid-template-columns: 1fr;
    }

    .tf-hero-article {
        padding: 1.35rem 1.15rem;
    }

    .tf-hero-article-secondary {
        margin-top: 1rem;
    }

    .tf-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-home-bottom {
        grid-template-columns: 1fr;
    }

    .tf-home-popular {
        position: static;
    }

    .tf-article-layout {
        grid-template-columns: 1fr;
    }

    .tf-article-related {
        position: static;
    }

    .tf-article-ad {
        position: static;
        top: auto;
    }

    .tf-admin-two-columns {
        grid-template-columns: 1fr;
    }

    .tf-admin-layout {
        grid-template-columns: 1fr;
        position: relative;
    }

    .tf-admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        height: 100dvh;
        width: min(280px, 86vw);
        max-width: 86vw;
        border-radius: 0;
        padding: 1.5rem 1.25rem;
        box-shadow: var(--tf-shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 400;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tf-admin-main {
        min-width: 0;
    }

    .tf-admin-toggle {
        display: inline-flex;
    }

    .tf-about-split {
        grid-template-columns: 1fr;
    }

    .tf-about-split-media {
        max-width: min(400px, 100%);
        margin: 0 auto;
    }

    .tf-main {
        padding: 1.65rem 1rem 3rem;
    }

    .tf-page-header h1 {
        font-size: clamp(1.45rem, 3.8vw, 1.75rem);
    }

    .tf-article-row a {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "meta"
            "title"
            "excerpt";
    }

    .tf-article-row-image {
        max-width: 100%;
    }

    .tf-article-row-image img {
        width: 100%;
        height: min(200px, 48vw);
        object-fit: cover;
    }

    .tf-home-chrono .tf-article-row a,
    .tf-home-technique .tf-article-row a {
        grid-template-areas:
            "image"
            "meta"
            "title";
    }

    .tf-article-full {
        padding: 1.55rem 1.2rem;
    }

    .tf-hero-ad.tf-ad-zone {
        position: relative;
        top: auto;
    }
}

@media (max-width: 719px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .tf-main {
        padding: 1rem clamp(0.75rem, 3vw, 1rem) 2.5rem;
    }

    .tf-masthead {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.85rem clamp(0.75rem, 3vw, 1rem);
    }

    .tf-logo-block {
        align-items: flex-start;
        grid-column: auto;
        justify-self: auto;
        min-width: 0;
    }

    .tf-logo-link {
        min-width: 0;
    }

    .tf-user-bar {
        grid-column: auto;
        gap: 0.35rem;
        min-width: 0;
        margin-left: auto;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .tf-bank-select {
        max-width: min(158px, 46vw);
        font-size: 0.8125rem;
    }

    .tf-user-dropdown-desktop {
        display: none;
    }

    .tf-user-label {
        display: none;
    }

    .tf-user-trigger {
        padding: 0.5rem;
    }

    .tf-top-strip-inner {
        padding: 0.35rem clamp(0.75rem, 3vw, 1rem);
        gap: 0.45rem;
    }

    .tf-top-brand {
        font-size: 0.72rem;
        padding: 0.2rem 0.55rem 0.2rem 0.32rem;
    }

    .tf-top-brand-badge {
        width: 1.05rem;
        height: 1.05rem;
        font-size: 0.64rem;
    }

    .tf-top-brand-logo {
        height: 18px;
    }

    .tf-top-brand-finco .tf-top-brand-logo,
    .tf-top-brand-finansya .tf-top-brand-logo {
        height: 19px;
    }

    .tf-top-brand-tera-training .tf-top-brand-logo {
        height: 24px;
        max-width: min(180px, 58vw);
    }

    .tf-logo-image {
        width: min(220px, 72vw);
        max-height: 78px;
    }

    .tf-logo-main {
        font-size: 1.42rem;
    }

    .tf-nav {
        display: flex;
        flex-direction: column;
        padding: 0 0 0.5rem;
    }

    .tf-nav-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.4rem 0.65rem 0.15rem;
    }

    .tf-user-dropdown-mobile {
        display: block;
        position: relative;
        order: 2;
    }

    .tf-user-dropdown-mobile .tf-user-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: rgba(255, 255, 255, 0.94);
        background: transparent;
    }

    .tf-user-dropdown-mobile .tf-user-trigger:hover,
    .tf-user-dropdown-mobile .tf-user-trigger[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.42);
        color: #fff;
    }

    .tf-user-dropdown-mobile .tf-user-menu {
        right: 0;
        top: calc(100% + 0.35rem);
        min-width: 12rem;
        z-index: 420;
    }

    .tf-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
        margin: 0;
        padding: 0;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .tf-nav-list {
        flex-direction: column;
        padding: 0 0.85rem 0.75rem;
        display: none;
        width: 100%;
    }

    .tf-nav-list.tf-nav-open {
        display: flex;
    }

    .tf-nav-list > li {
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tf-nav-list > li:last-child {
        border-bottom: none;
    }

    .tf-nav-list > li > a {
        padding: 0.85rem 0.65rem;
        margin-bottom: 0;
        border-bottom: none;
        border-left: 3px solid transparent;
        min-height: 48px;
    }

    .tf-nav-list > li > a:hover {
        border-left-color: var(--tf-gold);
        background: rgba(255, 255, 255, 0.07);
    }

    .tf-nav-has-sub > a::after {
        display: none;
    }

    .tf-nav-has-sub > a {
        padding-right: 3.25rem;
    }

    .tf-nav-sub-toggle {
        display: flex;
        top: 50%;
        right: 0.2rem;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
    }

    .tf-nav-sub {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        border: none;
        border-radius: 0;
        border-left: 3px solid var(--tf-gold);
        margin-left: 0.65rem;
        margin-bottom: 0.45rem;
        padding: 0 0 0.2rem;
        box-shadow: none;
        min-width: auto;
        transition: max-height 0.35s ease, visibility 0.2s;
    }

    .tf-nav-has-sub.tf-sub-open .tf-nav-sub {
        visibility: visible;
        max-height: min(26rem, 72vh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tf-nav-sub a {
        padding: 0.65rem 0.85rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .tf-nav-sub a:hover {
        padding-left: 0.85rem;
    }

    .tf-section-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tf-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 1rem 1.5rem;
    }

    .tf-footer-brand {
        padding-right: 0;
    }

    .tf-footer-logo {
        max-width: 170px;
    }

    .tf-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.9rem 1rem 1.1rem;
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .tf-hero-title {
        font-size: clamp(1.32rem, 5vw, 1.55rem);
        line-height: 1.28;
    }

    .tf-hero-title-secondary {
        font-size: clamp(1.08rem, 4vw, 1.22rem);
    }

    .tf-hero-article {
        padding: 1.15rem 1rem;
    }

    .tf-hero-image {
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: min(200px, 48vw);
        min-height: 128px;
    }

    .tf-hero-image img {
        min-height: 128px;
        object-fit: cover;
        object-position: center;
    }

    .tf-hero-excerpt {
        line-clamp: 4;
        -webkit-line-clamp: 4;
    }

    .tf-hero-meta {
        font-size: 0.76rem;
        column-gap: 0.5rem;
    }

    .tf-hero-meta .tf-author-attribution {
        flex-basis: 100%;
    }

    .tf-hero-meta .tf-author-attribution::before {
        content: none;
    }

    .tf-hero-ad.tf-ad-zone,
    .tf-page-sidebar-ad.tf-ad-zone,
    .tf-article-sidebar-ad.tf-ad-zone {
        aspect-ratio: 9 / 14;
    }

    .tf-home-communiques-ad-inner.tf-ad-zone {
        aspect-ratio: 16 / 9;
        max-height: 46vh;
    }

    .tf-about-trust {
        padding: 1.35rem 0;
        margin-top: 1.5rem;
    }

    .tf-about-trust-inner {
        padding: 0 1rem;
    }

    .tf-about-trust-title {
        font-size: 0.92rem;
        margin-bottom: 1.05rem;
    }

    .tf-about-trust-logo-img {
        height: 26px;
    }

    .tf-about-trust-logo-link--tera-training .tf-about-trust-logo-img {
        height: 32px;
        max-width: min(220px, 78vw);
    }

    .tf-about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-about-grid {
        grid-template-columns: 1fr;
    }

    .tf-page-about-minimal .tf-about-hero-main {
        flex-direction: column;
        gap: 1.15rem;
    }

    .tf-page-about-minimal .tf-founder-photo {
        flex: none;
        max-width: 100%;
    }

    /* Qui sommes-nous : logo centré sous la photo */
    .tf-about-split-content .tf-article-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .tf-about-split-content .tf-article-logo img {
        margin-left: auto;
        margin-right: auto;
    }

    .tf-about-split-content .tf-about-tagline {
        text-align: center;
    }

    .tf-page-contact .tf-contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tf-page-contact .tf-contact-card {
        padding: 1.05rem 0.95rem;
    }

    .tf-page-contact .tf-btn-primary {
        width: 100%;
        min-width: 0;
    }

    .tf-comment-avatar {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.78rem;
    }

    .tf-comment-bubble {
        border-radius: 14px;
        padding: 0.52rem 0.64rem;
    }

    .tf-comment-reply {
        margin-left: 0.75rem;
        border-radius: 12px;
        padding: 0.42rem 0.55rem;
        flex-wrap: wrap;
        gap: 0.2rem 0.35rem;
    }

    .tf-comment-reply-meta {
        white-space: normal;
    }

    .tf-comment-reply-form {
        margin-left: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    .tf-comment-reply-toggle {
        margin-left: 0.75rem;
    }

    .tf-admin-comments-kpis {
        grid-template-columns: 1fr;
    }

    .tf-admin-replies-list {
        max-height: none;
        overflow: visible;
    }

    .tf-admin-filters {
        padding: 0.75rem;
    }

    .tf-admin-filters .tf-form-group {
        min-width: 100%;
    }

    .tf-admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tf-admin-stats {
        flex-direction: column;
    }

    .tf-page-admin .tf-admin-main {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tf-table {
        font-size: 0.78rem;
    }

    .tf-home-partenariat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .tf-home-partenariat-link img,
    .tf-home-partenariat-logo img {
        max-height: 40px;
    }

    .tf-back-to-top {
        width: 48px;
        height: 48px;
        right: max(0.65rem, env(safe-area-inset-right, 0px));
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }

    .tf-hero-title,
    .tf-article-row h2,
    .tf-popular-item-title {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .tf-article-row-image img {
        height: auto;
        min-height: 150px;
        max-height: 240px;
    }

    .tf-article-full-image {
        float: none;
        max-width: 100%;
        margin: 0 0 1.2rem;
    }

    .tf-article-full h1 {
        font-size: clamp(1.42rem, 5.5vw, 1.68rem);
    }

    .tf-share-bar {
        gap: 0.4rem;
    }

    .tf-share-btn {
        flex: 1 1 calc(50% - 0.25rem);
        text-align: center;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tf-btn-action {
        min-height: 44px;
        padding: 0.48rem 0.85rem;
    }
}

@media (min-width: 992px) {
    .tf-hero-main .tf-hero-link {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .tf-hero-main .tf-hero-title {
        line-height: 1.3;
        min-height: calc(1.3em * 3);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
}
