@font-face {
  font-family: "Bricolage";
  src: url("bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Shrikhand";
  src: url("shrikhand.woff2") format("woff2");
  font-display: swap;
}

:root {
  --jaune: #ebd34d;
  --jaune-clair: #f6e89a;
  --rose: #ed55b1;
  --rose-fonce: #c42d88;
  --cyan: #34c3dd;
  --encre: #141414;
  --papier: #fffaeb;
  --gris: #5b5850;
  --trait: 3px solid var(--encre);
  --ombre: 6px 6px 0 var(--encre);
  --rayon: 16px;
  --colonne: 44rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.65 "Bricolage", system-ui, sans-serif;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--encre); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}
.evitement:focus { top: 1rem; }

/* Barre du haut */
.barre {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem max(16px, calc((100% - 72rem) / 2));
  background: var(--jaune);
  border-bottom: var(--trait);
}
.barre-logo img { width: 128px; }
.accueil .barre-logo { visibility: hidden; }
.barre nav { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.barre nav a {
  font-weight: 700; text-decoration: none; font-size: .95rem;
  padding: .2rem 0; border-bottom: 3px solid transparent;
}
.barre nav a:hover { border-color: var(--rose); }

/* Boutons */
.bouton {
  display: inline-block;
  padding: .8rem 1.5rem;
  background: var(--rose); color: #fff;
  font-weight: 800; text-decoration: none; letter-spacing: .01em;
  border: var(--trait); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--encre);
  transition: transform .15s, box-shadow .15s;
}
.bouton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.bouton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.bouton-noir { background: var(--encre); box-shadow: 4px 4px 0 var(--rose); }
.bouton-noir:hover { box-shadow: 6px 6px 0 var(--rose); }

/* Une (accueil, 404) */
.une {
  background:
    radial-gradient(circle, rgba(20, 20, 20, .09) 1.5px, transparent 1.6px) 0 0 / 18px 18px,
    var(--jaune);
  border-bottom: var(--trait);
  padding: 1rem 16px 4.5rem;
  text-align: center;
}
.une-interieur { max-width: 46rem; margin: 0 auto; }
.une-logo {
  width: min(560px, 92%); margin: 0 auto -.5rem;
  animation: entree .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.une h1 {
  font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.1; font-weight: 800;
  letter-spacing: -.02em; margin: .5rem 0 1rem; text-wrap: balance;
}
.une p { font-size: 1.15rem; max-width: 36rem; margin: 0 auto 1.75rem; text-wrap: pretty; }
@keyframes entree { from { opacity: 0; transform: scale(.85) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .une-logo { animation: none; } html { scroll-behavior: auto; } }

.une-404 { padding-top: 4rem; }
.code-404 {
  font: 5rem/1 "Shrikhand", serif; color: var(--rose); margin: 0 !important;
  text-shadow: 4px 4px 0 var(--encre); -webkit-text-stroke: 2px var(--encre);
}

/* Liste des mods */
.mods { max-width: 72rem; margin: 0 auto; padding: 3.5rem 16px 2rem; }
.mods-tete {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.mods h2, .proposer h2 {
  font: 2.4rem/1 "Shrikhand", serif; margin: 0; color: var(--rose);
  -webkit-text-stroke: 1.5px var(--encre); text-shadow: 3px 3px 0 var(--encre);
  letter-spacing: .01em;
}
.filtres { display: flex; gap: .5rem; flex-wrap: wrap; }
.filtres button {
  font: 700 .95rem "Bricolage", sans-serif; color: var(--encre);
  background: #fff; border: var(--trait); border-radius: 999px;
  padding: .4rem 1rem; cursor: pointer;
}
.filtres button span { font-weight: 400; opacity: .6; margin-left: .15rem; }
.filtres button[aria-pressed="true"] { background: var(--encre); color: var(--jaune); }

.grille {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.carte[hidden] { display: none; }
.carte > a {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; text-decoration: none;
  border: var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.carte > a:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 9px 9px 0 var(--rose); }
.carte-image { aspect-ratio: 16 / 10; border-bottom: var(--trait); background: var(--jaune-clair); overflow: hidden; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carte > a:hover .carte-image img { transform: scale(1.04); }
.carte-texte { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.carte h3 { font-size: 1.3rem; line-height: 1.2; margin: .6rem 0 .45rem; font-weight: 800; letter-spacing: -.01em; }
.carte p { margin: 0 0 .9rem; color: var(--gris); font-size: .97rem; line-height: 1.5; }
.carte .carte-meta { margin: auto 0 0; font-size: .85rem; font-weight: 600; color: var(--encre); }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .15rem .55rem; border: 2px solid var(--encre); border-radius: 999px; background: #fff;
}
.tag.fdm { background: var(--rose); color: #fff; }
.tag.resine { background: var(--cyan); }

/* Bloc « proposer » */
.proposer { padding: 2.5rem 16px 4.5rem; }
.proposer-interieur {
  max-width: 52rem; margin: 0 auto; text-align: center;
  background: var(--jaune); border: var(--trait); border-radius: 24px;
  box-shadow: 10px 10px 0 var(--encre);
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem);
}
.proposer h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.proposer p { font-size: 1.1rem; max-width: 34rem; margin: 1rem auto 1.75rem; }

/* Article */
.article-tete {
  background:
    radial-gradient(circle, rgba(20, 20, 20, .09) 1.5px, transparent 1.6px) 0 0 / 18px 18px,
    var(--jaune);
  border-bottom: var(--trait);
  padding: 3rem 16px 7rem;
}
.article-tete-interieur { max-width: 52rem; margin: 0 auto; text-align: center; }
.article-tete .tags { justify-content: center; }
.article-tete h1 {
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; font-weight: 800;
  letter-spacing: -.025em; margin: 1rem 0; text-wrap: balance;
}
.article-meta { margin: 0; font-size: 1rem; }
.article-couverture {
  max-width: 52rem; margin: -5rem auto 0; padding: 0 16px;
}
.article-couverture img {
  display: block; width: auto; max-width: 100%; max-height: 32rem; margin: 0 auto;
  border: var(--trait); border-radius: var(--rayon); box-shadow: 10px 10px 0 var(--rose);
  background: #fff;
}

.prose { max-width: var(--colonne); margin: 0 auto; padding: 3rem 16px 1rem; font-size: 1.125rem; }
.prose > * { margin: 0 0 1.25rem; }
.prose h2 {
  font-size: 1.65rem; line-height: 1.2; font-weight: 800; letter-spacing: -.015em;
  margin: 2.75rem 0 1rem;
}
.prose h2::before {
  content: ""; display: block; width: 3rem; height: 6px; margin-bottom: .6rem;
  background: var(--rose); border: 2px solid var(--encre); border-radius: 4px;
}
.prose h4 { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }
.prose a {
  font-weight: 650; text-decoration-color: var(--rose); text-decoration-thickness: 3px;
  text-underline-offset: 3px; overflow-wrap: anywhere;
}
.prose a:hover { background: var(--jaune-clair); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--rose); }
.prose figure { margin: 2rem 0; }
.prose figure img, .prose figure video {
  margin: 0 auto; border: var(--trait); border-radius: 12px; box-shadow: var(--ombre);
  background: #fff; cursor: zoom-in;
}
.prose figure img { width: auto; max-height: 34rem; }
.prose figure video { cursor: auto; width: 100%; }
.prose .galerie { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
.prose .galerie img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.prose .alerte, .prose .has-background {
  background: #ffe1e1; border: var(--trait); border-left-width: 10px; border-left-color: #e02b20;
  border-radius: 12px; padding: 1rem 1.25rem; color: var(--encre);
}
.prose .sources {
  margin: 2.5rem 0 1rem; padding: 1.25rem 1.5rem; background: var(--papier);
  border: var(--trait); border-radius: var(--rayon); box-shadow: 4px 4px 0 var(--cyan); font-size: 1rem;
}
.prose .sources h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.prose .sources h2::before { content: none; }
.prose .sources ul { margin: 0 0 .5rem; }
.prose .sources p { margin: 0; color: var(--gris); font-size: .9rem; }
.bandeau-brouillon {
  max-width: var(--colonne); margin: 1.5rem auto 0; padding: .6rem 1rem; text-align: center;
  background: var(--cyan); border: var(--trait); border-radius: var(--rayon); font-weight: 700;
}
.prose .credit {
  margin-top: 2.5rem; padding: 1rem 1.25rem;
  background: var(--jaune-clair); border: var(--trait); border-radius: 12px; font-size: 1rem;
}
.prose .credit::before { content: "✦ "; color: var(--rose-fonce); }

.nav-articles {
  max-width: var(--colonne); margin: 2rem auto 0; padding: 0 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.nav-articles a {
  text-decoration: none; font-weight: 700; line-height: 1.3;
  border: var(--trait); border-radius: 12px; padding: .8rem 1rem; background: #fff;
  box-shadow: 4px 4px 0 var(--encre);
}
.nav-articles a:hover { box-shadow: 4px 4px 0 var(--rose); }
.nav-articles a span { display: block; font-size: .8rem; font-weight: 600; color: var(--gris); margin-bottom: .2rem; }
.nav-suiv { text-align: right; grid-column: 2; }
.mods-autres h2 { font-size: 2rem; }

/* Visionneuse */
.visionneuse {
  border: var(--trait); border-radius: var(--rayon); padding: 0; background: #fff;
  max-width: min(94vw, 1400px); max-height: 92vh; box-shadow: 10px 10px 0 var(--rose);
}
.visionneuse::backdrop { background: rgba(20, 20, 20, .8); }
.visionneuse img { max-height: 88vh; width: auto; margin: 0 auto; cursor: zoom-out; }
.visionneuse-fermer {
  position: absolute; top: .5rem; right: .5rem; width: 2.5rem; height: 2.5rem;
  font: 700 1.6rem/1 sans-serif; border: var(--trait); border-radius: 50%; background: var(--jaune); cursor: pointer;
}

/* Pied */
.pied { background: var(--encre); color: #f3f0e6; border-top: var(--trait); }
.pied-interieur { max-width: 72rem; margin: 0 auto; padding: 2.5rem 16px; }
.pied-marque { font: 2rem/1 "Shrikhand", serif; color: var(--rose); margin: 0 0 .5rem; }
.pied p { margin: 0 0 .75rem; }
.pied-liens { list-style: none; padding: 0; margin: 1rem 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.pied-liens a { font-weight: 700; color: var(--jaune); }
.pied-note { font-size: .85rem; opacity: .7; max-width: 40rem; }

@media (max-width: 600px) {
  .barre-logo img { width: 104px; }
  .barre nav a { font-size: .875rem; }
  .prose { font-size: 1.0625rem; }
  .prose .galerie { grid-template-columns: 1fr 1fr; }
  .nav-articles { grid-template-columns: 1fr; }
  .nav-suiv { grid-column: auto; }
  .article-tete { padding-bottom: 5.5rem; }
  .article-couverture { margin-top: -3.5rem; }
}
