/*
 * Feuille de styles du portfolio : une seule feuille, sans framework.
 *
 * 1. Police      4. Mise en page     7. Accueil
 * 2. Thème       5. Composants       8. Projets
 * 3. Base        6. Timeline         9. Contenu rédigé (Markdown) et pages diverses
 */

/* 1. Police ------------------------------------------------------------- */

/* Inter variable, auto-hébergée : sous-ensemble latin, préchargé (couvre tous les textes du site). */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Police de secours aux mêmes métriques qu'Inter : aucun décalage pendant le chargement. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

/* 2. Thème -------------------------------------------------------------- */

/* Palette volontairement restreinte : neutres + un accent vert. */
:root {
  --background: #fbfbfa;
  --foreground: #18181b;
  --muted: #f3f3f1;
  --muted-foreground: #5f5f68;
  --border: #e6e6e3;
  --brand: #2f5d50;
  --ring: #2f5d50;

  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 2px);
  --font-sans: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.15s;

  /* Échelle typographique : taille / hauteur de ligne. */
  --text-xs: 0.75rem;
  --leading-xs: calc(1 / 0.75);
  --text-sm: 0.875rem;
  --leading-sm: calc(1.25 / 0.875);
  --text-lg: 1.125rem;
  --leading-lg: calc(1.75 / 1.125);
  --text-xl: 1.25rem;
  --leading-xl: calc(1.75 / 1.25);
  --text-3xl: 1.875rem;
  --leading-3xl: calc(2.25 / 1.875);
  --text-4xl: 2.25rem;
  --leading-4xl: calc(2.5 / 2.25);
}

.dark {
  --background: #111113;
  --foreground: #ededef;
  --muted: #18181b;
  --muted-foreground: #a0a0a8;
  --border: #26262a;
  --brand: #8cc4b2;
  --ring: #8cc4b2;
}

/* 3. Base --------------------------------------------------------------- */

*,
::before,
::after,
::backdrop {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  scrollbar-gutter: stable;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-family: var(--font-sans);
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

code {
  font-family: var(--font-mono);
  font-size: 1em;
}

ol,
ul {
  list-style: none;
}

img,
svg {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  font-feature-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
  appearance: button;
}

[hidden] {
  display: none !important;
}

::selection {
  background: color-mix(in oklab, var(--brand) 25%, transparent);
}

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

/* Masqué à l'écran, lu par les lecteurs d'écran. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.muted {
  color: var(--muted-foreground);
}

/* Largeur de lecture confortable. */
.measure {
  max-width: 65ch;
}

.link {
  text-decoration-line: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--duration) var(--ease);
}

.link--strong {
  color: var(--foreground);
}

@media (hover: hover) {
  .link:hover {
    text-decoration-color: var(--foreground);
  }
}

/* Apparition au chargement des sections (classe posée par le gabarit, aucun JavaScript). */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

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

  /* Fondu entre deux pages du site (navigateurs compatibles, aucun JavaScript). */
  @view-transition {
    navigation: auto;
  }
}

/* 4. Mise en page ------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 0.75rem;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border-radius: 0.25rem;
  background-color: var(--foreground);
  color: var(--background);
}

.site-header {
  padding-top: 1.5rem;
}

.site-main {
  flex: 1;
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.site-footer {
  padding-bottom: 2.5rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top-width: 1px;
}

/* Liens « À propos du site » et « Mentions légales ». */
.site-footer__legal {
  margin-top: 1rem;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--muted-foreground);
}

.site-footer__copyright {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--muted-foreground);
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav__brand {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* Sur très petit écran : initiales visibles, nom complet réservé aux lecteurs d'écran. */
.nav__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  white-space: nowrap;
}

.nav__link,
.nav__language {
  color: var(--muted-foreground);
  transition: color var(--duration) var(--ease);
}

.nav__link[aria-current='page'] {
  color: var(--foreground);
}

.nav__language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin-left: 0.375rem;
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  font-weight: 500;
  letter-spacing: 0.025em;
}

@media (hover: hover) {
  .nav__link:hover,
  .nav__language:hover {
    color: var(--foreground);
  }
}

@media (min-width: 360px) {
  .nav__links {
    gap: 0.75rem;
  }
}

@media (min-width: 420px) {
  .nav__initials {
    display: none;
  }

  .nav__name {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
}

@media (min-width: 40rem) {
  .container {
    padding-inline: 1.5rem;
  }

  .site-header {
    padding-top: 2rem;
  }

  .site-main {
    padding-top: 5rem;
  }

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

  .nav__actions {
    gap: 0.5rem;
  }

  .nav__links {
    gap: 1.25rem;
  }
}

/* 5. Composants --------------------------------------------------------- */

/* Icônes en trait (Lucide) : 1rem par défaut. */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Boutons */

.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}

.btn .icon {
  pointer-events: none;
}

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

.btn--outline {
  border-width: 1px;
  background-color: var(--background);
}

.btn--ghost {
  color: var(--muted-foreground);
}

.btn--icon {
  width: 2.25rem;
  padding: 0;
}

@media (hover: hover) {
  .btn--primary:hover {
    background-color: color-mix(in oklab, var(--foreground) 85%, transparent);
  }

  .btn--outline:hover {
    background-color: var(--muted);
    color: var(--foreground);
  }

  .btn--ghost:hover {
    background-color: var(--muted);
    color: var(--foreground);
  }
}

.theme-toggle {
  margin-right: -0.5rem;
  margin-left: 0.25rem;
}

.theme-toggle__sun,
.dark .theme-toggle__moon {
  display: none;
}

.dark .theme-toggle__sun {
  display: block;
}

/* Réseaux */

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  transition: color var(--duration) var(--ease);
}

@media (hover: hover) {
  .social__link:hover {
    color: var(--foreground);
  }
}

/* Sections */

.section {
  margin-top: 5rem;
}

.section:first-child {
  margin-top: 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section__title {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 500;
  color: var(--muted-foreground);
}

.section__more,
.back-link {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--muted-foreground);
  transition: color var(--duration) var(--ease);
}

@media (hover: hover) {
  .section__more:hover,
  .back-link:hover {
    color: var(--foreground);
  }
}

/* Technos */

.tech-list,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.tech-list--muted {
  color: var(--muted-foreground);
}

.tech {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.tech--compact {
  gap: 0.25rem;
}

.tech__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--foreground);
}

.tech__icon--generic {
  color: var(--muted-foreground);
}

/* Étiquettes (technos) et badges (contrat, niveau) */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-width: 1px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  white-space: nowrap;
}

.tag {
  gap: 0.25rem;
  color: var(--muted-foreground);
}

.tag .tech__icon {
  width: 0.75rem;
  height: 0.75rem;
}

.badge {
  border-color: transparent;
  background-color: var(--muted);
  color: var(--foreground);
}

/* Liste de projets */

.project-list {
  border-block-width: 1px;
}

.project-list > li:not(:last-child) {
  border-bottom-width: 1px;
}

.project-card {
  display: block;
  padding-block: 1.25rem;
}

.project-card__title {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

/* Flèche révélée au survol ou au focus clavier. */
.project-card__arrow {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--muted-foreground);
  opacity: 0;
  translate: -0.25rem 0;
  transition:
    opacity var(--duration) var(--ease),
    translate var(--duration) var(--ease);
}

@media (hover: hover) {
  .project-card:hover .project-card__arrow {
    opacity: 1;
    translate: 0 0;
  }
}

.project-card:focus-visible .project-card__arrow {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .project-card__arrow {
    transition: none;
  }
}

.project-card__context {
  margin-top: 0.125rem;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--muted-foreground);
}

.project-card__description {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

/* Les technos s'alignent sur la même ligne que le libellé « Technos : ». */
.project-card__tech-list {
  display: contents;
}

.project-card__tech-list > li {
  display: flex;
}

/* 6. Timeline (expériences, formation) ---------------------------------- */

.timeline {
  position: relative;
}

.timeline__group {
  position: relative;
  padding-left: 3.5rem;
}

.timeline__group:not(:last-child) {
  padding-bottom: 2.5rem;
}

/* Ligne reliant le logo au jalon suivant. */
.timeline__line {
  position: absolute;
  top: 3rem;
  bottom: 0.5rem;
  left: 1.25rem;
  width: 1px;
  background-color: var(--border);
}

/* Logo de l'organisme, jalon de la timeline : l'image porte elle-même le cadre. */
.org-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-width: 1px;
  border-radius: var(--radius);
  background-color: var(--background);
  object-fit: cover;
}

/* Logo non carré : affiché en entier, avec une marge intérieure. */
.org-logo--padded {
  padding: 0.375rem;
  object-fit: contain;
}

.timeline__org {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.5rem;
}

.timeline__name {
  font-weight: 500;
}

.timeline__location {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--muted-foreground);
}

.timeline__items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

/* Plusieurs postes ou diplômes dans le même organisme : trait vertical et points. */
.timeline__items--nested {
  padding-left: 1.25rem;
  border-left-width: 1px;
}

.timeline__item {
  position: relative;
}

.timeline__dot {
  position: absolute;
  top: 0.5rem;
  left: -1.5rem;
  width: 9px;
  height: 9px;
  border: 2px solid var(--background);
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
}

.timeline__heading,
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.timeline__dates,
.timeline__meta {
  margin-top: 0.125rem;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--muted-foreground);
}

.timeline__dates,
.timeline__period {
  font-variant-numeric: tabular-nums;
}

.timeline__text {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

/* 7. Accueil ------------------------------------------------------------ */

.hero__name {
  font-size: var(--text-3xl);
  line-height: var(--leading-3xl);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__role {
  margin-top: 0.5rem;
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  color: var(--muted-foreground);
}

.hero__tagline {
  max-width: 65ch;
  margin-top: 1.5rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__social {
  margin-top: 2rem;
}

@media (min-width: 40rem) {
  .hero__name {
    font-size: var(--text-4xl);
    line-height: var(--leading-4xl);
  }
}

/* 8. Pages et fiches projet --------------------------------------------- */

.page-header {
  margin-bottom: 3rem;
}

.page-header--large {
  margin-bottom: 4rem;
}

.page-header__actions {
  margin-top: 1.5rem;
}

.page-title {
  font-size: var(--text-3xl);
  line-height: var(--leading-3xl);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-title--balanced {
  text-wrap: balance;
}

.page-intro {
  max-width: 65ch;
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.page-body {
  margin-top: 2.5rem;
}

.skills {
  display: grid;
  gap: 1.5rem;
}

.skills dt {
  font-weight: 500;
}

.skills dd {
  margin-top: 0.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.project {
  margin-top: 2rem;
}

.project__lead {
  margin-top: 0.75rem;
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  color: var(--muted-foreground);
}

.project__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-block: 1.25rem;
  border-block-width: 1px;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}

.project__meta dt {
  color: var(--muted-foreground);
}

.project__meta dd {
  margin-top: 0.25rem;
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.project__link .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.project__tags {
  margin-top: 1.25rem;
}

.project__body {
  margin-top: 2.5rem;
}

@media (min-width: 40rem) {
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* 9. Contenu rédigé (Markdown) et pages diverses ------------------------ */

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.prose :where(p) {
  margin-block: 1.25em;
}

/* Liens dans le texte : soulignés, comme les autres liens du site. */
.prose :where(a) {
  font-weight: 500;
  color: var(--foreground);
  text-decoration-line: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--duration) var(--ease);
}

@media (hover: hover) {
  .prose :where(a):hover {
    text-decoration-color: var(--foreground);
  }
}

.prose :where(strong) {
  color: var(--foreground);
  font-weight: 600;
}

.prose :where(h2) {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.5em;
  line-height: 1.33333;
  font-weight: 700;
  color: var(--foreground);
}

.prose :where(h2 + *) {
  margin-top: 0;
}

.prose :where(ul) {
  margin-block: 1.25em;
  padding-inline-start: 1.625em;
  list-style-type: disc;
}

.prose :where(li) {
  margin-block: 0.5em;
  padding-inline-start: 0.375em;
}

.prose :where(li)::marker {
  color: var(--border);
}

/* Tableaux (ex. résultats EcoIndex) : pleine largeur, le texte passe à la ligne si besoin. */
.prose :where(table) {
  width: 100%;
  margin-block: 1.5em;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-variant-numeric: tabular-nums;
}

.prose :where(th, td) {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.prose :where(th) {
  font-weight: 500;
  color: var(--foreground);
}

/* Note EcoIndex : pastille aux couleurs officielles, score et barre proportionnelle (--score). */
[data-grade='A'] { --grade: #349a47; }
[data-grade='B'] { --grade: #51b84b; }
[data-grade='C'] { --grade: #cadb2a; }
[data-grade='D'] { --grade: #f6eb15; }
[data-grade='E'] { --grade: #fecd06; }
[data-grade='F'] { --grade: #f99839; }
[data-grade='G'] { --grade: #ed2124; }

.eco__grade {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.375rem;
  border-radius: 0.25rem;
  background-color: var(--grade);
  color: #111113;
  font-size: var(--text-xs);
  line-height: 1;
  font-weight: 700;
}

.eco__score {
  white-space: nowrap;
}

.eco__bar {
  display: block;
  width: 4.5rem;
  height: 0.25rem;
  margin-top: 0.375rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--grade) var(--score), var(--border) 0);
}

/* Encadré (« > … ») : note sobre, sans guillemets ni italique. */
.prose :where(blockquote) {
  margin-block: 1.6em;
  padding-inline-start: 1em;
  border-inline-start: 0.25rem solid var(--border);
}

.prose :where(code) {
  font-size: 0.875em;
  font-weight: 600;
  color: var(--foreground);
}

.prose :where(code)::before,
.prose :where(code)::after {
  content: '`';
}

/* Galerie de captures dans un contenu (ex. Lest). */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block: 2rem;
}

.gallery img {
  width: 100%;
  height: auto;
  border-width: 1px;
  border-radius: var(--radius);
}

@media (min-width: 40rem) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Page 404 */

.not-found {
  flex: 1;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.not-found__text {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.not-found__translation {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top-width: 1px;
}

.not-found__subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* 10. Impression -------------------------------------------------------- */

/* Version papier (Ctrl+P) : thème clair, sans navigation ni boutons, adresses des liens affichées. */
@media print {
  @page {
    margin: 1.5cm;
  }

  :root,
  .dark {
    --background: #fff;
    --foreground: #000;
    --muted: #fff;
    --muted-foreground: #3f3f46;
    --border: #d4d4d8;
    --brand: #2f5d50;
  }

  html {
    font-size: 10.5pt;
  }

  .container {
    max-width: none;
    padding-inline: 0;
  }

  .skip-link,
  .nav__actions,
  .hero__actions,
  .page-header__actions,
  .section__more,
  .back-link,
  .project-card__arrow,
  .site-footer__legal {
    display: none;
  }

  .site-header {
    padding-top: 0;
  }

  .site-main {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .reveal {
    animation: none;
  }

  h1,
  h2,
  h3,
  .section__head {
    break-after: avoid;
  }

  .timeline__item,
  .project-list > li,
  .project__meta,
  .gallery,
  tr {
    break-inside: avoid;
  }

  .social__link[href^="http"]::after,
  .prose a[href^="http"]::after,
  .project__link[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: var(--muted-foreground);
    word-break: break-all;
  }
}
