/* ==========================================================================
   Blog Jean Boulanger — feuille de style
   Reprend les variables, polices et composants de www.jeanboulanger.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --paper: #F7F2E7;
  --paper-raised: #FFFDF8;
  --ink: #23305A;
  --ink-soft: #4A5578;
  --blue: #1E93C4;
  --blue-dark: #17739B;
  --gold: #D9992E;
  --line: #DED2B8;
  --shadow: rgba(35, 48, 90, 0.14);
  --highlight: #FCD077;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: radial-gradient(circle at 1px 1px, rgba(35,48,90,0.06) 1px, transparent 0);
  background-size: 22px 22px;
}

a { color: var(--blue); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

em { font-style: italic; color: var(--blue); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); }
.btn-primary { background: var(--blue); border-color: var(--blue-dark); color: #fff; box-shadow: 3px 3px 0 var(--blue-dark); }
.btn-outline { background: var(--paper-raised); color: var(--ink); }

.divider { border: none; border-top: 3px double var(--ink); margin: 0; }

/* ===== Header (repris de index.html) ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 231, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 3px double var(--ink);
}

.header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
}

.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-link img { height: 52px; width: auto; transition: transform 0.5s cubic-bezier(.34,1.56,.64,1); }
.logo-link:hover img { transform: rotate(-8deg) scale(1.08); }

.blog-wordmark {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.blog-wordmark em { font-style: italic; color: var(--blue-dark); font-weight: 600; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 160px;
}
nav.main-nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
nav.main-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }

.header-search {
  display: flex;
  align-items: center;
  flex: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  padding: 4px 4px 4px 14px;
  gap: 6px;
}
.header-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--ink);
  width: 140px;
}
.header-search input::placeholder { color: #9099b8; }
.header-search button {
  border: none;
  background: var(--ink);
  color: var(--paper);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.header-search button svg { width: 15px; height: 15px; }

.header-phone {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.15s ease;
}
.header-phone:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-raised);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.category-pill {
  flex: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.category-pill:hover { border-color: var(--blue); color: var(--blue-dark); }
.category-pill.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-raised);
    border-bottom: 3px double var(--ink);
    box-shadow: 0 8px 16px rgba(35,48,90,0.12);
    padding: 6px 0;
    z-index: 60;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 13px 24px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-phone .full { display: none; }
  .header-search input { width: 90px; }
  .blog-wordmark { display: none; }
}

/* ===== Fil d'Ariane ===== */
.breadcrumb { padding: 18px 0 0; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
}
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ===== Mise en page a deux colonnes (menu categories a gauche) ===== */
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.category-sidebar {
  width: 270px;
  flex: none;
  position: sticky;
  top: 100px;
}
.category-sidebar h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px 4px;
}
.category-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.category-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  line-height: 1.3;
  transition: all 0.15s ease;
}
.category-menu a:hover {
  background: rgba(30,147,196,0.07);
  border-left-color: var(--blue);
  color: var(--blue-dark);
}
.category-menu a.active {
  background: var(--ink);
  color: var(--paper);
  border-left-color: var(--gold);
}
.page-layout .content-main { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .page-layout { flex-direction: column; }
  .category-sidebar { width: 100%; position: static; }
  .category-menu { flex-direction: row; flex-wrap: wrap; }
  .category-menu a { border-left: none; border-bottom: 3px solid transparent; }
  .category-menu a:hover { border-left: none; border-bottom-color: var(--blue); }
  .category-menu a.active { border-left: none; border-bottom-color: var(--gold); }
}

/* ===== Sections generiques ===== */
section { padding: 40px 0 60px; }

.section-head { max-width: 680px; margin: 0 0 32px; }
.section-head h1, .section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ===== Grille d'articles ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(35,48,90,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 3px 5px 10px var(--shadow);
  border-color: var(--blue);
}
.article-card .thumb {
  aspect-ratio: 16/10;
  background: var(--line) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card .thumb.placeholder { background: linear-gradient(135deg, var(--blue) 0%, var(--ink) 100%); }
.article-card .thumb.placeholder svg { width: 34px; height: 34px; color: rgba(255,255,255,0.85); }
.article-card .card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card .card-cat {
  align-self: flex-start;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-dark);
  background: rgba(30,147,196,0.08);
  border-radius: 999px;
  padding: 4px 10px;
}
.article-card h3 { font-size: 17px; line-height: 1.35; }
.article-card p.excerpt { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; flex: 1; }
.article-card .card-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-raised);
  text-decoration: none;
  transition: all 0.15s ease;
}
.page-link:hover { border-color: var(--blue); color: var(--blue-dark); }
.page-link.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.page-ellipsis { display: inline-flex; align-items: center; color: var(--ink-soft); padding: 0 4px; }

/* ===== Recherche ===== */
.search-hero { padding: 36px 0 8px; }
.search-box-lg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 3px 3px 0 var(--ink);
  max-width: 620px;
}
.search-box-lg svg { flex: none; opacity: 0.55; }
.search-box-lg input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
}
.search-result-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.search-result-count strong { color: var(--blue-dark); }
mark.hl { background: var(--highlight); color: var(--ink); border-radius: 3px; padding: 0 2px; }

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
}
.empty-state .eyebrow { display: block; margin-bottom: 10px; }

/* ===== Article ===== */
.article-header { max-width: 780px; margin: 0 auto 28px; text-align: left; }
.article-header .card-cat {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  background: rgba(30,147,196,0.08);
  border-radius: 999px;
  padding: 5px 13px;
  text-decoration: none;
  margin-bottom: 14px;
}
.article-header h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin-bottom: 14px; }
.article-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.article-featured {
  max-width: 360px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}
.article-featured img { width: 100%; }

.article-body {
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}
.article-body h2 { font-size: 26px; margin: 40px 0 14px; text-align: left; }
.article-body h3 { font-size: 21px; margin: 32px 0 12px; text-align: left; }
.article-body h4 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700; margin: 24px 0 10px; text-align: left; }
.article-body p { margin: 0 0 20px; }
.article-body a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(30,147,196,0.4); }
.article-body a:hover { text-decoration-color: var(--blue); }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; text-align: left; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: 10px; margin: 24px auto; box-shadow: 2px 2px 0 rgba(35,48,90,0.08); }
.article-body figure { margin: 24px 0; }
.article-body figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}
.article-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--gold);
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  text-align: left;
}
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 13px; text-align: left; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body th { background: rgba(35,48,90,0.05); font-family: 'Inter', sans-serif; }

.article-footer {
  max-width: 780px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.related-heading { text-align: center; margin: 60px 0 24px; }

/* ===== Footer (repris exactement de index.html) ===== */
footer.site-footer {
  background: var(--ink);
  color: rgba(247, 242, 231, 0.8);
  padding: 40px 0 26px;
  margin-top: 20px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(247,242,231,0.15);
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo img { height: 40px; filter: brightness(1.15); transition: transform 0.5s cubic-bezier(.34,1.56,.64,1); }
.footer-logo:hover img { transform: rotate(-8deg) scale(1.08); }
.footer-logo span { font-family: 'Lora', serif; font-weight: 700; font-size: 15px; color: var(--paper); }
.footer-phone {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(247,242,231,0.35);
  border-radius: 999px;
  padding: 8px 16px;
}
.footer-phone:hover { border-color: var(--paper); }
.footer-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 7px;
}
.footer-social:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.footer-social svg { width: 34px; height: 34px; display: block; border-radius: 7px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: rgba(247,242,231,0.55);
}

@media (max-width: 600px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
}
