/* ================================
   MICHELOT JC — CSS PRINCIPAL
   Version 1.0
================================ */

/* --- Variables --- */
:root {
  --blue: #0063ba;
  --blue-dark: #004d8f;
  --orange: #e9880d;
  --orange-light: #faeeda;
  --grey: #6080a3;
  --dark: #1a1a2e;
  --dark-soft: #2d2d44;
  --light: #f5f6f8;
  --white: #ffffff;
  --text: #2c2c3e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --max-width: 1100px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.brand-tagline {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.3px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-list a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-list a:hover { background: var(--light); color: var(--blue); }
.nav-cta a {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: var(--radius);
}
.nav-cta a:hover { background: var(--blue-dark) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- LAYOUT PRINCIPAL --- */
.site-content-wrap { min-height: 60vh; }

/* Override: pages avec layout custom ne doivent pas heriter du grid site-main */
.single-main,
.apropos-main,
.blog-main,
.contact-main,
.home-main,
.pub-archive,
.proj-archive,
.mjc-archive,
.mjc-single {
  display: block !important;
  max-width: none !important;
  padding: 0 !important;
}
.site-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.content-area { min-width: 0; }

/* --- PAGE HEADER --- */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--light);
}
.page-title {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--grey);
  font-size: 15px;
}

/* --- CARDS ARTICLES --- */
.posts-grid { display: flex; flex-direction: column; gap: 32px; }
.post-card {
  border-left: 4px solid var(--orange);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.post-thumbnail img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.post-card-body { padding: 24px; }
.post-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.post-category a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--orange);
  background: var(--orange-light);
  padding: 3px 10px;
  border-radius: 20px;
}
.post-date {
  font-size: 12px;
  color: var(--text-muted);
}
.post-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-title a { color: var(--dark); }
.post-title a:hover { color: var(--blue); }
.post-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.read-more:hover { color: var(--orange); }

/* --- ARTICLE SINGLE --- */
.single-post { max-width: 720px; }
.entry-header { margin-bottom: 32px; }
.entry-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.entry-category a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-light);
  padding: 3px 10px;
  border-radius: 20px;
}
.entry-date, .entry-read-time {
  font-size: 13px;
  color: var(--text-muted);
}
.entry-title {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.25;
  color: var(--dark);
}
.entry-thumbnail {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.entry-content {
  font-size: 16px;
  line-height: 1.8;
}
.entry-content h2, .entry-content h3 {
  font-family: var(--font-serif);
  color: var(--dark);
  margin: 32px 0 16px;
}
.entry-content p { margin-bottom: 20px; }
.entry-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  background: var(--orange-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 24px 0;
}
.entry-content ul,
.entry-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
  list-style: disc;
}
.entry-tags {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.tags-label { font-weight: 600; }

/* --- SIDEBAR --- */
.widget-area { position: sticky; top: 90px; height: fit-content; }
.widget {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--grey);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.widget-bio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}
.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.widget ul li:last-child { border-bottom: none; }
.widget-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  color: var(--blue);
  padding: 8px 0;
}
.widget-links a:hover { color: var(--orange); }

/* --- PAGE A PROPOS (refonte) --- */
.apropos-main { padding: 0; }

/* Progress bar */
.apropos-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Section nav */
.apropos-nav {
  position: sticky;
  top: 70px;
  z-index: 95;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.apropos-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.apropos-nav-inner {
  display: flex;
  gap: 4px;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.apropos-nav-inner::-webkit-scrollbar { display: none; }
.apropos-nav-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.apropos-nav-link:hover {
  color: var(--blue);
  background: var(--light);
}
.apropos-nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--orange);
}

/* Hero */
.apropos-hero {
  padding: 64px 0 56px;
  scroll-margin-top: 120px;
  border-bottom: 1px solid var(--border);
}
.apropos-hero-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: center;
}
.apropos-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--orange);
  animation: fadeIn 1s ease both;
}
.apropos-intro { animation: fadeInUp 0.8s ease 0.2s both; }
.apropos-intro h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.15;
}
.apropos-subtitle {
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 20px;
}
.apropos-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Scroll offset for sticky header+nav */
.apropos-bio,
.apropos-expertise,
.apropos-formation,
.apropos-projets,
.apropos-experiences,
.apropos-cta {
  scroll-margin-top: 130px;
}

/* Bio grid */
.apropos-bio { padding: 64px 0; }
.apropos-bio h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.apropos-bio-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
.apropos-bio-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.apropos-bio-text p { margin-bottom: 20px; }
.apropos-bio-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 90px;
}
.bio-fact {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bio-fact:last-child { border-bottom: none; }
.bio-fact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey);
}
.bio-fact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}
.bio-fact-value a { color: var(--blue); font-weight: 600; }

/* Expertise */
.apropos-expertise { padding: 64px 0; background: var(--light); }
.apropos-expertise h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.apropos-expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.apropos-exp-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.apropos-exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.apropos-exp-card:hover::before { transform: scaleX(1); }
.apropos-exp-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.apropos-exp-icon { font-size: 28px; }
.apropos-exp-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.apropos-exp-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Timeline formation */
.apropos-formation { padding: 64px 0; }
.apropos-formation h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.apropos-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
}
.apropos-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding: 0 0 32px 0;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--white);
  z-index: 1;
}
.tl-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 4px;
}
.tl-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
}
.tl-org {
  font-size: 14px;
  color: var(--grey);
  font-style: italic;
  margin-bottom: 6px;
}
.tl-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Projets */
.apropos-projets { padding: 64px 0; background: var(--light); }
.apropos-projets h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.apropos-projets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.apropos-projet-card {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease;
}
.apropos-projet-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.apropos-projet-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  margin-top: 5px;
}
.apropos-projet-body { display: flex; flex-direction: column; gap: 4px; }
.apropos-projet-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.apropos-projet-body h3 a { color: inherit; }
.apropos-projet-body h3 a:hover { color: var(--blue); }
.apropos-projet-periode {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}
.apropos-projet-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.apropos-projet-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 4px;
}

/* Experiences */
.apropos-experiences { padding: 64px 0; }
.apropos-experiences h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.apropos-exp-list {
  display: flex;
  flex-direction: column;
}
.apropos-exp-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.apropos-exp-row:last-child { border-bottom: none; }
.apropos-exp-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.apropos-exp-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.apropos-exp-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
}
.apropos-exp-badge.badge-actif { background: #d1fae5; color: #065f46; }
.apropos-exp-badge.badge-complete { background: var(--light); color: var(--text-muted); }
.apropos-exp-right h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
}
.apropos-exp-org {
  font-size: 13px;
  color: var(--grey);
  font-style: italic;
  margin-bottom: 8px;
}
.apropos-exp-org a { color: var(--blue); font-style: normal; font-weight: 600; }
.apropos-exp-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA */
.apropos-cta {
  background: var(--blue);
  padding: 56px 0;
  text-align: center;
}
.apropos-cta h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}
.apropos-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}
.apropos-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Responsive apropos */
@media (max-width: 768px) {
  .apropos-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .apropos-photo { display: flex; justify-content: center; }
  .apropos-ctas { justify-content: center; }
  .apropos-bio-grid { grid-template-columns: 1fr; }
  .apropos-bio-aside { position: static; }
  .apropos-expertise-grid { grid-template-columns: 1fr; }
  .apropos-projets-grid { grid-template-columns: 1fr; }
  .apropos-exp-row { grid-template-columns: 1fr; gap: 8px; }
  .apropos-exp-left { flex-direction: row; align-items: center; gap: 10px; }
  .apropos-intro h1 { font-size: 28px; }
  .apropos-cta-btns { flex-direction: column; align-items: center; }
  .apropos-nav { top: 60px; }
  .apropos-nav-link { font-size: 11px; padding: 10px 12px; }
  .apropos-bio, .apropos-expertise, .apropos-formation,
  .apropos-projets, .apropos-experiences, .apropos-cta {
    scroll-margin-top: 110px;
  }
}

/* --- BOUTONS --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-secondary { background: var(--orange); color: var(--white); }
.btn-secondary:hover { background: #c9740a; color: var(--white); }
.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* --- SECTIONS A PROPOS --- */
.bio-section, .expertise-section, .projets-actifs { margin-bottom: 56px; }
.bio-section h2, .expertise-section h2, .projets-actifs h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.bio-content { font-size: 16px; line-height: 1.8; }
.bio-content p { margin-bottom: 20px; }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.expertise-card {
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
}
.expertise-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.expertise-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.expertise-card p { font-size: 14px; color: var(--text-muted); }
.projets-list { display: flex; flex-direction: column; gap: 16px; }
.projet-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--light);
  border-radius: var(--radius);
}
.projet-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.projet-dot.active { background: #10b981; }
.projet-info { display: flex; flex-direction: column; gap: 4px; }
.projet-info strong { font-size: 15px; color: var(--dark); }
.projet-info span { font-size: 13px; color: var(--text-muted); }

/* --- FOOTER --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 56px 24px 40px;
}
.footer-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-social a {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
}
.footer-links ul li, .footer-ecosystem ul li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links a, .footer-ecosystem a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-links a:hover, .footer-ecosystem a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.5); }

/* --- PAGINATION --- */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid var(--border);
  color: var(--blue);
}
.pagination .current { background: var(--blue); color: var(--white); }

/* --- POST NAVIGATION --- */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.nav-previous a, .nav-next a {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}
.nav-next { text-align: right; }

/* --- ARTICLES RECENTS (single) --- */
.related-posts { margin-top: 48px; }
.related-posts h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--dark);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card a {
  display: block;
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
}
.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

/* --- 404 --- */
.error-404 {
  text-align: center;
  padding: 80px 24px;
}
.error-404 h1 {
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--blue);
  line-height: 1;
}

/* --- NO POSTS --- */
.no-posts {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .site-main {
    grid-template-columns: 1fr;
    padding: 32px 16px;
  }
  .widget-area { position: static; }
  .nav-list { display: none; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white); padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-list.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-apropos { grid-template-columns: 1fr; text-align: center; }
  .hero-avatar { display: flex; justify-content: center; }
  .expertise-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .hero-ctas { justify-content: center; }
  .entry-title { font-size: 26px; }
  .page-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 15px; }
  .header-inner { height: 60px; }
  .hero-intro h1 { font-size: 28px; }
}

/* (ancien timeline supprime — remplace par apropos-timeline) */

/* --- PUBLICATIONS --- */
.page-publications .content-area { max-width: 800px; }
.page-publications .site-main { display: block; padding: 48px 24px; }
.pub-section { margin-bottom: 48px; }
.pub-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.pub-list { display: flex; flex-direction: column; gap: 0; }
.pub-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:last-child { border-bottom: none; }
.pub-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  padding-top: 3px;
}
.pub-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.pub-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pub-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.pub-link:hover { color: var(--orange); }
.pub-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--orange-light);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* --- AVATAR PLACEHOLDER --- */
.avatar-placeholder {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  border: 4px solid var(--orange);
}

@media (max-width: 768px) {
  .pub-item { grid-template-columns: 50px 1fr; gap: 12px; }
  .projets-showcase { grid-template-columns: 1fr; }
}

/* --- PHOTO DE PROFIL --- */
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--orange);
  display: block;
}
.widget-bio .profile-photo {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
}

/* --- PAGE PROJETS V2 --- */
.page-projets .site-main { display: block; padding: 48px 24px; }
.projets-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.projet-card-v2 {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.projet-card-v2:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.projet-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.projet-card-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--dark);
  margin: 0;
}
.projet-status-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.projet-status-badge.active {
  background: #dcfce7;
  color: #166534;
}
.projet-card-v2 > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.projet-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.projet-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
}
.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

/* --- PAGE PROJETS (contenu WP) --- */
.projets-page {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
}
.projet-full {
  padding: 32px;
  background: var(--light);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
}
.projet-full h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}
.projet-statut {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.projet-statut.actif { color: #10b981; }
.projet-statut.encours { color: var(--orange); }
.projet-full p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

/* --- PAGE CONTACT --- */
.contact-page { max-width: 700px; }
.contact-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--light);
  padding: 24px;
  border-radius: var(--radius);
  border-top: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey);
}
.contact-card a {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}
.contact-card a:hover { color: var(--orange); }
.contact-note {
  font-size: 12px;
  color: var(--text-muted);
}
.contact-note-bas {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .projets-page { gap: 24px; }
  .projet-full { padding: 20px; }
}

/* ==============================
   PAGE D'ACCUEIL
============================== */
.home-main { padding: 0; }

/* Hero */
.home-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}
.hero-photo-round {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--orange);
  display: block;
  margin: 0 auto;
}
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-blue {
  background: #e6f1fb;
  color: #0c447c;
}
.badge-grey {
  background: var(--light);
  color: var(--grey);
  border: 1px solid var(--border);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 6px;
}
.hero-tagline {
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.hero-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats */
.home-stats {
  padding: 32px 0;
  background: var(--dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* Section headers */
.home-articles,
.home-publications,
.home-projets {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark);
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.section-link:hover { color: var(--orange); }

/* Articles v2 — Featured + side layout */
.articles-v2-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Featured article (left) */
.article-featured {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.article-featured:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.article-featured-img {
  position: relative;
  overflow: hidden;
}
.article-featured-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.article-featured:hover .article-featured-img img {
  transform: scale(1.03);
}
.article-featured-placeholder {
  display: block;
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--light) 0%, #e2e6ea 100%);
}
.article-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}
.article-overlay-cat,
.article-overlay-cat a {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-featured-body {
  padding: 24px;
}
.article-featured-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.article-featured-title a {
  color: var(--dark);
  transition: color var(--transition);
}
.article-featured-title a:hover { color: var(--blue); }
.article-featured-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-v2-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.2px;
  transition: color var(--transition);
}
.article-v2-cta:hover { color: var(--orange); }

/* Shared meta */
.article-v2-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.article-v2-date {
  font-size: 12px;
  color: var(--text-muted);
}
.article-v2-dot {
  font-size: 10px;
  color: var(--border);
}
.article-v2-read {
  font-size: 12px;
  color: var(--text-muted);
}

/* Side articles (right column) */
.articles-v2-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-compact {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.article-compact:first-child { padding-top: 0; }
.article-compact:last-child { border-bottom: none; }
.article-compact:hover { background: var(--light); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--radius); }
.article-compact-img img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.article-compact-placeholder {
  display: block;
  width: 88px;
  height: 72px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--light) 0%, #e2e6ea 100%);
}
.article-compact-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.article-compact-cat,
.article-compact-cat a {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--orange);
  margin-bottom: 4px;
}
.article-compact-title {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.article-compact-title a {
  color: var(--dark);
  transition: color var(--transition);
}
.article-compact-title a:hover { color: var(--blue); }

/* Placeholder */
.articles-placeholder {
  text-align: center;
  padding: 48px;
  background: var(--light);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.articles-placeholder-sub {
  font-size: 13px;
  margin-top: 8px;
  font-style: italic;
}

/* Publications home */
.pubs-home-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pub-home-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.pub-home-item:last-child { border-bottom: none; }
.pub-home-year {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: #e6f1fb;
  padding: 3px 6px;
  border-radius: 3px;
  text-align: center;
  display: block;
  margin-top: 2px;
}
.pub-home-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 4px;
}
.pub-home-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pub-home-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.pub-home-link:hover { color: var(--orange); }

/* Projets grid home */
.projets-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.projet-home-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
  text-decoration: none;
  transition: transform var(--transition);
}
.projet-home-card:hover { transform: translateY(-2px); }
.projet-dot-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-bottom: 4px;
}
.projet-dot-encours {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-bottom: 4px;
}
.projet-home-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.projet-home-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* CTA Band */
.home-cta-band {
  background: var(--blue);
  padding: 48px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band-text h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}
.cta-band-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-white {
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition);
}
.btn-white:hover { background: var(--light); color: var(--blue); }
.btn-orange {
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition);
}
.btn-orange:hover { background: #c9740a; }

/* --- SECTION EXPERIENCES --- */
.home-experiences {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.experiences-section {
  margin-bottom: 56px;
}
.experiences-section h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; }
.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}
.exp-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.exp-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
}
.exp-status.actif {
  background: #d1fae5;
  color: #065f46;
}
.exp-status.passe {
  background: var(--light);
  color: var(--text-muted);
}
.exp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.exp-org {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 8px;
  font-style: italic;
}
.exp-org a {
  color: var(--blue);
  font-style: normal;
  font-weight: 600;
}
.exp-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Responsive home */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .hero-photo-round { margin: 0 auto; }
  .hero-badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-bio { margin: 0 auto 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1); }
  .articles-v2-layout { grid-template-columns: 1fr; }
  .article-featured-img img { height: 220px; }
  .article-compact { grid-template-columns: 80px 1fr; }
  .projets-home-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { justify-content: center; }
  .hero-title { font-size: 30px; }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .exp-meta {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .projets-home-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
}

/* ==============================
   CPTs MJC — STYLES
============================== */
.mjc-archive { padding: 48px 24px; }
.archive-head { margin-bottom: 48px; padding-bottom: 24px; border-bottom: 2px solid var(--border); }
.archive-title { font-family: var(--font-serif); font-size: 40px; color: var(--dark); margin-bottom: 8px; }
.archive-desc { font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.6; }
.mjc-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.mjc-card { border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); background: var(--white); }
.mjc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.mjc-card-logo { height: 120px; background: var(--light); display: flex; align-items: center; justify-content: center; padding: 20px; }
.mjc-card-logo img { max-height: 80px; max-width: 160px; object-fit: contain; }
.mjc-card-body { padding: 20px; }
.mjc-card-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.mjc-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--grey); background: var(--light); padding: 2px 8px; border-radius: 10px; }
.mjc-card-periode { font-size: 11px; color: var(--text-muted); }
.mjc-card-title { font-family: var(--font-serif); font-size: 18px; line-height: 1.3; margin-bottom: 10px; color: var(--dark); }
.mjc-card-title a { color: inherit; }
.mjc-card-title a:hover { color: var(--blue); }
.mjc-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.mjc-card-actions { display: flex; gap: 8px; }
.mjc-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.badge-actif { background: #d1fae5; color: #065f46; }
.badge-encours { background: #fef3c7; color: #92400e; }
.badge-complete { background: var(--light); color: var(--grey); }
.badge-preparation { background: #ede9fe; color: #5b21b6; }
.badge-default { background: var(--light); color: var(--grey); }
.mjc-single { padding: 48px 24px; max-width: 860px; }
.mjc-single-hero { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.mjc-single-hero.pub-hero { max-width: 720px; }
.mjc-single-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.mjc-meta-item { font-size: 12px; color: var(--text-muted); background: var(--light); padding: 3px 10px; border-radius: 10px; }
.mjc-meta-cat { font-weight: 600; color: var(--blue); background: #e6f1fb; }
.mjc-single-title { font-family: var(--font-serif); font-size: 36px; line-height: 1.2; color: var(--dark); margin-bottom: 12px; }
.mjc-single-org { font-size: 16px; color: var(--grey); margin-bottom: 16px; font-style: italic; }
.mjc-single-org a { color: var(--blue); font-style: normal; }
.mjc-single-partenaires { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.mjc-single-logo { float: right; margin: 0 0 20px 32px; max-width: 200px; }
.mjc-single-logo img { max-width: 100%; }
.mjc-single-content { font-size: 16px; line-height: 1.8; margin-bottom: 40px; }
.mjc-single-content p { margin-bottom: 16px; }
.mjc-section-media { margin-bottom: 48px; }
.mjc-section-title { font-family: var(--font-serif); font-size: 22px; color: var(--dark); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }
.mjc-galerie { display: grid; gap: 12px; }
.mjc-galerie-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mjc-galerie-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mjc-galerie-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); transition: opacity var(--transition); }
.mjc-galerie-item:hover img { opacity: 0.85; }
.mjc-videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.video-embed-wrap { margin-bottom: 8px; }
.video-embed-ratio { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: var(--dark); }
.video-embed-ratio iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-titre { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-style: italic; }
.pub-section-groupe { margin-bottom: 56px; }
.pub-groupe-title { font-family: var(--font-serif); font-size: 24px; color: var(--dark); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }
.pub-liste { display: flex; flex-direction: column; }
.pub-item-card { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 16px 0; border-bottom: 0.5px solid var(--border); }
.pub-item-card:last-child { border-bottom: none; }
.pub-item-left { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pub-annee-badge { font-size: 12px; font-weight: 700; color: var(--blue); background: #e6f1fb; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.pub-type-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--orange); background: var(--orange-light); padding: 3px 10px; border-radius: 10px; }
.pub-direction-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: #5b21b6; background: #ede9fe; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-bottom: 6px; }
.pub-item-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--dark); margin-bottom: 4px; }
.pub-item-title a { color: inherit; }
.pub-item-title a:hover { color: var(--blue); }
.pub-auteurs { font-size: 13px; color: var(--text-muted); margin-bottom: 3px; }
.pub-editeur { font-size: 13px; color: var(--grey); margin-bottom: 8px; }
.pub-doi-link { font-size: 12px; font-weight: 600; color: var(--blue); }
.pub-doi-link:hover { color: var(--orange); }
.pub-single-auteurs { font-size: 15px; color: var(--text-muted); margin-bottom: 4px; }
.pub-single-editeur { font-size: 15px; color: var(--grey); margin-bottom: 20px; }
.mjc-resume-section { margin-bottom: 40px; }
.mjc-resume-content { background: var(--light); border-left: 4px solid var(--blue); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; line-height: 1.7; color: var(--text); }
.exp-section-groupe { margin-bottom: 56px; }
.exp-groupe-title { font-family: var(--font-serif); font-size: 24px; color: var(--dark); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }
.exp-liste { display: flex; flex-direction: column; }
.exp-item-card { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 0.5px solid var(--border); }
.exp-item-card:last-child { border-bottom: none; }
.exp-item-left { display: flex; flex-direction: column; gap: 8px; }
.exp-item-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.exp-item-org { font-size: 13px; color: var(--grey); font-style: italic; margin-bottom: 8px; }
.exp-item-org a { color: var(--blue); font-style: normal; font-weight: 600; }
.exp-item-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.mjc-lire-plus { font-size: 12px; font-weight: 600; color: var(--blue); }
.mjc-lire-plus:hover { color: var(--orange); }
.mjc-single-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.mjc-empty { text-align: center; padding: 48px; color: var(--text-muted); font-style: italic; }

@media (max-width: 768px) {
  .mjc-cards-grid { grid-template-columns: 1fr; }
  .pub-item-card { grid-template-columns: 60px 1fr; gap: 10px; }
  .exp-item-card { grid-template-columns: 1fr; gap: 8px; }
  .exp-item-left { flex-direction: row; align-items: center; gap: 10px; }
  .mjc-galerie-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .mjc-single-logo { float: none; margin: 0 0 20px 0; max-width: 160px; }
  .mjc-single-title { font-size: 26px; }
  .archive-title { font-size: 28px; }
  .mjc-videos-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mjc-galerie-cols-3, .mjc-galerie-cols-2 { grid-template-columns: 1fr; }
}

/* ==============================
   CARROUSEL PUBLICATIONS
============================== */
.pub-carousel-wrap {
  overflow: hidden;
  position: relative;
  margin: 0 -4px;
}
.pub-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 4px;
}
.pub-slide {
  flex: 0 0 calc(33.333% - 14px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  min-height: 200px;
}
.pub-slide:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.pub-slide-top {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pub-slide-year {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: #e6f1fb;
  padding: 3px 8px;
  border-radius: 4px;
}
.pub-slide-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--orange);
  background: var(--orange-light);
  padding: 2px 8px;
  border-radius: 10px;
}
.pub-slide-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 10px;
}
.pub-slide-title {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.35;
  color: var(--dark);
  flex: 1;
}
.pub-slide-title a { color: inherit; }
.pub-slide-title a:hover { color: var(--blue); }
.pub-slide-editeur {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}
.pub-slide-actions {
  display: flex;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.pub-slide-link,
.pub-slide-detail {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.pub-slide-link:hover,
.pub-slide-detail:hover { color: var(--orange); }
.pub-slide-detail { color: var(--text-muted); }

/* Nav arrows */
.carousel-nav {
  display: flex;
  gap: 8px;
}
.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.carousel-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  background: var(--light);
}
.carousel-btn:disabled:hover {
  background: var(--light);
  color: var(--dark);
  border-color: var(--border);
}

/* Footer */
.pub-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}
.carousel-dots {
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-dot.active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}

/* Responsive carousel */
@media (max-width: 768px) {
  .pub-slide { flex: 0 0 calc(50% - 10px); min-height: 180px; }
  .pub-carousel-footer { flex-direction: column; gap: 20px; }
}
@media (max-width: 480px) {
  .pub-slide { flex: 0 0 calc(100% - 8px); }
  .pub-slide-title { font-size: 15px; }
}

/* ==============================
   CARROUSEL PROJETS
============================== */
.proj-carousel-wrap {
  overflow: hidden;
  position: relative;
  margin: 0 -4px;
}
.proj-carousel {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 4px;
}
.proj-slide {
  flex: 0 0 calc(33.333% - 14px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  min-height: 220px;
}
.proj-slide:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.proj-slide-top {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.proj-slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.proj-slide-dot.dot-actif { background: #10b981; }
.proj-slide-dot.dot-encours { background: var(--orange); }
.proj-slide-statut {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 10px;
}
.proj-slide-statut.statut-actif { background: #d1fae5; color: #065f46; }
.proj-slide-statut.statut-encours { background: #fef3c7; color: #92400e; }
.proj-slide-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--grey);
  background: var(--light);
  padding: 2px 8px;
  border-radius: 10px;
}
.proj-slide-title {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.3;
  color: var(--dark);
}
.proj-slide-title a { color: inherit; }
.proj-slide-title a:hover { color: var(--blue); }
.proj-slide-periode {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.proj-slide-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.proj-slide-actions {
  display: flex;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.proj-slide-link,
.proj-slide-detail {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.proj-slide-link:hover,
.proj-slide-detail:hover { color: var(--orange); }
.proj-slide-detail { color: var(--text-muted); }
.proj-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .proj-slide { flex: 0 0 calc(50% - 10px); min-height: 200px; }
  .proj-carousel-footer { flex-direction: column; gap: 20px; }
}
@media (max-width: 480px) {
  .proj-slide { flex: 0 0 calc(100% - 8px); }
}

/* ==============================
   ANIMATIONS AU SCROLL
============================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.anim-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-item:nth-child(2) { transition-delay: 0.1s; }
.anim-item:nth-child(3) { transition-delay: 0.2s; }
.anim-item:nth-child(4) { transition-delay: 0.3s; }

/* Hero entrance */
.home-hero .hero-content {
  animation: fadeInUp 0.8s ease 0.2s both;
}
.home-hero .hero-photo-wrap {
  animation: fadeIn 1s ease 0s both;
}

/* ==============================
   SCROLL INDICATOR
============================== */
.scroll-indicator {
  text-align: center;
  padding: 20px 0 0;
}
.scroll-arrow {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--grey);
  border-bottom: 2px solid var(--grey);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
  opacity: 0.4;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.8; }
}

/* ==============================
   SECTION CE QUE JE FAIS
============================== */
.home-services {
  padding: 64px 0;
  background: var(--light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.service-icon {
  font-size: 32px;
  line-height: 1;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--dark);
  margin: 0;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  align-self: flex-start;
  transition: color var(--transition);
}
.service-link:hover { color: var(--orange); }

/* ==============================
   SCROLL TO TOP
============================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,99,186,0.3);
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,99,186,0.4);
}

/* ==============================
   SMOOTH SECTION SPACING
============================== */
.home-articles,
.home-publications,
.home-projets {
  padding: 72px 0;
}
.home-stats {
  padding: 36px 0;
}
.section-header {
  margin-bottom: 36px;
}

/* Stats 4 columns */
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ==============================
   HEADER RESPONSIVE IMPROVED
============================== */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .brand-tagline { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-services { padding: 48px 0; }
  .service-card { padding: 24px 20px; }
}

/* ==============================
   PAGE BLOG / REFLEXIONS
============================== */
.blog-main { padding: 0; }

/* Hero */
.blog-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.blog-hero-title {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--dark);
  margin-bottom: 8px;
  animation: fadeInUp 0.6s ease both;
}
.blog-hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.blog-stats-row {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.blog-stat {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: #e6f1fb;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Filters bar */
.blog-filters {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.blog-filters-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.blog-cats-wrap {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.blog-cats-wrap::-webkit-scrollbar { display: none; }
.blog-cat-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.blog-cat-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #e6f1fb;
}
.blog-cat-pill.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.blog-cat-count {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 3px;
}

/* Search */
.blog-search-wrap { flex-shrink: 0; }
.blog-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.blog-search-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,99,186,0.1);
}
.blog-search-input {
  border: none;
  outline: none;
  font-size: 13px;
  padding: 8px 12px;
  width: 180px;
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text);
}
.blog-search-input::placeholder { color: var(--text-muted); }
.blog-search-btn {
  border: none;
  background: none;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.blog-search-btn:hover { color: var(--blue); }

/* Search notice */
.blog-search-notice {
  font-size: 14px;
  color: var(--text-muted);
  padding: 16px 20px;
  background: var(--light);
  border-radius: var(--radius);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-clear-search {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-left: 12px;
}

/* Blog grid */
.blog-content { padding: 48px 0 64px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Featured card */
.blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.blog-card-featured:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.blog-card-img-large { position: relative; overflow: hidden; }
.blog-card-img-large img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card-featured:hover .blog-card-img-large img {
  transform: scale(1.03);
}
.blog-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}
.blog-card-overlay-cat,
.blog-card-overlay-cat a {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card-placeholder-lg {
  display: block;
  width: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--light), #e2e6ea);
}
.blog-card-body-lg { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.blog-card-title-lg {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.blog-card-title-lg a { color: var(--dark); }
.blog-card-title-lg a:hover { color: var(--blue); }
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.blog-card-cta:hover { color: var(--orange); }

/* Regular cards */
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.blog-card-img { position: relative; overflow: hidden; }
.blog-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-placeholder {
  display: block;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--light), #e2e6ea);
}
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.blog-card-cat,
.blog-card-cat a {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--orange);
  background: var(--orange-light);
  padding: 2px 8px;
  border-radius: 10px;
}
.blog-card-date {
  font-size: 12px;
  color: var(--text-muted);
}
.blog-card-dot { font-size: 8px; color: var(--border); }
.blog-card-read {
  font-size: 12px;
  color: var(--text-muted);
}
.blog-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 8px;
}
.blog-card-title a { color: var(--dark); }
.blog-card-title a:hover { color: var(--blue); }
.blog-card-excerpt-sm {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* Pagination */
.blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.blog-pagination .nav-links {
  display: flex;
  gap: 6px;
}
.blog-pagination a,
.blog-pagination span {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s ease;
}
.blog-pagination .current {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.blog-pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #e6f1fb;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
}
.blog-empty-icon { font-size: 48px; margin-bottom: 16px; }
.blog-empty h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 8px;
}
.blog-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Responsive blog */
@media (max-width: 768px) {
  .blog-hero-title { font-size: 28px; }
  .blog-filters { top: 60px; }
  .blog-filters-inner { flex-direction: column; gap: 12px; }
  .blog-search-input { width: 100%; }
  .blog-search-wrap { width: 100%; }
  .blog-search-form { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-featured { grid-template-columns: 1fr; }
  .blog-card-img-large img { min-height: 200px; }
  .blog-card-body-lg { padding: 20px; }
  .blog-card-title-lg { font-size: 20px; }
  .blog-cat-pill { font-size: 11px; padding: 5px 10px; }
}
@media (max-width: 480px) {
  .blog-stats-row { flex-wrap: wrap; }
  .blog-card-img img { height: 150px; }
}

/* ==============================
   PAGE PROJETS FILTRABLE
============================== */
.proj-archive { padding: 0; }

.proj-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.proj-hero-title {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--dark);
  margin-bottom: 8px;
  animation: fadeInUp 0.6s ease both;
}
.proj-hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.proj-hero-stats {
  display: flex;
  gap: 12px;
}

/* Filters */
.proj-filters {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.proj-filters-inner {
  display: flex;
  gap: 32px;
  align-items: center;
}
.proj-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.proj-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey);
  flex-shrink: 0;
}
.proj-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.proj-pills::-webkit-scrollbar { display: none; }
.proj-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.proj-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #e6f1fb;
}
.proj-pill.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.proj-pill-count {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 3px;
}

/* Results bar */
.proj-results-bar {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Grid */
.proj-content { padding: 40px 0 64px; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Cards */
.proj-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.proj-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.proj-card.hidden {
  display: none;
}
.proj-card-logo {
  height: 100px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.proj-card-logo img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
}
.proj-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.proj-card-cat-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--grey);
  background: var(--light);
  padding: 2px 8px;
  border-radius: 10px;
}
.proj-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--dark);
}
.proj-card-title a { color: inherit; }
.proj-card-title a:hover { color: var(--blue); }
.proj-card-periode {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.proj-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.proj-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* Empty filter state */
.proj-empty-filter {
  text-align: center;
  padding: 64px 24px;
}
.proj-empty-filter h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--dark);
  margin: 12px 0 8px;
}
.proj-empty-filter p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .proj-hero-title { font-size: 28px; }
  .proj-filters { top: 60px; }
  .proj-filters-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .proj-grid { grid-template-columns: 1fr; }
}

/* ==============================
   PAGE PUBLICATIONS FILTRABLE
============================== */
.pub-archive { padding: 0; }
.pub-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.pub-filters {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.pub-content-area { padding: 40px 0 64px; }
.pub-filter-list {
  display: flex;
  flex-direction: column;
}
.pub-fitem {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s ease, background 0.2s ease;
}
.pub-fitem:last-child { border-bottom: none; }
.pub-fitem:hover { background: var(--light); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius); }
.pub-fitem.hidden { display: none; }
.pub-fitem-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding-top: 2px;
}
.pub-fitem-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--orange);
  background: var(--orange-light);
  padding: 2px 8px;
  border-radius: 10px;
}
.pub-fitem-right { min-width: 0; }
.pub-fitem-title {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 4px;
}
.pub-fitem-title a { color: inherit; }
.pub-fitem-title a:hover { color: var(--blue); }
.pub-fitem-auteurs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.pub-fitem-editeur {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .pub-filters { top: 60px; }
  .pub-fitem { grid-template-columns: 1fr; gap: 8px; }
  .pub-fitem-left { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
}

/* ==============================
   PAGE CONTACT
============================== */
.contact-main { padding: 0; }
.contact-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.contact-content { padding: 48px 0 80px; }
.contact-grid-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Form */
.mjc-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.required { color: var(--orange); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,99,186,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}
.form-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* Alerts */
.contact-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  animation: fadeInUp 0.4s ease both;
}
.contact-alert-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.contact-alert strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.contact-alert p {
  font-size: 13px;
  margin: 0;
}
.contact-alert-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.contact-alert-warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.contact-alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.contact-success-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Aside */
.contact-aside {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-info-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.contact-info-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey);
}
.contact-info-item a,
.contact-info-item span {
  font-size: 14px;
  color: var(--dark);
}
.contact-info-item a { color: var(--blue); font-weight: 500; }

/* Responsive */
@media (max-width: 768px) {
  .contact-grid-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-lg { width: 100%; }
}



/* ==============================
   ARTICLE — SYSTEME EDITORIAL V4
============================== */
.art,
.pub-single {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.art-w {
  max-width: 680px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.art-mw {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* Progress */
.art-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Breadcrumb */
.art-bc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.art-bc a { color: var(--text-muted); }
.art-bc a:hover { color: var(--blue); }

/* Type label */
.art-type-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  padding: 5px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Header */
.art-head {
  padding: 48px 0 40px;
  border-bottom: 3px solid var(--blue);
}
.art-head h1 {
  font-family: var(--font-serif);
  font-size: 36px; line-height: 1.2;
  color: var(--dark); margin-bottom: 16px;
}
.art-meta-line {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; margin-bottom: 20px;
  font-size: 13px; color: var(--text-muted);
}
.art-cat-link {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--text-muted); text-decoration: none;
}
.art-cat-link:hover { color: var(--blue); }
.art-meta-sep { color: var(--border); }
.art-intro {
  font-size: 18px; line-height: 1.6;
  color: var(--grey); margin-bottom: 24px;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

/* Author */
.art-author {
  display: flex; align-items: center; gap: 12px;
}
.art-author img {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; object-position: top center;
}
.art-author strong { font-size: 14px; color: var(--dark); display: block; }
.art-author span { font-size: 12px; color: var(--text-muted); display: block; }

/* Cover — photo */
.art-cover {
  margin: 0; padding: 0;
  background: var(--light);
}
.art-cover-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}
.art-cover-inner img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  display: block;
}
.art-cover figcaption {
  font-size: 12px; color: var(--text-muted);
  text-align: center; margin-top: 8px;
  font-style: italic;
}

/* Cover — generee (quand pas d'image) */
.art-cover-gen {
  background: var(--dark);
  border-top: 4px solid var(--blue);
  padding: 64px 24px;
  text-align: center;
}
.art-cover-gen-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.art-cover-gen-type {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.art-cover-gen-title {
  font-family: var(--font-serif);
  font-size: 28px; line-height: 1.3;
  color: #fff;
}
.art-cover-gen-author {
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* Body */
.art-body {
  padding: 48px 0;
}
.art-body,
.art-body div,
.art-body .entry-content {
  font-size: 17px !important;
  line-height: 1.85 !important;
  color: var(--text) !important;
}
.art-body p { margin-bottom: 24px !important; }
.art-body h2 {
  font-family: var(--font-serif) !important;
  font-size: 24px !important; color: var(--dark) !important;
  margin: 48px 0 16px !important; padding-top: 24px !important;
  border-top: 1px solid var(--border) !important;
  line-height: 1.3 !important;
}
.art-body h3 {
  font-family: var(--font-serif) !important;
  font-size: 20px !important; color: var(--dark) !important;
  margin: 32px 0 12px !important; line-height: 1.3 !important;
}
.art-body blockquote {
  border-left: 4px solid var(--orange) !important;
  padding: 20px 24px !important; margin: 32px 0 !important;
  background: var(--orange-light) !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  font-style: italic !important;
}
.art-body ul, .art-body ol {
  margin: 16px 0 !important; padding-left: 24px !important;
  list-style: disc !important;
}
.art-body li { margin-bottom: 8px !important; }
.art-body a:not(.btn) {
  color: var(--blue) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.art-body a:hover { color: var(--orange) !important; }
.art-body img {
  border-radius: var(--radius) !important;
  margin: 24px 0 !important;
  max-width: 100% !important; height: auto !important;
}

/* Footer */
.art-foot {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}
.art-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.art-tags a {
  font-size: 12px; font-weight: 600;
  color: var(--blue); background: #e6f1fb;
  padding: 4px 12px; border-radius: 20px;
  text-decoration: none !important;
}
.art-tags a:hover { background: var(--blue); color: #fff !important; }

/* Share */
.art-share {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; margin-bottom: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.art-share span {
  font-size: 12px; font-weight: 700;
  color: var(--grey); text-transform: uppercase;
  letter-spacing: 0.5px;
}
.art-share a, .art-share button {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted) !important; background: var(--light);
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer; text-decoration: none !important;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}
.art-share a:hover, .art-share button:hover {
  background: var(--blue); color: #fff !important; border-color: var(--blue);
}
.art-copy.copied { background: #10b981 !important; color: #fff !important; border-color: #10b981 !important; }

/* Author bio */
.art-bio {
  display: flex; gap: 20px;
  padding: 28px; background: var(--light);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
}
.art-bio img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  flex-shrink: 0;
}
.art-bio small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--grey); }
.art-bio strong { font-size: 16px; color: var(--dark); display: block; margin: 2px 0 8px; }
.art-bio p { font-size: 14px !important; color: var(--text-muted) !important; line-height: 1.6 !important; margin-bottom: 8px !important; }
.art-bio > div > a { font-size: 13px; font-weight: 600; color: var(--blue) !important; text-decoration: none !important; }

/* Prev / Next */
.art-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.art-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 32px; text-decoration: none !important;
  transition: background 0.2s ease;
}
.art-nav-item:first-child { border-right: 1px solid var(--border); }
.art-nav-item:hover { background: var(--light); }
.art-nav-right { text-align: right; }
.art-nav-item small {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; color: var(--grey) !important;
}
.art-nav-item span {
  font-family: var(--font-serif);
  font-size: 15px; color: var(--dark) !important;
  line-height: 1.35;
}

/* Related */
.art-more { padding: 64px 0; background: var(--light); }
.art-more h2 {
  font-family: var(--font-serif);
  font-size: 24px; color: var(--dark);
  margin-bottom: 28px;
}
.art-more-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.art-more-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  text-decoration: none !important; display: flex; flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.art-more-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.art-more-img img {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
}
.art-more-ph {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, #eee, #ddd);
}
.art-more-body { padding: 16px; }
.art-more-type {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: block; margin-bottom: 6px;
}
.art-more-body h3 {
  font-family: var(--font-serif);
  font-size: 15px; line-height: 1.35;
  color: var(--dark); margin-bottom: 8px;
}
.art-more-date { font-size: 12px; color: var(--text-muted); }

/* Type-specific accents */
.art-type-analyse .art-type-label { background: var(--blue); }
.art-type-actualite .art-type-label { background: var(--orange); }
.art-type-recherche .art-type-label { background: var(--grey); }
.art-type-actualite .art-intro { border-left-color: var(--orange); }
.art-type-recherche .art-intro { border-left-color: var(--grey); }

/* ==============================
   PUBLICATION SINGLE (V2)
============================== */
.pub-single { display: block !important; }
.pub-s-head {
  padding: 48px 0 40px;
  border-bottom: 3px solid var(--blue);
}
.pub-s-badges {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; margin-bottom: 16px;
}
.pub-s-type {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--orange); background: var(--orange-light);
  padding: 4px 12px; border-radius: 20px;
}
.pub-s-year {
  font-size: 11px; font-weight: 700;
  color: var(--blue); background: #e6f1fb;
  padding: 4px 10px; border-radius: 20px;
}
.pub-s-dir {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; color: #5b21b6;
  background: #ede9fe; padding: 3px 10px;
  border-radius: 20px;
}
.pub-s-head h1 {
  font-family: var(--font-serif);
  font-size: 32px; line-height: 1.25;
  color: var(--dark); margin-bottom: 12px;
}
.pub-s-auteurs { font-size: 15px; color: var(--text-muted); margin-bottom: 4px; }
.pub-s-editeur { font-size: 15px; color: var(--grey); margin-bottom: 20px; }
.pub-s-resume { padding: 40px 0; }
.pub-s-resume h2 {
  font-family: var(--font-serif);
  font-size: 20px; color: var(--dark);
  margin-bottom: 16px;
}
.pub-s-resume blockquote {
  border-left: 4px solid var(--blue);
  padding: 20px 24px; background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px; line-height: 1.7;
  color: var(--text); font-style: normal; margin: 0;
}
.pub-s-body { padding: 40px 0; font-size: 16px; line-height: 1.8; border-top: 1px solid var(--border); }
.pub-s-body p { margin-bottom: 20px; }
.pub-s-media { padding: 40px 0; border-top: 1px solid var(--border); }
.pub-s-media h2 { font-family: var(--font-serif); font-size: 20px; color: var(--dark); margin-bottom: 20px; }
.pub-s-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pub-s-foot { padding: 40px 0; border-top: 1px solid var(--border); }
.pub-s-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.pub-s-info { background: var(--light); padding: 16px; border-radius: var(--radius); }
.pub-s-info span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--grey); display: block; margin-bottom: 4px; }
.pub-s-info b { font-size: 14px; color: var(--dark); }
.pub-s-info a { font-size: 13px; font-weight: 600; color: var(--blue); }

/* Responsive */
@media (max-width: 768px) {
  .art-head h1 { font-size: 26px; }
  .art-intro { font-size: 16px; }
  .art-nav { grid-template-columns: 1fr; }
  .art-nav-item:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .art-nav-right { text-align: left; }
  .art-more-grid { grid-template-columns: 1fr; }
  .art-bio { flex-direction: column; align-items: center; text-align: center; }
  .art-share { flex-wrap: wrap; }
  .art-cover-gen { padding: 48px 24px; }
  .art-cover-gen-title { font-size: 22px; }
  .pub-s-head h1 { font-size: 24px; }
  .pub-s-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .art-head h1 { font-size: 22px; }
  .pub-s-info-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FRONT-PAGE v3 — Modern, elegant, responsive, intelligent
================================================================ */

/* ── HERO ──────────────────────────────────────────────────────── */
.fp-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}
.fp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fp-hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.fp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}
.fp-hero-orb--1 {
  width: 350px; height: 350px;
  background: var(--blue);
  top: -15%; right: -5%;
}
.fp-hero-orb--2 {
  width: 280px; height: 280px;
  background: var(--orange);
  bottom: -20%; left: -5%;
  animation-delay: -10s;
  animation-direction: reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.fp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Photo */
.fp-hero-photo {
  position: relative;
}
.fp-hero-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.fp-hero-photo:hover img {
  transform: scale(1.03);
  border-color: rgba(255,255,255,0.25);
}
.fp-hero-status {
  position: absolute;
  bottom: 10px; right: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--orange);
  border: 2.5px solid var(--dark);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233,136,13,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(233,136,13,0); }
}

/* Content */
.fp-hero-content { max-width: 560px; }
.fp-hero-greeting {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.fp-hero-greeting strong {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.fp-hero-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.fp-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  line-height: 1.5;
  font-style: italic;
}

/* Chips */
.fp-hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.fp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fp-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.fp-chip-dot--orange { background: var(--orange); }
.fp-chip-dot--green { background: var(--blue); }

/* Buttons */
.fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.fp-btn--primary {
  background: var(--white);
  color: var(--dark);
}
.fp-btn--primary:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(233,136,13,0.3);
}
.fp-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
}
.fp-btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}
.fp-btn--outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--border);
}
.fp-btn--outline:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.fp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Scroll hint */
.fp-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.4;
  transition: opacity 0.5s;
}
.fp-hero-scroll span {
  display: block;
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ── TICKER ARTICLES ────────────────────────────────────────────── */
.fp-ticker {
  overflow: hidden;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.fp-ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.fp-ticker:hover .fp-ticker-track {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.fp-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.fp-ticker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.fp-ticker-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.fp-ticker-item:hover .fp-ticker-title {
  color: var(--white);
}
.fp-ticker-date {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* ── SHARED SECTION STYLES ─────────────────────────────────────── */
.fp-eco,
.fp-articles {
  padding: 80px 0;
}
.fp-eco {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.fp-articles {
  background: var(--light);
}
.fp-section-head {
  margin-bottom: 40px;
}
.fp-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 8px;
}
.fp-section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--dark);
  line-height: 1.2;
}

/* ── ECOSYSTEM GRID ────────────────────────────────────────────── */
.fp-eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fp-eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: all 0.3s ease;
}
.fp-eco-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.fp-eco-card:hover::before {
  transform: scaleX(1);
  background: attr(data-accent);
}
.fp-eco-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: transparent;
  color: var(--text);
}
.fp-eco-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.fp-eco-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--light);
  color: var(--text-muted);
}
.fp-eco-arrow {
  font-size: 18px;
  color: var(--border);
  transition: all 0.3s ease;
}
.fp-eco-card:hover .fp-eco-arrow {
  color: var(--blue);
  transform: translateX(4px);
}
.fp-eco-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 8px;
}
.fp-eco-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}
.fp-eco-url {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.fp-eco-card:hover .fp-eco-url {
  opacity: 1;
  color: var(--blue);
}

/* ── ARTICLES GRID ─────────────────────────────────────────────── */
.fp-articles-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.fp-art-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.fp-art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: transparent;
}
.fp-art-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.fp-art-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--border);
}
.fp-art-card--featured .fp-art-img {
  aspect-ratio: 16 / 10;
}
.fp-art-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fp-art-card:hover .fp-art-img img {
  transform: scale(1.04);
}
.fp-art-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--light) 0%, var(--border) 100%);
}
.fp-art-cat {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fp-art-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fp-art-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.fp-art-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 8px;
}
.fp-art-card--featured .fp-art-title {
  font-size: 22px;
}
.fp-art-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}
.fp-art-read {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
}
.fp-articles-more {
  text-align: center;
  margin-top: 40px;
}

/* Articles empty state */
.fp-articles-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 16px;
}
.fp-empty-icon {
  color: var(--grey);
  margin-bottom: 16px;
  opacity: 0.4;
}
.fp-articles-empty h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
}
.fp-articles-empty p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fp-hero-title { font-size: 30px; }
  .fp-eco-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-articles-grid { grid-template-columns: 1fr 1fr; }
  .fp-art-card--featured { grid-column: 1 / -1; }
  .fp-art-card--featured .fp-art-link { flex-direction: row; }
  .fp-art-card--featured .fp-art-img { flex: 0 0 45%; aspect-ratio: auto; }
  .fp-art-card--featured .fp-art-body { justify-content: center; }
}

@media (max-width: 768px) {
  .fp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 40px;
  }
  .fp-hero-photo { margin: 0 auto; }
  .fp-hero-photo img { width: 120px; height: 120px; }
  .fp-hero-content { max-width: 100%; }
  .fp-hero-title { font-size: 28px; }
  .fp-hero-title br { display: none; }
  .fp-hero-sub { font-size: 16px; }
  .fp-hero-chips { justify-content: center; }
  .fp-hero-actions { justify-content: center; }

  .fp-eco,
  .fp-articles { padding: 56px 0; }
  .fp-section-title { font-size: 26px; }
  .fp-eco-grid { gap: 16px; }
  .fp-articles-grid { grid-template-columns: 1fr; }
  .fp-art-card--featured .fp-art-link { flex-direction: column; }
  .fp-art-card--featured .fp-art-img { flex: none; }
}

@media (max-width: 480px) {
  .fp-hero { min-height: auto; }
  .fp-hero-inner { padding-top: 48px; padding-bottom: 36px; }
  .fp-hero-photo img { width: 100px; height: 100px; }
  .fp-hero-title { font-size: 24px; }
  .fp-hero-chips { gap: 8px; }
  .fp-chip { font-size: 11px; padding: 5px 10px; }
  .fp-eco-grid { grid-template-columns: 1fr; }
  .fp-eco-card { padding: 24px 20px; }
  .fp-eco-card h3 { font-size: 18px; }
}
