/* FICHIER GÉNÉRÉ par build-css.py — NE PAS MODIFIER DIRECTEMENT.
   Modifier les sources (blog-style.css, nav-fixes.css) puis relancer : python build-css.py */

/* ===== source : blog-style.css ===== */
/* ============================================================
   EXCELLENCE TERTIAIRE — BLOG STYLE COMPLET
   Police : Playfair Display (titres) + Inter (corps)
   Palette : navy #1C3557 / gold #C8A96E / cream #FAF8F4
   ============================================================ */

/* Polices auto-hébergées (sous-ensemble latin, fichiers variables Google Fonts
   Inter v20 / Playfair Display v40). Remplacent l'appel à fonts.googleapis.com qui
   bloquait le rendu (~750 ms en mobile) — audit perf du 25/09/2026.
   Les deux fichiers "var" sont préchargés dans le <head> de chaque page. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-display-v40-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
}

/* Polices de repli aux métriques calées sur Inter / Playfair (size-adjust + overrides
   calculés avec fontTools sur Arial / Times New Roman) : le texte ne se redécale
   presque plus quand la vraie police arrive (CLS de 0,101 mesuré avant). */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Arimo'), local('Liberation Sans');
  size-adjust: 107.1%;
  ascent-override: 90.45%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Playfair Display Fallback';
  src: local('Times New Roman'), local('Tinos'), local('Liberation Serif');
  size-adjust: 112.63%;
  ascent-override: 96.07%;
  descent-override: 22.29%;
  line-gap-override: 0%;
}

:root {
  --navy:        #1C3557;
  --navy-light:  #2a4a72;
  --gold:        #C8A96E;
  --gold-light:  #dfc08a;
  --cream:       #FAF8F4;
  --cream-dark:  #F0EDE5;
  --text-main:   #1a1a2e;
  --text-body:   #2c2c3a;
  --text-muted:  #5a5a6a;
  --border:      #e0dbd0;
}

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

body {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.75;
}

/* === NAV === */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
}

.logo img { width: 40px; height: 40px; }

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li { list-style: none; }

/* Taille, casse et couleur du texte du menu : définies une seule fois,
   dans nav-fixes.css, pour rester identiques sur toutes les pages. */

.nav-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #0077b5;
  color: white !important;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
}
.nav-linkedin:hover { background: #005885; }

/* === BLOG HERO === */
.blog-hero {
  background: var(--navy);
  padding: 80px 2rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border: 70px solid rgba(200,169,110,0.07);
  border-radius: 50%;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}

.blog-hero h1 {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.blog-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

.blog-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* === BLOG GRID === */
.blog-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 2rem 80px;
}

.blog-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(28,53,87,0.1);
}

.card-image {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img { transform: scale(1.04); }

.card-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  text-transform: uppercase;
}

.card-content {
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 3px solid transparent;
  transition: border-color 0.25s;
}

.blog-card:hover .card-content { border-left-color: var(--gold); }

.card-content h2 {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.875rem;
}

.card-content h2 a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.card-content h2 a:hover { color: var(--gold); }

.excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

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

.read-more {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.read-more:hover { color: var(--gold); }

/* === ARTICLE HEADER === */
.article-header {
  background: var(--navy);
  padding: 72px 2rem 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}

.article-header-category {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.article-header h1 {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  max-width: 820px;
  margin: 0 auto 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* === ARTICLE BODY === */
.article-editorial {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 1.5rem 80px;
}

.article-editorial .intro {
  font-size: 1.125rem;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-editorial h2 {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy);
  margin: 3rem 0 1rem;
  line-height: 1.3;
}

.article-editorial h3 {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
}

.article-editorial p,
.article-editorial li {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.article-editorial ul,
.article-editorial ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-editorial li { margin-bottom: 0.5rem; }

.article-editorial a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-editorial a:hover { color: var(--gold); }
.article-editorial strong { color: var(--navy); font-weight: 600; }

.article-editorial blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--cream-dark);
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--navy);
}

.box-stats, .box-key, .box-example {
  background: var(--cream-dark);
  border-left: 3px solid var(--navy);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.box-stats-title, .box-key-title, .box-example-title {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.image-wrapper { margin: 2.5rem 0; }
.article-image { width: 100%; display: block; height: auto; }

.cta-box {
  background: var(--navy);
  color: #fff;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3.5rem 0 0;
}

/* Surcharge nécessaire : .article-editorial p force text-body sur tous les <p> */
.cta-box h3,
.cta-box .cta-title,
.article-editorial .cta-box h3,
.article-editorial .cta-box .cta-title {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: 1.5rem;
  color: #fff !important;
  margin-bottom: 1rem;
}

.cta-box p,
.cta-box .cta-text,
.article-editorial .cta-box p,
.article-editorial .cta-box .cta-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85) !important;
  margin-bottom: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button,
.article-editorial .cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 13px 32px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}
.cta-button:hover,
.article-editorial .cta-button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: var(--navy) !important;
}

/* === FOOTER === */
.site-footer {
  background: #1C3557;
  color: rgba(255,255,255,0.65);
  margin-top: 0;
  padding: 0;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 2rem 28px;
}

.footer-sep {
  width: 40px;
  height: 1px;
  background: rgba(200,169,110,0.35);
  margin: 0 auto 32px;
}

.footer-article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.art-nav-link {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.2s, color 0.2s;
  max-width: 260px;
  line-height: 1.4;
}
.art-nav-link:hover { border-color: #C8A96E; color: #C8A96E; }

.art-nav-center {
  color: #C8A96E;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(200,169,110,0.4);
  white-space: nowrap;
  transition: background 0.2s;
}
.art-nav-center:hover { background: rgba(200,169,110,0.1); }

.art-nav-empty { display: block; width: 80px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #C8A96E;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #C8A96E; }

.footer-author-name {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.footer-stat {
  display: inline-block;
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.3);
  color: #C8A96E;
  font-size: 11px;
  padding: 3px 10px;
  margin-top: 10px;
}

.footer-location { margin-top: 10px !important; }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: #C8A96E; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .blog-card { grid-template-columns: 1fr; }
  .card-image { min-height: 220px; }
  .card-content { border-left: none; border-top: 3px solid transparent; }
  .blog-card:hover .card-content { border-top-color: var(--gold); border-left-color: transparent; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .blog-grid { padding: 48px 1rem 60px; }
  .card-content { padding: 1.5rem; }
  .blog-stats { gap: 2rem; }
  .stat-number { font-size: 2.25rem; }
  .article-editorial { padding: 40px 1rem 60px; }
  .cta-box { padding: 2rem 1.5rem; }
  .footer-article-nav { flex-direction: column; align-items: stretch; }
  .art-nav-link { max-width: 100%; }
  .art-nav-empty { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===== source : nav-fixes.css ===== */
/* Scroll offset for fixed header on cross-page anchor navigation */
section[id] {
  scroll-margin-top: 90px;
}

/* ===================================================================
   NAVIGATION MOBILE — VERSION SITE (ULTRA ROBUSTE)
   Excellence Tertiaire
   Objectif :
   - Même comportement sur toutes les pages en SMARTPHONE
   - Aucun impact desktop
   - Icône toujours visible (Unicode, pas de SVG/data-uri)
   =================================================================== */

/* ===================================================================
   COHÉRENCE NAV — Styles partagés toutes pages
   =================================================================== */

.linkedin-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #0077b5;
  color: white !important;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 119, 181, 0.3);
  margin-left: 1rem;
  white-space: nowrap;
}

.linkedin-header-btn:hover {
  background: #005582;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
  color: white !important;
}

.linkedin-header-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Gap réduit pour tenir 7 items sur une ligne.
   Le conteneur du header est plafonné à max-width:1280px, donc l'espace
   disponible ne grandit plus au-delà de cette largeur de viewport : à
   1.25rem, les 7 items dépassaient de ~8px l'espace dispo, forçant
   "Outils" et "À propos" à se replier sur eux-mêmes silencieusement. */
@media (min-width: 769px) {
  .nav-menu {
    gap: 0.875rem !important;
    flex-wrap: nowrap !important;
  }
}

/* Apparence du texte du menu — SEULE source de vérité du site (taille,
   casse, couleur). styles-optimised.css et blog-style.css définissaient
   chacun leur propre version (jusqu'à 4 déclarations concurrentes dans
   styles-optimised.css), ce qui donnait un menu visuellement différent
   entre l'accueil (bleu marine, 0.95rem) et le blog (gris, 0.9375rem).
   Le !important est volontaire : sans lui, une déclaration ajoutée plus
   tard dans une des feuilles de base regagnerait silencieusement la main
   sur une seule page, reproduisant le même bug. */
.nav-menu a {
  text-transform: uppercase !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  color: #1e3a8a !important;
  text-decoration: none !important;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: color 0.3s ease;
}

/* Aucun lien du menu ne doit se replier sur lui-même (ex. "Outils",
   "À propos") — un repli silencieux est plus difficile à détecter qu'un
   dépassement visible. */
.nav-menu a {
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #8a6a00 !important; /* or plus profond, contraste AA sur fond blanc */
}

/* ===================================================================
   DROPDOWN "OUTILS" — Desktop
   =================================================================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: " ▾" !important;
  font-size: 0.65em;
  opacity: 0.5;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  min-width: 240px;
  padding: 0.6rem 0;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(30, 58, 138, 0.08);
  border-top: 2px solid #b8882a;
  z-index: 1000;
  list-style: none;
  text-align: center;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.4rem;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase !important;
  color: #1e3a5f !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(30, 58, 138, 0.04);
  color: #b8882a !important;
}

/* Desktop / défaut : on cache le bouton mobile */
.mobile-menu-toggle {
  display: none;
}

/* ===================================================================
   MOBILE (max-width: 768px)
   =================================================================== */
@media (max-width: 768px) {

  /* Masque uniquement le texte du logo (évite la superposition) */
  .logo-text {
    display: none !important;
  }

  /* Conteneur navigation : hamburger à gauche */
  .nav-container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    background: #ffffff;
    position: relative !important;
  }

  /* Bouton menu : carré premium */
  .mobile-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(30, 58, 138, 0.08) !important;
    border: 1px solid rgba(30, 58, 138, 0.25) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1001 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* On neutralise les spans (si présents) */
  .mobile-menu-toggle span {
    display: none !important;
  }

  /* Icône menu : chevron bas (ultra compatible) */
  .mobile-menu-toggle::after {
    content: "▾";
    font-size: 26px;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1;
    transform: translateY(-2px);
    transition: transform 0.25s ease;
  }

  /* Menu ouvert : chevron haut */
  .mobile-menu-toggle.active::after {
    transform: rotate(180deg) translateY(2px);
  }

  /* Menu overlay (glisse depuis la droite) */
  .nav-menu {
    position: fixed !important;
    top: 70px !important;
    right: -100% !important;
    width: 70% !important;
    max-width: 300px !important;
    height: calc(100vh - 70px) !important;
    background: #ffffff !important;
    padding: 2rem 1.5rem !important;
    box-shadow: -2px 0 14px rgba(0, 0, 0, 0.12) !important;
    transition: right 0.3s ease !important;
    z-index: 999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
  }

  .nav-menu.active {
    right: 0 !important;
  }

  .nav-menu li {
    width: 100% !important;
  }

  .nav-menu a {
    font-size: 1.1rem !important;
    padding: 0.75rem 0 !important;
    display: block !important;
  }

  .nav-dropdown > a::after {
    content: none !important;
  }

  .dropdown-menu {
    display: block !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-top: none !important;
    background: transparent !important;
    padding: 0.25rem 0 0 1.2rem !important;
    min-width: auto !important;
    text-align: left !important;
    border-radius: 0 !important;
  }

  .dropdown-menu a {
    font-size: 0.95rem !important;
    padding: 0.4rem 0 !important;
    color: #1e3a5f !important;
    text-align: left !important;
  }

  .linkedin-header-btn {
    display: none !important;
  }
}

/* Très petit mobile */
@media (max-width: 480px) {
  .nav-menu {
    width: 80% !important;
  }
}

/* ===================================================================
   SECTION OUTILS — Données terrain + stat cards
   =================================================================== */
.outils-section {
  background: linear-gradient(135deg, #0f1b2d 0%, #1e3a5f 100%);
  color: #ffffff;
  padding: 4rem 0;
}

.outils-section .section-subtitle {
  color: #b8882a;
}

.outils-section .section-title {
  color: #ffffff;
}

.outils-section .section-description {
  color: rgba(255, 255, 255, 0.75);
}

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 136, 42, 0.4);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #b8882a;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.stat-source {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.outils-cta-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.outils-cta-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outils-primary {
  background: #b8882a;
  color: #0f1f4a; /* Navy foncé (contraste AA sur fond doré) */
  border: 2px solid #b8882a;
}

.btn-outils-primary:hover {
  background: #a07624;
}

.btn-outils-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outils-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stat-cards-grid {
    grid-template-columns: 1fr;
  }

  .outils-cta-row {
    flex-direction: column;
    align-items: center;
  }
}

/* ===================================================================
   SECTION OUTILS — Mini radar preview (index.html)
   =================================================================== */
.outils-radar-preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0.5rem;
}

.outils-radar-svg {
  width: 110px;
  height: 96px;
  flex-shrink: 0;
}

.outils-radar-text { text-align: left; }

.outils-radar-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #b8882a;
  margin: 0 0 0.35rem;
}

.outils-radar-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .outils-radar-preview {
    flex-direction: column;
    text-align: center;
  }
  .outils-radar-text { text-align: center; }
}

/* ===================================================================
   BAROMÈTRE — Figures SVG inline (barometre-environnements-travail.html)
   Les SVG sont générés par barometre-et/visuels/generate.mjs (viewBox 800
   de large). Sous 640px, la figure garde une largeur minimale lisible et
   défile dans son propre conteneur : la page elle-même ne défile jamais
   horizontalement.
   =================================================================== */
.baro-figure {
  margin: 2.25rem 0 2.5rem;
}
.baro-figure-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.baro-figure-scroll:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.baro-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.baro-figure figcaption {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.article-editorial .cta-box .baro-cta-secondary {
  margin: 1.25rem auto 0;
  font-size: 0.9375rem;
}
.article-editorial .cta-box .baro-cta-secondary a {
  color: #fff;
  text-decoration-color: var(--gold);
}
.article-editorial .cta-box .baro-cta-secondary a:hover { color: var(--gold-light); }
@media (max-width: 640px) {
  .baro-figure svg { min-width: 600px; }
  .baro-figure figcaption::before {
    content: "Faire défiler horizontalement pour lire le graphique. ";
  }
}

/* ===================================================================
   HEADER ENTRE 769 ET 999px (tablettes, petits écrans) — toutes les pages
   Le menu desktop (7 liens en nowrap) + le logo + le bouton LinkedIn ne
   tenaient pas : la page défilait horizontalement (+137px à 769px sur les
   articles, +407px sur l'accueil). Mesuré le 25/09/2026. Dans cette plage :
   bouton LinkedIn réduit à l'icône, texte du logo masqué (comme en mobile),
   espacements et taille des liens resserrés. Au-delà de 999px, rien ne change
   ici (l'accueil a ses propres paliers dans accueil-fixes.css).
   Après tout ajout au menu, vérifier à 769px (voir CLAUDE.md).
   =================================================================== */
@media (min-width: 769px) and (max-width: 999.98px) {
  .linkedin-header-btn span {
    display: none !important;
  }

  /* font-size 0 : masque aussi le libellé quand il n'est pas dans un <span>
     (articles : texte "LinkedIn" nu). L'icône a une taille fixe en px. */
  .linkedin-header-btn {
    padding: 8px !important;
    font-size: 0 !important;
    gap: 0 !important;
  }

  .logo-text {
    display: none !important;
  }

  .nav-container {
    gap: 1rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .site-header {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .nav-menu {
    gap: 0.5rem !important;
  }

  .nav-menu a {
    font-size: 0.8125rem !important;
    letter-spacing: 0 !important;
  }
}
