/* ============================================================
   MON2EKAP — Blog Public CSS
   Palette : navy #243e59, blanc, gris doux
   Police  : Inter
   ============================================================ */

:root {
  --primary:        #243e59;
  --primary-dark:   #1a2f42;
  --primary-light:  #3a5a7a;
  --accent:         #0ea5e9;
  --text-main:      #1e293b;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --bg-page:        #f8fafc;
  --bg-white:       #ffffff;
  --border:         #e2e8f0;
  --radius-sm:      0.375rem;
  --radius-md:      0.625rem;
  --radius-lg:      1rem;
  --radius-xl:      1.5rem;
  --shadow-sm:      0 1px 3px 0 rgb(0 0 0 / .07), 0 1px 2px -1px rgb(0 0 0 / .07);
  --shadow-md:      0 4px 6px -1px rgb(0 0 0 / .07), 0 2px 4px -2px rgb(0 0 0 / .07);
  --shadow-lg:      0 10px 15px -3px rgb(0 0 0 / .07), 0 4px 6px -4px rgb(0 0 0 / .07);
  --shadow-xl:      0 20px 25px -5px rgb(0 0 0 / .08), 0 8px 10px -6px rgb(0 0 0 / .08);
  --nav-height:     70px;
  --transition:     all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ─── NAVBAR ──────────────────────────────────────────────── */

.blog-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.blog-nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.blog-nav__logo img { height: 38px; width: auto; }

.blog-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.blog-nav__link:hover,
.blog-nav__link--active {
  color: var(--primary);
  background: rgba(36,62,89,0.07);
}

.blog-nav__btn {
  margin-left: 0.75rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(36,62,89,0.25);
}
.blog-nav__btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(36,62,89,0.35);
}

.blog-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.blog-nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.blog-nav__mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.97);
}
.blog-nav__mobile-link,
.blog-nav__mobile-btn {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.blog-nav__mobile-link:hover { background: var(--bg-page); }
.blog-nav__mobile-btn {
  margin-top: 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 600;
}
.blog-nav__mobile.is-open { display: flex; }

/* ─── PAGE WRAPPER ────────────────────────────────────────── */

.blog-page { padding-top: var(--nav-height); min-height: 100vh; }

/* ─── HERO BLOG ───────────────────────────────────────────── */

.blog-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 5rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.blog-hero__container {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.blog-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}
.blog-hero__label::before,
.blog-hero__label::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.4);
}
.blog-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.blog-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 auto;
}

/* ─── BLOG LISTING ────────────────────────────────────────── */

.blog-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.blog-listing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-listing__count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── GRID ARTICLES ───────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

/* ─── CARD ARTICLE ────────────────────────────────────────── */

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(36,62,89,0.15);
}

.blog-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  position: relative;
}
.blog-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }

.blog-card__no-image {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.blog-card__no-image svg {
  width: 48px; height: 48px;
  opacity: 0.35;
  color: #fff;
}

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}
.blog-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-card__meta-item svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.blog-card:hover .blog-card__title { color: var(--primary); }

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.blog-card__author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.blog-card__read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}
.blog-card__read-more svg {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}
.blog-card:hover .blog-card__read-more svg { transform: translateX(3px); }

/* ─── EMPTY STATE ─────────────────────────────────────────── */

.blog-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.blog-empty svg {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  opacity: 0.3;
}
.blog-empty h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* ─── PAGINATION ──────────────────────────────────────────── */

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-white);
  transition: var(--transition);
}
.blog-pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(36,62,89,0.05);
}
.blog-pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── ARTICLE DÉTAIL ──────────────────────────────────────── */

.article-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.article-hero__container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.article-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
.article-hero__breadcrumb a { color: rgba(255,255,255,0.7); }
.article-hero__breadcrumb a:hover { color: #fff; }
.article-hero__breadcrumb svg { width: 12px; height: 12px; }

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.article-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.article-hero__meta-item svg { width: 13px; height: 13px; }

.article-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.article-hero__description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

/* ─── ARTICLE BODY ────────────────────────────────────────── */

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-image {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin: 0 auto 2.5rem;
  cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
}
.article-image:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-xl), 0 0 0 3px rgba(36,62,89,.12);
}

/* Article content typography */
.article-content {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1.75rem 0 0.75rem;
}
.article-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.article-content strong { font-weight: 700; color: var(--text-main); }
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover { color: var(--primary-dark); }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(36,62,89,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.75rem auto;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
}
.article-content img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-lg);
}

/* ─── SIDEBAR ARTICLE ─────────────────────────────────────── */

.article-sidebar { position: sticky; top: calc(var(--nav-height) + 2rem); }

.article-cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.article-cta-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.article-cta-box p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.article-cta-box a {
  display: block;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.article-cta-box a:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.article-related {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.article-related h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.article-related-item {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
  transition: var(--transition);
}
.article-related-item:last-child { border-bottom: none; }
.article-related-item:hover { color: var(--primary); padding-left: 6px; }

/* ─── FOOTER ──────────────────────────────────────────────── */

.blog-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  position: relative;
  margin-top: 4rem;
}
.blog-footer__waves {
  margin-bottom: -4px;
  line-height: 0;
}
.blog-footer__waves svg { width: 100%; height: 80px; }
.blog-footer__body { padding: 3rem 0 0; }
.blog-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.blog-footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.blog-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.55);
}
.blog-footer__socials {
  display: flex;
  gap: 0.75rem;
}
.blog-footer__socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.blog-footer__socials a:hover {
  background: var(--primary);
  color: #fff;
}
.blog-footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}
.blog-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.blog-footer__list li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.blog-footer__list li a:hover { color: #fff; padding-left: 4px; }

.blog-footer__list--contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.blog-footer__list--contact li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.4);
}
.blog-footer__list--contact li a {
  color: rgba(255,255,255,0.6);
}
.blog-footer__list--contact li a:hover { color: #fff; }

.blog-footer__bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.blog-footer__bottom a { color: rgba(255,255,255,0.5); }
.blog-footer__bottom a:hover { color: rgba(255,255,255,0.8); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-footer__container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .blog-nav__links { display: none; }
  .blog-nav__burger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-footer__container { grid-template-columns: 1fr; gap: 1.5rem; }
  .blog-footer__bottom { flex-direction: column; text-align: center; }
  .article-content { padding: 1.5rem; }
  .article-hero { padding: 3rem 1.5rem 4rem; }
}

@media (max-width: 480px) {
  .blog-listing { padding: 2.5rem 1.25rem; }
  .blog-hero { padding: 4rem 1.25rem 5rem; }
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.blog-card {
  animation: fadeUp 0.4s ease both;
}
.blog-card:nth-child(1) { animation-delay: 0.05s; }
.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.15s; }
.blog-card:nth-child(4) { animation-delay: 0.2s; }
.blog-card:nth-child(5) { animation-delay: 0.25s; }
.blog-card:nth-child(6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── LIGHTBOX ────────────────────────────────────────────── */

#lbOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 25, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#lbOverlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

#lbImgWrap {
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lbImg {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: .75rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(.9);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  cursor: default;
}
#lbOverlay.lb-open #lbImg {
  transform: scale(1);
}

#lbClose {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, transform .18s;
}
#lbClose:hover {
  background: rgba(255,255,255,.22);
  transform: scale(1.1) rotate(90deg);
}

/* ─── GALERIE LISTING (bl-article__cover) ─────────────────── */

.bl-article__cover {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .85rem 1.5rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

/* Figure dans la galerie listing */
.bl-article__cover figure {
  margin: 0;
  flex: 0 0 auto;
}
.bl-article__cover figure img,
.bl-article__cover img {
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
  border-radius: .625rem;
  box-shadow: 0 2px 10px rgba(36,62,89,.1);
  cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
  object-fit: contain;
}
.bl-article__cover figure img:hover,
.bl-article__cover img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(36,62,89,.16);
}

/* Nombre d'images → taille adaptée */
.bl-article__cover--1 figure { max-width: 140px; }
.bl-article__cover--2 figure { max-width: 130px; }
.bl-article__cover--3 figure { max-width: 120px; }

/* Images dans le contenu complet des articles (listing) */
.bl-article__content img {
  display: block !important;
  max-width: 220px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: .75rem !important;
  margin: 1.75rem auto !important;
  box-shadow: 0 4px 16px rgba(36,62,89,.1) !important;
  cursor: zoom-in !important;
  transition: transform .2s, box-shadow .2s !important;
}
.bl-article__content img:hover {
  transform: scale(1.015) !important;
  box-shadow: 0 8px 28px rgba(36,62,89,.16) !important;
}

/* ─── GALERIE D'IMAGES (article.php) ──────────────────────── */
.art-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 auto 2.5rem;
}
.art-gallery figure {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.art-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .875rem;
  box-shadow: 0 4px 20px rgba(36,62,89,.13);
  cursor: zoom-in;
  transition: transform .22s, box-shadow .22s;
  object-fit: contain;
}
.art-gallery img:hover {
  transform: scale(1.025);
  box-shadow: 0 10px 36px rgba(36,62,89,.2);
}
/* 1 seule image : centrée, discrète */
.art-gallery--1 figure { max-width: 240px; }
/* 2 images : côte à côte */
.art-gallery--2 figure { max-width: 220px; }
/* 3 images : rangée compacte */
.art-gallery--3 figure { max-width: 190px; }

/* Légende alt sous l'image (si non vide) */
.art-gallery figcaption {
  font-size: .72rem;
  color: #94a3b8;
  margin-top: .4rem;
  text-align: center;
  font-style: italic;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
