/* Couche de mise en page de la version privée. */
:root { --paper: #f8f6ef; --white: #fffefa; --max: 1180px; }

.topbar { text-transform: uppercase; }
.header {
  max-width: none;
  background: var(--white);
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand { font-size: 1.02rem; white-space: nowrap; }
.brand img { width: 50px; height: 50px; }
.header nav { gap: clamp(5px, 1.5vw, 22px); align-items: center; font-size: .9rem; }
.header nav a {
  padding: 9px 10px 7px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.header nav a:hover { border-color: #b0bdae; }
.header nav a[aria-current] { border-color: var(--green); background: #ffed83; }
.nav-toggle {
  min-height: 44px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--green);
  padding: 8px 12px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 750;
}
.nav-toggle span { display: grid; gap: 4px; }
.nav-toggle i { display: block; width: 15px; height: 2px; background: currentColor; }
.nav-toggle[aria-expanded="true"] { background: var(--yellow); }

.hero { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(30px, 5vw, 70px); }
.hero h1 { font-size: clamp(3.2rem, 7.6vw, 6.5rem); }
.hero-art { transform: none; }
.hero-feature { display: block; }
.hero-feature img { width: 100%; }
.hero-feature:hover .art-bottom { background: #12543e; }
.hero .art-bottom { gap: 16px; font-size: clamp(1.45rem, 2.7vw, 2.5rem); }
.hero .seal { flex-shrink: 0; }
.product-image img { aspect-ratio: 1; object-fit: contain; }
.product-image img[src*="embleme"] { padding: 8%; background: #eeeee4; }
/* Les deux rendez-vous de la page d’accueil. */
.shop-preview .section-heading { align-items: center; gap: 24px; }
.shop-preview .section-heading > div:last-child { max-width: 33ch; }
.shop-preview .section-heading p:not(.eyebrow) { margin-bottom: 18px; }
.shop-products { gap: 24px; }
.shop-preview .product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid #c3d0bf;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 5px 0 #e1e6d9;
}
.shop-preview .product-image {
  border: 0;
  border-bottom: 1px solid #c3d0bf;
  background: #f0eee5;
}
.shop-preview .product-image img { aspect-ratio: 4 / 3; width: 100%; }
.shop-preview .product-image img[src*="embleme"] { padding: 7%; background: #e8eee1; }
.shop-preview .image-tag {
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  background: var(--green);
  color: var(--white);
  border: 0;
}
.shop-preview .round-arrow {
  right: 14px;
  bottom: 14px;
  border-radius: 4px;
  background: var(--yellow);
}
.product-copy { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.shop-preview .card-meta { margin: 0 0 12px; align-items: center; flex-wrap: wrap; }
.shop-preview .card-meta span:first-child {
  font-size: .69rem;
  font-weight: 800;
  color: var(--green);
  padding: 4px 8px;
  background: #f7e57e;
  border-radius: 3px;
}
.shop-preview .card-meta span:last-child { font-size: .5rem; letter-spacing: .1em; color: var(--muted); }
.shop-preview h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.13; margin: 0 0 13px; }
.shop-preview .product p { margin: 0 0 24px; font-size: .87rem; line-height: 1.65; }
.shop-preview .product-copy > .text-link { align-self: flex-start; margin-top: auto; padding-top: 4px; }
.shop-preview .product-brand .product-copy { background: var(--green); color: var(--white); }
.shop-preview .product-brand p, .shop-preview .product-brand .card-meta span:last-child { color: #d8e4d5; }
.shop-preview .product-brand .text-link { color: var(--yellow); }
.shop-preview .product-image:hover img { transform: scale(1.025); }

.home-journal .editorial-banner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 30px;
  padding: 24px;
  border-color: var(--green);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--yellow);
}
.home-journal .journal-thumbnail { display: block; overflow: hidden; border: 1px solid #c3d0bf; border-radius: 4px; }
.home-journal .journal-thumbnail img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.home-journal .editorial-banner h3 { font-size: clamp(1.5rem, 3.3vw, 2.35rem); line-height: 1.08; margin-bottom: 12px; }
.home-journal .editorial-banner .eyebrow { color: var(--muted); margin-bottom: 11px; }
.home-journal .big-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.6rem;
}
.home-journal .editorial-banner:hover { background: #f6f1d7; }
.home-journal .editorial-banner:hover .big-arrow { background: var(--green); color: var(--yellow); }

@media (max-width: 900px) and (min-width: 701px) {
  .shop-products { gap: 14px; }
  .product-copy { padding: 16px; }
}
@media (max-width: 700px) {
  .shop-preview .section-heading { align-items: flex-start; }
  .shop-products { gap: 24px; }
  .shop-preview .product-image img { aspect-ratio: 4 / 3; max-height: none; }
  .home-journal .editorial-banner { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .home-journal .big-arrow { display: none; }
  .home-journal .editorial-banner h3 { font-size: 1.4rem; }
  .home-journal .editorial-banner .eyebrow { font-size: .6rem; letter-spacing: .08em; }
}


.journal-intro { padding-top: 40px; padding-bottom: 20px; }
.journal-intro h1 { font-size: clamp(2.6rem, 5.3vw, 4.25rem); line-height: 1.06; margin-bottom: 24px; }
.journal-intro .lead { max-width: 88ch; font-size: 1rem; line-height: 1.65; margin-bottom: 0; }

.filter-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 5px;
  padding: 20px 22px;
}
.filter-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 13px; }
.filter-heading p { margin: 0; }
.filter-status { font-size: .84rem; font-weight: 700; color: var(--muted); }
.filters { margin: 0; gap: 8px; }
.filter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .86rem;
  font-weight: 750;
  padding: 6px 14px;
  border-color: #819287;
  border-radius: 4px;
  line-height: 1.3;
}
.filter:hover { background: #eaf0e9; color: var(--green); }
.filter[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); box-shadow: inset 0 -3px var(--yellow); }

.journal-grid[data-filter-grid] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 26px;
}
.project { background: var(--white); border: 1px solid var(--line); min-width: 0; }
.project-open { border: 0; border-bottom: 1px solid var(--line); }
.project-open img { aspect-ratio: 5 / 4; background: #e9e8df; }
.project-open span { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--green); padding: 0; font-size: 1.32rem; }
.project-open:hover span { background: var(--green); color: var(--yellow); }
.project-copy { padding: 19px 19px 20px; }
.project-copy .card-meta { margin: 0 0 8px; color: var(--muted); }
.project h2 { font-size: clamp(1.35rem, 2.3vw, 1.74rem); line-height: 1.11; }
.project p:not(.card-meta) { margin-bottom: 9px; }
.project-keywords { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 12px 0 0; list-style: none; }
.project-keywords:empty { display: none; }
.project-keywords li {
  font-size: .7rem;
  line-height: 1.45;
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--green);
  background: #e8eee6;
}
.article-topics { margin: 0 0 24px; }
.article-topics .eyebrow { margin: 0 0 8px; }
.article-topics .project-keywords { margin: 0; gap: 8px; }
.article-topics .project-keywords li { padding: 0; font-size: .86rem; }
.article-topics a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid #819287;
  border-radius: 3px;
  font-weight: 700;
}
.article-topics a:hover { background: var(--green); color: var(--white); }
dialog { max-height: min(90vh, 90dvh); }
dialog h2 { line-height: 1.15; }
.dialog-close { min-height: 44px; }
.shop-widget { margin-block: 20px 50px; }
.footer-grid .social-title { margin: 0 0 9px; font-size: .81rem; font-weight: 700; }
.footer-image img { border: 0; }
.article-body { overflow-wrap: break-word; }
.article-body p { max-width: 72ch; }
.legal a { text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 1000px) {
  .header-inner { width: calc(100% - 50px); }
}
@media (max-width: 760px) {
  .header-inner { width: calc(100% - 36px); flex-wrap: wrap; gap: 12px; padding-block: 11px; }
  .brand img { width: 43px; height: 43px; }
  .brand { font-size: .91rem; gap: 8px; }
  .header nav { display: grid; width: 100%; gap: 3px; margin: 0; padding-block: 5px 1px; }
  .header nav a { display: flex; align-items: center; min-height: 44px; padding: 6px 13px; border-bottom: 0; border-left: 3px solid transparent; }
  .header nav a[aria-current] { border-color: var(--green); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: clamp(3rem, 10vw, 4.8rem); margin-bottom: 21px; }
  .hero-art { margin: 0 5px 6px 0; transform: none; }
  .hero .art-bottom { padding: 14px 16px; }
  .hero .seal { width: 54px; height: 54px; }
  .page-intro h1, .article-heading h1 { font-size: clamp(2.4rem, 8.2vw, 3.25rem); overflow-wrap: break-word; }
  .filter-panel { padding: 13px; }
  .filters { gap: 6px; }
  .filter { font-size: .8rem; padding-inline: 10px; }
}
@media (max-width: 700px) {
  .journal-grid[data-filter-grid] { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 530px) {
  .hero .button { gap: 20px; }
  .footer-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
}

/* Dossiers du Journal */
.gp-cover figcaption {
  padding: .55rem .8rem;
  background: #f4f6ed;
  font-size: .82rem;
  color: var(--muted);
}

.gp-body {
  max-width: 820px;
  margin-inline: auto;
}

.gp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 1px;
  margin: 1.5rem 0;
  padding: 1px;
  background: #d8e1d5;
}

.gp-facts div { padding: .7rem .9rem; background: #eef2e9; }
.gp-facts dt { font-size: .8rem; color: var(--muted); }
.gp-facts dd { margin: 0; color: var(--green); font-weight: 800; }

.gp-contents {
  border-left: 3px solid var(--green);
  padding: .8rem 1rem;
  background: #eef2e9;
}

.gp-contents .eyebrow { margin: 0 0 .45rem; }
.gp-contents ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.15rem;
  row-gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gp-contents a, .gp-sources a { text-decoration: underline; text-underline-offset: .18em; }
.gp-body section, .poisson-body section { margin-block: clamp(2rem, 5vw, 3rem); scroll-margin-top: 1rem; }
.gp-body h2, .poisson-body h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.12; margin: 0 0 .85rem; }
.gp-body h3, .poisson-body h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); line-height: 1.2; margin: 1.5rem 0 .5rem; }
.gp-cites { font-size: .79em; color: var(--green); }
.gp-cites a { text-decoration: underline; text-underline-offset: .12em; }
.gp-table-hint, .gp-source-note, .gp-sources { color: var(--muted); font-size: .9rem; }
.gp-table-hint { margin: .8rem 0 .35rem; }

.gp-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cfdbce;
  margin: .4rem 0 .85rem;
}

.gp-table-wrap:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.gp-table { width: 100%; min-width: 39rem; border-collapse: collapse; font-size: .9rem; }
.gp-table caption { text-align: left; padding: .7rem; color: var(--green); font-weight: 800; background: #eef2e9; }
.gp-table :is(th, td) { padding: .48rem .6rem; text-align: left; line-height: 1.35; vertical-align: top; }
.gp-table thead { background: var(--green); color: #fff; }
.gp-table tbody tr { border-bottom: 1px solid #dae3d8; }
.gp-table tbody tr:nth-child(even) { background: #eef2e9; }
.gp-table :is(td, th):first-child { font-variant-numeric: tabular-nums; }
.gp-sources { padding-left: 1.55rem; }
.gp-sources li { margin: .4rem 0; scroll-margin-top: 1rem; }
.gp-sources li:target { background: #fff1a1; color: var(--green); }

@media (min-width: 730px) {
  .gp-table-hint { display: none; }
}

.poisson-tribute {
  padding: clamp(1rem, 4vw, 1.75rem);
  border-left: 3px solid var(--green);
  background: #eef2e9;
}
.poisson-tribute .eyebrow { margin: 0 0 .55rem; }
.poisson-tribute p:last-child { margin-bottom: 0; }

.testimony-body h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.12; margin-bottom: .85rem; }
.testimony-quote {
  margin: 0 0 1.5rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  border-left: 3px solid var(--green);
  background: #eef2e9;
}
.testimony-quote p:last-child { margin-bottom: 0; }
