@font-face {
  font-family: Manrope;
  src: url("sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("serif.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --sans: Manrope, system-ui, sans-serif;
  --serif: Fraunces, Georgia, serif;
  --paper: #f4f1e8;
  --ink: #242e26;
  --secondary: #4e5b50;
  --pine: #22463a;
  --line: #c6c9b9;
  --white: #fffdf7;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 500 1rem/1.55 var(--sans);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b2552d; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.atelier-width {
  width: min(100% - 2 * clamp(1rem, 5vw, 5rem), 1350px);
  margin-inline: auto;
}

.atelier-header { border-bottom: 1px solid var(--line); }
.atelier-nav, .atelier-footer > div {
  display: flex;
  gap: .85rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.atelier-nav { min-height: 81px; }
.atelier-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  width: fit-content;
  font-size: .92rem;
  font-weight: 820;
  line-height: 1.18;
  letter-spacing: -.035em;
}
.cva-stamp {
  display: grid;
  width: 47px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 55% 53% 43% 45%;
  font: 620 .91rem/1 var(--serif);
  letter-spacing: -.1em;
}
.atelier-nav nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.7rem;
  font-size: .86rem;
  font-weight: 790;
}
.atelier-nav nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.atelier-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr);
  gap: clamp(1.6rem, 5vw, 5rem);
  align-items: end;
  padding-block: clamp(2.75rem, 8vw, 7rem) clamp(2.7rem, 6.2vw, 5.5rem);
}
.atelier-hero h1 {
  font: 525 clamp(3rem, 8.25vw, 8.15rem)/.9 var(--serif);
  letter-spacing: -.077em;
  word-spacing: .055em;
}
.atelier-hero > div > p {
  max-width: 47ch;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.5;
  margin-block: clamp(1.15rem, 2vw, 1.75rem);
}
.atelier-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: .75rem;
  border: 1px solid var(--pine);
  border-radius: 4px;
  padding: .58rem .92rem;
  color: white;
  background: var(--pine);
  font-size: .89rem;
  font-weight: 800;
  text-align: center;
  transition: transform 135ms var(--ease), background 150ms ease-out;
}
.atelier-button:active { transform: scale(.98); }
.test-journey {
  padding: clamp(1rem, 2.8vw, 2rem);
  background: #e4eadd;
  border-top: 4px solid var(--pine);
}
.test-journey h2 { font: 680 clamp(1.25rem, 2vw, 1.9rem)/1.12 var(--serif); letter-spacing: -.045em; }
.test-journey ol { list-style: none; counter-reset: journey; padding: 0; margin: .95rem 0 .75rem; }
.test-journey li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-items: center;
  counter-increment: journey;
  border-bottom: 1px solid #b7c4b5;
}
.test-journey li::before {
  content: counter(journey, decimal-leading-zero);
  color: #3f5949;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.test-journey a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 780;
}
.test-journey p { font-size: .82rem; color: #435347; line-height: 1.4; }
.atelier-section { border-top: 1px solid var(--line); padding-block: 1.6rem clamp(2.3rem, 5vw, 4rem); }
.atelier-heading {
  display: flex;
  justify-content: space-between;
  gap: .65rem 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
}
.atelier-heading h2 { font: 545 clamp(2.1rem, 4.4vw, 4.2rem)/1 var(--serif); letter-spacing: -.06em; }
.atelier-heading p { color: var(--secondary); padding-bottom: .1rem; }
.atelier-covers, .atelier-page-grid { display: grid; gap: clamp(.85rem, 2vw, 1.7rem); }
.atelier-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atelier-cover {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--cover-ground);
  color: var(--cover-ink);
}
.cover-revue { --cover-ground: #eaddca; --cover-ink: #3b241e; }
.cover-carte { --cover-ground: #d8e5d8; --cover-ink: #19382d; }
.cover-club { --cover-ground: #e5dcef; --cover-ink: #292740; }
.cover-laterale { --cover-ground: #e4ebeb; --cover-ink: #183347; }
.cover-media { aspect-ratio: 1.6; overflow: hidden; background: var(--cover-ground); }
.cover-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform 280ms var(--ease); }
.cover-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  padding: .9rem 1rem 1.1rem;
  gap: .45rem .65rem;
}
.cover-copy h3 { font: 630 clamp(1.2rem, 2.1vw, 2rem)/1.06 var(--serif); letter-spacing: -.042em; }
.cover-copy p { grid-column: 1/-1; font-size: .89rem; line-height: 1.4; }
.cover-copy > span, .atelier-list a > span:last-child { transition: transform 190ms var(--ease); }
.atelier-page-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.atelier-list h3 { margin-block: .25rem .7rem; font-size: .9rem; }
.atelier-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: .65rem .2rem;
  border-block-start: 1px solid var(--line);
}
.atelier-list a:last-child { border-block-end: 1px solid var(--line); }
.atelier-list strong { display: block; line-height: 1.22; }
.atelier-list small { display: block; font-size: .85rem; color: var(--secondary); padding-top: .22rem; }
.atelier-footer { background: #22382e; color: white; padding: .9rem 0; font-size: .84rem; }
.atelier-footer a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 750; }

/* Propositions et règles de publication */
.moderation-page { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100dvh; }
.admin-side {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding: 2rem 1.2rem 1.25rem;
  color: #edf4e7;
  background: #20352e;
}
.admin-side .cva-stamp { color: #d4ebbb; }
.admin-side nav { display: grid; gap: .2rem; font-size: .89rem; }
.admin-side nav a, .rail-return { min-height: 44px; display: flex; align-items: center; padding: .58rem .68rem; border-radius: 4px; }
.admin-side nav a[aria-current="page"] { background: #d4ebbb; color: #1e342a; font-weight: 820; }
.rail-return { margin-top: auto; font-size: .83rem; font-weight: 750; }
.admin-main { width: min(100%, 1320px); justify-self: center; padding: clamp(1.5rem, 4.2vw, 4.2rem); }
.admin-context { margin-bottom: .65rem; color: #476553; font-size: .81rem; font-weight: 820; }
.admin-header h1 { font-size: clamp(2.2rem, 4.8vw, 4.6rem); line-height: 1.04; letter-spacing: -.072em; }
.admin-header h1 + p { margin: .84rem 0 1.55rem; max-width: 66ch; }
.rule-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  align-items: center;
  background: #e3eade;
  border-left: 4px solid var(--pine);
  padding: .85rem 1.05rem;
  margin-bottom: 1.4rem;
}
.rule-panel h2 { font-size: 1.01rem; line-height: 1.24; margin-bottom: .28rem; }
.rule-panel p { font-size: .87rem; line-height: 1.44; color: #3f5245; max-width: 72ch; }
.rule-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 124px;
  gap: .62rem;
  white-space: nowrap;
  cursor: pointer;
}
.rule-toggle input { position: absolute; opacity: 0; }
.switch-track { position: relative; width: 43px; height: 25px; border: 1px solid #708075; border-radius: 40px; background: #f8faf3; }
.switch-track::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  background: #5d6e61;
  transition: transform 165ms var(--ease);
}
.rule-toggle input:focus-visible + .switch-track { outline: 2px solid #b2552d; outline-offset: 4px; }
.rule-toggle input:checked + .switch-track { background: var(--pine); border-color: var(--pine); }
.rule-toggle input:checked + .switch-track::after { transform: translateX(18px); background: white; }
.switch-label { font-size: .82rem; font-weight: 800; }
.review-tabs { display: flex; gap: .25rem 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.review-tabs button {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--secondary);
  font-size: .92rem;
  font-weight: 790;
  padding: .63rem .28rem .54rem;
  min-height: 44px;
}
.review-tabs button span { min-width: 1.44rem; color: var(--ink); background: #e5e7db; text-align: center; border-radius: 4px; font-variant-numeric: tabular-nums; font-size: .76rem; padding-inline: .2rem; }
.review-tabs button[aria-pressed="true"] { border-color: var(--pine); color: var(--pine); }
.review-message { min-height: 1.85rem; color: #264d37; font-size: .84rem; font-weight: 800; padding-block: .26rem; }
.review-columns { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: clamp(.85rem, 2.2vw, 2rem); align-items: start; }
.review-queue { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line); }
.review-queue li { border-block-end: 1px solid var(--line); }
.queue-button {
  min-height: 77px;
  width: 100%;
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .65rem .54rem;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: start;
}
.queue-button[aria-current="true"] { border-left-color: var(--pine); background: #e8ebdf; }
.queue-date {
  display: grid;
  width: 49px;
  height: 45px;
  align-content: center;
  justify-items: center;
  line-height: 1;
  border: 1px solid #acbbad;
  font-weight: 800;
}
.queue-date b { font-size: 1.18rem; }
.queue-date small { font-size: .67rem; margin-top: .24rem; text-transform: uppercase; }
.queue-copy { min-width: 0; overflow-wrap: anywhere; }
.queue-copy strong { display: block; font-size: .95rem; line-height: 1.26; }
.queue-copy small { color: var(--secondary); font-size: .78rem; display: block; margin-top: .3rem; }
.review-empty { color: var(--secondary); padding: .85rem 0; font-size: .87rem; }
.review-detail {
  min-height: 190px;
  overflow-wrap: anywhere;
  padding: clamp(1rem, 2.7vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
}
.review-detail h2 { font: 620 clamp(1.55rem, 2.9vw, 2.6rem)/1.06 var(--serif); letter-spacing: -.044em; margin: .4rem 0 .75rem; }
.detail-label { color: #42634d; font-size: .73rem; font-weight: 820; letter-spacing: .075em; text-transform: uppercase; }
.detail-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: .8rem; margin: 1rem 0; }
.detail-fields > div { border-top: 1px solid var(--line); padding: .45rem 0; }
.detail-fields dt { color: var(--secondary); font-size: .76rem; }
.detail-fields dd { margin: .08rem 0 0; font-size: .91rem; font-weight: 760; }
.detail-summary { font-size: .91rem; margin-bottom: .8rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.button-secondary { color: var(--pine); background: transparent; }
.button-danger { border-color: #7d382e; background: #7d382e; }
.detail-refusal { margin-bottom: .85rem; color: #752f29; font-size: .88rem; }
.demo-note { color: var(--secondary); font-size: .83rem; margin-top: 1.3rem; }
#refuse-dialog { width: min(calc(100% - 1.5rem), 470px); padding: 0; border: 1px solid #afbbb0; border-radius: 10px; background: var(--white); color: var(--ink); }
#refuse-dialog::backdrop { background: #1b2a23a6; }
.refuse-form { padding: 1.3rem; }
.refuse-form p { margin-block: .42rem .8rem; }
.refuse-form label { display: block; font-size: .84rem; font-weight: 800; margin-bottom: .2rem; }
.refuse-form textarea { width: 100%; max-width: 100%; display: block; margin-bottom: 1rem; border: 1px solid #85968b; border-radius: 4px; padding: .55rem; background: white; }

@media (hover: hover) and (pointer: fine) {
  .atelier-cover:hover img { transform: scale(1.033); }
  .atelier-cover:hover .cover-copy > span, .atelier-list a:hover > span:last-child { transform: translate(2px, -2px); }
  .atelier-nav nav a:hover, .test-journey a:hover, .atelier-footer a:hover, .rail-return:hover { text-decoration: underline; text-underline-offset: .2em; }
  .queue-button:hover, .review-tabs button:hover { background: #e8ebdf; }
  .admin-side nav a:not([aria-current="page"]):hover { background: #354a40; }
}

@media (max-width: 940px) {
  .moderation-page { grid-template-columns: 187px minmax(0, 1fr); }
  .admin-side { padding-inline: .8rem; }
  .admin-side .atelier-brand { gap: .45rem; font-size: .85rem; }
}

@media (max-width: 710px) {
  .atelier-nav { flex-wrap: wrap; gap: .25rem 1rem; padding-block: .65rem .16rem; }
  .atelier-nav nav { column-gap: 1rem; font-size: .79rem; }
  .atelier-hero { grid-template-columns: 1fr; gap: 1.45rem; }
  .atelier-hero h1 { font-size: clamp(2.95rem, 11vw, 5rem); }
  .atelier-heading { flex-wrap: wrap; align-items: start; gap: .44rem 1rem; }
  .atelier-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moderation-page { display: block; }
  .admin-side { position: static; min-height: 0; gap: .3rem; padding: .75rem 1rem .25rem; }
  .admin-side .atelier-brand { gap: .65rem; }
  .admin-side nav { display: flex; flex-wrap: wrap; gap: .1rem .3rem; }
  .admin-side nav a { font-size: .76rem; padding: .34rem .5rem; }
  .rail-return { font-size: .77rem; padding-inline: .3rem; width: fit-content; }
  .admin-main { padding: 1.3rem 1rem 2rem; }
}
@media (max-width: 485px) {
  .atelier-covers, .atelier-page-grid, .review-columns { grid-template-columns: 1fr; }
  .atelier-footer > div { align-items: start; flex-direction: column; gap: .15rem; }
  .rule-panel { flex-direction: column; align-items: start; gap: .35rem; }
  .review-tabs { gap: .1rem .6rem; }
  .review-tabs button { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
.detail-route {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: .45rem;
  font-size: .84rem;
  font-weight: 770;
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.detail-image {
  display: block;
  width: 100%;
  max-height: 180px;
  aspect-ratio: 3.2;
  object-fit: cover;
  object-position: center 59%;
  border-radius: 4px;
}
