/* ============================================================
   Bonus css pour donner un style proche du constructivisme en
   hommage à Rodtchenko, Lissitzky, Stepanova et bien d'autres
   ============================================================ */

@media screen {

:root { --rouge: var(--accent); }

/* Titres de section : bande rouge en biais derrière le bas du titre */
.section-head { margin-bottom: 2.25rem; }
.section-head__eyebrow { font-family: var(--font-mono); letter-spacing: 0.02em; }
.section-head__title {
  position: relative;
  display: inline-block;
  z-index: 0;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.section-head__title::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.3em;
  right: -0.45em;
  bottom: 0.04em;
  height: 0.38em;
  background: var(--rouge);
  transform: skewX(-20deg);
}

/* Listes : plus de fenêtre, des lignes d'affiche */
.liste {
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 3rem;
}
/* barre-légende */
.liste__barre {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  background: none;
  color: var(--text-muted);
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.liste__barre .liste__titre::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.6rem;
  background: var(--rouge);
}
.liste__compte { margin: 0; opacity: 1; }
.liste__barre::after {
  content: "";
  flex: 1;
  width: auto;
  height: 0;
  background: none;
  border-top: 2px solid var(--text);
}
.liste__outils { border: 0; background: transparent; padding: 0 0 1.25rem; }

/* filtres : plaques rectangulaires, la plaque active est rouge */
.liste .filter-bar__btn {
  border: 2px solid var(--text);
  background: transparent;
  font-weight: 600;
}
.liste .filter-bar__btn:hover { background: var(--text); color: var(--bg); }
.liste .filter-bar__btn.is-active { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.liste__q, .liste__tri { border: 2px solid var(--text); background: transparent; }

/* lignes : filet épais, grand titre, coup de biais rouge au survol */
.liste .post-list__items { border-bottom: 2px solid var(--text); }
.liste .post-list__item {
  overflow: hidden;
  isolation: isolate;
  padding: 1.05rem 0.5rem 1.15rem 0;
  border-top: 2px solid var(--text);
  border-bottom: 0;
}
.liste .post-list__item:last-child { border-bottom: 0; }
.liste .post-list__item::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -12%;
  right: -12%;
  background: var(--rouge);
  transform: translateX(-112%) skewX(-16deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.liste .post-list__item:hover,
.liste .post-list__item:focus-within { background: transparent; color: #fff; }
.liste .post-list__item:hover::before,
.liste .post-list__item:focus-within::before { transform: translateX(0) skewX(-16deg); }
.liste .post-list__item:focus-within { outline: 0; }
.liste .post-list__item:focus-within .post-list__link { outline: 3px solid var(--text); outline-offset: 4px; }
.liste .post-list__num { color: var(--text-faint); padding-left: 0.3rem; }
.liste .post-list__title {
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.liste .post-list__item:hover .post-list__title,
.liste .post-list__item:focus-within .post-list__title { transform: translateX(0.6rem); }
.liste .post-list__item:hover .post-list__num,
.liste .post-list__item:hover .post-list__date,
.liste .post-list__item:hover .post-list__desc { color: #fff; }
.liste .post-list__item:hover .tag,
.liste .post-list__item:focus-within .tag { box-shadow: inset 0 0 0 1px #fff; color: #fff; }

/* Articles et pages */
.post__header { position: relative; }
.post__header::after {
  /* triangle rectangle rouge dans le coin */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(44px, 9vw, 84px);
  aspect-ratio: 1;
  background: var(--rouge);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}
.post__title {
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: underline;
  text-decoration-color: var(--rouge);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
  padding-right: clamp(3rem, 8vw, 5.5rem);
}

.post__body h2 { position: relative; padding-left: 1.35em; }
.post__body h2::before {
  /* pointe (triangle) rouge devant intertitre */
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.8em;
  height: 0.8em;
  background: var(--rouge);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.post__body blockquote {
  border-left: 10px solid var(--rouge);
  padding-left: 1.1rem;
  background: transparent;
  font-style: normal;
  font-weight: 600;
}
.post__body hr {
  /* filet qui se termine en pointe rouge */
  height: 14px;
  border: 0;
  background:
    linear-gradient(var(--text), var(--text)) 0 50% / calc(100% - 20px) 2px no-repeat,
    linear-gradient(135deg, transparent 50%, var(--rouge) 50%) 100% 50% / 14px 14px no-repeat;
}

/* En-tête : segment rouge en biais sous le logo */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: clamp(120px, 14vw, 220px);
  height: 6px;
  background: var(--rouge);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transform-origin: 0 50%;
  transform: scaleX(0.14);
}
@supports (animation-timeline: scroll()) {
  .site-header::after { animation: lecture linear both; animation-timeline: scroll(root); }
  @keyframes lecture { to { transform: scaleX(1); } }
}

/* Pied de page : filet rouge */
.site-footer { border-top: 4px solid var(--rouge); }

/* Fond : lignes */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 100%,
      transparent 0 calc(34vmin - 2px),
      color-mix(in srgb, var(--rouge) 30%, transparent) calc(34vmin - 2px) 34vmin,
      transparent 34vmin),
    radial-gradient(circle at 100% 100%,
      transparent 0 calc(22vmin - 2px),
      color-mix(in srgb, var(--text) 14%, transparent) calc(22vmin - 2px) 22vmin,
      transparent 22vmin),
    linear-gradient(-24deg,
      transparent calc(62% - 1px),
      color-mix(in srgb, var(--text) 9%, transparent) calc(62% - 1px) calc(62% + 1px),
      transparent calc(62% + 1px));
}


/* motif par rubrique, à droite du titre de section */
.section-head { position: relative; }
.motif {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  width: clamp(120px, 17vw, 210px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.motif .m-t { fill: var(--text); }
.motif .m-r { fill: var(--rouge); }
.motif .m-l { fill: none; stroke: var(--text); stroke-width: 2; }
.motif > * {
  transform-box: fill-box;
  transform-origin: center;
  animation: motif-pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--k, 0) * 110ms + 120ms);
}
@keyframes motif-pop { from { transform: scale(0.2) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 901px) { .section-head { padding-right: calc(clamp(120px, 17vw, 210px) + 1.5rem); } }
@media (max-width: 900px) { .motif { display: none; } }

/* Page 404 */
.quatre { container-type: inline-size; }
.quatre__code {
  display: flex;
  align-items: center;
  gap: 0.04em;
  margin: 0.5rem 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 20cqi, 8rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--text);
}
.quatre__rond {
  display: grid;
  place-items: center;
  width: 0.78em;
  height: 0.78em;
  border-radius: 50%;
  background: var(--text);
  animation: rond-roule 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
.quatre__rond .lobster-lost { font-size: 0.42em; line-height: 1; }
@keyframes rond-roule {
  0%   { transform: translateX(-260%) rotate(-540deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.quatre__phrase { margin: 0 0 0.5rem; min-height: 1.5rem; font-size: 1.15rem; font-weight: 600; }
.quatre__sous { margin: 0 0 1.75rem; color: var(--text-muted); font-size: 0.92rem; }
.quatre__form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.5rem; }
.quatre__form input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.quatre__form button {
  padding: 0.55rem 1.1rem;
  background: var(--rouge);
  color: #fff;
  border: 2px solid var(--rouge);
  border-radius: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
}
.quatre__form button:hover,
.quatre__form button:focus-visible { background: var(--text); color: var(--bg); border-color: var(--text); }
.post__body .liste a { color: inherit; text-decoration: none; }
.post__body .liste a:hover { background: none; color: inherit; }
/* tribunal des crustacés  */
#tribunal-box button { border-radius: 0 !important; }
#tribunal-box button:hover { background: var(--rouge) !important; color: #fff !important; border-color: var(--rouge) !important; }
@media (prefers-reduced-motion: reduce) { .quatre__rond, .motif > * { animation: none; } }

/* Réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
  .liste .post-list__item::before,
  .liste .post-list__title { transition: none; }
}

@media (max-width: 820px) {
  .site-header { position: relative; }
  body::before { display: none; }
}

}