/* Polices auto-hébergées (SIL Open Font License, voir assets/fonts) */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --soft: #f6f8fb;
  --band: #eef2f7;
  --band-line: #cfd7e2;
  --ink: #16233a;
  --slate: #3b4658;
  --line: #e1e6ed;
  --blue: #2a5a8f;
  --blue-deep: #1d4370;
  --mirabelle: #e3ad32;
  --mirabelle-soft: #fdf0cc;
  --used: #eef2f7;
  --used-line: #a3b0c2;
  --wire: #6b7789;

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --topbar-h: 3.75rem;
  color-scheme: light;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--mirabelle-soft);
  color: var(--ink);
}

a {
  color: var(--blue);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-deep);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: 70rem;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  font-family: var(--sans);
}

.skip:focus {
  left: 0.75rem;
}

/* Barre du haut */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar__inner {
  max-width: 70rem;
  height: var(--topbar-h);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.topbar__name {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  margin-right: auto;
}

.topbar__name:hover {
  color: var(--ink);
}

.topbar__nav {
  display: flex;
  gap: 1.5rem;
}

.topbar__nav a {
  color: var(--slate);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}

.topbar__nav a:hover {
  color: var(--ink);
}

.topbar__nav a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--blue);
}

.topbar__cv {
  font-weight: 600;
  white-space: nowrap;
}

/* Boutons */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.75rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.btn .icon {
  margin-right: 0.45em;
  vertical-align: -0.18em;
}

.btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--bg);
}

.btn--small {
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: var(--ink);
  color: var(--ink);
}

/* Ouverture */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13rem;
  gap: 3rem;
  align-items: center;
}

.hero__orgs ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2rem;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 1.75rem;
}

.org {
  display: flex;
  align-items: center;
  min-height: 3rem;
}

/* Logos en gris pour rester sobres, en couleur au survol */
.org img {
  display: block;
  max-width: 11.5rem;
  max-height: 4rem;
  width: auto;
  height: auto;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.org:hover img {
  filter: none;
  opacity: 1;
}

.hero__title {
  margin: 0;
  max-width: 21ch;
  font-size: clamp(2.1rem, 1.1rem + 3.7vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.hero__past,
.hero__next {
  display: block;
}

.hero__past {
  color: var(--slate);
  font-weight: 500;
  margin-bottom: 0.18em;
}

.hero__intro {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 38rem);
  gap: 1.75rem;
  align-items: center;
}

.hero__photo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.hero__text {
  font-size: 1.2rem;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.hero__where {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0;
}

/* Sections */

.section {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

/* Bandes de fond alternées : on repère où commence et finit chaque partie */
.section--tint {
  background: var(--band);
  border-block: 1px solid var(--band-line);
}

.section--tint .aside {
  border-left-color: var(--band-line);
}

.section__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__lead {
  max-width: 40rem;
  font-size: 1.25rem;
  line-height: 1.55;
  margin-bottom: 2.25rem;
}

/* Ce que je cherche */

.section__note {
  max-width: 40rem;
  margin: -1.25rem 0 2.25rem;
  color: var(--slate);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.ways {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  font-family: var(--sans);
}

.ways__title {
  margin: 0;
  font-size: 1rem;
}

.ways ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.25rem;
  margin: 0;
  padding: 0;
  color: var(--slate);
}

.ways li {
  margin-left: 1rem;
}

.ways li::marker {
  color: var(--mirabelle);
}

.reason {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.reason__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.reason p {
  margin: 0;
  color: var(--slate);
}

/* Carrousel des réalisations */

.carousel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.carousel__tab {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.6rem 0;
  cursor: pointer;
}

.carousel__tab:hover {
  color: var(--ink);
}

.carousel__tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.carousel__track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  position: relative;
}

.carousel.is-enhanced .carousel__track {
  scrollbar-width: none;
  overflow-y: hidden;
  transition: height 0.25s ease;
}

.carousel.is-enhanced .carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline-offset: 6px;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  padding-right: 1px;
}

.slide__head {
  max-width: 44rem;
}

.slide__title {
  margin: 0;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.slide__meta {
  margin: 0.3rem 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--slate);
}

.slide__text {
  margin: 0;
}

.diagram {
  margin: 2rem 0 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dg {
  display: block;
  width: 100%;
  max-width: 56rem;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.dg--narrow {
  display: none;
  max-width: 26rem;
}

.dg-node rect {
  fill: #ffffff;
  stroke: #c3cdd9;
  stroke-width: 1.5;
}

.dg-node text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 560;
  fill: var(--ink);
}

.dg-node .dg-sub {
  font-size: 12px;
  font-weight: 400;
  fill: var(--slate);
}

.dg-node--mine rect {
  fill: var(--mirabelle-soft);
  stroke: var(--mirabelle);
}

.dg-node--part rect {
  fill: #ffffff;
  stroke: var(--mirabelle);
}

.dg-node--used rect {
  fill: var(--used);
  stroke: var(--used-line);
  stroke-dasharray: 4 3;
}

.dg-group rect {
  fill: var(--soft);
  stroke: var(--line);
  stroke-width: 1.5;
}

.dg-group--mine rect {
  fill: #fffaee;
  stroke: var(--mirabelle);
}

.dg-group text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--slate);
}

.dg-group .dg-note {
  font-size: 12px;
  font-weight: 400;
  fill: var(--slate);
}

.dg-edge {
  fill: none;
  stroke: var(--wire);
  stroke-width: 1.5;
}

.dg-edge--dashed {
  stroke-dasharray: 5 4;
}

.dg-arrow {
  fill: var(--wire);
}

.dg-badge circle {
  fill: var(--ink);
}

.dg-badge text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  fill: #ffffff;
}

.dg-label {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--slate);
}

.slide__steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 44rem;
}

.slide__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.1rem;
  margin: 0.45rem 0;
  line-height: 1.5;
}

.slide__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--slate);
}

.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend__swatch {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 3px;
  background: var(--mirabelle-soft);
  border: 1.5px solid var(--mirabelle);
  flex-shrink: 0;
}

.legend__swatch--part {
  background: #ffffff;
}

.legend__swatch--used {
  background: var(--used);
  border: 1.5px dashed var(--used-line);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.stack div {
  display: flex;
  gap: 0.4rem;
}

.stack dt {
  color: var(--slate);
}

.stack dt::after {
  content: "\00a0:";
}

.stack dd {
  margin: 0;
  font-weight: 600;
}

/* Bulle d'une étape au survol (ou au toucher) d'un numéro */
.diagram {
  position: relative;
}

.dg-badge {
  cursor: pointer;
}

.dg-badge.is-hot circle {
  fill: var(--blue);
}

.dg-tip {
  position: absolute;
  z-index: 2;
  max-width: 17rem;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.4;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.slide__steps li.is-hot::before {
  background: var(--blue);
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel__controls[hidden] {
  display: none;
}

.carousel__count {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
  text-align: center;
}

/* Compétences */

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
}

.skills dt {
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.skills dd {
  margin: 0;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* Parcours */

.path {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem 4rem;
}

.path__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--slate);
}

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

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.1rem 1.6rem;
  line-height: 1.45;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 2px solid var(--slate);
  background: var(--bg);
}

.timeline__item::after {
  content: "";
  position: absolute;
  left: calc(0.325rem - 0.5px);
  top: 1.2rem;
  bottom: 0.15rem;
  width: 1px;
  background: var(--line);
}

.timeline__item:last-child::after {
  display: none;
}

/* Couleur par type d'étape : formation, stage, emploi */
.timeline__item--formation {
  --tone: #2a5a8f;
}

.timeline__item--stage {
  --tone: #2e6a50;
}

.timeline__item--emploi {
  --tone: #8a5c00;
}

.timeline__item::before {
  border-color: var(--tone, var(--slate));
  background: var(--tone, var(--bg));
}

.timeline__item .timeline__date {
  color: var(--tone, var(--slate));
  font-weight: 600;
}

.timeline__item--current::before {
  background: var(--mirabelle);
  border-color: var(--mirabelle);
  box-shadow: 0 0 0 4px var(--mirabelle-soft);
}

.timeline__date {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
  padding-top: 0.1rem;
}

.timeline__what strong {
  font-weight: 600;
}

/* Projets */

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.project__title {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.project__title a {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
}

.project__title a:hover {
  color: var(--blue);
}

.project p {
  margin: 0;
  color: var(--slate);
}

.aside {
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--slate);
  max-width: 44rem;
}

.offwork {
  margin-top: 2.5rem;
}

.offwork__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.offwork ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--slate);
}

.offwork li + li {
  margin-top: 0.25rem;
}

.offwork li::marker {
  color: var(--mirabelle);
}

/* Contact */

.contact {
  background: var(--ink);
  color: #ffffff;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.contact__title {
  color: #ffffff;
  margin: 0 0 2rem;
  max-width: 24ch;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact a {
  color: #ffffff;
  text-decoration-color: #8db5e8;
}

.contact a:hover {
  color: #b6cff1;
}

.contact :focus-visible {
  outline-color: #ffffff;
}

.contact__mail {
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.2rem, 0.8rem + 2vw, 2rem);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact__mail a {
  text-decoration-thickness: 2px;
}

/* Icônes de contact : l'icône reste hors du soulignement du lien */
.contact__mail a,
.contact__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  text-decoration: none;
}

.contact__mail a span,
.contact__list a span {
  text-decoration: underline;
  text-decoration-color: #8db5e8;
  text-underline-offset: 0.2em;
}

.contact__mail a span {
  text-decoration-thickness: 2px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__mail .icon {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 1.8;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-family: var(--sans);
}

/* Pied de page */

.footer {
  padding-block: 1.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--slate);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer a {
  color: var(--slate);
}

/* Mentions légales */

.legal {
  padding-block: 3rem 4rem;
}

.legal__body {
  max-width: 40rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.5rem;
}

.legal address {
  font-style: normal;
  margin: 0 0 1em;
}

/* Écrans moyens */

@media (max-width: 960px) {
  .topbar__nav {
    display: none;
  }

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

  .hero__orgs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.25rem;
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .org img {
    max-height: 2.5rem;
    max-width: 8rem;
  }

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

  .path {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile */

@media (max-width: 720px) {
  body {
    font-size: 1.0625rem;
  }

  .hero__intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__photo {
    width: 5rem;
    height: 5rem;
  }

  .hero__text {
    font-size: 1.1rem;
  }

  .section__lead {
    font-size: 1.15rem;
  }

  .reasons,
  .projects,
  .skills {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .carousel__tabs {
    gap: 0.25rem 1.25rem;
  }

  .carousel__tab {
    font-size: 0.95rem;
  }

  .dg--wide {
    display: none;
  }

  .dg--narrow {
    display: block;
  }

  .carousel__controls {
    justify-content: space-between;
  }

  .timeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* Animations : ouverture de la page, tracé des schémas */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes dg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dg-pop {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__past {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__next {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
  }

  .hero__intro {
    animation: fade 0.6s ease 0.85s both;
  }

  /* Les flèches se tracent dans l'ordre du flux (classes posées par main.js) */
  .dg.is-drawing .dg-edge.is-anim {
    stroke-dasharray: var(--len);
    stroke-dashoffset: var(--len);
    animation: dg-draw 0.5s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
    animation-delay: calc(var(--i) * 110ms);
  }

  .dg.is-drawing .dg-edge--dashed,
  .dg.is-drawing .dg-label {
    animation: fade 0.4s ease both;
    animation-delay: calc(var(--i, 4) * 110ms + 200ms);
  }

  /* Pastilles numérotées : elles apparaissent dans l'ordre des étapes */
  .dg.is-drawing .dg-badge {
    transform-box: fill-box;
    transform-origin: center;
    animation: dg-pop 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) both;
    animation-delay: calc(var(--b) * 170ms + 250ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media print {
  .topbar,
  .carousel__controls,
  .carousel__tabs {
    display: none;
  }

  .carousel__track {
    display: block;
    overflow: visible;
  }

  .slide {
    break-inside: avoid;
    margin-bottom: 2rem;
  }

  .contact {
    background: none;
    color: var(--ink);
  }
}
