/* ============================================================
   gregoirelorieux.net — Works/bydate/format.css
   Pages individuelles d'œuvres
   ============================================================ */

/* === POLICES AUTO-HÉBERGÉES ===
   Chemin relatif depuis Works/bydate/ → ../../fonts/webfonts/
   ============================================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../../fonts/webfonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/webfonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../../fonts/webfonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/webfonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../../fonts/webfonts/dm-sans-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/webfonts/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../../fonts/webfonts/dm-sans-latin-500-normal.woff2') format('woff2');
}

:root {
  --bg:         #FAFAF8;
  --text:       #111110;
  --text-muted: #76766E;
  --border:     #E2E2DC;
  --link-under: #C8C8C0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

/* Titre de l'œuvre */
h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 0.2em;
  text-align: center;
}

/* Sous-titre (effectif, année) */
h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0 0 0.3em;
}

/* h6 : mentions secondaires (commande, dédicace, note de programme)
   Corrigé : était trop petit (~11px), maintenant lisible */
h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  letter-spacing: 0;
  text-transform: none;
  margin: 0.8em 0;
  line-height: 1.7;
}

/* Lien HOME (h4) */
h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.65rem, 0.95vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  padding: 10px 16px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

h4 a:link, h4 a:visited { color: var(--text); text-decoration: none; }
h4 a:hover { opacity: 0.5; }

figcaption {
  color: var(--text-muted);
  font-size: clamp(0.68rem, 1vw, 0.8rem);
  font-style: italic;
  text-align: center;
  margin-top: 0.5em;
}

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

figure img { display: block; margin: 0 auto; }

img[src*="computer.png"] {
  display: inline;
  vertical-align: middle;
  height: 0.9em;
  width: auto;
  margin-right: 0.3em;
  margin-bottom: 0.1em;
}

a:link, a:visited {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--link-under);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover, a:active {
  color: var(--text);
  text-decoration-color: var(--text);
}

/* En-tête de l'œuvre */
#niceparagraph:first-of-type {
  text-align: center;
  padding: 3em 10% 1.5em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5em;
}

#niceparagraph {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  color: var(--text);
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  width: 62%;
  max-width: 680px;
  margin: 0 auto 1.5em;
  padding: 0;
  text-align: left;
  line-height: 1.85;
}

/* Commande / dédicace */
#niceparagraph:nth-of-type(2) {
  color: var(--text-muted);
  font-size: clamp(0.8rem, 1.15vw, 0.92rem);
  font-style: italic;
  margin-bottom: 2em;
}

/* Lien partition — remplace les iframes PDF */
.score-link {
  display: inline-block;
  margin: 0.5em 0 1.5em;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.15vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.score-link a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--link-under);
}

.element, #element {
  width: 62%;
  max-width: 680px;
  margin: 0 auto 2.5em;
  padding: 0;
}

/* Audio player natif — sobre */
audio {
  width: 100%;
  max-width: 680px;
  display: block;
  margin: 1em auto 1.5em;
}

/* === LIEN RETOUR ACCUEIL === */
#back-home {
  text-align: right;
  padding: 8px 16px;
  margin: 0;
  border-bottom: 1px solid var(--border, #E2E2DC);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(0.65rem, 0.95vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#back-home a {
  color: var(--text, #111110);
  text-decoration: none;
}

#back-home a:hover {
  opacity: 0.5;
}
