/* ==========================================================================
   TIMFOCUS - ARCHITECTURE CSS MOBILE-FIRST (100% RESPONSIVE)
   Normes : Mobile-First strict (<768px), Tablettes (768px-1024px), Desktop (>1024px)
   Typographie fluide clamp(), Flexbox/Grid fluides, 0 débordement (CLS = 0)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & FONDATIONS (Mobile-First)
   -------------------------------------------------------------------------- */
:root {
  --tf-primary: #1d5b94;
  --tf-primary-hover: #154572;
  --tf-accent: #0284c7;
  --tf-accent-light: #38bdf8;
  --tf-dark-hero: #0b1329;
  --tf-bg-light: #f8fafc;
  --tf-card-bg: #ffffff;
  --tf-text-main: #0f172a;
  --tf-text-body: #334155;
  --tf-text-muted: #64748b;
  --tf-border: #e2e8f0;
  --tf-radius-sm: 8px;
  --tf-radius-md: 14px;
  --tf-radius-lg: 20px;
  --tf-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --tf-shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --tf-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --tf-font-sans: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Isolation & Sécurité de débordement */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.tf-blog-root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--tf-font-sans);
  color: var(--tf-text-main);
  background-color: var(--tf-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.tf-blog-root *,
.tf-blog-root *::before,
.tf-blog-root *::after {
  box-sizing: border-box;
}

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

/* --------------------------------------------------------------------------
   2. CONTENEUR FLUIDE MOBILE-FIRST (< 768px)
   -------------------------------------------------------------------------- */
.tf-container {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

/* Barre de progression de lecture */
#tf-reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #1d5b94 0%, #00d2ff 100%);
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* --------------------------------------------------------------------------
   3. HERO MAGAZINE (Mobile-First < 768px)
   -------------------------------------------------------------------------- */
.tf-hero {
  background: radial-gradient(circle at 90% 10%, #1e293b 0%, #0b1329 100%);
  color: #ffffff;
  padding: 2.25rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.tf-live-dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: tfPulse 2s infinite;
}

@keyframes tfPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.tf-hero-title {
  font-size: clamp(1.85rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  color: #ffffff;
}

.tf-hero-title span {
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tf-hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.tf-search-box {
  position: relative;
  width: 100%;
}

.tf-search-input {
  width: 100%;
  min-height: 48px; /* Target tactile ergonomique */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  border-radius: var(--tf-radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.tf-search-input::placeholder {
  color: #94a3b8;
}

.tf-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.16);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.tf-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.tf-search-shortcut {
  display: none; /* Masqué sur mobile par défaut */
}

/* --------------------------------------------------------------------------
   4. BARRE DE FILTRES HORIZONTALE MOBILE-FIRST (< 768px)
   -------------------------------------------------------------------------- */
.tf-filter-section {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--tf-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.tf-filter-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tf-filter-scroll::-webkit-scrollbar {
  display: none;
}

.tf-filter-btn {
  white-space: nowrap;
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 42px; /* Cible tactile confortable */
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.tf-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tf-filter-btn.active {
  background: var(--tf-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 91, 148, 0.35);
}

.tf-filter-count {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
}

.tf-filter-btn.active .tf-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. BENTO FEATURED SECTION (Mobile-First < 768px : 1 colonne verticale)
   -------------------------------------------------------------------------- */
.tf-featured-section {
  padding: 1.75rem 0 1.25rem;
}

.tf-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.tf-section-title {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 700;
  color: var(--tf-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.tf-section-title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--tf-primary);
  border-radius: 4px;
}

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

.tf-bento-main {
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
  box-shadow: var(--tf-shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tf-bento-main-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e2e8f0;
}

.tf-bento-main-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tf-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(29, 91, 148, 0.1);
  color: var(--tf-primary);
  margin-bottom: 0.65rem;
  width: fit-content;
}

.tf-tag-tech { background: #e0f2fe; color: #0284c7; }
.tf-tag-optique { background: #fef3c7; color: #d97706; }
.tf-tag-video { background: #fce7f3; color: #db2777; }
.tf-tag-guide { background: #dcfce7; color: #16a34a; }
.tf-tag-reportage { background: #f3e8ff; color: #9333ea; }

.tf-bento-main-title {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--tf-text-main);
  margin: 0 0 0.65rem;
}

.tf-bento-main-excerpt {
  color: var(--tf-text-body);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--tf-text-muted);
  margin-top: auto;
}

.tf-bento-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tf-bento-small {
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
  box-shadow: var(--tf-shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.tf-bento-small-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e2e8f0;
}

.tf-bento-small-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}

.tf-bento-small-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tf-text-main);
  margin: 0 0 0.5rem;
}

/* --------------------------------------------------------------------------
   6. GRILLE D'ARTICLES (Mobile-First < 768px : 1 colonne)
   -------------------------------------------------------------------------- */
.tf-articles-section {
  padding: 1.5rem 0 3.5rem;
}

.tf-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tf-card {
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
  box-shadow: var(--tf-shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.tf-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.tf-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-card-badge-float {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.tf-card-readtime-float {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.tf-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tf-card-date {
  font-size: 0.78rem;
  color: var(--tf-text-muted);
  margin-bottom: 0.4rem;
}

.tf-card-title {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--tf-text-main);
  margin: 0 0 0.6rem;
}

.tf-card-excerpt {
  color: var(--tf-text-body);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tf-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tf-text-main);
}

.tf-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.tf-card-link-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tf-primary);
}

/* --------------------------------------------------------------------------
   7. BANNIÈRES D'APPEL À L'ACTION (Mobile-First < 768px)
   -------------------------------------------------------------------------- */
.tf-cta-banner {
  background: linear-gradient(135deg, #0b1329 0%, #1d5b94 100%);
  color: #ffffff;
  border-radius: var(--tf-radius-md);
  padding: 2rem 1.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--tf-shadow-md);
}

.tf-cta-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.tf-cta-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: #ffffff;
}

.tf-cta-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.tf-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.tf-btn-primary,
.tf-btn-whatsapp {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--tf-radius-md);
  text-decoration: none;
  text-align: center;
}

.tf-btn-primary {
  background: #ffffff;
  color: #0b1329;
}

.tf-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. PAGE ARTICLE LECTEUR (Mobile-First < 768px : 1 colonne intégrale)
   -------------------------------------------------------------------------- */
.tf-article-header {
  padding: 2rem 0 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--tf-border);
}

.tf-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--tf-text-muted);
  margin-bottom: 1rem;
}

.tf-breadcrumbs a {
  color: var(--tf-primary);
  text-decoration: none;
}

.tf-article-title {
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tf-text-main);
  margin: 0 0 1rem;
}

.tf-article-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.6;
  color: #475569;
  margin: 0 0 1.25rem;
}

.tf-article-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.tf-author-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tf-author-img-large {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tf-primary);
}

.tf-author-name {
  font-weight: 700;
  color: var(--tf-text-main);
  font-size: 0.95rem;
}

.tf-author-role {
  font-size: 0.78rem;
  color: var(--tf-text-muted);
}

.tf-article-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--tf-text-muted);
}

.tf-article-hero-wrap {
  margin: 1.5rem 0 2rem;
  border-radius: var(--tf-radius-md);
  overflow: hidden;
  box-shadow: var(--tf-shadow-md);
}

.tf-article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.tf-article-hero-caption {
  padding: 0.65rem 1rem;
  background: #ffffff;
  font-size: 0.8rem;
  color: var(--tf-text-muted);
  font-style: italic;
}

/* Grille Article (Mobile-First : 1 seule colonne verticale) */
.tf-article-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.tf-article-content {
  width: 100%;
}

.tf-takeaways {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--tf-radius-sm);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.tf-takeaways-title {
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tf-takeaways-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #14532d;
  font-size: 0.92rem;
  line-height: 1.55;
}

.tf-toc-box {
  background: #f8fafc;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-sm);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.tf-toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tf-text-main);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.tf-toc-item {
  margin-bottom: 0.5rem;
}

.tf-toc-item a {
  color: var(--tf-primary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
}

/* Typographie Prose Fluide */
.tf-prose {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: #334155;
  word-break: break-word;
}

.tf-prose p {
  margin: 0 0 1.4rem;
}

.tf-prose h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 2.2rem 0 1rem;
  border-left: 4px solid var(--tf-primary);
  padding-left: 0.75rem;
}

.tf-prose h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 700;
  color: #1e293b;
  margin: 1.8rem 0 0.85rem;
}

.tf-prose ul, .tf-prose ol {
  margin: 0 0 1.4rem;
  padding-left: 1.4rem;
}

.tf-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #38bdf8;
  background: #f0f9ff;
  border-radius: 0 var(--tf-radius-sm) var(--tf-radius-sm) 0;
  font-style: italic;
  color: #0369a1;
  font-size: 1.05rem;
}

.tf-callout-tip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: var(--tf-radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: #1e40af;
  font-size: 0.95rem;
}

/* Barre de Partage Mobile */
.tf-share-bar {
  padding: 1.5rem 0;
  margin: 2.5rem 0;
  border-top: 1px solid var(--tf-border);
  border-bottom: 1px solid var(--tf-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tf-share-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.tf-share-btn {
  min-height: 44px; /* Tactile */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.tf-share-wa { background: #25d366; }
.tf-share-li { background: #0077b5; }
.tf-share-x { background: #000000; }
.tf-share-copy { background: #475569; }

/* Carte Auteur Mobile */
.tf-author-card {
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  padding: 1.5rem 1.25rem;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.tf-author-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tf-primary);
}

.tf-author-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.tf-author-card-role {
  font-size: 0.82rem;
  color: var(--tf-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tf-author-card-bio {
  font-size: 0.9rem;
  color: var(--tf-text-body);
  line-height: 1.55;
  margin: 0 0 1rem;
}

/* Sidebar en colonne inférieure sur mobile */
.tf-article-sidebar {
  width: 100%;
}

.tf-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.tf-widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.tf-recent-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tf-recent-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.tf-recent-img {
  width: 70px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.tf-recent-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-recent-date {
  font-size: 0.72rem;
  color: var(--tf-text-muted);
}

/* Toast */
#tf-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--tf-shadow-lg);
  z-index: 10000;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

#tf-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   9. BREAKPOINT TABLETTE (768px <= Écran <= 1024px)
   ========================================================================== */
@media (min-width: 768px) {
  .tf-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .tf-hero {
    padding: 3rem 0 2.5rem;
  }

  .tf-search-shortcut {
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
  }

  .tf-search-box {
    max-width: 520px;
  }

  /* Bento 2 colonnes */
  .tf-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .tf-bento-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .tf-bento-small {
    display: grid;
    grid-template-columns: 130px 1fr;
    height: 100%;
  }

  .tf-bento-small-img {
    height: 100%;
    min-height: 130px;
  }

  /* Grille 2 colonnes */
  .tf-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  /* CTA actions horizontales */
  .tf-cta-actions {
    flex-direction: row;
    width: auto;
  }

  .tf-btn-primary,
  .tf-btn-whatsapp {
    width: auto;
  }

  /* Article header */
  .tf-article-meta-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Boutons de partage horizontaux */
  .tf-share-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .tf-share-btns {
    display: flex;
    gap: 0.5rem;
  }

  /* Carte auteur horizontale */
  .tf-author-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 2rem;
  }
}


/* ==========================================================================
   10. BREAKPOINT DESKTOP & GRANDS ÉCRANS (> 1024px)
   ========================================================================== */
@media (min-width: 1025px) {
  .tf-container {
    max-width: 1240px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .tf-hero {
    padding: 3.75rem 0 3.25rem;
  }

  .tf-search-box {
    max-width: 580px;
  }

  /* Bento Asymétrique Grand Écran (1.6fr / 1fr) */
  .tf-bento-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
  }

  .tf-bento-main:hover {
    transform: translateY(-4px);
    box-shadow: var(--tf-shadow-lg);
  }

  .tf-bento-small {
    grid-template-columns: 140px 1fr;
  }

  .tf-bento-small:hover {
    transform: translateY(-3px);
    box-shadow: var(--tf-shadow-md);
  }

  /* Grille 3 Colonnes sur grand écran */
  .tf-articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .tf-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tf-shadow-lg);
  }

  /* Page Article : 2 colonnes avec Sidebar Sticky */
  .tf-article-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
  }

  .tf-article-sidebar {
    position: sticky;
    top: 85px;
    height: fit-content;
  }
}


/* ==========================================================================
   TIMFOCUS 2026 - NAVIGATION MOBILE MODERNE, SIMPLE & ÉPURÉE (< 991px)
   ========================================================================== */
@media (max-width: 991px) {
  /* 1. HEADER BAR STICKY & PROPRE */
  .u-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 !important;
  }

  .u-header .u-sheet-1 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
  }

  /* 2. LOGO TIMFOCUS */
  .u-header .u-image-1 {
    order: 1 !important;
    margin: 0 !important;
    height: 38px !important;
    width: auto !important;
    max-width: 135px !important;
    object-fit: contain !important;
    display: block !important;
    align-self: center !important;
    transition: transform 0.2s ease !important;
  }

  .u-header .u-image-1:active {
    transform: scale(0.97) !important;
  }

  /* 3. BOUTONS SECONDAIRES SUR HEADER */
  /* Masquer le gros bouton WhatsApp texte encombrant */
  .u-header .u-btn-2 {
    display: none !important;
  }

  /* Icône WhatsApp ronde & vive à côté du burger */
  .u-header .u-icon-1 {
    order: 2 !important;
    margin: 0 10px 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background: #25d366 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.28) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 0 !important;
  }

  .u-header .u-icon-1 img {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    margin: auto !important;
    filter: brightness(0) invert(1) !important;
  }

  .u-header .u-icon-1:active {
    transform: scale(0.92) !important;
  }

  /* Bouton contact : discret pill masqué sur petit smartphone */
  .u-header .u-btn-1 {
    order: 3 !important;
    margin: 0 10px 0 0 !important;
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    color: #1d5b94 !important;
    border: 1.5px solid #1d5b94 !important;
    background: #ffffff !important;
    border-radius: 9999px !important;
    min-height: 36px !important;
    line-height: 1.2 !important;
    display: none !important;
  }

  @media (min-width: 540px) and (max-width: 991px) {
    .u-header .u-btn-1 {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
  }

  /* 4. LE BOUTON BURGER (ERGONOMIE TACTILE & LOOK MINIMALISTE) */
  .u-header .u-menu-1 {
    order: 4 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  .u-header .menu-collapse {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .u-header .u-hamburger-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
  }

  .u-header .u-hamburger-link:hover,
  .u-header .u-hamburger-link:active {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    transform: scale(0.96) !important;
  }

  /* Remplacement de l'image burger par 3 barres CSS ultra nettes */
  .u-header .u-hamburger-link img {
    display: none !important;
  }

  .u-header .u-hamburger-link::before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: #1d5b94 !important;
    border-radius: 2px !important;
    box-shadow: 0 -6px 0 0 #1d5b94, 0 6px 0 0 #1d5b94 !important;
    transition: all 0.25s ease !important;
  }

  /* 5. LE TIROIR MOBILE (OFF-CANVAS DRAWER) */
  .u-menu-overlay {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    transition: opacity 0.3s ease !important;
  }

  .u-nav-container-collapse {
    z-index: 99999 !important;
  }

  .u-sidenav {
    width: min(340px, 86vw) !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.16) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .u-sidenav-overflow {
    padding: 20px 18px 24px !important;
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    scrollbar-width: thin !important;
  }

  /* Bouton Fermer (✕) : grand, rond, accessible */
  .u-menu-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 0 16px auto !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0 !important;
    position: relative !important;
  }

  .u-menu-close::before,
  .u-menu-close::after {
    content: '' !important;
    position: absolute !important;
    width: 18px !important;
    height: 2px !important;
    background: #475569 !important;
    border-radius: 2px !important;
    transition: background 0.2s ease !important;
  }

  .u-menu-close::before {
    transform: rotate(45deg) !important;
  }

  .u-menu-close::after {
    transform: rotate(-45deg) !important;
  }

  .u-menu-close:hover,
  .u-menu-close:active {
    background: #fee2e2 !important;
  }

  .u-menu-close:hover::before,
  .u-menu-close:hover::after,
  .u-menu-close:active::before,
  .u-menu-close:active::after {
    background: #ef4444 !important;
  }

  /* 6. LISTE DES LIENS DU MENU */
  .u-popupmenu-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
    border: none !important;
  }

  .u-popupmenu-items .u-nav-item {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  /* Liens principaux */
  .u-popupmenu-items .u-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
  }

  .u-popupmenu-items .u-nav-link:hover,
  .u-popupmenu-items .u-nav-link:focus,
  .u-popupmenu-items .u-nav-link:active {
    background: #f1f5f9 !important;
    color: #1d5b94 !important;
    transform: translateX(3px) !important;
  }

  /* Style actif */
  .u-popupmenu-items .u-nav-link.active,
  .u-popupmenu-items .u-nav-link.u-active-palette-1-base {
    background: #eff6ff !important;
    color: #1d5b94 !important;
    border-color: #bfdbfe !important;
    font-weight: 700 !important;
  }

  /* 7. SOUS-MENU PRESTATIONS (ORGANISÉ & CLAIR) */
  .u-nav-container-collapse .u-nav-popup {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 4px 0 10px 14px !important;
    padding: 8px 10px 8px 14px !important;
    border-left: 2px solid #38bdf8 !important;
    background: #f8fafc !important;
    border-radius: 0 12px 12px 0 !important;
    width: auto !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  }

  .u-nav-container-collapse .u-nav-popup .u-nav-item {
    margin: 0 !important;
  }

  .u-nav-container-collapse .u-nav-popup .u-nav-link {
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 8px 12px !important;
    min-height: 40px !important;
    border-radius: 8px !important;
  }

  .u-nav-container-collapse .u-nav-popup .u-nav-link:hover,
  .u-nav-container-collapse .u-nav-popup .u-nav-link:active {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }

  /* Flèche d'indication pour sous-menu */
  .u-dropdown-icon .u-nav-container-collapse .u-nav-link:first-child:nth-last-child(2)::after {
    content: '▾' !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
    background: none !important;
    margin-left: auto !important;
  }

  /* 8. CARTE CTA CONTACT DANS LE TIROIR MOBILE */
  .tf-drawer-footer {
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .tf-drawer-whatsapp-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 48px !important;
    background: #25d366 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  .tf-drawer-whatsapp-btn:active {
    transform: scale(0.97) !important;
  }

  .tf-drawer-contact-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 44px !important;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
  }

  .tf-drawer-contact-btn:active {
    background: #e2e8f0 !important;
  }

  .tf-drawer-info {
    text-align: center !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    margin-top: 4px !important;
  }
}



/* ==========================================================================
   TIMFOCUS 2026 - ARCHITECTURE FOOTER HAUT DE GAMME & 100% RESPONSIVE
   ========================================================================== */
.tf-footer {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  padding: 3.5rem 0 2.25rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.tf-footer-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
  display: grid !important;
  grid-template-columns: 1.15fr 1.2fr 1.15fr !important;
  gap: 2.5rem !important;
  align-items: start !important;
}

.tf-footer-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
}

/* Colonne 1 : À propos */
.tf-footer-about {
  text-align: left !important;
}

.tf-footer-heading {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 0.4rem 0 !important;
  letter-spacing: -0.01em !important;
}

.tf-footer-desc {
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  max-width: 340px !important;
}

.tf-footer-lang {
  margin-top: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.tf-footer-lang-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #64748b !important;
}

.tf-footer-lang-flags {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.tf-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.tf-lang-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.tf-lang-btn.active {
  background: rgba(2, 132, 199, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

/* Colonne 2 : Centre Marque */
.tf-footer-brand {
  align-items: center !important;
  text-align: center !important;
}

.tf-footer-quicklinks {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 0.25rem !important;
}

.tf-footer-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #f1f5f9 !important;
  text-decoration: none !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  transition: all 0.2s ease !important;
}

.tf-footer-pill:hover {
  background: #1d5b94 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

.tf-footer-logo {
  width: 120px !important;
  height: auto !important;
  max-height: 70px !important;
  object-fit: contain !important;
  margin: 0.4rem auto !important;
  display: block !important;
  filter: drop-shadow(0 4px 12px rgba(2, 132, 199, 0.28)) !important;
  transition: transform 0.2s ease !important;
}

.tf-footer-logo:hover {
  transform: scale(1.05) !important;
}

.tf-footer-copy {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.tf-footer-legal {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.75rem !important;
  color: #64748b !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.tf-footer-legal a {
  color: #64748b !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.tf-footer-legal a:hover {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}

.tf-legal-sep {
  color: #475569 !important;
}

/* Colonne 3 : Contact & Réseaux */
.tf-footer-contact {
  align-items: flex-end !important;
  text-align: right !important;
}

.tf-footer-contact-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
  align-items: flex-end !important;
}

.tf-contact-item {
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.tf-contact-link {
  color: #f1f5f9 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.tf-contact-link:hover {
  color: #38bdf8 !important;
}

.tf-footer-socials {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 0.65rem !important;
}

.tf-social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.tf-social-icon:hover {
  background: #1d5b94 !important;
  border-color: #38bdf8 !important;
  transform: translateY(-3px) scale(1.08) !important;
}

.tf-social-icon img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}

/* ==========================================================================
   VERSION MOBILE (< 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .tf-footer {
    padding: 3rem 0 2.25rem !important;
  }

  .tf-footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 2.25rem !important;
    padding: 0 1.25rem !important;
  }

  .tf-footer-brand {
    order: 1 !important;
    width: 100% !important;
  }

  .tf-footer-contact {
    order: 2 !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .tf-footer-contact-details {
    align-items: center !important;
  }

  .tf-footer-socials {
    justify-content: center !important;
    margin-top: 0.5rem !important;
  }

  .tf-social-icon {
    width: 46px !important;
    height: 46px !important;
  }

  .tf-footer-about {
    order: 3 !important;
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .tf-footer-desc {
    max-width: 100% !important;
    text-align: center !important;
  }

  .tf-footer-lang {
    align-items: center !important;
    margin-top: 0.75rem !important;
  }

  .tf-footer-lang-flags {
    justify-content: center !important;
  }

  .tf-footer-legal {
    margin-top: 0.5rem !important;
  }
}

