/* GenComProdukts, site. Mobile d'abord, puis ordinateur à partir de 900px. */

:root {
  --panel: #0e1116;      /* fond, la face avant d'un synthé */
  --panel-2: #161b23;    /* fond des images en attente */
  --bone: #ece6d8;       /* texte principal, ton papier */
  --soft: #c4bfb3;       /* texte secondaire */
  --muted: #8d939d;      /* petites infos */
  --rule: #2a313c;       /* filets */
  --signal: #d8442e;     /* rouge du câble de patch, utilisé avec parcimonie */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--panel);
  color: var(--bone);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  line-height: 1;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.intl {
  color: var(--signal);
  font-style: italic;
}

.reg {
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 0.55em;
  font-weight: 500;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.1em;
}

/* En-tête : marque, liens des sections au centre, E-shop à droite */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.1;
  text-decoration: none;
}

.brand span {
  display: block;
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.sections {
  order: 3;
  flex-basis: 100%;
  text-align: center;
}

.sections ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.1rem;
}

.sections a {
  display: block;
  padding: 0.2rem 0.3rem;
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  text-decoration: none;
}

.sections a:hover,
.sections a:focus-visible,
.sections a[aria-current="page"] {
  color: var(--signal);
}

.shop {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--bone);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.shop:hover,
.shop:focus-visible,
.shop[aria-current="page"] {
  background: var(--bone);
  color: var(--panel);
}

/* Accueil : photo plein écran */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 75svh;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--panel) 4%,
    rgba(14, 17, 22, 0.45) 55%,
    rgba(14, 17, 22, 0) 100%
  );
}

.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem 1.25rem 2.25rem;
}

.hero-text::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-bottom: 1rem;
  background: var(--signal);
}

.hero h1 {
  font-size: clamp(3.2rem, 16vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.hero h1 span {
  display: block;
}

.lede {
  margin: 0;
  max-width: 26ch;
  font-size: 1.125rem;
  color: var(--bone);
}

/* Pages intérieures */

.page-head {
  padding: 2.5rem 0 0;
}

.page-title {
  font-size: clamp(3rem, 12vw, 6rem);
  letter-spacing: -0.01em;
}

.tabs {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tabs a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.95rem;
  text-decoration: none;
}

.tabs a:hover,
.tabs a:focus-visible {
  color: var(--bone);
}

.tabs a[aria-current="page"] {
  border-color: var(--signal);
  color: var(--bone);
}

.content {
  padding: 1rem 0 1rem;
}

.content a {
  color: var(--bone);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--bone);
  max-width: 40rem;
}

.prose {
  max-width: 40rem;
  color: var(--soft);
}

.prose p {
  color: var(--soft);
}

.prose-title {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.gear {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  color: var(--soft);
  max-width: 40rem;
}

.gear li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
}

/* Actualités */

.post {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--rule);
  max-width: 44rem;
}

.post-date {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.post p {
  color: var(--soft);
}

/* Éléments avec pochette ou texte */

.item {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--rule);
}

.item-cover {
  margin: 0;
  max-width: 260px;
}

.item-cover img {
  width: 100%;
  height: auto;
  background: var(--panel-2);
}

.item h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item p {
  color: var(--soft);
  max-width: 40rem;
}

.tracks {
  margin: 0.5rem 0 0;
  padding-left: 1.4rem;
  color: var(--soft);
  columns: 1;
}

.tracks li {
  padding: 0.1rem 0;
}

/* Grilles d'images */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1.25rem 0 2rem;
}

.grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--panel-2);
}

/* Vidéos et audio */

.embeds {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-audio {
  aspect-ratio: auto;
  height: 166px;
  background: none;
}

.embed-audio iframe {
  position: static;
  height: 166px;
}

/* Pied de page */

.site-footer {
  margin-top: 3rem;
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--soft);
}

.listen-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.listen-links {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.listen-links a {
  color: var(--soft);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.listen-links a:hover,
.listen-links a:focus-visible {
  color: var(--bone);
}

.contact {
  margin: 0 0 1.5rem;
}

.contact a {
  color: var(--bone);
  overflow-wrap: anywhere;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.copy .brand-inline {
  color: var(--bone);
}

.copy .intl {
  color: var(--signal);
}

/* Biographie */

.bio {
  max-width: 40rem;
  padding: 0 0 1rem;
}

.bio p {
  color: var(--soft);
}

.bio p:first-child {
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--bone);
}

/* Ordinateur */

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .embeds {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 1.25rem 3rem;
  }

  .sections {
    order: 0;
    flex: 1;
    flex-basis: auto;
    padding: 0 1.5rem;
  }

  .sections ul {
    flex-wrap: nowrap;
    gap: 0 2.2rem;
  }

  .sections a {
    font-size: 1.6rem;
    padding: 0.2rem 0;
    transition: color 0.2s ease;
  }

  .wrap {
    padding: 0 3rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero img {
    object-position: center 25%;
  }

  .hero::after {
    background: linear-gradient(
      to right,
      rgba(14, 17, 22, 0.9) 0%,
      rgba(14, 17, 22, 0.35) 45%,
      rgba(14, 17, 22, 0) 75%
    );
  }

  .hero-text {
    max-width: 44rem;
    padding: 0 3rem 4.5rem;
  }

  .hero h1 {
    font-size: clamp(6rem, 11vw, 10rem);
  }

  .lede {
    font-size: 1.35rem;
    max-width: 30ch;
  }

  .item {
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .embeds {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Années des actualités */

.years {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.years a {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.95rem;
  text-decoration: none;
}

.years a:hover,
.years a:focus-visible {
  color: var(--bone);
}

.years a[aria-current="page"] {
  border-color: var(--signal);
  color: var(--bone);
}

/* Matériel du studio : une liste aérée, une ligne par marque */

.gear-section {
  margin-top: 2.5rem;
}

.gear-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.gear-rows {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.gear-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.gear-brand {
  margin: 0 0 0.3rem;
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
}

.gear-models {
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .gear-row {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1rem 0;
  }

  .gear-brand {
    margin: 0;
  }
}

/* Photos agrandissables */

.grid a.zoom {
  display: block;
  cursor: zoom-in;
}

.grid a.zoom img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--panel-2);
  transition: opacity 0.2s ease;
}

.grid a.zoom:hover img,
.grid a.zoom:focus-visible img {
  opacity: 0.8;
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.lightbox[open] {
  display: flex;
}

.lightbox::backdrop {
  background: rgba(14, 17, 22, 0.94);
}

.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lb-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--bone);
  border-radius: 999px;
  background: var(--panel);
  color: var(--bone);
  font: inherit;
  cursor: pointer;
}

@media (min-width: 900px) {
  .gear-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

/* E-shop : albums classés par projet */

.shop-group {
  scroll-margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.product-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-format {
  color: var(--soft);
  margin-bottom: 0.5rem;
  max-width: 40rem;
}

.buy-links {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buy {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--bone);
  border-radius: 999px;
  color: var(--bone);
  font-size: 0.92rem;
  text-decoration: none;
}

.buy:hover,
.buy:focus-visible {
  background: var(--bone);
  color: var(--panel);
}

/* Playlists SoundCloud : liste des titres visible */

.embed-playlist {
  height: 450px;
}

.embed-playlist iframe {
  height: 450px;
}

/* Matériel : une suite de texte, marques en gras */

.gear-flow {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  color: var(--soft);
  line-height: 1.9;
}

.gear-flow strong {
  color: var(--bone);
  font-weight: 600;
}

.caption {
  margin: -0.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
