/* Design « Photocopie » : fanzine punk — papier photocopié, machine à écrire,
   gros titres noirs, scotch, surligneur fluo. */
.theme-fanzine {
  --papier: #ecebe6;
  --encre: #0d0d0d;
  --rose: #ff2e93;
  --fluo: #e9ff3b;
  --gris: #3d3d3d;
  /* scotch : ruban de masquage kraft, bords un peu plus sombres */
  --scotch: linear-gradient(90deg, rgb(196 150 82 / .92), rgb(226 186 118 / .88) 12%, rgb(232 196 130 / .86) 50%, rgb(226 186 118 / .88) 88%, rgb(196 150 82 / .92));
  --machine: "Courier Prime", "Courier New", Courier, "Nimbus Mono PS", "Liberation Mono", monospace;
  --gras: "Arial Black", "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  color: var(--encre);
  font-family: var(--machine);
  background-color: var(--papier);
  /* grain de photocopie */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.theme-fanzine a { color: var(--encre); }
.theme-fanzine a:focus-visible, .theme-fanzine button:focus-visible { outline-color: var(--rose); }

/* En-tête : titre noir massif, « de SMO » en autocollant rose */
.theme-fanzine .masthead__logo { filter: grayscale(1) contrast(1.6); box-shadow: 0 0 0 4px var(--encre); }
.theme-fanzine .masthead__titre {
  font: 900 clamp(36px, 7vw, 76px)/.95 var(--gras); text-transform: uppercase; letter-spacing: -.03em;
  color: #fff; background: var(--encre); padding: 6px 14px 4px; transform: rotate(-1.2deg);
}
.theme-fanzine .masthead__editeur {
  background: var(--rose); color: #fff; font-family: var(--gras); text-transform: uppercase;
  transform: rotate(7deg) translateY(6px); box-shadow: 3px 3px 0 var(--encre);
}
.theme-fanzine .masthead__slogan {
  position: relative; background: #fff; color: var(--encre);
  font: 700 clamp(14px, 1.9vw, 17px) var(--machine); padding: 4px 12px; margin-left: 10px;
  transform: rotate(.8deg); box-shadow: 1px 2px 3px rgb(0 0 0 / .25);
}
/* bout de scotch */
.theme-fanzine .masthead__slogan::before,
.theme-fanzine .carte__lien::before,
.theme-fanzine .fiche::before {
  content: ""; position: absolute; z-index: 2; width: 74px; height: 22px;
  background: var(--scotch); box-shadow: 0 1px 2px rgb(0 0 0 / .25);
  top: -11px; left: 50%; transform: translateX(-50%) rotate(-4deg);
}
.theme-fanzine .nav { border-top: 4px solid var(--encre); border-bottom: 4px solid var(--encre); gap: 14px 18px; align-items: center; }
.theme-fanzine .nav__lien {
  --c: #fff; --t: var(--encre);
  position: relative;
  background: var(--c) !important; color: var(--t) !important;
  outline: 2px solid var(--encre); outline-offset: -2px; box-shadow: 3px 3px 0 var(--encre);
  font: 700 15px var(--machine); text-transform: uppercase;
  transition: transform .15s;
}
/* une couleur par bouton */
.theme-fanzine .nav__lien:first-child   { --c: var(--rose); --t: #fff; }        /* Accueil */
.theme-fanzine .nav__lien--bleu         { --c: #2a46a6;     --t: #fff; }        /* Gazettes libres */
.theme-fanzine .nav__lien--violet       { --c: #7b3fc4;     --t: #fff; }        /* Hors-séries */
.theme-fanzine .nav__lien--noir         { --c: var(--fluo); --t: var(--encre); } /* Portraits d'artistes */
.theme-fanzine .nav__lien--orange       { --c: #ff6b1a;     --t: var(--encre); } /* Divers */
.theme-fanzine .nav__lien--contact      { --c: #19c37d;     --t: var(--encre); } /* Contact */
.theme-fanzine .nav__lien:nth-child(odd) { transform: rotate(-1.5deg); }
.theme-fanzine .nav__lien:nth-child(even) { transform: rotate(1.2deg); }
.theme-fanzine .nav__lien:hover { transform: rotate(0) scale(1.05); }
/* page active : bouton agrandi, scotché */
.theme-fanzine .nav__lien[aria-current],
.theme-fanzine .nav__lien[aria-current]:hover { transform: rotate(-2.5deg); z-index: 1; box-shadow: 4px 4px 0 var(--encre); font-size: 18px; padding: 8px 18px; }
.theme-fanzine .nav__lien[aria-current]::before {
  content: ""; position: absolute; width: 34px; height: 13px; top: -6px; left: -9px;
  transform: rotate(-38deg);
  background: var(--scotch); box-shadow: 0 1px 2px rgb(0 0 0 / .25);
}

/* Titres de rubrique : bandes noires découpées */
.theme-fanzine .bandeau {
  background: var(--encre) !important; color: #fff;
  font: 900 clamp(26px, 4.2vw, 44px)/1.05 var(--gras); text-transform: uppercase; letter-spacing: -.02em;
  padding: 8px 22px 6px; transform: rotate(-1.5deg);
  clip-path: polygon(0 4%, 4% 0, 30% 5%, 58% 0, 86% 6%, 100% 0, 98% 52%, 100% 100%, 70% 94%, 40% 100%, 12% 95%, 0 100%, 2% 50%);
}
.theme-fanzine .une .bandeau--penche { display: table; margin-bottom: 18px; }
.theme-fanzine .bandeau--penche { font-size: 15px; background: var(--rose) !important; clip-path: none; transform: rotate(-3deg); }
.theme-fanzine .sous-titre { background: var(--fluo); font-family: var(--machine); transform: rotate(1deg); box-shadow: none; margin-top: -6px; }
.theme-fanzine .annee { font-family: var(--gras); border-bottom: 4px solid var(--encre); }

/* À la une : couverture scotchée */
.theme-fanzine .une__couv { position: relative; transform: rotate(-2.5deg); }
.theme-fanzine .une__couv::before {
  content: ""; position: absolute; z-index: 2; width: 110px; height: 28px; background: var(--scotch);
  top: -12px; left: 50%; transform: translateX(-50%) rotate(3deg); box-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.theme-fanzine .une__couv img { box-shadow: 6px 6px 0 var(--encre); }
.theme-fanzine .une__titre { font: 900 clamp(32px, 5vw, 56px)/1 var(--gras); text-transform: uppercase; letter-spacing: -.02em; }
.theme-fanzine .une__titre { background: linear-gradient(transparent 55%, var(--fluo) 55%, var(--fluo) 92%, transparent 92%); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.theme-fanzine .une__info { margin-top: 14px; }
.theme-fanzine .masthead__slogan::before { width: 46px; height: 18px; top: -8px; left: -16px; transform: rotate(-32deg); }

.theme-fanzine .bouton { color: #fff; background: var(--encre); font-family: var(--machine); text-transform: uppercase; box-shadow: 4px 4px 0 var(--rose); }
.theme-fanzine .bouton:hover { box-shadow: 6px 6px 0 var(--rose); }
.theme-fanzine .bouton--clair { background: #fff; color: var(--encre); outline: 2px solid var(--encre); }

/* Vignettes : couvertures scotchées, plus penchées */
.theme-fanzine .carte__lien { position: relative; }
.theme-fanzine .carte__couv { box-shadow: 4px 4px 0 var(--encre); }
.theme-fanzine .grille .carte:nth-child(odd) .carte__couv { transform: rotate(-2.2deg); }
.theme-fanzine .grille .carte:nth-child(even) .carte__couv { transform: rotate(1.8deg); }
.theme-fanzine .carte__lien:hover .carte__couv { transform: rotate(0) scale(1.03); }
.theme-fanzine .carte__titre { font: 900 18px/1.15 var(--gras); text-transform: uppercase; }
.theme-fanzine .carte__date { color: var(--gris); font-size: 14px; }
.theme-fanzine .pastille { color: #fff; background: var(--encre) !important; font-family: var(--machine); }
.theme-fanzine .pastille--bleu { box-shadow: 3px 0 0 #2a46a6; }
.theme-fanzine .pastille--violet { box-shadow: 3px 0 0 #6b3a9c; }
.theme-fanzine .pastille--orange { box-shadow: 3px 0 0 #e2632b; }
.theme-fanzine .rubrique__plus a { background: var(--fluo); text-decoration: none; padding: 2px 6px; }

/* Mur Divers */
.theme-fanzine .tuile a { box-shadow: 4px 4px 0 var(--encre); }
.theme-fanzine .mur .tuile:nth-child(3n+1) a { transform: rotate(-2deg); }
.theme-fanzine .mur .tuile:nth-child(3n+2) a { transform: rotate(1.6deg); }
.theme-fanzine .tuile figcaption { font-family: var(--machine); }

/* Lecture, contact, pied */
.theme-fanzine .lecture__titre { font: 900 clamp(28px, 4.4vw, 44px)/1.05 var(--gras); text-transform: uppercase; }
.theme-fanzine .lecteur, .theme-fanzine .image-seule { background: #d9d8d2; border: 3px solid var(--encre); }
.theme-fanzine .lecteur__fleche { background: var(--rose); }
.theme-fanzine .lecteur__miniatures button[aria-current="true"] { outline-color: var(--rose); }
.theme-fanzine .fiche { position: relative; transform: rotate(-1.4deg); box-shadow: 6px 6px 0 var(--encre); }
.theme-fanzine .fiche dt { font-family: var(--machine); text-transform: uppercase; font-size: 13px; }
.theme-fanzine .fiche dd { font-family: var(--machine); }
.theme-fanzine .pied { border-top: 4px solid var(--encre); color: var(--encre); }

@media (max-width: 700px) {
  .theme-fanzine .masthead__titre { font-size: 30px; }
  .theme-fanzine .nav__lien { font-size: 13px; }
  .theme-fanzine .nav { gap: 14px 14px; padding: 16px 0; }
  .theme-fanzine .nav__lien[aria-current] { font-size: 15px; padding: 6px 13px; }
}
