:root {
  --encre: #1d2733;
  --pet: #2E6E84;
  --pet-fonce: #173E52;
  --creme: #f7f5f0;
  --ligne: #e2ddd3;
  --gris: #6a7480;
  --papier: #fffdf8;
  --alerte: #fff5d8;
  --text-size: 19px;
  --line-height: 1.7;
  --content-width: 880px;
  --layout-gutter: clamp(24px, 6vw, 96px);
  --font-principal: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-texte: var(--font-principal);
  --font-ui: var(--font-principal);
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--font-principal);
  font-size: var(--text-size);
  line-height: var(--line-height);
}

button,
input,
select,
textarea {
  font-family: var(--font-principal);
}

a { color: var(--pet-fonce); text-decoration-thickness: .08em; text-underline-offset: .16em; }

.site-header {
  border-bottom: 1px solid var(--ligne);
  background: rgba(247, 245, 240, .94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner,
.site-footer-inner,
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

.site-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pet-fonce);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .9rem;
  font-family: var(--font-ui);
}

.menu-toggle {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--encre);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--pet);
}

.nav-item {
  position: relative;
}

.has-submenu {
  align-self: center;
}

.has-submenu summary {
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: inherit;
  color: var(--encre);
  cursor: pointer;
  list-style: none;
}

.has-submenu summary::-webkit-details-marker {
  display: none;
}

.has-submenu summary::after {
  content: "+";
  color: var(--pet);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.has-submenu[open] summary::after {
  content: " −";
}

.submenu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  left: -16px;
  display: grid;
  min-width: 210px;
  padding: 10px;
  background: var(--papier);
  border: 1px solid var(--ligne);
  box-shadow: 0 12px 28px rgb(44 39 32 / 14%);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
}

.has-submenu summary:focus-visible { outline: 3px solid var(--pet); outline-offset: 5px; }

.submenu a {
  padding: 8px 10px;
}

.page {
  padding-top: 52px;
  padding-bottom: 92px;
}

.article {
  max-width: var(--content-width);
}

.article-about {
  max-width: 980px;
}

.article-about p {
  text-align: left;
}

.article-about > * + * {
  margin-top: 42px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 8px 0 52px;
  border-bottom: 1px solid var(--ligne);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--ligne);
  filter: saturate(.72);
}

.about-kicker,
.about-section-label {
  margin: 0 0 10px;
  color: var(--pet);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-intro h2 {
  margin-top: 0;
  border: 0;
  padding: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.about-intro-copy p:last-child {
  margin-bottom: 0;
}

.about-section {
  max-width: 900px;
}

.about-section h2 {
  margin-top: 0;
}

.about-section p:first-of-type {
  margin-top: 0;
}

.about-explorer {
  padding: 28px 0 4px;
}

.about-explorer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.about-explorer-grid a {
  display: block;
  padding: 18px 20px;
  color: var(--pet-fonce);
  text-decoration: none;
  border: 1px solid var(--ligne);
  background: var(--papier);
  transition: border-color .2s ease, transform .2s ease;
}

.about-explorer-grid a:hover,
.about-explorer-grid a:focus-visible {
  border-color: var(--pet);
  transform: translateY(-2px);
}

.about-explorer-grid strong,
.about-explorer-grid span {
  display: block;
}

.about-explorer-grid strong {
  font-family: var(--font-ui);
  font-size: 1.05rem;
}

.about-explorer-grid span {
  margin-top: 6px;
  color: var(--gris);
  font-size: .94rem;
  line-height: 1.45;
}

.about-method {
  padding-top: 28px;
}

.about-principles {
  margin-top: 24px;
  padding: 4px 22px 4px 24px;
  border-left: 4px solid var(--pet);
  background: #eef3f4;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 80px);
}

.about-columns h2 {
  font-size: 1.35rem;
}

.about-links {
  padding-top: 8px;
  border-top: 1px solid var(--ligne);
}

.article-header {
  margin-bottom: 34px;
}

.eyebrow {
  color: var(--pet);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-ui);
}

h1, h2, h3 {
  font-family: var(--font-texte);
  font-weight: 700;
  color: var(--pet-fonce);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 .4em;
}

h2 {
  font-size: 1.55rem;
  margin: 2.4em 0 .7em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--pet);
}

h3 {
  font-size: 1.2rem;
  color: var(--pet);
  margin: 1.8em 0 .5em;
}

p { margin: .9em 0; }
.article p {
  text-align: justify;
  hyphens: none;
}
ul, ol { margin: .7em 0 1.1em; padding-left: 1.35em; }
li { margin: .32em 0; }
hr { border: none; border-top: 1px solid var(--ligne); margin: 2em 0; }
em, .muted { color: var(--gris); }

blockquote {
  margin: 1.1em 0;
  padding: .65em 1.2em;
  border-left: 4px solid var(--pet);
  background: #eef3f4;
  color: #33424d;
  border-radius: 0 6px 6px 0;
}

code {
  background: #eceae3;
  padding: .1em .4em;
  border-radius: 4px;
  font-size: .92em;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-code);
}

pre {
  overflow: auto;
  padding: 18px;
  background: #f0ede4;
  border: 1px solid var(--ligne);
  border-radius: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.1em 0;
  font-size: .96rem;
  background: #fff;
  box-shadow: 0 1px 0 var(--ligne);
}

th {
  background: var(--pet);
  color: #fff;
  text-align: left;
  padding: .55em .8em;
  font-family: var(--font-ui);
  font-weight: 600;
}

td {
  padding: .5em .8em;
  border-top: 1px solid var(--ligne);
  vertical-align: top;
}

tr:nth-child(even) td { background: #faf9f5; }

figure {
  margin: 1.2em 0;
}

img,
iframe,
video {
  max-width: 100%;
}

iframe {
  border: 0;
}

.wp-block-embed__wrapper {
  position: relative;
}

.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.wp-has-aspect-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wp-block-columns {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-left {
  text-align: left;
}

.has-text-align-right {
  text-align: right;
}

.meta-line {
  color: var(--gris);
  font-size: .92rem;
  font-family: var(--font-ui);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-ui);
}

.tag {
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--gris);
  font-size: .82rem;
}

.editor-panel {
  max-width: var(--content-width);
  margin: 0 0 30px;
  padding: 18px 20px;
  background: var(--alerte);
  border: 1px solid #e9d99a;
  border-radius: 8px;
  font-size: .94rem;
}

.editor-panel h2 {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
  font-size: 1.05rem;
}

.listing {
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px 32px;
  align-items: start;
}

.home-section {
  --accent: var(--pet);
  max-width: 960px;
  margin-top: 56px;
}

.home-section-header {
  margin-bottom: 20px;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-section-header h2 {
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 1.4rem;
  color: var(--accent);
}

.category-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
}

.home-section-title {
  width: 100%;
  position: relative;
}

.section-intro {
  max-width: 760px;
  margin-top: 18px;
  color: var(--gris);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-intro p {
  margin: 0;
  text-align: left;
}

.listing-item {
  border: 1px solid var(--ligne);
  border-radius: 8px;
  padding: 20px;
  background: var(--papier);
  font-size: 1rem;
  line-height: 1.55;
}

.listing-item h2 {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.listing-item p {
  margin: .5em 0;
}

/* Homepage editorial landing */
.home-page {
  max-width: 1180px;
  margin: 0 auto;
}

.home-hero,
.home-via,
.home-paths,
.home-about,
.home-publications {
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

.home-hero {
  min-height: 560px;
  padding-top: 92px;
  padding-bottom: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  gap: 72px;
  align-items: end;
}

.home-hero h1 {
  max-width: 790px;
  margin: 0;
  color: var(--pet-fonce);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .98;
}

#home-title > span { display: block !important; max-width: 100%; }

.home-rule {
  display: block;
  width: 58px;
  height: 4px;
  margin: 30px 0 24px;
  background: var(--pet);
}

.home-intro {
  max-width: 690px;
  margin: 0;
  color: var(--encre);
  font-size: 1.16rem;
  line-height: 1.6;
}

.home-intro-secondary {
  margin-top: 14px;
  color: var(--gris);
  font-size: 1rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.home-hero-note {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: end;
  max-width: 270px;
  padding: 0 0 8px 30px;
  border-left: 1px solid var(--ligne);
  color: var(--gris);
  font-size: .95rem;
  line-height: 1.55;
}

.home-hero-note p { margin: 0; }

.home-hero-note-title {
  margin-bottom: 10px !important;
  color: var(--pet-fonce);
  font-weight: 700;
}

.home-section-label {
  margin: 0 0 12px;
  color: var(--pet);
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pet-fonce);
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 700;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.text-link:hover { color: var(--pet); }

.home-via {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
  background: #eef4f2;
}

.home-via-media {
  max-width: 460px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ligne);
  box-shadow: 14px 14px 0 #dce7e3;
}

.home-via-media img {
  display: block;
  width: 100%;
  height: auto;
}

.home-via-copy { max-width: 560px; }

.home-via h2,
.home-about h2,
.home-section-heading h2 {
  margin: 0;
  color: var(--pet-fonce);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}

.home-via-copy > p:not(.home-section-label),
.home-about-copy > p:not(.home-section-label) {
  max-width: 590px;
  margin: 22px 0 0;
}

.home-via-detail {
  color: var(--gris);
  font-size: .96rem;
}

.home-via-copy .text-link,
.home-about-copy .text-link { margin-top: 24px; }

/* --- Hapax en home ------------------------------------------------------ */
.home-hapax {
  padding: 58px var(--layout-gutter) 64px;
  border-bottom: 1px solid var(--ligne);
  background: var(--hapax-creme);
}

.home-hapax-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.home-hapax-heading h2 {
  margin: 0;
  color: var(--hapax-noir);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.home-hapax-all {
  flex: 0 0 auto;
  margin-bottom: 3px;
}

.home-hapax-viewport {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.home-hapax-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.home-hapax-track::-webkit-scrollbar { display: none; }

.home-hapax-card {
  min-width: 0;
  scroll-snap-align: start;
}

.home-hapax-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--papier);
  border: 1px solid var(--hapax-noir);
  box-shadow: 5px 5px 0 var(--hapax-rouge);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-hapax-card-link:hover,
.home-hapax-card-link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--hapax-rouge);
}

.home-hapax-card-media {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--hapax-noir);
}

.home-hapax-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hapax-card-body {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  padding: 15px 16px 16px;
}

.home-hapax-card-meta {
  color: var(--hapax-rouge);
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-hapax-card-body p {
  display: -webkit-box;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--encre);
  font-size: .91rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.home-hapax-card-more {
  margin-top: auto;
  color: var(--hapax-rouge);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-hapax-card-all .home-hapax-card-body {
  justify-content: center;
}

.home-hapax-card-all .home-hapax-card-body p {
  margin: 12px 0 20px;
  color: var(--hapax-noir);
  font-family: var(--font-principal);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-hapax-card-all .home-hapax-card-more {
  margin-top: 0;
}

.home-hapax-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.home-hapax-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--hapax-noir);
  background: transparent;
  border: 1px solid var(--hapax-noir);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.home-hapax-arrow:hover,
.home-hapax-arrow:focus-visible {
  color: var(--papier);
  background: var(--hapax-noir);
}

.home-feature-resource {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 64px var(--layout-gutter) 70px;
  border-bottom: 1px solid var(--ligne);
  background: var(--papier);
}

.home-feature-resource-media {
  max-width: 360px;
  background: #e7eeeb;
}

.home-feature-resource-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-feature-resource-copy { max-width: 650px; }

.home-feature-resource h2 {
  max-width: 650px;
  margin: 0;
  color: var(--pet-fonce);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.home-feature-resource-copy > p:not(.home-section-label) {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--gris);
}

.home-feature-resource-copy .text-link { margin-top: 22px; }

.home-video-feature {
  padding: 62px var(--layout-gutter) 72px;
  border-bottom: 1px solid var(--ligne);
}

.home-video-feature-heading { max-width: 670px; margin-bottom: 30px; }
.home-video-feature-heading h2 { margin: 0; color: var(--pet-fonce); font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.045em; line-height: 1.05; }
.home-video-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-video-feature-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 18px; border-top: 1px solid var(--ligne); color: inherit; text-decoration: none; }
.home-video-feature-media { background: #e7eeeb; }
.home-video-feature-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.video-theme { margin: 0 0 8px; color: var(--pet); font-family: var(--font-ui); font-size: .72rem; font-weight: 800; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
.home-video-feature-card h3 { margin: 0 0 16px; color: var(--pet-fonce); font-size: 1.1rem; line-height: 1.22; }
.home-video-feature-card:hover h3 { color: var(--pet); }

.videos-page { max-width: 980px; }
.videos-header { max-width: 760px; }
.videos-header h1 { margin-bottom: 24px; }
.videos-header p { max-width: 700px; }
.video-list { margin-top: 58px; border-top: 1px solid var(--ligne); }
.video-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 34px; align-items: start; padding: 34px 0 42px; border-bottom: 1px solid var(--ligne); }
.video-player { position: relative; overflow: hidden; background: #e7eeeb; aspect-ratio: 16 / 9; }
.video-card-link { display: block; color: inherit; text-decoration: none; }
.video-card-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; display: grid; width: 54px; height: 38px; place-items: center; transform: translate(-50%, -50%); border-radius: 10px; background: #ff0033; color: #fff; font-size: 1.15rem; }
.video-card-link:hover .video-play { background: #d9002b; }
.video-card-copy h2 { margin: 0; border: 0; padding: 0; color: var(--pet-fonce); font-size: clamp(1.35rem, 2.3vw, 2rem); letter-spacing: -.04em; line-height: 1.1; }
.video-card-copy > p:not(.video-theme) { margin: 16px 0 0; color: var(--gris); line-height: 1.55; }
.video-card-copy .text-link { margin-top: 22px; }
.videos-footer-link { margin-top: 38px; }

.home-paths {
  padding-top: 84px;
  padding-bottom: 86px;
}

.home-section-heading { margin-bottom: 34px; }

.home-section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }

.home-path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-path {
  min-height: 250px;
  padding: 0 26px;
  border-left: 1px solid var(--ligne);
  color: inherit;
  text-decoration: none;
}

.home-path:first-child { padding-left: 0; border-left: 0; }

.home-path-number {
  display: block;
  margin-bottom: 30px;
  color: var(--pet);
  font-family: var(--font-code);
  font-size: .8rem;
  font-weight: 700;
}

.home-path h3 {
  max-width: 210px;
  margin: 0;
  color: var(--pet-fonce);
  font-size: 1.25rem;
  line-height: 1.2;
}

.home-path p {
  max-width: 230px;
  margin: 14px 0 20px;
  color: var(--gris);
  font-size: .92rem;
  line-height: 1.5;
}

.home-path:hover h3 { color: var(--pet); }

.home-about {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
  padding-top: 74px;
  padding-bottom: 80px;
  border-top: 1px solid var(--ligne);
}

.home-about-media { max-width: 420px; }

.home-about-media img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.82);
}

.home-about-copy { max-width: 600px; }

.home-publications {
  padding-top: 76px;
  padding-bottom: 92px;
  border-top: 1px solid var(--ligne);
}

.home-publications-heading { margin-bottom: 20px; }

.home-publication-list { border-top: 1px solid var(--ligne); }

.home-publication {
  display: grid;
  grid-template-columns: minmax(120px, .25fr) minmax(0, 1.25fr) minmax(100px, .35fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--ligne);
}

.home-publication-meta {
  color: var(--gris);
  font-family: var(--font-ui);
  font-size: .78rem;
  line-height: 1.45;
}

.home-publication h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.home-publication h3 a { color: var(--pet-fonce); text-decoration: none; }
.home-publication h3 a:hover { text-decoration: underline; }

.home-publication p {
  margin: 6px 0 0;
  color: var(--gris);
  font-size: .9rem;
  line-height: 1.45;
}

.home-publication > .text-link { justify-self: end; }

.listing-item h2 a {
  text-decoration: none;
}

.listing-item h2 a:hover {
  text-decoration: underline;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 1.6em 0;
}

.feature-card {
  border: 1px solid var(--ligne);
  border-radius: 8px;
  padding: 20px;
  background: var(--papier);
}

.feature-card h2 {
  margin-top: 0;
}

.feature-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.2em;
}

.subscribe {
  margin-top: 54px;
  padding: 24px;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  background: var(--papier);
  max-width: var(--content-width);
}

.subscribe form {
  display: grid;
  gap: 10px;
}

.subscribe-row {
  display: flex;
  gap: 10px;
}

.subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ligne);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-family: var(--font-ui);
  background: #fff;
}

.subscribe button {
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--pet-fonce);
  color: #fff;
  font: inherit;
  font-family: var(--font-ui);
  cursor: pointer;
}

.button-link {
  display: inline-block;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--pet-fonce);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
}

.button-link:hover {
  color: #fff;
  background: var(--encre);
}

.mermaid {
  position: relative;
  margin: 1.4em 0;
  padding: 22px 18px 48px;
  overflow-x: auto;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
  background: #fff;
  cursor: zoom-in;
}

.mermaid-ready:focus {
  outline: 2px solid var(--pet-fonce);
  outline-offset: 3px;
}

.mermaid-zoom-button,
.mermaid-dialog-toolbar button {
  border: 1px solid var(--ligne);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: var(--pet-fonce);
  font: inherit;
  font-family: var(--font-ui);
  font-size: .86rem;
  cursor: pointer;
}

.mermaid-zoom-button {
  position: absolute;
  right: 12px;
  bottom: 10px;
}

.mermaid-zoom-button:hover,
.mermaid-dialog-toolbar button:hover {
  border-color: var(--pet-fonce);
  color: var(--encre);
}

.mermaid-dialog {
  width: min(94vw, 1280px);
  max-width: 94vw;
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.mermaid-dialog::backdrop {
  background: rgba(24, 34, 38, .58);
}

.mermaid-dialog-box {
  width: 100%;
  height: min(82vh, 900px);
  min-width: min(680px, 92vw);
  min-height: 420px;
  resize: both;
  overflow: auto;
  border: 1px solid var(--ligne);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(24, 34, 38, .28);
}

.mermaid-dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ligne);
  background: #fff;
  font-family: var(--font-ui);
}

.mermaid-dialog-spacer {
  flex: 1;
}

.mermaid-dialog-content {
  padding: 26px;
  min-width: 900px;
  background: #fff;
}

.mermaid-dialog-content svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 860px;
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--ligne);
  color: var(--gris);
  font-size: .9rem;
  font-family: var(--font-ui);
}

.site-footer-inner {
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Via Pedagogia landing page */
.podcast-page { max-width: 1080px; margin: -52px 0 -92px; padding-bottom: 80px; font-family: var(--font-ui); }
.article-podcast { max-width: none; }
.podcast-page h1, .podcast-page h2, .podcast-page h3 { font-family: var(--font-ui); }
.podcast-hero { min-height: 600px; padding: 92px 0 84px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 60px; align-items: center; }
.podcast-kicker, .podcast-section-label, .episode-meta { margin: 0 0 16px; color: var(--pet); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.podcast-hero h1 { max-width: 720px; margin: 0; color: var(--pet-fonce); font-size: clamp(3.4rem, 8vw, 6.5rem); font-weight: 700; letter-spacing: -.07em; line-height: .92; }
.podcast-lede { max-width: 590px; margin: 32px 0 0; color: var(--gris); font-size: 1.22rem; line-height: 1.55; }
.podcast-hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 36px; }
.podcast-button { padding: 13px 18px; border-radius: 3px; }
.podcast-button span { margin-left: 12px; color: #b5d6d8; }
.podcast-text-link { font-size: .92rem; font-weight: 700; text-decoration: none; }
.podcast-text-link span { margin-left: 6px; color: var(--pet); }
.podcast-hero-mark { min-height: 390px; border-left: 1px solid var(--ligne); padding-left: 60px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.podcast-hero-art { padding: 12px; background: #fff; border: 1px solid var(--ligne); box-shadow: 14px 14px 0 #dce7e3; }
.podcast-hero-art img { display: block; width: min(100%, 360px); height: auto; }
.podcast-mark-note { max-width: 310px; margin: 0; color: var(--pet-fonce); font-size: .88rem; line-height: 1.45; }
.podcast-orbit { position: absolute; border: 1px solid var(--pet); border-radius: 50%; transform: rotate(-24deg); }
.podcast-orbit-one { width: 350px; height: 155px; opacity: .45; }
.podcast-orbit-two { width: 430px; height: 230px; border-color: #d48d6e; opacity: .55; transform: rotate(40deg); }
.podcast-mark-core { width: 178px; height: 178px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--pet-fonce); color: #fff; box-shadow: 14px 18px 0 #dce7e3; transform: rotate(-7deg); }
.podcast-mark-core span { font-size: 3.3rem; font-weight: 800; line-height: .85; letter-spacing: -.1em; }
.podcast-mark-core small { margin-top: 14px; color: #c8e0df; font-size: .64rem; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; }
.podcast-intro, .podcast-platforms, .podcast-hosts { border-top: 1px solid var(--ligne); padding: 76px 0; display: grid; grid-template-columns: minmax(170px, .34fr) minmax(0, 1fr); gap: 40px; }
.podcast-page h2 { margin: 0 0 20px; border: 0; padding: 0; color: var(--pet-fonce); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; line-height: 1; }
.podcast-intro p { max-width: 700px; margin: 0 0 18px; color: var(--gris); font-size: 1.08rem; line-height: 1.65; }
.podcast-intro-copy { grid-column: 2; }
.podcast-intro-art { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 1fr; gap: 18px; align-items: end; margin: 16px 0 0; }
.podcast-intro-art img { width: 100%; max-width: 520px; height: auto; max-height: 360px; object-fit: contain; object-position: center; justify-self: start; filter: saturate(.78); }
.podcast-intro-art figcaption, .podcast-episodes-art figcaption { color: var(--gris); font-family: var(--font-ui); font-size: .78rem; line-height: 1.4; }
.podcast-episodes { padding: 84px 0 90px; }
.podcast-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 36px; }
.podcast-section-heading > div { max-width: 650px; }
.podcast-section-heading > p { max-width: 270px; margin: 0; color: var(--gris); font-size: .9rem; line-height: 1.5; }
.podcast-episodes-art { display: grid; grid-template-columns: 1.5fr .5fr; gap: 22px; align-items: end; margin: 0 0 36px; }
.podcast-episodes-art img { width: 100%; max-width: 680px; height: auto; max-height: 360px; object-fit: contain; object-position: center; justify-self: start; filter: saturate(.72); }
.episode-list { border-top: 1px solid var(--ligne); }
.episode-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 24px; padding: 34px 0 38px; border-bottom: 1px solid var(--ligne); }
.episode-featured { background: #edf3f1; margin: 0 -26px; padding: 38px 26px 42px; border-color: #d7e4e1; }
.episode-number { color: var(--pet); font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; }
.episode-meta { margin-bottom: 8px; font-size: .68rem; }
.episode-content h3 { margin: 0; color: var(--pet-fonce); font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -.04em; line-height: 1.1; }
.episode-content p { max-width: 700px; margin: 10px 0 22px; color: var(--gris); font-size: .94rem; line-height: 1.5; }
.episode-content iframe { display: block; width: 100%; max-width: 680px; border: 0; border-radius: 0; background: transparent; }
.podcast-platforms { align-items: start; background: var(--pet-fonce); color: #fff; margin: 0 -6vw; padding-left: 6vw; padding-right: 6vw; border-top: 0; }
.podcast-platforms h2 { color: #fff; }
.podcast-platforms { display: block; }
.podcast-platforms h2 { white-space: nowrap; }
.platform-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.platform-links a { min-height: 82px; padding: 20px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.23); color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 700; }
.platform-links a:hover { background: rgba(255,255,255,.1); }
.platform-icon { width: 30px; height: 30px; flex: 0 0 auto; color: #b5d6d8; }
.platform-icon-spotify { color: #b7dca8; }
.platform-icon-deezer { color: #f1a37e; }
.platform-icon-apple { color: #d8b8e9; }
.platform-links span { flex: 1; margin: 0 12px; }
.platform-links b { color: #b5d6d8; font-size: 1.2rem; }
.podcast-hosts { padding-bottom: 10px; }
.host-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; }
.host-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 22px; align-items: start; }
.host-card img { width: 118px; height: 118px; object-fit: cover; border-radius: 50%; border: 1px solid var(--ligne); filter: saturate(.72); }
.host-grid h3 { margin: 0 0 8px; color: var(--pet); font-size: 1.3rem; }
.host-grid p { margin: 0; color: var(--gris); font-size: .95rem; line-height: 1.6; }

@media (max-width: 720px) {
  .podcast-page { margin: -38px 0 -60px; }
  .podcast-hero { min-height: 0; padding: 58px 0 62px; grid-template-columns: 1fr; gap: 46px; }
  .podcast-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .podcast-lede { font-size: 1.05rem; }
  .podcast-hero-mark { min-height: 260px; border-left: 0; border-top: 1px solid var(--ligne); padding: 42px 0 0; }
  .podcast-orbit-one { width: 290px; height: 130px; }
  .podcast-orbit-two { width: 350px; height: 185px; }
  .podcast-mark-core { width: 142px; height: 142px; }
  .podcast-mark-core span { font-size: 2.6rem; }
  .podcast-intro, .podcast-platforms, .podcast-hosts { padding: 52px 0; grid-template-columns: 1fr; gap: 18px; }
  .podcast-intro-copy { grid-column: auto; }
  .podcast-intro-art { grid-column: auto; grid-template-columns: 1fr; margin-top: 10px; }
  .podcast-intro-art img { max-width: 100%; max-height: none; height: auto; }
  .podcast-section-heading { display: block; }
  .podcast-section-heading > p { margin-top: 16px; }
  .podcast-episodes { padding: 58px 0 64px; }
  .episode-item { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 28px 0; }
  .episode-featured { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .podcast-platforms { margin: 0 -6vw; padding-left: 6vw; padding-right: 6vw; }
  .podcast-platforms h2 { white-space: normal; }
  .platform-links { grid-template-columns: 1fr; }
  .host-grid { grid-column: auto; grid-template-columns: 1fr; gap: 30px; }
  .host-card { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .host-card img { width: 88px; height: 88px; }
  .podcast-episodes-art { grid-template-columns: 1fr; gap: 10px; }
  .podcast-episodes-art img { max-width: 100%; max-height: none; height: auto; }
}

/* Homepage editorial landing: responsive layout */
.home-publication { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: start; }
.home-publication-media { background: #e7eeeb; overflow: hidden; }
.home-publication-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.home-publication-copy { min-width: 0; }

@media (max-width: 900px) {
  .home-hero, .home-via, .home-about { grid-template-columns: 1fr; }
  .home-feature-resource { grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr); gap: 34px; }
  .home-hero-note { max-width: 34rem; border-left: 0; border-top: 1px solid var(--ligne); padding: 24px 0 0; }
  .home-via-media { max-width: 520px; }
  .home-path-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hapax-track { grid-auto-columns: calc((100% - 48px) / 3); }
}

@media (max-width: 720px) {
  .home-page { margin-left: -6vw; margin-right: -6vw; }
  .home-hero, .home-via, .home-paths, .home-about, .home-publications, .home-hapax { padding-left: 6vw; padding-right: 6vw; }
  .home-hero h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .home-hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-via { gap: 30px; }
  .home-hapax { padding-top: 48px; padding-bottom: 52px; }
  .home-hapax-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 22px; }
  .home-hapax-track { grid-auto-columns: calc(100% - 42px); gap: 16px; padding-bottom: 12px; }
  .home-hapax-card-body { min-height: 150px; padding: 13px 14px 14px; }
  .home-hapax-card-body p { -webkit-line-clamp: 3; }
  .home-hapax-controls { justify-content: space-between; margin-top: 14px; }
  .home-feature-resource { grid-template-columns: 1fr; gap: 28px; padding-top: 52px; padding-bottom: 58px; }
  .home-feature-resource-media { max-width: 520px; }
  .home-video-feature { padding-top: 52px; padding-bottom: 58px; }
  .home-video-feature-list { grid-template-columns: 1fr; gap: 28px; }
  .home-video-feature-card { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .video-card { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .home-path-list { grid-template-columns: 1fr; gap: 0; }
  .home-path { padding: 24px 0 28px; }
  .home-publication { grid-template-columns: 1fr; gap: 18px; }
  .home-publication-media { max-width: 100%; }
}

@media (max-width: 720px) {
  :root { --text-size: 18px; --line-height: 1.7; }
  .article p { text-align: left; }
  .article-about > * + * { margin-top: 34px; }
  .about-intro { grid-template-columns: 1fr; gap: 26px; padding-bottom: 38px; }
  .about-portrait { max-width: 210px; }
  .about-portrait img { height: 210px; }
  .about-intro h2 { font-size: 1.8rem; }
  .about-explorer-grid, .about-columns { grid-template-columns: 1fr; }
  .about-explorer-grid { margin-top: 18px; }
  .about-section h2 { font-size: 1.42rem; }
  .site-header { position: static; }
  .site-header-inner { position: relative; align-items: center; flex-direction: row; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
  .menu-toggle { display: grid; gap: 4px; margin-left: auto; padding: 8px; background: transparent; border: 0; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--pet-fonce); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { display: none; width: 100%; align-items: stretch; flex-direction: column; gap: 4px; padding-top: 14px; }
  .main-nav.is-open { display: flex; }
  .main-nav > .nav-item { width: 100%; padding: 7px 0; }
  .has-submenu { align-self: stretch; }
  .has-submenu summary { min-height: 44px; justify-content: space-between; }
  .has-submenu summary::after { display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.55rem; }
  .submenu { position: static; margin-top: 8px; box-shadow: none; }
  .home-section { margin-top: 38px; }
  .home-section-header { gap: 10px; padding-bottom: 4px; }
  .category-icon { width: 32px; height: 32px; font-size: .92rem; }
  .home-section-header h2 { font-size: 1.2rem; }
  .listing { grid-template-columns: 1fr; }
  .subscribe-row { flex-direction: column; }
  .mermaid-dialog-box { min-width: 92vw; min-height: 70vh; }
  .mermaid-dialog-content { min-width: 760px; padding: 18px; }
  .mermaid-dialog-content svg { min-width: 720px; }
}
/* ---- scope tout sous .eaf-gram pour ne pas casser le thÃ¨me WordPress ---- */
  .eaf-gram{
    --navy:#1f3a5f; --blue:#2e75b6; --lightblue:#d6e4f0; --rowalt:#f2f6fb;
    --green:#1e6b3a; --lightgreen:#e2f0e6; --amber:#8a6d00; --lightamber:#fbf3d9;
    --grey:#555; --border:#c9d4e0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:#222; line-height:1.5; max-width:900px; margin:0 auto; padding:1.2rem;
    box-sizing:border-box; font-size:16px;
  }
  .eaf-gram *{box-sizing:border-box;}
  .eaf-gram h1{color:var(--navy); text-align:center; font-size:1.9rem; margin:.2rem 0 .3rem;}
  .eaf-gram .subtitle{color:var(--blue); text-align:center; font-size:1.15rem; margin:.2rem 0;}
  .eaf-gram .meta{color:var(--grey); text-align:center; font-style:italic; font-size:.85rem; margin:.2rem 0 1.4rem;}
  .eaf-gram h2{color:var(--navy); font-size:1.35rem; border-bottom:2px solid var(--blue);
    padding-bottom:.25rem; margin:1.8rem 0 .7rem;}
  .eaf-gram h2 .num{color:var(--blue); margin-right:.4rem;}
  .eaf-gram h3{color:var(--navy); font-size:1.05rem; margin:1.2rem 0 .5rem;}
  .eaf-gram p{margin:.4rem 0;}
  .eaf-gram em{font-style:italic;}

  /* tables */
  .eaf-gram table{border-collapse:collapse; width:100%; margin:.6rem 0; font-size:.92rem;}
  .eaf-gram td,.eaf-gram th{border:1px solid var(--border); padding:.45rem .6rem; vertical-align:top; text-align:left;}
  .eaf-gram thead th{background:var(--navy); color:#fff; font-weight:700;}
  .eaf-gram tbody tr:nth-child(even){background:var(--rowalt);}

  /* fiche notion (label | contenu) */
  .eaf-gram .fiche td:first-child{background:var(--lightblue); color:var(--navy);
    font-weight:700; width:170px; white-space:nowrap;}
  .eaf-gram .fiche tbody tr:nth-child(even){background:#fff;}
  .eaf-gram .fiche tbody tr:nth-child(even) td:first-child{background:var(--lightblue);}

  /* mÃ©thode numÃ©rotÃ©e */
  .eaf-gram .steps td:first-child{background:var(--blue); color:#fff; font-weight:700;
    text-align:center; width:46px; font-size:1.05rem;}

  /* callouts */
  .eaf-gram .callout{border-left:6px solid var(--blue); background:var(--lightblue);
    padding:.7rem 1rem; margin:1rem 0; border-radius:0 4px 4px 0;}
  .eaf-gram .callout .label{font-weight:700; color:var(--blue); display:block; margin-bottom:.25rem;}
  .eaf-gram .callout.tip{border-left-color:var(--green); background:var(--lightgreen);}
  .eaf-gram .callout.tip .label{color:var(--green);}
  .eaf-gram .callout.warn{border-left-color:var(--amber); background:var(--lightamber);}
  .eaf-gram .callout.warn .label{color:var(--amber);}

  @media (max-width:600px){
    .eaf-gram{font-size:15px; padding:.8rem;}
    .eaf-gram h1{font-size:1.45rem;}
    .eaf-gram .fiche td:first-child{width:auto; white-space:normal;}
    .eaf-gram table{font-size:.85rem;}
  }

/* EAF grammar revision sheet: page-scoped adaptation of the supplied HTML fiche. */
.article-eaf-gram {
  max-width: 980px;
}
.article-eaf-gram .article-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.2rem 0.2rem;
  text-align: center;
}
.article-eaf-gram .article-header h1 {
  color: #1f3a5f;
  font-size: clamp(1.8rem, 3.4vw, 2.45rem);
  line-height: 1.15;
  margin: 0.2rem 0 0.35rem;
}
.article-eaf-gram .eaf-gram {
  max-width: 900px;
}
.article-eaf-gram .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.6rem 0;
}
.article-eaf-gram .table-scroll table {
  margin: 0;
  min-width: 560px;
}
@media (max-width: 600px) {
  .article-eaf-gram .article-header {
    padding-inline: 0.8rem;
  }
  .article-eaf-gram .table-scroll table {
    min-width: 520px;
  }
}


/* Fiche EAF — styles Markdown scoppés à la variante Hugo. */
/* ---- scope tout sous .article-eaf-gram pour ne pas casser le thème WordPress ---- */
  .article-eaf-gram{
    --navy:#1f3a5f; --blue:#2e75b6; --lightblue:#d6e4f0; --rowalt:#f2f6fb;
    --green:#1e6b3a; --lightgreen:#e2f0e6; --amber:#8a6d00; --lightamber:#fbf3d9;
    --grey:#555; --border:#c9d4e0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:#222; line-height:1.5; max-width:900px; margin:0 auto; padding:1.2rem;
    box-sizing:border-box; font-size:16px;
  }
  .article-eaf-gram *{box-sizing:border-box;}
  .article-eaf-gram h1{color:var(--navy); text-align:center; font-size:1.9rem; margin:.2rem 0 .3rem;}
  .article-eaf-gram .subtitle{color:var(--blue); text-align:center; font-size:1.15rem; margin:.2rem 0;}
  .article-eaf-gram .meta{color:var(--grey); text-align:center; font-style:italic; font-size:.85rem; margin:.2rem 0 1.4rem;}
  .article-eaf-gram h2{color:var(--navy); font-size:1.35rem; border-bottom:2px solid var(--blue);
    padding-bottom:.25rem; margin:1.8rem 0 .7rem;}
  .article-eaf-gram h2 .num{color:var(--blue); margin-right:.4rem;}
  .article-eaf-gram h3{color:var(--navy); font-size:1.05rem; margin:1.2rem 0 .5rem;}
  .article-eaf-gram p{margin:.4rem 0;}
  .article-eaf-gram em{font-style:italic;}

  /* tables */
  .article-eaf-gram table{border-collapse:collapse; width:100%; margin:.6rem 0; font-size:.92rem;}
  .article-eaf-gram td,.article-eaf-gram th{border:1px solid var(--border); padding:.45rem .6rem; vertical-align:top; text-align:left;}
  .article-eaf-gram thead th{background:var(--navy); color:#fff; font-weight:700;}
  .article-eaf-gram tbody tr:nth-child(even){background:var(--rowalt);}

  /* fiche notion (label | contenu) */
  .article-eaf-gram .fiche td:first-child{background:var(--lightblue); color:var(--navy);
    font-weight:700; width:170px; white-space:nowrap;}
  .article-eaf-gram .fiche tbody tr:nth-child(even){background:#fff;}
  .article-eaf-gram .fiche tbody tr:nth-child(even) td:first-child{background:var(--lightblue);}

  /* méthode numérotée */
  .article-eaf-gram .steps td:first-child{background:var(--blue); color:#fff; font-weight:700;
    text-align:center; width:46px; font-size:1.05rem;}

  /* callouts */
  .article-eaf-gram .callout{border-left:6px solid var(--blue); background:var(--lightblue);
    padding:.7rem 1rem; margin:1rem 0; border-radius:0 4px 4px 0;}
  .article-eaf-gram .callout .label{font-weight:700; color:var(--blue); display:block; margin-bottom:.25rem;}
  .article-eaf-gram .callout.tip{border-left-color:var(--green); background:var(--lightgreen);}
  .article-eaf-gram .callout.tip .label{color:var(--green);}
  .article-eaf-gram .callout.warn{border-left-color:var(--amber); background:var(--lightamber);}
  .article-eaf-gram .callout.warn .label{color:var(--amber);}

  @media (max-width:600px){
    .article-eaf-gram{font-size:15px; padding:.8rem;}
    .article-eaf-gram h1{font-size:1.45rem;}
    .article-eaf-gram .fiche td:first-child{width:auto; white-space:normal;}
    .article-eaf-gram table{font-size:.85rem;}
  }

/* Fiche EAF en Markdown : accroche et adaptation responsive dans la charte du site. */
.article-eaf-gram {
  max-width: 980px;
}
.article-eaf-gram .article-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.2rem 0.2rem;
  text-align: center;
}
.article-eaf-gram .article-header h1 {
  color: #1f3a5f;
  font-size: clamp(1.8rem, 3.4vw, 2.45rem);
  line-height: 1.15;
  margin: 0.2rem 0 0.35rem;
}
.article-eaf-gram > p:first-of-type {
  color: #2e75b6;
  text-align: center;
  font-size: 1.15rem;
  margin: 0.2rem 0;
}
.article-eaf-gram > p:nth-of-type(2) {
  color: #555;
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  margin: 0.2rem 0 1.4rem;
}
.article-eaf-gram table {
  min-width: 560px;
}
@media (max-width: 600px) {
  .article-eaf-gram .article-header {
    padding-inline: 0.8rem;
  }
  .article-eaf-gram table {
    min-width: 520px;
  }
}

/* Les tableaux Markdown restent fluides dans la largeur éditoriale du site. */
.article-eaf-gram table {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}

.article-eaf-gram {
  --navy: var(--pet-fonce);
  --blue: var(--pet);
  --border: var(--ligne);
  font-family: var(--font-texte);
  color: var(--encre);
}
.article-eaf-gram > blockquote {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  border-left: 6px solid var(--pet);
  background: color-mix(in srgb, var(--pet) 12%, var(--papier));
  border-radius: 0 4px 4px 0;
}
.article-eaf-gram > blockquote p {
  margin: 0.35rem 0;
}

/* ==========================================================================
   Hapax — charte constructiviste
   Le style vit dans le cadre (bannière, titres, filets, chiffres).
   Le corps du texte reste sobre et fait pour la lecture longue.
   ========================================================================== */

:root {
  --hapax-rouge: #d5341f;
  --hapax-noir: #14110f;
  --hapax-creme: #f4f0e6;
  --hapax-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}

.section-hapax { background: var(--hapax-creme); }

/* --- Bannière ---------------------------------------------------------- */

.hapax-banner { margin: 0 0 2.5rem; }

.hapax-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 2px solid var(--hapax-noir);
}

/* --- En-tête d'article -------------------------------------------------- */

.section-hapax .article-header { border-bottom: 6px solid var(--hapax-noir); padding-bottom: 1.1rem; margin-bottom: 2.2rem; }

.section-hapax .article-header .eyebrow {
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--hapax-rouge);
}

.section-hapax .article-header h1 {
  font-family: var(--font-principal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.04;
  color: var(--hapax-noir);
  margin: .3rem 0 .5rem;
}

.section-hapax .article-header h1::after {
  content: "";
  display: block;
  width: 3.2em;
  height: 9px;
  background: var(--hapax-rouge);
  margin-top: .7rem;
}

/* --- Corps de texte : sobriété assumée ---------------------------------- */

.section-hapax .article { color: var(--hapax-noir); }

.section-hapax .article p,
.section-hapax .article li { font-family: var(--hapax-serif); line-height: 1.72; }

.section-hapax .article a { color: var(--hapax-rouge); }

.section-hapax .article strong { color: var(--hapax-noir); font-weight: 700; }

/* --- Blocs : le chiffre comme masse plastique ---------------------------- */

.section-hapax .article h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.28rem;
  color: var(--hapax-creme);
  background: var(--hapax-noir);
  padding: .55rem .9rem;
  margin: 3.4rem 0 1.8rem;
  border-left: 14px solid var(--hapax-rouge);
}

/* --- Rubriques ---------------------------------------------------------- */

.section-hapax .article h3 {
  font-weight: 800;
  color: var(--hapax-noir);
  font-size: 1.35rem;
  line-height: 1.22;
  margin: 2.6rem 0 1rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--hapax-noir);
}

/* --- Items -------------------------------------------------------------- */

.section-hapax .article h4 {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 2.1rem 0 .35rem;
  color: var(--hapax-noir);
}

/* Ligne de source : le paragraphe entièrement en italique qui suit un titre */
.section-hapax .article h4 + p em,
.section-hapax .article h4 + p + p em:only-child {
  font-style: normal;
  font-family: var(--font-principal);
  font-size: .82rem;
  letter-spacing: .015em;
  color: #5d564f;
}

.section-hapax .article h4 + p { margin-top: 0; }

/* Conclusion de rubrique */
.section-hapax .article h4:last-of-type { }

.section-hapax .article hr {
  border: 0;
  height: 3px;
  background: var(--hapax-noir);
  margin: 3rem 0;
}

/* --- Index de la rubrique : composition d'affiche ----------------------- */

.section-hapax .listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 2rem; }

.section-hapax .listing-item {
  background: var(--hapax-creme);
  border: 2px solid var(--hapax-noir);
  padding: 0;
  overflow: hidden;
}

.section-hapax .listing-vignette { display: block; border-bottom: 2px solid var(--hapax-noir); }

.section-hapax .listing-vignette img { display: block; width: 100%; height: auto; }

.section-hapax .listing-corps { padding: 1.1rem 1.2rem 1.4rem; }

.section-hapax .listing-item h2 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.06rem;
  line-height: 1.18;
  margin: 0 0 .3rem;
}

.section-hapax .listing-item h2 a { color: var(--hapax-noir); text-decoration: none; }
.section-hapax .listing-item h2 a:hover { color: var(--hapax-rouge); }

.section-hapax .listing-item .meta-line {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--hapax-rouge);
}

.section-hapax .listing-item p { font-family: var(--hapax-serif); font-size: .92rem; line-height: 1.55; }

.section-hapax .home-section-header h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.section-hapax .home-section-header h1::after {
  content: "";
  display: block;
  width: 2.6em;
  height: 9px;
  background: var(--hapax-rouge);
  margin-top: .6rem;
}

@media (max-width: 640px) {
  .section-hapax .article h2 { font-size: 1.08rem; }
  .section-hapax .listing { grid-template-columns: 1fr; }
}

/* --- Correctifs Hapax : cadrage d'image verrouille, grille sans debordement --- */

.hapax-banner img,
.section-hapax .listing-vignette img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  height: auto;
}

.section-hapax .listing {
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
}
/* --- Lecteur audio de l'edition ------------------------------------------ */

.hapax-ecoute {
  border: 2px solid var(--hapax-noir);
  border-left: 14px solid var(--hapax-rouge);
  padding: .9rem 1.1rem 1rem;
  margin: 0 0 2rem;
  background: var(--hapax-creme);
}

.hapax-ecoute-titre {
  margin: 0 0 .55rem;
  font-family: var(--font-principal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  color: var(--hapax-rouge);
}

.hapax-ecoute audio { display: block; width: 100%; }

/* --- Diaporamas en home ---------------------------------------------------- */
.home-diaporamas { padding: 58px var(--layout-gutter) 64px; background: #0f0e0d; color: #f3ede2; }
.home-diaporamas-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1180px; margin: 0 auto 14px; }
.home-diaporamas .home-section-label { color: #d8553f; }
.home-diaporamas-heading h2 { margin: 0; color: #f3ede2; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.05em; line-height: 1; }
.home-diaporamas .text-link { color: #f3ede2; }
.home-diaporamas-all { flex: 0 0 auto; margin-bottom: 3px; }
.home-diaporamas-intro { max-width: 1180px; margin: 0 auto 28px; color: rgb(243 237 226 / .75); font-size: 1rem; line-height: 1.55; }
.home-diaporamas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto; }
.home-diaporamas-card { display: flex; flex-direction: column; padding-bottom: 16px; overflow: hidden; color: inherit; text-decoration: none; background: #171513; border: 1px solid rgb(243 237 226 / .12); border-radius: 4px; transition: transform .2s ease, border-color .2s ease; }
.home-diaporamas-card:hover, .home-diaporamas-card:focus-visible { transform: translateY(-3px); border-color: #d8553f; }
.home-diaporamas-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 25%; margin-bottom: 14px; background: #25221f; }
.home-diaporamas-meta { padding: 0 16px; color: #d8553f; font-family: var(--font-ui); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-diaporamas-title { padding: 6px 16px 0; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
@media (max-width: 760px) {
  .home-diaporamas { padding: 48px 6vw 52px; }
  .home-diaporamas-heading { align-items: start; flex-direction: column; gap: 14px; }
  .home-diaporamas-grid { grid-template-columns: 1fr; gap: 16px; }
}
