@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Dancing+Script:wght@500;600&family=EB+Garamond:ital@0;1&display=swap');
 
:root {
  --noir:      #0E0A06;
  --brun:      #1E0E04;
  --brun-mid:  #5A4830;
  --or:        #D4A840;          /* plus lumineux : était #C8A860 */
  --or-clair:  #F8ECC0;          /* plus lumineux : était #F0E0B0 */
  --creme:     #F8F2E2;          /* plus blanc : était #F5EDD8 */
  --gris:      #B0A090;          /* plus clair : était #807060 */
  --gris-clair:#C8B8A0;          /* plus clair : était #A09070 */
  --blanc:     #FDFAF4;
  --overlay:   rgba(0,0,0,0.92);
  --texte-modal: #E0CEB0;        /* nouveau : texte descriptif plus lisible */
  --texte-annee: #A89878;        /* nouveau : année / métadonnées */
}
 
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
html { scroll-behavior: smooth; }
 
body {
  background: var(--noir);
  color: var(--creme);
  font-family: 'EB Garamond', 'Palatino Linotype', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}
 
/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}
 
/* ── HEADER ── */
header {
  text-align: center;
  padding: 64px 24px 48px;
  position: relative;
}
 
header::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--or), transparent);
  margin: 28px auto 0;
}
 
.header-eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 12px;
}
 
.header-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.05em;
  color: var(--creme);
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
 
.header-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 15px;                /* légèrement agrandi */
  font-style: italic;
  color: var(--gris-clair);
  letter-spacing: 0.16em;
}
 
/* ── SÉPARATEUR ORNEMENTAL ── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto;
}
.ornament-line {
  width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--brun-mid));
}
.ornament-line.right {
  background: linear-gradient(to left, transparent, var(--brun-mid));
}
.ornament-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--or);
}
 
/* ── GALERIE ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 44px 32px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
 
/* ── CARTE D'ŒUVRE ── */
.card {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeUp 0.6s ease both;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
 
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.card:hover { transform: translateY(-10px) scale(1.025); }
.card:hover .frame {
  box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 4px 16px rgba(212,168,64,0.22);
}
 
/* Cadre avec passe-partout */
.frame {
  position: relative;
  aspect-ratio: 148 / 210;
  background: #EEE4D0;
  padding: 11px;
  box-shadow: 0 10px 44px rgba(0,0,0,0.75), 0 2px 8px rgba(0,0,0,0.4);
  transition: box-shadow 0.35s ease;
}
.frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--or);
  z-index: 2;
  pointer-events: none;
}
 
.frame-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #fff;
}
 
.frame-inner img,
.frame-inner svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
 
/* Badge numéro */
.card-number {
  position: absolute;
  top: -8px;
  left: 14px;
  background: var(--brun);
  border: 1px solid var(--brun-mid);
  color: var(--or);
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.15em;
  padding: 2px 9px;
  z-index: 3;
}
 
/* Légende sous le cadre */
.card-caption {
  padding: 13px 2px 0;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--or-clair);       /* déjà lisible, maintenu */
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.card-year {
  font-size: 12px;              /* légèrement agrandi */
  color: var(--texte-annee);    /* plus clair : était --gris (#807060) */
  letter-spacing: 0.1em;
  display: inline;
  margin-right: 10px;
}
.card-courants {
  font-size: 11px;              /* légèrement agrandi */
  color: var(--gris-clair);     /* plus clair : était --gris (#807060) */
  font-style: italic;
  letter-spacing: 0.08em;
  margin-top: 3px;
}
 
/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
 
.modal {
  background: #1A1008;          /* légèrement plus clair : était #18100A */
  border: 1px solid var(--brun-mid);
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--brun-mid) transparent;
}
.modal-overlay.active .modal {
  transform: translateY(0);
}
 
.modal-body {
  display: flex;
  flex-wrap: wrap;
}
 
.modal-artwork {
  width: clamp(150px, 38%, 230px);
  aspect-ratio: 148 / 210;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #EEE4D0;
  padding: 10px;
}
.modal-artwork::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid var(--or);
  z-index: 2; pointer-events: none;
}
.modal-artwork img,
.modal-artwork svg {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
 
.modal-text {
  flex: 1;
  padding: 32px 28px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
 
.modal-number {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 10px;
}
 
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--or-clair);
  margin-bottom: 5px;
  line-height: 1.15;
}
 
.modal-courants {
  font-size: 12px;              /* agrandi : était 11px */
  color: var(--or);
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}
 
/* Année dans la modal */
#modalYear {
  font-size: 12px !important;   /* agrandi : était 11px */
  color: var(--texte-annee) !important;  /* plus lisible : était #706050 */
  margin-bottom: 18px;
  letter-spacing: 0.12em;
}
 
.modal-divider {
  width: 38px; height: 1px;
  background: var(--or);
  margin-bottom: 20px;
}
 
.modal-description {
  font-size: 15px;              /* agrandi : était 14px */
  line-height: 1.88;
  font-style: italic;
  color: var(--texte-modal);    /* plus clair : était #C8B898 */
}
 
.modal-footer {
  padding: 14px 28px;
  border-top: 1px solid var(--brun-mid);   /* plus visible : était --brun */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 
.modal-close {
  background: none;
  border: 1px solid var(--brun-mid);
  color: var(--or);
  padding: 8px 24px;
  cursor: pointer;
  font-size: 11px;              /* agrandi : était 10px */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
  background: var(--brun-mid);
  color: var(--or-clair);
}
 
.modal-nav {
  display: flex;
  gap: 8px;
}
.modal-nav button {
  background: none;
  border: 1px solid var(--brun-mid);
  color: var(--gris-clair);
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 15px;              /* agrandi : était 14px */
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.modal-nav button:hover {
  background: var(--brun-mid);
  color: var(--or-clair);
}
 
/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--brun-mid);   /* plus visible : était --brun */
  color: var(--gris);           /* plus clair : était --brun-mid */
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
 
.bio-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--or);
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}
.bio-nav a:hover {
  color: var(--or-clair);
}
 
/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .gallery { gap: 32px 20px; padding: 24px 16px 60px; }
  .modal-artwork { width: 100%; aspect-ratio: 148/210; max-height: 220px; }
  .modal-text { padding: 22px 20px; }
  .modal-title { font-size: 22px; }
  .modal-description { font-size: 14px; }
}