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

:root {
  --paper: #f7f4ef;
  --paper-dark: #ede9e1;
  --ink: #1c1a17;
  --ink-mid: #4a4640;
  --ink-light: #8c877f;
  --red: #8b2020;
  --red-soft: #c14040;
  --red-pale: #f0e6e6;
  --border: rgba(28,26,23,0.12);
  --border-strong: rgba(28,26,23,0.22);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;                     /* was 16px */
  line-height: 1.7;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ─── BANNER ─── */
.banner {
  padding: 2.5rem 4rem 2rem;
  border-bottom: 0.0625rem solid var(--border);
}
.banner-inner {
  max-width: 67.5rem;                  /* was 1080px */
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}
.logo-mark {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.logo-text h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.logo-text h1 span {
  color: var(--red);
}
.logo-text p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.banner-tagline {
  margin-left: auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-light);
  max-width: 16.25rem;                /* was 260px */
  text-align: right;
  line-height: 1.5;
  padding-bottom: 0.25rem;            /* was 4px */
}

/* ─── STICKY NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,239,0.97);
  backdrop-filter: blur(0.375rem);    /* was 6px */
  border-bottom: 0.0625rem solid var(--border-strong);
  box-shadow: 0 0.0625rem 0.5rem rgba(28,26,23,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  /*min-width: 0;*/
    max-width: 90%;
  justify-content: space-between;
  /*justify-content: center;*/
  margin: 0 auto;
  padding: 0 4rem;
}
/*.nav-inner {
  max-width: 100rem;                  
  margin: 0 auto;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  gap: 0;
}*/

.nav-tabs {
  display: flex;
  flex: 1;
  justify-content: space-between; 
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  list-style: none;
}
/*.nav-tabs {
  display: flex;
  list-style: none;
  flex: 1;
}*/

.nav-tabs li a {
  display: block;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 0.125rem solid transparent;  /* was 2px */
  transition: color 0.2s, border-color 0.2s;
}
.nav-tabs li a:hover,
.nav-tabs li a.active {
  color: var(--red);
  border-bottom-color: var(--red-soft);
}
.nav-tabs li a.active {
  color: var(--red);
  font-weight: 400;
}

.nav-actions {
  position: sticky; top: 3.2rem; left: 85%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
  margin-top: 2rem;
  width: fit-content;
}
/*Nav overflow solution*/


/*      */

/* search */
.nav-search {
  position: relative;
  margin-left: 1rem;
}


.nav-search input {
  background: var(--paper-dark);
  border: 0.0625rem solid var(--border-strong);  /* was 1px */
  border-radius: 1.25rem;                       /* was 20px */
  padding: 0.4rem 1rem 0.4rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
  width: clamp(8rem, 12vw, 13.5rem);
  /*width: 11.25rem;  */                            /* was 180px */
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}
.nav-search input:focus {
  border-color: var(--red-soft);
  width: 11.25rem;
}
.nav-search input::placeholder { color: var(--ink-light); }
.nav-search svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;                              /* was 14px */
  height: 0.875rem;
  stroke: var(--ink-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

/* ─── HERO STRIP ─── */
.hero-strip {
  max-width: 67.5rem; min-height: 1592px; /*2000px;*/
  margin: 3rem auto 0;
  padding: 0 4rem;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  border-left: 0.1875rem solid var(--red-soft); /* was 3px */
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* ─── FEATURED ARTICLE (large) ─── */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 0.0625rem solid var(--border-strong);
  border-radius: 0.25rem;                       /* was 4px */
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: #fff;
  transition: box-shadow 0.25s;
}
.featured-card:hover {
  box-shadow: 0.25rem 0.25rem 0 var(--red-pale), 0.25rem 0.25rem 0 0.0625rem var(--border);
}
.featured-card .card-img {
  position: relative;
  overflow: hidden;
  min-height: 20rem;                            /* was 320px */
  background: var(--paper-dark);
}
.featured-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-card .card-img .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-card .card-body {
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-tag {
    display: none;
  /*display: inline-block;*/
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border: 0.0625rem solid var(--red-pale);
  background: var(--red-pale);
  padding: 0.2rem 0.55rem;
  border-radius: 0.125rem;
  margin-bottom: 0.9rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.card-title a { text-decoration: none; color: inherit; }
.card-title a:hover { color: var(--red); }
.card-excerpt {
  font-size: 0.94rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  font-weight: 300;
}
.card-meta {
  font-size: 0.76rem;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.card-meta .read-more {
  margin-left: auto;
  color: var(--red-soft);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 0.0625rem solid var(--red-pale);
  transition: border-color 0.2s, color 0.2s;
}
.card-meta .read-more:hover {
  color: var(--red);
  border-color: var(--red-soft);
}



.acceuil-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  color: var(--ink);
  border-left: 4px solid var(--red-soft);
  padding-left: 1rem;
}



/* ─── ARTICLE GRID ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.article-card {
  border: 0.0625rem solid var(--border);
  border-radius: 0.1875rem;                     /* was 3px */
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-0.125rem);             /* was -2px */
  box-shadow: 0 0.25rem 1.25rem rgba(28,26,23,0.08), 0.1875rem 0.1875rem 0 var(--red-pale);
}
.article-card .card-img-sm {
  height: 11.25rem;                             /* was 180px */
  background: var(--paper-dark);
  overflow: hidden;
  position: relative;
}
.article-card .card-img-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card .card-body-sm {
  padding: 1.3rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .card-title-sm {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.article-card .card-title-sm a { text-decoration: none; color: inherit; }
.article-card .card-title-sm a:hover { color: var(--red); }
.article-card .card-excerpt-sm {
  font-size: 0.86rem;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
  margin-bottom: 1rem;
}
.article-card .card-meta-sm {
  font-size: 0.72rem;
  color: var(--ink-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.0625rem solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* ==============================
   ACCUEIL DASHBOARD SECTIONS
   ============================== */

/* Each category block gets generous vertical breathing room */
.category-block {
  margin: 3.5rem 0;
  margin-bottom: 6.5rem;
  padding-bottom: 3.5rem;
  border-bottom-style: groove;
  border-bottom-width: 0.2rem;
  border-bottom-color: black;
}

.category-block:hover {
  border-bottom-color: var(--red-soft);
}

/* Category heading – echoes .section-title but smaller */
.category-block h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  border-left: 0.1875rem solid var(--red-soft);
  padding-left: 0.9rem;
  margin-bottom: 1.3rem;
  line-height: 1.3;
}

/* Grid of article cards inside a category – mirrors .articles-grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.acceuil-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  
  padding-left: 4rem;
  margin: 3rem auto 2rem;
  line-height: 1.25;
  max-width: 67.5rem;
}

/* --------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------------- */

/* Tablet: two columns for category grids (and optionally the main grid) */
@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: single column, full-width cards */
@media (max-width: 600px) {
  .category-block {
    margin: 2.5rem 0;
  }

  .category-block h2 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  

}







/* Optional: subtle separator between dashboard sections (uncomment if you like it) */
/*
.category-block + .category-block {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}
*/

/* Ensure the featured card doesn’t have extra bottom margin next to the first section */
.featured-card + .category-block {
  margin-top: 2rem;
}

/* Make the article cards inside the category grid behave exactly like the normal grid */
.category-grid .article-card {
  /* Inherits everything from .article-card; you can add slight adjustments if needed */
}

/* If you ever want the category title to also act as a link, keep it clean */
.category-block h2 a {
  text-decoration: none;
  color: inherit;
}



/* ─── STAT CALLOUT ─── */
.stat-bar {
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.1875rem;                     /* was 3px */
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: #e8a0a0;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.6);
  font-weight: 300;
}

/* ─── LOAD MORE ─── */
.load-more-wrap {
  text-align: center;
  margin: 1rem 0 4rem;
}
.btn-load {
  background: transparent;
  border: 0.0625rem solid var(--border-strong);
  color: var(--ink-mid);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 2.2rem;
  cursor: pointer;
  border-radius: 0.125rem;                      /* was 2px */
  transition: all 0.2s;
}
.btn-load:hover {
  border-color: var(--red-soft);
  color: var(--red);
  background: var(--red-pale);
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: rgba(247,244,239,0.75);
  padding: 2.5rem 3rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 67.5rem; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(247,244,239,0.4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.newsletter-desc {
  font-size: 0.82rem;
  color: rgba(247,244,239,0.55);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.newsletter-form { display: flex; }
.newsletter-form input {
  flex: 1;
  background: rgba(247,244,239,0.07);
  border: 0.0625rem solid rgba(247,244,239,0.15);
  border-right: none;
  color: rgba(247,244,239,0.9);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.55rem 0.9rem;
  outline: none;
  border-radius: 0.125rem 0 0 0.125rem;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(247,244,239,0.25); }
.newsletter-form input:focus { border-color: rgba(193,64,64,0.5); }
.newsletter-form button {
  background: var(--red);
  border: 0.0625rem solid var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  cursor: pointer;
  border-radius: 0 0.125rem 0.125rem 0;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--red-soft); }
.newsletter-note {
  font-size: 0.69rem;
  color: rgba(247,244,239,0.25);
  margin-top: 0.5rem;
}
.footer-right { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-links-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
}
.footer-links-horizontal li a {
  font-size: 0.79rem;
  color: rgba(247,244,239,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-horizontal li a:hover { color: #e8a0a0; }
.share-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 0.0625rem solid rgba(247,244,239,0.18);
  color: rgba(247,244,239,0.55);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.125rem;
  transition: all 0.2s;
}
.share-trigger-btn:hover {
  border-color: rgba(193,64,64,0.4);
  color: #e8a0a0;
}
.footer-bottom {
  border-top: 0.0625rem solid rgba(247,244,239,0.07);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(247,244,239,0.28);
}
.footer-bottom a { color: rgba(247,244,239,0.28); text-decoration: none; }
.footer-bottom a:hover { color: #e8a0a0; }

/* ─── SHARE MODAL ─── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.share-modal {
  background: #222220;
  border: 0.0625rem solid rgba(247,244,239,0.12);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;            /* was 8px */
  padding: 1.5rem 1.75rem 2rem;
  width: 100%;
  max-width: 30rem;                             /* was 480px (30rem) */
  animation: slideUp 0.22s ease;
}
@keyframes slideUp {
  from { transform: translateY(2.5rem); opacity: 0; }   /* was 40px */
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(247,244,239,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-close {
  background: none;
  border: none;
  color: rgba(247,244,239,0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.125rem;
  transition: color 0.15s;
}
.modal-close:hover { color: rgba(247,244,239,0.8); }
.share-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.share-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(247,244,239,0.05);
  border: 0.0625rem solid rgba(247,244,239,0.1);
  color: rgba(247,244,239,0.7);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-radius: 0.1875rem;                     /* was 3px */
  transition: all 0.18s;
  text-align: left;
  width: 100%;
}
.share-option:hover {
  background: rgba(247,244,239,0.1);
  border-color: rgba(193,64,64,0.35);
  color: #fff;
}
.share-option.copied { border-color: rgba(80,180,100,0.5); color: #90d4a0; }
.share-option-full { grid-column: 1 / -1; }

/* ─── SOCIAL LINKS ─── */
.social-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;                              /* was 34px */
  height: 2.125rem;
  border: 0.0625rem solid rgba(247,244,239,0.15);
  border-radius: 0.125rem;
  color: rgba(247,244,239,0.6);
  text-decoration: none;
  font-size: 0.875rem;                          /* was 14px */
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: rgba(193,64,64,0.5); color: #e8a0a0; }

/* ─── PLACEHOLDER IMAGES ─── */
.img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-dark);
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 0.0625rem solid var(--border);
  margin: 2rem 0;
}

/* ─── Profile ─── */
.card-tag {
  /* Keep existing styles if any, or add defaults */
}

.mission-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1.4rem;
}

.bio-section {
  margin-bottom: 2rem;
}

.bio-text {
  font-size: 0.94rem;
  color: var(--ink-mid);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}

.bio-text:last-of-type {
  margin-bottom: 0;
}

.bio-text strong {
  color: var(--ink);
  font-weight: 400;
}

.divider-hr {
  border: none;
  border-top: 0.0625rem solid rgba(28,26,23,0.1);
  margin: 1.8rem 0;
  position: relative;
}

.divider-accent {
  width: 2.5rem;
  height: 0.1875rem;                            /* was 3px */
  background: var(--red-soft);
  margin-top: -1.9rem;
  margin-bottom: 1.8rem;
}

.mission-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.mission-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  border-left: 0.1875rem solid var(--red-soft); /* was 3px */
  padding-left: 1rem;
  margin-bottom: 1.4rem;
  border-radius: 0;
}

.mission-intro {
  font-size: 0.94rem;
  color: var(--ink-mid);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.1rem;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mission-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
}

.mission-list li span:first-child {
  flex-shrink: 0;
  width: 0.375rem;                              /* was 6px */
  height: 0.375rem;
  border-radius: 50%;
  background: var(--red);
  margin-top: 0.55em;
  display: inline-block;
}

.mission-list li strong {
  color: var(--ink);
  font-weight: 400;
}

/* Footer */
 .footer-block {
    box-sizing: border-box;
    border-width: 1px;
    border-radius: 10px;
    border-style: ridge;
    border-color: transparent;
    padding: 0.7rem;
    transition: border-color 0.2s ease;
}

.footer-block:hover {
    border-color: rgba(193, 64, 64, 0.9);
}














/* ============================================
   HAMBURGER MENU (mobile first)
   ============================================ */

/* Hide hamburger on desktop by default */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: var(--ink);
  margin: 0.3rem 0;
  transition: 0.2s;
  border-radius: 0.0625rem;
}

/* Mobile nav wrapper */
.nav-tabs-wrapper {
  flex: 1;
}

/* Mobile: 900px and below */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .nav-tabs-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 244, 239, 0.98);
    backdrop-filter: blur(0.5rem);
    border-bottom: 0.0625rem solid var(--border-strong);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }

  .nav-tabs-wrapper.open {
      max-height: 35rem;
    /*max-height: 30rem;*/ /* enough for 9 items */
  }

  .nav-tabs {
    flex-direction: column;
    padding: 0.5rem 0;
    
     overflow-y: auto;
    max-height: 70vh;
    
    
  }

  .nav-tabs li a {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border-bottom: none;
  }

  .nav-tabs li a:hover,
  .nav-tabs li a.active {
    background: var(--red-pale);
    border-bottom-color: transparent;
  }

  /* Keep search exactly where it is */
  .nav-actions {
    margin-left: auto;
  }
  
  
  .nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  /*min-width: 0;*/
    max-width: 100%;
  justify-content: space-between;
  /*justify-content: center;*/
  margin: 0 auto;
  padding: 0rem;
}
 
 .nav-actions {
  
  margin-top: 0rem;
  
} 
  
  
}

/* Desktop: 901px and above */
@media (min-width: 901px) {
  .nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav-tabs {
    display: flex;
    justify-content: center;/*flex-start;*/
    gap: 0.25rem;
    overflow-x: visible;
  }

  .nav-tabs li a {
    padding: 0.9rem 0.9rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .nav-tabs-wrapper {
    flex: 1;
  }
  
   .nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  /*min-width: 0;*/
    max-width: 100%;
  justify-content: space-between;
  /*justify-content: center;*/
  margin: 0 auto;
  padding: 0rem;
}
 
 .nav-actions {
  
  margin-top: 0rem;
  
} 
  
  
}

/* ============================================
   RESPONSIVE GRIDS (mobile-first)
   ============================================ */

/* Base: mobile (<600px) */
.articles-grid,
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Tablet: 600px to 900px */
@media (min-width: 600px) {
  .articles-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  
  footer {
  background: var(--ink);
  color: rgba(247,244,239,0.75);
  padding: 2.5rem 0.5rem 1.5rem;
  margin-top: 2rem;
}
  
  
  
   /* .mobileBook {
      margin-top: 5rem;
  }*/
  
}

/* Desktop: 901px and above */
@media (min-width: 901px) {
  .articles-grid,
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Extra large: 1281px and above (optional — keeps 3 columns but adds max-width breathing) */
@media (min-width: 1281px) {
  .hero-strip,
  .footer-inner {
    max-width: 75rem;
  }
}

/* ============================================
   FIX: Keep featured card responsive
   ============================================ */

/* Mobile: stacked */
@media (max-width: 600px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .featured-card .card-img {
    min-height: 16rem;
  }
  
  .featured-card .card-body {
    padding: 1.5rem;
  }
  
    .mobileBook {
      margin-top: 5rem;
  }
  
  
  footer {
  background: var(--ink);
  color: rgba(247,244,239,0.75);
  padding: 2.5rem 0.5rem 1.5rem;
  margin-top: 2rem;
}
  
}


@media (orientation: landscape) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .featured-card .card-img {
    min-height: 16rem;
  }
  
  .featured-card .card-body {
    padding: 1.5rem;
  }
  
    .mobileBook {
        position: sticky; top: 0px;
      margin-top: 0rem;
  }
  
  
  footer {
  background: var(--ink);
  color: rgba(247,244,239,0.75);
  padding: 2.5rem 0.5rem 1.5rem;
  margin-top: 2rem;
}
  
}



/* Tablet and up: side by side */
@media (min-width: 601px) {
  .featured-card {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE PADDING (banner + hero-strip)
   ============================================ */

@media (max-width: 900px) {
  .banner {
    padding: 1.5rem 1.5rem;
  }
  
  .hero-strip {
    padding: 0 1.5rem;
  }
  
  .acceuil-title {
    padding-left: 1.5rem;
    font-size: 1.4rem;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .banner {
    padding: 2rem 2rem;
  }
  
  .hero-strip {
    padding: 0 2rem;
  }
  
  .acceuil-title {
    padding-left: 2rem;
  }
}




/* search actions duplicate mob desk hide */

/* Hide nav search on desktop, show main search */
.nav .nav-actions {
  display: none;
}

main .nav-actions {
  display: block;
}

/* On mobile: hide main search, show nav search */
@media (max-width: 900px) {
  .nav .nav-actions {
    display: block;
  }
  
  main .nav-actions {
    display: none;
  }
}



/*////////////////// News letter feedback ///////////////////*/
.feedback-msg {
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feedback-msg.show {
    opacity: 1;
}
.feedback-msg.success {
    color: #2e7d32; /* green */
}
.feedback-msg.error {
    color: #c62828; /* red */
}



.hide-button {
    border: none;
}


.NewsLetterInput {
    position:absolute; left:-9999px;
}


.tab-panel {
   display:none; 
}




/* index.js styles */
/* --- Article card images (Accueil & category grids) --- */
.card-img-sm img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-img-sm .img-ph {
    width: 100%;
    height: 180px;
    background: var(--paper-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Featured card images --- */
.featured-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card .card-img .img-ph {
    width: 100%;
    height: 100%;
    background: var(--paper-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- "Lire →" link inside card-meta-sm (no inline style) --- */
.card-meta-sm a {
    color: var(--red-soft);
    text-decoration: none;
}

/* --- Notice / empty / error messages --- */
.notice-message {
    text-align: center;
    color: var(--ink-light);
}

.notice-message.error {
    color: var(--red);
}

.notice-message.padded {
    padding: 2rem;
}


/* Landscape: horizontal scrollable tabs, no hamburger */
/*
@media (max-width: 900px) and (orientation: landscape) {
  .hamburger {
    display: none !important;
  }

  .nav-tabs-wrapper {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .nav-tabs {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }

  .nav-tabs li {
    flex-shrink: 0;
  }

  .nav-tabs li a {
    padding: 0.7rem 1rem;
    white-space: nowrap;
  }*/

  /* Keep the book promo button (now relative) below the tabs */
 /* .nav-tabs-wrapper .bk-reopen-btn {
    margin-top: 0.5rem;
    width: auto;
    display: inline-block;
    margin-left: 1rem;
    margin-right: 1rem;
  }
}*/