/* BerenhiS — feuille de style
   Idée directrice : le logo est symétrique autour d'une épine centrale.
   Toute la page s'organise de part et d'autre de cet axe (.echine). */

:root {
  --noir: #000;
  --os: #e8e3d9;        /* blanc cassé : texte, logo */
  --cendre: #8f8a82;    /* texte secondaire */
  --suie: #1d1b19;      /* filets discrets */
  --axe: clamp(2.5rem, 7vw, 6rem);       /* largeur du couloir central */
  --marge: clamp(1.25rem, 4vw, 3rem);
  --large: 76rem;
  --logo-h: min(58svh, 80vw);
  --hero-haut: clamp(5.5rem, 13svh, 9rem);
  --gothique: "BRNS Gothic", "UnifrakturCook", serif;
  --texte: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--noir); }
body {
  margin: 0;
  background: var(--noir);
  color: var(--os);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--os); outline-offset: 4px; }
::selection { background: var(--os); color: var(--noir); }

.evitement {
  position: absolute; left: -999rem; top: 0; z-index: 20;
  padding: .75rem 1rem; background: var(--os); color: var(--noir);
}
.evitement:focus { left: 0; }

/* Les photos viennent de sources différentes : on les unifie en noir et blanc. */
main img:not(.hero__logo) { filter: grayscale(1) contrast(1.1) brightness(.92); }

/* ---------- Barre de navigation ---------- */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: linear-gradient(rgba(0, 0, 0, .92), rgba(0, 0, 0, 0));
  padding: 1rem var(--marge) 1.75rem;
  pointer-events: none;
}
.barre__nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: var(--large); margin: 0 auto;
  pointer-events: auto;
}
.barre__cote { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.barre__cote--g { justify-content: flex-end; }
.barre a {
  font-stretch: 78%; font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; padding: .35rem 0;
  background: linear-gradient(var(--os), var(--os)) 50% 100% / 0 1px no-repeat;
  transition: background-size .25s ease;
}
.barre a:hover, .barre a:focus-visible { background-size: 100% 1px; }
.barre__logo { width: 2.5rem; background: none !important; opacity: 0; transition: opacity .3s ease; }
.barre.est-descendue .barre__logo { opacity: 1; }

/* ---------- Axe et épine ---------- */
.axe { position: relative; }
.echine {
  position: absolute; z-index: 0;
  left: 50%; width: 1px; margin-left: -.5px;
  top: calc(var(--hero-haut) + var(--logo-h) - .5rem);
  bottom: 4.5rem;
  background: rgba(232, 227, 217, .16);
}
.echine i {
  position: absolute; inset: 0; background: var(--os);
  transform-origin: 50% 0; transform: scaleY(var(--avance, 0));
}
/* La pointe finale reprend la pointe basse du logo. */
.pointe {
  position: relative; z-index: 1;
  width: 0; height: 0; margin: 0 auto;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4.5rem solid var(--os);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding: var(--hero-haut) var(--marge) 4rem;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo { height: var(--logo-h); width: auto; }
.hero__nom {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--axe);
  align-items: baseline; width: 100%; max-width: var(--large);
  margin-top: clamp(2rem, 6svh, 4rem);
}
.hero__nom h1 {
  font-family: var(--gothique); font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 6.5rem); line-height: 1;
  text-align: right;
}
.hero__nom p {
  font-stretch: 70%; font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 2rem); letter-spacing: .04em;
  color: var(--cendre);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__logo { animation: ouvrir 1.5s cubic-bezier(.7, 0, .2, 1) both; }
  .hero__nom { animation: paraitre .9s ease 1.1s both; }
  @keyframes ouvrir { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
  @keyframes paraitre { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .echine i { transform: none; }
}

/* ---------- Sections ---------- */
.sec { position: relative; z-index: 1; padding-block: clamp(4rem, 10vw, 8rem); scroll-margin-top: 3rem; }

.paire {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--axe);
  align-items: center;
  max-width: var(--large); margin: 0 auto; padding-inline: var(--marge);
}
.titre {
  position: relative;
  font-family: var(--gothique); font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 7rem); line-height: 1;
  text-align: right;
}
/* Côte : relie le titre à l'épine. */
.titre::after {
  content: ""; position: absolute; top: 55%; left: 100%;
  width: calc(var(--axe) / 2 - .75rem); height: 1px; margin-left: .75rem;
  background: var(--os);
}
.texte { max-width: 30rem; }
.texte p + p { margin-top: .75rem; }
.texte p:first-child { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.45; }
.discret { color: var(--cendre); font-stretch: 85%; }

.paire--inverse .titre { order: 2; text-align: left; }
.paire--inverse .titre::after { left: auto; right: 100%; margin: 0 .75rem 0 0; }
.paire--inverse .texte { justify-self: end; text-align: right; }

.plein {
  position: relative; z-index: 1;
  max-width: 92rem; margin: 1rem auto 0;
  background: var(--noir);
}
.plein img { width: 100%; }
.plein--scene { max-width: 68rem; margin: 0 auto clamp(3rem, 7vw, 6rem); padding-inline: var(--marge); }

/* Membres : deux de chaque côté de l'épine. */
.membres {
  display: grid; grid-template-columns: 1fr 1fr var(--axe) 1fr 1fr; gap: 0 1rem;
  max-width: var(--large); margin: clamp(1rem, 3vw, 2.5rem) auto 0; padding-inline: var(--marge);
}
.membres li:nth-child(3) { grid-column: 4; }
.membres li:nth-child(even) { margin-top: 3rem; }
.membres img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.membres span {
  display: block; margin-top: .6rem;
  font-family: var(--gothique); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1;
}

.membres small { display: block; color: var(--cendre); font-stretch: 85%; font-size: .95rem; }

/* Studio : photos en côtes, alternées de part et d'autre de l'épine. */
.cotes {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--axe);
  max-width: var(--large); margin: clamp(3rem, 7vw, 6rem) auto 0; padding-inline: var(--marge);
}
.cotes__col { display: flex; flex-direction: column; gap: clamp(2.5rem, 8vw, 7rem); }
.cotes__col--d { padding-top: clamp(4rem, 14vw, 12rem); }
.cotes figure { position: relative; width: 100%; }
.cotes figure.etroit { width: 72%; }
.cotes__col--g figure { align-self: flex-end; }
.cotes__col--d figure { align-self: flex-start; }
.cotes figure::after {
  content: ""; position: absolute; top: 50%; height: 1px;
  width: calc(var(--axe) / 2); background: rgba(232, 227, 217, .5);
}
.cotes__col--g figure::after { left: 100%; }
.cotes__col--d figure::after { right: 100%; }

/* Concerts : la date à gauche de l'épine, le lieu à droite. */
.dates { max-width: var(--large); margin: clamp(2rem, 5vw, 4rem) auto 0; padding-inline: var(--marge); }
.dates:empty { display: none; }
.dates li {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--axe);
  align-items: baseline; padding-block: 1.1rem;
}
.dates time {
  text-align: right; font-stretch: 68%; font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.dates strong { display: block; font-weight: 500; font-size: 1.2rem; }
.dates span { color: var(--cendre); font-stretch: 85%; }
.dates a { margin-left: .75rem; }

.bouton {
  display: inline-block; margin-top: 1.25rem; padding: .7rem 1.4rem;
  border: 1px solid var(--os); text-decoration: none;
  font-stretch: 78%; font-weight: 500; letter-spacing: .02em;
  transition: background-color .2s ease, color .2s ease;
}
.bouton:hover, .bouton:focus-visible { background: var(--os); color: var(--noir); }

/* ---------- Contact ---------- */
.fin { padding: 2.5rem 0 clamp(4rem, 9vw, 7rem); scroll-margin-top: 5rem; }
.titre--centre { text-align: center; }
.titre--centre::after { content: none; }
.paire--fin { align-items: start; margin-top: clamp(2rem, 5vw, 3.5rem); }
.fin__bloc--g { text-align: right; }
.fin__mail { font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-stretch: 85%; overflow-wrap: anywhere; }
.fin__mail a { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.liens { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-stretch: 85%; }
.liens a { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.a-venir { color: var(--cendre); }

.pied {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 3rem var(--marge) 2.5rem; border-top: 1px solid var(--suie);
  color: var(--cendre); font-size: .9rem; font-stretch: 85%;
}
.pied img { width: 3rem; opacity: .7; }
.pied a { margin-left: 1rem; }

/* ---------- Petits écrans : tout se recentre sur l'épine ---------- */
@media (max-width: 760px) {
  .barre { padding-bottom: 1.5rem; }
  .barre__nav { grid-template-columns: auto auto; justify-content: center; }
  .barre__logo { display: none; }
  .barre a { font-size: .95rem; }

  .hero__nom { grid-template-columns: 1fr; row-gap: .5rem; justify-items: center; background: var(--noir); position: relative; z-index: 1; padding-block: .75rem; }
  .hero__nom h1 { text-align: center; font-size: clamp(3.25rem, 17vw, 5rem); }

  .paire { grid-template-columns: 1fr; row-gap: 1rem; justify-items: center; text-align: center; }
  .paire > * { background: var(--noir); padding-block: .5rem; }
  .titre, .paire--inverse .titre { text-align: center; order: 0; font-size: clamp(3.25rem, 16vw, 5rem); }
  .titre::after { content: none; }
  .paire--inverse .texte { justify-self: center; text-align: center; }

  .membres { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .membres li:nth-child(3) { grid-column: auto; }
  .membres li:nth-child(even) { margin-top: 2.5rem; }

  .cotes { column-gap: 1.25rem; }
  .cotes figure::after { width: .625rem; }
  .cotes figure.etroit { width: 82%; }

  .dates li { grid-template-columns: 1fr; text-align: center; row-gap: .25rem; background: var(--noir); }
  .dates time { text-align: center; }

  .fin__bloc--g { text-align: center; }
  .liens { justify-content: center; }
}
