/* Épure — fonds décoratifs
   Hero : une trame de pixels qui révèle des maquettes de sites (pixels.js).
   Sections : une grille de plan très pâle, effacée au centre pour ne pas gêner la lecture,
   et le trait (trace.js) qui se dessine au-dessus de la grille et sous le contenu. */
main { position: relative; }

.hero { position: relative; }
.hero-pixels { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }

.section { --bg: var(--white); --grid: rgba(43, 64, 194, .045); --grid-major: rgba(43, 64, 194, .075); }
.section.alt { --bg: var(--paper); }
.section.dark { --bg: var(--ink); --grid: rgba(169, 184, 255, .05); --grid-major: rgba(169, 184, 255, .085); }
.section, .section.alt, .section.dark {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 56% 72% at 50% 50%, var(--bg) 42%, transparent 100%),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center, center top, center top, center top, center top;
}
.section > .wrap { position: relative; z-index: 1; }

.trace { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.trace svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.trace-ghost { fill: none; stroke-width: 1; stroke-dasharray: 1 6; stroke-linecap: round; opacity: .4; }
.trace-ink { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.trace-detail { stroke-width: 1.6; stroke-linecap: round; opacity: 0; transition: opacity .5s ease; }
.trace-node { stroke-width: 1.2; opacity: 0; transition: opacity .35s ease; }
.trace-detail.on { opacity: .85; }
.trace-node.on { opacity: .9; }
.trace-tip { opacity: 0; transition: opacity .3s ease; }
.trace-tip.on { opacity: 1; }
.trace-halo { opacity: .18; }
.trace-mark { fill: none; stroke-width: 1; opacity: .5; }
.trace-cote { stroke-width: .8; opacity: .4; }
.trace-label { font: 500 10px/1 var(--sans); letter-spacing: .18em; opacity: .55; }

@media (max-width: 720px) {
  .trace-ink { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  .trace-detail, .trace-node, .trace-tip { transition: none; }
}

@media print {
  .trace, .hero-pixels { display: none; }
  .section, .section.alt, .section.dark { background-image: none; }
}
