/* ==== Public pages (2026-12) =============================================
   Homepage showcase, Nous découvrir, Nous contacter, legal notice, privacy
   policy — from the validated design canvas ("Parcours non connecté").
   Every rule is scoped to a `.pub-*` class used only by these views, so the
   signed-in spaces and the admin area are untouched.

   Design-system tokens, as aliases of the existing ones (nothing renamed). */
:root {
  --ds-green: var(--color-primary-green);
  --ds-green-dark: var(--color-dark-green);
  --ds-green-hero: var(--color-hero-green);
  --ds-green-light: var(--color-light-green);
  --ds-cream: var(--color-primary-cream);
  --ds-cream-light: var(--color-very-light-cream);
  --ds-page: #FCF8ED; /* the ramparts illustration's own background */
  --ds-text: var(--color-text);
  --ds-muted: var(--color-text-muted);
  --ds-border: var(--color-border);
}

/* Public pages sit on the illustration's cream, so the footer image joins
   the page without a seam. */
body.pub-body {
  background: var(--ds-page);
}

/* On the public pages' cream, the whole footer illustration is shown (no
   crop), slightly raised so its sky blends into the page (2026-12). */
body.pub-body .ramparts-illustration {
  max-height: none;
}

body.pub-body .site-footer--illustrated {
  margin-top: -0.5rem;
}

/* ---- Shared pieces ---- */

.pub-num {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  color: var(--ds-green);
}

.pub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.pub-button--cream {
  background: var(--ds-cream-light);
  color: var(--ds-green-dark);
}

.pub-button--cream:hover {
  background: var(--ds-cream);
  color: var(--ds-green-dark);
}

.pub-arrow::after {
  content: "→";
  font-size: 1.1em;
  line-height: 1;
}

/* On green, the default green focus ring would vanish. */
.pub-on-green a:focus-visible,
.pub-hero a:focus-visible,
.pub-home a:focus-visible,
.pub-footer-band a:focus-visible,
.pub-final a:focus-visible {
  outline-color: var(--ds-cream-light);
}

/* Green title band of the inner public pages. */
.pub-hero {
  padding: 3rem 1.25rem 2.5rem;
  background: var(--ds-green-hero);
  text-align: center;
}

.pub-hero__inner {
  max-width: 70rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pub-hero__eyebrow {
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ds-green-light);
}

.pub-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.25rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ds-cream-light);
  overflow-wrap: anywhere;
}

.pub-hero__title.pub-hero__title--discover {
  font-size: 2.875rem;
}

@media (min-width: 56.25rem) {
  .pub-hero__title.pub-hero__title--discover {
    font-size: 4.75rem;
  }
}

.pub-hero__accent {
  font-family: var(--font-script);
  font-size: 1.1em;
  text-transform: none;
  color: var(--ds-green-light);
}

.pub-hero__lede {
  margin: 0.25rem 0 0;
  max-width: 42.5rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ds-green-light);
}

.pub-anchors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2rem;
  margin-top: 0.5rem;
  font-size: 1.0625rem;
}

.pub-anchors a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ds-green-light);
}

.pub-anchors a:hover {
  color: var(--ds-cream-light);
}

@media (min-width: 56.25rem) {
  .pub-hero {
    padding: 4rem 1.5rem 3.5rem;
  }

  .pub-hero__eyebrow {
    font-size: 2.75rem;
  }

  .pub-hero__title {
    font-size: 5rem;
  }

  .pub-hero__lede {
    font-size: 1.125rem;
  }

  .pub-anchors {
    gap: 0.25rem 2.75rem;
    margin-top: 1rem;
    font-size: 1.125rem;
  }
}

/* Numbered headings shared by the legal notice, privacy and contact pages. */
.pub-numbered {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--ds-green-dark);
}

.pub-numbered .pub-num {
  font-size: 2.125rem;
}

/* ---- Homepage showcase (variant "Centre") ---- */

/* The showcase fills the screen between the header and the footer band. */
.site-content:has(> .pub-home) {
  display: flex;
  flex-direction: column;
}

.pub-home {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ds-green-hero);
}

.pub-home__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3.5rem 1.25rem 0;
  text-align: center;
}

.pub-home__eyebrow {
  font-family: var(--font-script);
  font-size: 1.625rem;
  line-height: 1;
  color: var(--ds-green-light);
}

.pub-home__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.25rem;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ds-cream-light);
}

.pub-home__title-line {
  display: block;
}

.pub-home__accent {
  font-family: var(--font-script);
  font-size: 1.15em;
  text-transform: none;
  color: var(--ds-green-light);
}

.pub-home .pub-button {
  align-self: stretch;
}

/* The ramparts drawing, on the hero's own green. */
.pub-home__illustration {
  height: 17rem;
  background-image: url("/assets/illustration_remparts_hauts-7c02dc0c.jpg");
  background-repeat: no-repeat;
  background-position: 70% bottom;
  background-size: 48.75rem auto;
}

@media (max-width: 22.5rem) {
  .pub-home__content {
    gap: 1.125rem;
    padding: 2.5rem 1rem 0;
  }

  .pub-home__eyebrow {
    font-size: 1.45rem;
  }

  .pub-home__title {
    font-size: 2.75rem;
  }

  .pub-home__illustration {
    height: 14.25rem;
    background-size: 41.25rem auto;
  }
}

@media (min-width: 40rem) {
  .pub-home__content {
    gap: 1.5rem;
    padding: 5.5rem 3rem 0;
  }

  .pub-home__eyebrow {
    font-size: 1.875rem;
  }

  .pub-home__title {
    font-size: 4.75rem;
  }

  .pub-home .pub-button {
    align-self: center;
  }

  .pub-home__illustration {
    height: 22.5rem;
    background-position: 65% bottom;
    background-size: 67.5rem auto;
  }
}

@media (min-width: 56.25rem) {
  .pub-home__content {
    max-width: 60rem;
    margin: 0 auto;
    padding-top: 4.5rem;
  }

  .pub-home__title {
    font-size: 5.5rem;
    line-height: 1;
  }

  /* Desktop: "Un peu de temps. Beaucoup" on the first line, "d'entraide."
     under it. */
  .pub-home__title-line {
    display: inline;
  }

  .pub-home__accent {
    display: block;
  }

  /* Only the empty sky above the drawing is cut (top 18%): the tree tops
     on the right stay whole. */
  .pub-home__illustration {
    height: calc(100vw / 3 * 0.82);
    background-position: center bottom;
    background-size: 100% auto;
  }
}

/* Desktop: the showcase always fits the window, without scrolling (2026-12).
   The page is exactly the window's height; the title and its spacing follow
   that height, and the illustration takes the space left. At its full size
   it spans the whole width (bottom 82% of the image, tree tops included);
   shorter, the same framing scales down against the right edge, on its own green (the drawing's
   background is the hero green, so no edge shows). Below 34rem of height the
   page scrolls again rather than becoming unreadable. */
@media (min-width: 56.25rem) and (min-height: 34rem) {
  body.pub-body:has(.pub-home) {
    height: 100vh;
    height: 100dvh;
  }

  .site-content:has(> .pub-home),
  .pub-home {
    flex: 1 1 auto;
    min-height: 0;
  }

  .pub-home__content {
    gap: clamp(0.75rem, 2.7vh, 1.5rem);
    padding-top: clamp(1.5rem, 8vh, 4.5rem);
  }

  .pub-home__eyebrow {
    font-size: clamp(1.5rem, 3.6vh, 1.875rem);
  }

  .pub-home__title {
    font-size: clamp(3rem, 9.8vh, 5.5rem);
  }

  .pub-home__illustration {
    flex: 1 1 0;
    height: auto;
    min-height: 6rem;
    max-height: calc(100vw / 3 * 0.82);
    background-size: auto calc(100% / 0.82);
    /* Held on the right edge: the drawing's right side is cut by the frame,
       its left side fades into the green, so no edge ever shows. */
    background-position: right bottom;
  }
}

/* Homepage footer: the illustration is already in the hero, so the footer
   is a plain green band of links (board "Centre"). */
.pub-footer-band {
  padding: 0.5rem 1rem 1.25rem;
  background: var(--ds-green-hero);
  border-top: 1px solid rgba(253, 250, 240, 0.2);
}

.pub-footer-band__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 0.625rem;
  font-size: 0.875rem;
}

.pub-footer-band__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ds-green-light);
}

.pub-footer-band__nav a:hover {
  color: var(--ds-cream-light);
}

.pub-footer-band__sep {
  color: var(--ds-green-light);
}

/* Narrowest phones: "Nous contacter" on its own line (board "Centre" 320). */
@media (max-width: 22.5rem) {
  .pub-footer-band__sep--last {
    display: none;
  }

  .pub-footer-band__nav a:last-child {
    flex-basis: 100%;
    justify-content: center;
  }
}

@media (min-width: 40rem) {
  .pub-footer-band__nav {
    gap: 0 1rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 56.25rem) {
  .pub-home {
    border-top: none;
  }

  .pub-footer-band {
    border-top: none;
    padding: 1.25rem 1.5rem 1.6rem;
  }

  .pub-footer-band__nav {
    gap: 0.5rem 1.75rem;
  }
}

/* ---- Nous découvrir ---- */

.pub-discover {
  background: var(--ds-page);
}

.pub-section {
  padding: 4rem 1.5rem;
}

/* Continues the section above on the same background: no double spacing. */
.pub-section--follow {
  padding-top: 0;
}

.pub-section--cream {
  background: var(--ds-cream);
}

.pub-section__inner {
  max-width: 70rem;
  margin: 0 auto;
}

.pub-section__inner--narrow {
  max-width: 47.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.pub-section h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: bold;
  color: var(--ds-green-dark);
}

.pub-section h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ds-green-dark);
}

.pub-section p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
}

.pub-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.pub-two__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% 40%;
  border-radius: 4px;
}

.pub-section .pub-lead {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.4;
}

.pub-section .pub-script {
  font-family: var(--font-script);
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--ds-green);
}

.pub-quote {
  margin: 0.5rem 0;
  padding: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 2.125rem;
  line-height: 1.15;
  color: var(--ds-green-dark);
}

.pub-intro {
  max-width: 45rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.pub-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ds-green);
}

.pub-steps .pub-num {
  font-size: 3rem;
}

.pub-steps p {
  line-height: 1.6;
}

.pub-block {
  margin-top: 4rem;
}

.pub-note {
  margin-top: 2.5rem;
  max-width: 45rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ds-border);
}

.pub-section .pub-note h3 {
  font-size: 1.25rem;
}

/* Dashboard example: a static, clearly fictitious picture of the signed-in
   space, never real data. */
.pub-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--ds-border);
}

.pub-example figure {
  margin: 0;
}

.pub-example__badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--ds-cream);
  border: 1px solid var(--ds-border);
  color: var(--ds-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-mock {
  position: relative;
  padding: 1.125rem 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(32, 37, 31, 0.08);
  font-size: 0.8125rem;
  pointer-events: none;
  user-select: none;
}

.pub-mock p {
  font-size: inherit;
  line-height: 1.4;
}

.pub-mock__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pub-mock__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ds-green-dark);
}

.pub-mock__cta {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  padding: 0 0.75rem;
  border: 1px solid var(--ds-green);
  border-radius: 4px;
  background: var(--ds-cream-light);
  color: var(--ds-green-dark);
  font-weight: 700;
}

.pub-mock__seg {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 3px;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  font-weight: 600;
}

.pub-mock__seg > span:not(.pub-mock__pin) {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.pub-mock__seg span:first-child {
  background: var(--ds-green);
  color: var(--ds-cream-light);
}

.pub-mock__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.375rem;
  align-items: start;
}

.pub-mock__cal {
  max-width: 15rem;
}

.pub-mock__cal-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--ds-green-dark);
}

.pub-mock__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
  font-size: 0.72rem;
}

.pub-mock__days span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.375rem;
  border-radius: 3px;
}

.pub-mock__days .is-head {
  color: var(--ds-muted);
  font-weight: 700;
}

.pub-mock__days .is-on {
  background: var(--ds-green);
  color: var(--ds-cream-light);
  font-weight: 700;
}

.pub-mock__row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ds-border);
}

.pub-mock__row:first-child {
  padding-top: 0;
  border-top: none;
}

.pub-mock__date {
  text-align: center;
}

.pub-mock__date b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ds-green-dark);
}

.pub-mock__date span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.pub-mock .pub-mock__name {
  margin: 0 0 0.15rem;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--ds-green-dark);
}

.pub-mock .pub-mock__meta {
  color: var(--ds-muted);
}

.pub-mock__full {
  display: inline-block;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #E8E7DD;
  color: #4F554D;
  font-weight: 700;
}

.pub-mock__pin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border: 2px solid var(--ds-green);
  border-radius: 50%;
  background: var(--ds-cream-light);
  color: var(--ds-green-dark);
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(32, 37, 31, 0.15);
}

/* A pin sits on the top-right corner of the element it points at, so it
   follows that element whatever the width. */
.pub-mock__anchor { position: relative; }
.pub-mock__anchor > .pub-mock__pin { top: -1.25rem; right: -1.5rem; }
.pub-mock__cal > .pub-mock__pin { top: -0.5rem; right: 0; }
.pub-mock__pin--top-left { top: -0.9rem; left: 1.25rem; }

.pub-mock__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.pub-mock .pub-mock__eyebrow {
  margin: 0 0 0.25rem;
}

.pub-mock .pub-mock__heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 2.125rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ds-green-dark);
}

.pub-mock__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 0.875rem;
  padding: 0.75rem 0;
  border-top: 2px solid var(--ds-green);
  border-bottom: 1px solid var(--ds-border);
}

.pub-mock__facts dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

.pub-mock__facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.pub-mock .pub-mock__desc {
  margin: 0 0 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pub-mock__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 6px;
  background: #EEF5EF;
}

.pub-mock__count b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.625rem;
  color: var(--ds-green-dark);
  vertical-align: -2px;
}

.pub-mock__btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 4px;
  background: var(--ds-green);
  color: var(--ds-cream-light);
  font-weight: 700;
}

.pub-mock__wa {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
  padding: 0.75rem 0.875rem;
  border: 1px dashed #C9C8BC;
  border-radius: 6px;
  color: #4F554D;
}

.pub-mock__wa-icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--ds-green);
  border-radius: 50%;
}

.pub-caption {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--ds-muted);
}

.pub-example__subtitle {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--ds-green-dark);
}

.pub-legend {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-legend li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.875rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 2px solid var(--ds-green);
}

.pub-legend .pub-num {
  font-size: 2.75rem;
}

.pub-legend__title {
  margin: 0.125rem 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ds-text);
}

.pub-section .pub-legend p {
  font-size: 1.03rem;
  line-height: 1.55;
}

.pub-who {
  display: inline-block;
  margin-right: 0.375rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--ds-green-light);
  color: var(--ds-green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: 1px;
}

/* Join: two choices on the hero green. */
.pub-final {
  padding: 4.5rem 1.5rem 5rem;
  background: var(--ds-green-hero);
  color: var(--ds-green-light);
  text-align: center;
}

.pub-final__inner {
  max-width: 70rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pub-final .pub-final__kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ds-green-light);
}

.pub-final h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.625rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ds-cream-light);
}

.pub-choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.pub-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1rem;
}

.pub-choice h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ds-cream-light);
}

.pub-final p {
  margin: 0;
  font-size: 1.0625rem;
}

.pub-final p a {
  color: var(--ds-cream-light);
}

@media (min-width: 56.25rem) {
  .pub-section {
    padding: 5.25rem 1.5rem;
  }

  .pub-section--follow {
    padding-top: 0;
  }

  .pub-section h2 {
    font-size: 2.5rem;
  }

  .pub-section h3 {
    font-size: 1.75rem;
  }

  .pub-two {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4.5rem;
    /* The text ends with the photo, so the next section follows closely. */
    align-items: end;
  }

  .pub-quote {
    font-size: 2.75rem;
  }

  .pub-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pub-steps--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pub-example {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 4rem;
  }

  .pub-example--flip {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .pub-mock {
    padding: 1.375rem 1.5rem 1.5rem;
  }

  .pub-mock__grid {
    grid-template-columns: 11.875rem minmax(0, 1fr);
  }

  .pub-mock__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pub-final h2 {
    font-size: 3.5rem;
  }

  .pub-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .pub-choice + .pub-choice {
    border-left: 1px solid rgba(253, 250, 240, 0.25);
  }
}

@media (max-width: 56.24rem) {
  /* Mobile: the figure comes first in the flipped example too. */
  .pub-example--flip figure {
    order: -1;
  }
}

/* ---- Nous contacter ---- */

.pub-contact {
  max-width: 70rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.pub-ways {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-ways li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--ds-border);
}

.pub-ways li:last-child {
  border-bottom: 1px solid var(--ds-border);
}

.pub-ways__big {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: bold;
  color: var(--ds-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.pub-ways p {
  margin: 0.5rem 0 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ds-muted);
}

.pub-ways address {
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.6;
}

.pub-aside__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ds-green-dark);
}

.pub-aside__lede {
  margin: 0 0 1.5rem;
  font-size: 1.03rem;
  line-height: 1.6;
}

.pub-shortcuts {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-shortcuts li {
  padding-top: 0.875rem;
  border-top: 2px solid var(--ds-green);
}

.pub-shortcuts p {
  margin: 0 0 0.375rem;
  font-size: 0.97rem;
  line-height: 1.5;
}

.pub-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 600;
}

.pub-aside__script {
  margin: 2.25rem 0 0;
  font-family: var(--font-script);
  font-size: 1.875rem;
  line-height: 1.15;
  color: var(--ds-green);
}

@media (min-width: 56.25rem) {
  .pub-contact {
    padding: 5rem 1.5rem 7rem;
    grid-template-columns: minmax(0, 37.5rem) 21.25rem;
    justify-content: space-between;
    gap: 6rem;
  }

  .pub-ways li {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 2rem;
    align-items: baseline;
    padding: 2rem 0;
  }

  .pub-ways__big {
    font-size: 1.5rem;
  }

  /* The address stays on one line beside its label. */
  .pub-ways__big--email {
    font-size: 1.25rem;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .pub-aside__title {
    font-size: 1.625rem;
  }
}

/* ---- Legal notice ---- */

.pub-doc {
  max-width: 70rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.pub-rows {
  max-width: 60rem;
  margin: 0 auto;
}

.pub-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--ds-border);
}

.pub-row:last-child {
  border-bottom: 1px solid var(--ds-border);
}

.pub-row address,
.pub-row p {
  margin: 0;
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

@media (min-width: 56.25rem) {
  .pub-doc {
    padding: 5rem 1.5rem 7rem;
  }

  .pub-row {
    grid-template-columns: 18.75rem minmax(0, 1fr);
    gap: 3rem;
    padding: 2rem 0;
  }
}

/* ---- Privacy policy ---- */

.pub-policy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.pub-toc {
  padding-top: 1rem;
  border-top: 2px solid var(--ds-green);
}

.pub-toc__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--ds-green-dark);
}

.pub-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  font-size: 0.97rem;
  line-height: 1.35;
  color: var(--ds-text);
  text-decoration: none;
}

.pub-toc a:hover {
  color: var(--ds-green-dark);
  text-decoration: underline;
}

.pub-toc .pub-num {
  min-width: 1rem;
  font-size: 1.375rem;
}

.pub-policy__updated {
  margin: 0 0 2.5rem;
  font-size: 0.94rem;
  color: var(--ds-muted);
}

.pub-policy__content {
  min-width: 0;
}

.pub-policy__content section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ds-border);
  scroll-margin-top: 1rem;
}

.pub-policy__content section:first-of-type {
  margin-top: 0;
}

.pub-policy__content h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.pub-policy__content h2 .pub-num {
  font-size: 2.25rem;
}

.pub-policy__content h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ds-green-dark);
}

.pub-policy__content p,
.pub-policy__content li,
.pub-policy__content address {
  font-size: 1.03rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.pub-policy__content p,
.pub-policy__content address {
  margin: 0 0 0.75rem;
  font-style: normal;
}

.pub-policy__content ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.pub-policy__content li {
  margin-bottom: 0.5rem;
}

.pub-policy__content .pub-basis {
  padding-left: 0.875rem;
  border-left: 2px solid var(--ds-green-light);
}

.pub-basis strong {
  color: var(--ds-green-dark);
}

@media (min-width: 56.25rem) {
  .pub-policy {
    grid-template-columns: 17.5rem minmax(0, 45rem);
    justify-content: space-between;
    gap: 6rem;
  }

  .pub-toc {
    position: sticky;
    top: 1.5rem;
  }

  .pub-toc a {
    min-height: 2.25rem;
    padding: 0.375rem 0;
  }
}

/* ---- Account pages (2026-12) ----
   Sign-in, both signups, "Consultez votre boîte mail", forgotten and new
   password, resend verification. Green title band (.pub-hero), then a side
   column (next steps, account choices, tips) and the form. On phones and
   tablets a single column, the form first. Fields keep the .form-stack
   component: 44 px high and a 16 px text, so Safari iOS never zooms in. */

.pub-auth {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.pub-auth__aside {
  padding-top: 2rem;
  border-top: 1px solid var(--ds-border);
}

.pub-auth__aside h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ds-green-dark);
}

.pub-auth__lede {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.pub-auth__sub {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ds-green-dark);
}

.pub-auth__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pub-auth__list li + li {
  margin-top: 0.5rem;
}

.pub-auth__note {
  margin: 1.375rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ds-muted);
}

.pub-auth__script {
  margin: 2.5rem 0 0;
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--ds-green);
}

/* Numbered steps under a green rule (side column). */
.pub-auth-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.pub-auth-steps li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ds-green);
}

.pub-auth-steps .pub-num {
  font-size: 2.5rem;
}

.pub-auth-steps p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* Account choices of the sign-in page. */
.pub-auth-choices {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.pub-auth-choices li {
  padding-top: 1rem;
  border-top: 2px solid var(--ds-green);
}

.pub-auth-choices h3 {
  margin: 0 0 0.375rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--ds-green-dark);
}

.pub-auth-choices p {
  margin: 0 0 0.25rem;
  font-size: 0.97rem;
  line-height: 1.55;
}

/* Links of the account pages are real touch targets (44 px). */
.pub-auth-choices a,
.pub-auth__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 600;
}

/* A link inside the green band's lede ("Comment ça marche ?"). */
.pub-hero__lede a {
  color: var(--ds-cream-light);
}

/* Form title ("Vos identifiants"), fieldsets numbered like the boards. */
.pub-auth__form-title {
  margin: 0 0 1.375rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ds-green-dark);
}

.pub-auth__intro {
  margin: 0 0 1.25rem;
  font-size: 1.03rem;
  line-height: 1.6;
}

.pub-auth__lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.pub-auth .form-stack fieldset {
  min-width: 0;
  margin: 0 0 2.5rem;
  padding: 1.75rem 0 0;
  border: none;
  border-top: 1px solid var(--ds-border);
}

.pub-auth .form-stack legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  margin: 0 0 1.25rem;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ds-green-dark);
}

.pub-auth .form-stack legend + * {
  clear: both;
}

.pub-auth .form-stack legend .pub-num {
  font-size: 1.75rem;
}

.pub-auth__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.pub-auth__actions .pub-auth__link {
  align-self: flex-start;
}

.pub-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--ds-green);
  color: var(--ds-cream-light);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.pub-auth__submit:hover {
  background: var(--ds-green-dark);
  color: var(--ds-cream-light);
}

.pub-auth__privacy {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ds-muted);
}

.pub-auth__help {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ds-muted);
}

/* Messages: information or success in green, error in red. The icon and the
   title carry the meaning too, never the colour alone. */
.pub-alert {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin: 0 0 1.75rem;
  padding: 1rem 1.125rem;
  border: 1px solid #CFE3D3;
  border-left: 4px solid var(--ds-green);
  border-radius: 6px;
  background: #EEF5EF;
  font-size: 0.97rem;
  line-height: 1.5;
}

.pub-alert::before {
  content: "i";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ds-green-light);
  color: var(--ds-green-dark);
  font-family: Georgia, serif;
  font-weight: 700;
}

.pub-alert--success::before {
  content: "✓";
  font-family: inherit;
}

.pub-alert__title {
  display: block;
  margin: 0 0 0.125rem;
  font-family: var(--font-heading);
  font-size: 1.09rem;
  font-weight: bold;
  color: var(--ds-green-dark);
}

.pub-alert p,
.pub-alert ul {
  margin: 0;
}

.pub-alert--error {
  border-color: #A63D2A;
  border-left-color: #8E3322;
  background: #FBEAE8;
}

.pub-alert--error::before {
  content: "✕";
  background: #8E3322;
  color: var(--ds-cream-light);
  font-family: inherit;
}

.pub-alert--error .pub-alert__title {
  color: #8E3322;
}

.pub-alert--error ul {
  padding-left: 1.1rem;
}

.pub-alert--error a {
  color: #8E3322;
  font-weight: 600;
}

.pub-alert:focus {
  outline: 3px solid #8E3322;
  outline-offset: 2px;
}

/* Field in error: a thicker red border, aria-invalid and a message with a
   warning sign under it (the red alone never tells it). */
.pub-auth .form-stack [aria-invalid="true"] {
  border: 2px solid #8E3322;
}

.pub-auth .form-stack .field_with_errors label {
  color: #8E3322;
}

.field__error {
  display: flex;
  gap: 0.375rem;
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #8E3322;
}

.field__error::before {
  content: "⚠";
}

@media (min-width: 40rem) {
  .pub-auth {
    max-width: 43rem;
    padding: 3.5rem 2.5rem 5rem;
    gap: 3.5rem;
  }

  .pub-auth-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .pub-auth__actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .pub-auth__actions .pub-auth__link {
    align-self: auto;
  }

  .pub-auth__submit {
    width: auto;
  }
}

@media (min-width: 56.25rem) {
  .pub-auth {
    max-width: 70rem;
    grid-template-columns: 21.25rem minmax(0, 32.5rem);
    justify-content: space-between;
    gap: 6rem;
    padding: 5rem 1.5rem 6.5rem;
  }

  .pub-auth--wide {
    grid-template-columns: 21.25rem minmax(0, 37.5rem);
  }

  /* The form comes first in the HTML (reading order, phones); on desktop
     the side column moves to the left, as on the boards. */
  .pub-auth__aside {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
    border-top: none;
  }

  .pub-auth__main {
    grid-column: 2;
    grid-row: 1;
  }

  .pub-auth__aside h2 {
    font-size: 1.75rem;
  }

  .pub-auth-choices {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.375rem;
  }
}

@media (max-width: 22.5rem) {
  .pub-auth {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
