body.cy-editorial {
  --cyed-ink: #223035;
  --cyed-deep: #182529;
  --cyed-muted: #526269;
  --cyed-line: #d7e0e1;
  --cyed-paper: #f4f7f7;
  --cyed-gutter: clamp(20px, 5vw, 72px);
  --cyed-width: 1200px;
}

.cy-editorial .cyed-hero {
  background: var(--cyed-deep);
  color: #fff;
  padding: clamp(108px, 10vw, 148px) var(--cyed-gutter) clamp(38px, 5vw, 70px);
}

.cy-editorial .cyed-wrap {
  max-width: var(--cyed-width);
  margin-inline: auto;
}

.cy-editorial .cyed-hero .cy2-fil {
  display: block;
  padding: 0 0 17px;
  margin: 0 0 clamp(24px, 3.5vw, 46px);
  border-bottom: 1px solid #53656b;
  color: #c4d2d4;
  font-size: 13px;
  line-height: 1.65;
}

.cy-editorial .cyed-hero .cy2-fil a { color: #e2ebec; }
.cy-editorial .cyed-hero .cy2-fil a:hover { color: #fff; text-decoration: underline; }

.cy-editorial .cyed-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.cy-editorial--guide .cyed-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.cy-editorial--dossier .cyed-hero-grid { grid-template-columns: minmax(0, 1fr); }
.cy-editorial--fiche .cyed-hero-grid { max-width: 880px; }

.cy-editorial .cyed-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 650;
  font-size: clamp(36px, 4.1vw, 64px);
  line-height: 1.07;
  letter-spacing: -.047em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-transform: none;
}

.cy-editorial--dossier .cyed-heading { max-width: 960px; }
.cy-editorial--fiche .cyed-hero h1 { font-size: clamp(36px, 4.35vw, 60px); }

.cy-editorial .cyed-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 13px;
  margin-top: 23px;
  color: #c9d6d7;
  font: 500 14px/1.6 "DM Sans", system-ui, sans-serif;
}

.cy-editorial .cyed-byline a { color: #fff; font-weight: 700; }
.cy-editorial .cyed-byline a:hover { text-decoration: underline; }
.cy-editorial .cyed-reading { display: inline-flex; gap: 10px; white-space: nowrap; }
.cy-editorial .cyed-reading::before,
.cy-editorial .cyed-reading > span::before { content: "·"; }
.cy-editorial .cyed-reading > span::before { margin-right: 10px; }

.cy-editorial .cyed-cover,
.cy-editorial .cyed-inline-cover {
  overflow: hidden;
  background: #394b51;
  margin: 0;
  border-radius: 4px;
}

.cy-editorial .cyed-cover img,
.cy-editorial .cyed-inline-cover img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  opacity: 1;
  transform: none;
  clip-path: none;
}

.cy-editorial--dossier .cyed-cover img { aspect-ratio: 3.25 / 1; }
.cy-editorial--fiche .cyed-inline-cover img { aspect-ratio: 2 / 1; }

/* Les lecteurs d’articles ont leur propre largeur de composition. */
body.cy-editorial #qodef-page-outer #qodef-page-inner {
  width: auto;
  max-width: calc(var(--cyed-width) + 2 * var(--cyed-gutter));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 88px) var(--cyed-gutter) 0;
  box-sizing: border-box;
}

body.cy-editorial .qodef-layout--template > .qodef-grid-inner {
  display: block;
  margin: 0;
}

body.cy-editorial .qodef-layout--template > .qodef-grid-inner > .qodef-col--content {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.cy-editorial .qodef--single .qodef-e-top-holder,
body.cy-editorial .qodef--single .qodef-col--sidebar { display: none; }

body.cy-editorial .qodef--single .qodef-e-bottom-holder {
  max-width: 750px;
  margin: 24px auto 0;
}

.cy-editorial .cyed-layout {
  display: grid;
  grid-template-columns: minmax(0, 750px);
  justify-content: center;
  margin-inline: auto;
}

.cy-editorial--guide .cyed-layout--plan {
  grid-template-columns: minmax(172px, 220px) minmax(0, 730px);
  gap: clamp(30px, 6vw, 100px);
}

.cy-editorial--fiche .cyed-layout--plan {
  grid-template-columns: minmax(0, 760px) minmax(172px, 230px);
  gap: clamp(30px, 6vw, 100px);
}

.cy-editorial--fiche .cyed-layout--plan > .cyed-prose { grid-column: 1; grid-row: 1; }
.cy-editorial--fiche .cyed-toc { grid-column: 2; grid-row: 1; }
.cy-editorial--dossier .cyed-layout { grid-template-columns: minmax(0, 760px); }

.cy-editorial .cyed-toc {
  position: sticky;
  align-self: start;
  top: 116px;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--cyed-line);
  font: 500 14px/1.55 "DM Sans", system-ui, sans-serif;
}

.cy-editorial .cyed-toc-inline { display: none; }
.cy-editorial--dossier .cyed-toc { display: none; }
.cy-editorial--dossier .cyed-toc-inline { display: block; }

.cy-editorial .cyed-toc p,
.cy-editorial .cyed-toc-inline summary {
  margin: 0 0 12px;
  color: var(--cyed-ink);
  font-size: 14px;
  font-weight: 750;
}

.cy-editorial .cyed-toc-inline {
  margin: 26px 0 36px;
  border-block: 1px solid var(--cyed-line);
}

.cy-editorial .cyed-toc-inline summary {
  margin: 0;
  padding: 13px 0;
  cursor: pointer;
}

.cy-editorial .cyed-toc ol,
.cy-editorial .cyed-toc-inline ol {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cy-editorial .cyed-toc-inline ol { padding-bottom: 16px; }
.cy-editorial .cyed-toc a,
.cy-editorial .cyed-toc-inline a { color: var(--cyed-muted); }
.cy-editorial .cyed-toc a:hover,
.cy-editorial .cyed-toc-inline a:hover { color: var(--cyed-ink); text-decoration: underline; }

.cy-editorial .cyed-prose {
  min-width: 0;
  color: #34434a;
  font: 400 clamp(17px, 1.45vw, 19px)/1.72 "DM Sans", system-ui, sans-serif;
  overflow-wrap: break-word;
}

.cy-editorial .cyed-prose p { margin: 0 0 1.05em; }

.cy-editorial .cyed-intro > p:first-child {
  max-width: 59ch;
  color: var(--cyed-ink);
  font-size: clamp(20px, 2.15vw, 25px);
  font-weight: 500;
  line-height: 1.47;
  letter-spacing: -.018em;
}

.cy-editorial .cyed-section { margin: clamp(32px, 5vw, 66px) 0 0; }

.cy-editorial .cyed-prose h2,
.cy-editorial .cyed-prose h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--cyed-ink);
  letter-spacing: -.033em;
  text-transform: none;
  text-wrap: pretty;
}

.cy-editorial .cyed-prose h2 {
  margin: 0 0 .58em;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.13;
  scroll-margin-top: 112px;
}

.cy-editorial .cyed-prose h3 {
  margin: 1.15em 0 .42em;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.28;
}

.cy-editorial .cyed-prose h2:target { text-decoration: underline .075em #b8cbd0; text-underline-offset: .15em; }

.cy-editorial .cyed-section > :last-child { margin-bottom: 0; }
.cy-editorial .cyed-section > ul,
.cy-editorial .cyed-section > ol { padding-left: 1.35em; margin: .8em 0 1.05em; }
.cy-editorial .cyed-section > ul > li + li,
.cy-editorial .cyed-section > ol > li + li { margin-top: .55em; }
.cy-editorial .cyed-section li::marker { color: #50686e; font-weight: 750; }

.cy-editorial--fiche .cyed-section > ol > li {
  padding: 0 0 .65em .4em;
  border-bottom: 1px solid var(--cyed-line);
}

.cy-editorial .cyed-section :is(p, li) a {
  color: #2a515d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cy-editorial .cyed-prose a:focus-visible,
.cy-editorial .cyed-hero a:focus-visible,
.cy-editorial .cyed-toc a:focus-visible,
.cy-editorial .cyed-toc-inline summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.cy-editorial .cyed-photo-principale:empty,
.cy-editorial .cyed-photo-secondaire:empty { display: none; }

.cy-editorial :is(.cyed-photo-principale, .cyed-photo-secondaire, .cyed-inline-cover, .cyed-galerie) {
  margin: clamp(28px, 4vw, 52px) 0 0;
}

.cy-editorial .cyed-photo-secondaire { width: min(100%, 520px); margin-left: auto; }
.cy-editorial .cyed-galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }

.cy-editorial .cyed-prose .cy2-art-photo {
  margin: 0;
  opacity: 1;
  transform: none;
  overflow: hidden;
  border-radius: 4px;
}

.cy-editorial .cyed-prose .cy2-art-photo img { display: block; width: 100%; height: auto; }

.cy-editorial .cyed-prose .cy2-art-fin {
  margin: clamp(44px, 7vw, 86px) 0 0;
  padding: clamp(22px, 4vw, 40px);
  border: 0;
  border-left: 3px solid #9aafb3;
  border-radius: 0 4px 4px 0;
  background: var(--cyed-paper);
  color: var(--cyed-ink);
  scroll-margin-top: 116px;
}

.cy-editorial .cyed-prose .cy2-art-fin :is(.cy2-art-fin-txt, .cy2-art-fin-titre, .cy2-art-fin-titre a) { color: var(--cyed-ink); }
.cy-editorial .cyed-prose .cy2-art-fin .cy2-art-fin-txt { text-transform: none; letter-spacing: 0; }

.cy-editorial .cy2-art-fin-actions { gap: 14px; }

.cy-editorial .cy2-art-fin-actions > .cy2-btn {
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.cy-editorial .cy2-art-fin-actions > .cy2-btn--contour { background: #fff; transition: none; }
.cy-editorial .cy2-art-fin-actions > .cy2-btn--contour::before { display: none; }
.cy-editorial .cy2-art-fin-actions > .cy2-btn--contour:is(:hover, :focus-visible) { background: var(--cy2-ardoise); }

.cy-editorial .cy2-art-fin-actions > .cy2-btn:focus-visible {
  outline: 2px solid var(--cyed-ink);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .cy-editorial .cy2-art-fin-actions { flex-direction: column; }
  .cy-editorial .cy2-art-fin-actions > .cy2-btn { width: 100%; }
}

@media (max-width: 1000px) {
  .cy-editorial--guide .cyed-layout--plan,
  .cy-editorial--fiche .cyed-layout--plan { grid-template-columns: minmax(0, 750px); gap: 0; }
  .cy-editorial .cyed-toc { display: none; }
  .cy-editorial .cyed-toc-inline { display: block; }
}

@media (max-width: 760px) {
  .cy-editorial .cyed-hero { padding-top: 38px; }
  .cy-editorial--guide .cyed-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cy-editorial .cyed-hero h1 { font-size: clamp(32px, 7.8vw, 46px); }
  .cy-editorial .cyed-hero .cy2-fil { padding-bottom: 12px; margin-bottom: 21px; }
  .cy-editorial .cyed-byline { font-size: 13px; gap: 5px 10px; }
  .cy-editorial .cyed-reading { gap: 7px; }
  .cy-editorial .cyed-reading > span::before { margin-right: 7px; }
  .cy-editorial .cyed-cover img { aspect-ratio: 16 / 10; }
  .cy-editorial--dossier .cyed-cover img { aspect-ratio: 2 / 1; }
  .cy-editorial .cyed-photo-secondaire { width: 100%; }
}
