/* evelinapitti.com — feuille de style unique
   Polices : Bodoni Moda (titres) et Jost (texte), licence SIL OFL, auto-hébergées. */

@font-face {
  font-family: "Bodoni Moda";
  src: url(../fonts/bodoni-moda-latin-opsz-normal.woff2) format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url(../fonts/bodoni-moda-latin-ext-opsz-normal.woff2) format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url(../fonts/bodoni-moda-latin-opsz-italic.woff2) format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url(../fonts/bodoni-moda-latin-ext-opsz-italic.woff2) format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  src: url(../fonts/jost-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url(../fonts/jost-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --noir: #000;
  --blanc: #fff;
  --texte: #262422;
  --gris: #6f6a65;
  --gris-nuit: #a9a6a2;
  --filet: #e4e1dc;
  --papier: #f3f1ee;
  --ecarlate: #b3121d;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Jost", Futura, "Century Gothic", "Segoe UI", sans-serif;

  --marge: clamp(20px, 5vw, 64px);
  --largeur: 1240px;
  --espace-section: clamp(4.5rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ecarlate); }
:focus-visible { outline: 2px solid var(--ecarlate); outline-offset: 3px; }
p { margin: 0 0 1.1em; }
sup { font-size: .6em; line-height: 0; vertical-align: .9em; margin-left: .03em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--marge); top: -100px; z-index: 50;
  background: var(--blanc); color: var(--noir); padding: .5rem 1rem;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

/* ---------- Ouverture ---------- */

.hero {
  position: relative;
  background: var(--noir);
  color: var(--blanc);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nav {
  position: relative; z-index: 3;
  padding: 1.4rem var(--marge) 0;
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .4rem 1.8rem; justify-content: flex-end; flex-wrap: wrap;
  font-size: .95rem; letter-spacing: .02em;
}
.nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: .3rem 0; }
.nav a:hover { color: var(--blanc); text-decoration: underline; text-decoration-color: var(--ecarlate); text-decoration-thickness: 2px; }

.hero__portrait {
  position: absolute; z-index: 1;
  top: 0; right: 0; bottom: 0;
  margin: 0;
  aspect-ratio: 1300 / 1991;
  height: 100%;
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__portrait::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 14%, rgba(0,0,0,0) 38%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%);
}

.hero__texte {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 3rem var(--marge) clamp(3rem, 9vh, 6rem);
  max-width: var(--largeur);
  width: 100%;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(4.2rem, 11.5vw, 11rem);
  line-height: .9;
  letter-spacing: -.015em;
  margin-left: -.04em;
}
.hero h1 span { display: block; }
.hero__role {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  margin: 1.1rem 0 0;
  color: var(--blanc);
}
.hero__role::after {
  content: ""; display: block; width: 3.2rem; height: 2px;
  background: var(--ecarlate); margin-top: 1.4rem;
}
.hero__lede {
  max-width: 30rem; margin: 1.4rem 0 2rem;
  color: var(--gris-nuit); font-size: 1.05rem; line-height: 1.65;
}
.bouton {
  display: inline-flex; align-items: center; gap: .75rem;
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--blanc); text-decoration: none;
  padding: .75rem 1.4rem .8rem;
  font-size: 1rem; letter-spacing: .02em;
  transition: background-color .2s, border-color .2s;
}
.bouton svg { width: .8rem; height: .8rem; fill: currentColor; }
.bouton:hover { color: var(--blanc); background: var(--ecarlate); border-color: var(--ecarlate); }

/* Le seul mouvement de la page : le portrait sort de l'ombre, comme la lumière qui monte sur scène. */
@media (prefers-reduced-motion: no-preference) {
  .hero__portrait img { animation: lumiere 2.4s ease-out both; }
  @keyframes lumiere { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 899px) {
  .hero { min-height: 0; }
  .nav { position: absolute; top: 0; left: 0; right: 0; padding: .9rem var(--marge) 2.5rem;
         background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0)); }
  .nav ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 1.3rem;
            scrollbar-width: none; font-size: .92rem; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav li { flex: none; }
  .hero__portrait { position: relative; height: auto; width: 100%; aspect-ratio: 4 / 5; }
  .hero__portrait img { object-position: 60% 12%; }
  .hero__portrait::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 38%); }
  .hero__texte { margin-top: -7.5rem; padding-top: 0; padding-bottom: 3.5rem; }
  .hero h1 { font-size: clamp(3.6rem, 19vw, 7rem); }
}

/* ---------- Sections ---------- */

.section { padding: var(--espace-section) 0; }
.section + .section { border-top: 1px solid var(--filet); }
.section--nuit { background: var(--noir); color: var(--blanc); }
.section--nuit + .section, .section + .section--nuit { border-top: 0; }

.section__grille {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.section__tete { align-self: start; position: sticky; top: 2.5rem; }
.section__tete h2 {
  font-style: italic;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  letter-spacing: -.01em;
}
.section__note { color: var(--gris); font-size: .95rem; margin-top: 1rem; max-width: 18rem; line-height: 1.55; }
.section--nuit .section__note { color: var(--gris-nuit); }

@media (max-width: 899px) {
  .section__grille { grid-template-columns: 1fr; }
  .section__tete { position: static; }
}

/* ---------- Biographie ---------- */

.bio__photo { margin: 2.2rem 0 0; max-width: 21rem; }
.bio__photo figcaption, .credit { font-size: .85rem; color: var(--gris); margin-top: .6rem; line-height: 1.45; }

.chapeau {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.45;
  margin-bottom: 1.6rem;
  color: var(--noir);
  max-width: 36em;
}
.bio__texte p:not(.chapeau) { max-width: 38em; }

.reperes { margin: 3rem 0 0; border-top: 1px solid var(--filet); }
.reperes div {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .3rem 2rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--filet);
}
.reperes dt { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.35; color: var(--noir); }
.reperes dd { margin: 0; font-size: 1.02rem; line-height: 1.65; max-width: 42em; }
@media (max-width: 899px) {
  .bio__photo { max-width: 15rem; margin-top: 1.6rem; }
}
@media (max-width: 600px) {
  .reperes div { grid-template-columns: 1fr; }
}

/* ---------- Écouter : un programme de concert ---------- */

.programme { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.piece {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 1.4rem; align-items: start;
  padding: 1.6rem 0 1.5rem; border-bottom: 1px solid rgba(255,255,255,.18);
}
.piece__compositeur { color: var(--gris-nuit); font-size: 1rem; letter-spacing: .02em; }
.piece__ligne { display: flex; align-items: baseline; gap: .8rem; }
.piece__oeuvre { font-family: var(--serif); font-style: italic; font-size: clamp(1.55rem, 2.8vw, 2.25rem); line-height: 1.15; }
.piece__points { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgba(255,255,255,.4); transform: translateY(-.35em); }
.piece__duree { font-variant-numeric: tabular-nums; color: var(--gris-nuit); font-size: 1rem; white-space: nowrap; }

.piece__bouton {
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); background: transparent; color: var(--blanc);
  display: grid; place-items: center; cursor: pointer; margin-top: .35rem;
  transition: background-color .2s, border-color .2s;
}
.piece__bouton svg { width: 1rem; height: 1rem; fill: currentColor; }
.piece__bouton .icone-pause { display: none; }
.piece__bouton:hover { border-color: var(--blanc); }
.piece.en-lecture .piece__bouton { background: var(--ecarlate); border-color: var(--ecarlate); }
.piece.en-lecture .icone-lecture { display: none; }
.piece.en-lecture .icone-pause { display: block; }

.piece__progression { grid-column: 2; display: none; align-items: center; gap: 1rem; margin-top: 1rem; }
.piece.active .piece__progression { display: flex; }
.piece__temps { font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--gris-nuit); white-space: nowrap; }

.piece input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 1.4rem; background: transparent; cursor: pointer; margin: 0;
  --avance: 0%;
}
.piece input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: linear-gradient(90deg, var(--ecarlate) var(--avance), rgba(255,255,255,.25) var(--avance));
}
.piece input[type="range"]::-moz-range-track { height: 2px; background: rgba(255,255,255,.25); }
.piece input[type="range"]::-moz-range-progress { height: 2px; background: var(--ecarlate); }
.piece input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--blanc); margin-top: -5px; border: 0;
}
.piece input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--blanc); border: 0; }

.piece audio { grid-column: 2; width: 100%; margin-top: 1rem; }
.js .piece audio { display: none; }
.no-js .piece__bouton { visibility: hidden; }

@media (max-width: 600px) {
  .piece { grid-template-columns: 2.8rem minmax(0, 1fr); gap: 0 1rem; }
  .piece__bouton { width: 2.8rem; height: 2.8rem; }
}

/* ---------- Galeries ---------- */

.mosaique { columns: 3 15rem; column-gap: 1.2rem; }
.mosaique figure { margin: 0 0 1.2rem; break-inside: avoid; }
.mosaique a { display: block; }
.mosaique img { width: 100%; background: var(--papier); }
.mosaique figcaption { font-size: .9rem; color: var(--gris); margin-top: .5rem; line-height: 1.45; }

.archives {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 2.4rem 1.4rem;
}
.archives a { display: block; text-decoration: none; color: inherit; }
.archives .vignette {
  display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--papier);
  border: 1px solid var(--filet);
}
.archives .vignette img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.archives a:hover .vignette img { transform: scale(1.03); }
.archives .annee { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; margin-top: .9rem; color: var(--noir); }
.archives .legende { display: block; font-size: .95rem; line-height: 1.45; margin-top: .4rem; color: var(--texte); }
.archives a:hover .legende { color: var(--ecarlate); }
@media (max-width: 600px) {
  .archives { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .archives .annee { font-size: 1.4rem; }
}

/* ---------- Concerts ---------- */

.saisons { border-top: 1px solid var(--filet); }
.saison { border-bottom: 1px solid var(--filet); }
.saison summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem 0;
}
.saison summary::-webkit-details-marker { display: none; }
.saison summary h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); font-variant-numeric: lining-nums; }
.saison summary .nombre { color: var(--gris); font-size: .95rem; display: flex; align-items: center; gap: .7rem; }
.saison summary .nombre::after {
  content: ""; width: .55rem; height: .55rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.saison[open] summary .nombre::after { transform: rotate(-135deg) translateY(-1px); }
.saison summary:hover h3 { color: var(--ecarlate); }
.saison ol { list-style: none; margin: 0; padding: 0 0 1.4rem; }
.saison li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .2rem 1.5rem; padding: .55rem 0; font-size: 1.02rem; line-height: 1.6; }
.saison time { color: var(--gris); font-variant-numeric: tabular-nums; }
.saison li em { font-family: var(--serif); font-size: 1.08em; }
@media (max-width: 600px) {
  .saison li { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact__courriel {
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.9rem); line-height: 1.2;
  text-decoration: none; color: var(--noir); word-break: break-word;
  border-bottom: 2px solid var(--ecarlate); padding-bottom: .1em;
}
.contact__courriel:hover { color: var(--ecarlate); }
.contact__liste { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: .6rem; font-size: 1.1rem; }
.contact__liste span { display: inline-block; min-width: 7.5rem; color: var(--gris); }

/* ---------- Pied de page ---------- */

.pied { background: var(--noir); color: var(--gris-nuit); font-size: .92rem; padding: 3rem 0; }
.pied .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem; }
.pied p { margin: 0; }
.pied strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--blanc); display: block; margin-bottom: .2rem; }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--blanc); text-decoration-color: var(--ecarlate); }

/* ---------- Visionneuse ---------- */

.visionneuse {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(0,0,0,.94); color: var(--blanc);
}
.visionneuse::backdrop { background: rgba(0,0,0,.94); }
.visionneuse[open] { display: grid; grid-template-rows: 1fr auto; }
.visionneuse figure { margin: 0; display: grid; place-items: center; padding: 3.5rem 4.5rem 0; min-height: 0; }
.visionneuse img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; }
.visionneuse figcaption { text-align: center; padding: 1rem var(--marge) 1.6rem; font-size: 1rem; color: var(--gris-nuit); }
.visionneuse figcaption b { font-family: var(--serif); font-weight: 400; color: var(--blanc); font-size: 1.25rem; margin-right: .5rem; }
.visionneuse button {
  position: absolute; background: transparent; border: 0; color: var(--blanc); cursor: pointer;
  width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%;
}
.visionneuse button:hover { background: rgba(255,255,255,.12); }
.visionneuse button svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.5; }
.visionneuse .fermer { top: .8rem; right: .8rem; }
.visionneuse .precedent { left: .6rem; top: 50%; transform: translateY(-50%); }
.visionneuse .suivant { right: .6rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .visionneuse figure { padding: 3.5rem .8rem 0; }
  .visionneuse .precedent, .visionneuse .suivant { top: auto; bottom: .4rem; transform: none; }
}
