@font-face {
  font-family: "Adelphe Floreal";
  src: url("polices/Adelphe-FlorealSemiBoldItalic.woff2") format("woff2"),
       url("polices/Adelphe-FlorealSemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------------
   Miriam Sepulveda — feuille de style
   Vous n'avez normalement pas besoin de toucher à ce fichier.
   ------------------------------------------------------------------ */

:root {
  --blanc: #ffffff;
  --encre: #171717;
  --gris: #6f6b66;
  --trait: #e6e3df;
  --voile: rgba(20, 19, 18, 0.94);

  --corps: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --titre-oeuvre: Georgia, "Times New Roman", serif;
  --signature: "Adelphe Floreal", Georgia, serif;

  --marge: clamp(20px, 5vw, 72px);
}

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
}

/* --- En-tête ---------------------------------------------------- */

.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 40px;
  padding: 34px var(--marge) 26px;
  border-bottom: 1px solid var(--trait);
}

.nom {
  margin: 0;
  font-family: var(--signature);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.nom a { text-decoration: none; }

.menu {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--gris);
}

.menu a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.menu a:hover { color: var(--encre); }

.menu a[aria-current="page"] {
  color: var(--encre);
  border-bottom-color: var(--encre);
}

/* --- Contenu ---------------------------------------------------- */

main { padding: 0 var(--marge); }

.intro {
  max-width: 62ch;
  margin: 52px 0 72px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--gris);
}

.intro strong { color: var(--encre); font-weight: 500; }

/* --- Grille des œuvres ------------------------------------------ */

.oeuvres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  align-items: start;
  margin-bottom: 40px;
}

.oeuvre { margin: 0; }

.oeuvre button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.oeuvre button img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.cartel {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gris);
}

.cartel .titre {
  display: block;
  font-family: var(--titre-oeuvre);
  font-style: italic;
  font-size: 16px;
  color: var(--encre);
}

.panoramas { margin-bottom: 40px; }

.panoramas .oeuvre { margin-bottom: 64px; }

.panoramas .oeuvre button { aspect-ratio: auto; display: block; }

.panoramas .oeuvre button img { max-height: none; width: 100%; }

/* --- Page biographie -------------------------------------------- */

.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 62ch);
  gap: 56px;
  margin: 56px 0 96px;
  align-items: start;
}

.texte p { margin: 0 0 1.35em; }

.texte h2 {
  margin: 2.4em 0 0.7em;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.texte h2:first-child { margin-top: 0; }

.legende {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gris);
}

.liste-dates {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.liste-dates li {
  display: flex;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--trait);
}

.liste-dates .annee {
  flex: 0 0 4.5em;
  color: var(--gris);
}

/* --- Page contact ----------------------------------------------- */

.contact {
  max-width: 58ch;
  margin: 64px 0 110px;
}

.contact p { margin: 0 0 1.3em; }

.courriel {
  font-size: clamp(22px, 4vw, 30px);
  text-decoration: none;
  border-bottom: 1px solid var(--trait);
  padding-bottom: 4px;
}

.courriel:hover { border-bottom-color: var(--encre); }

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

.pied {
  padding: 28px var(--marge) 40px;
  border-top: 1px solid var(--trait);
  font-size: 13px;
  color: var(--gris);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}

.pied a { text-decoration: none; border-bottom: 1px solid var(--trait); }

/* --- Vue agrandie ------------------------------------------------ */

.loupe {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  padding: 3vh 4vw 0;
  background: var(--voile);
  color: #f2f0ee;
  cursor: zoom-out;
}

.loupe.ouverte {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loupe img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
}

.loupe .cartel { color: #b9b4ae; text-align: center; }
.loupe .cartel .titre { color: #f2f0ee; }

.fermer {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: #f2f0ee;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* --- Écrans moyens et petits ------------------------------------- */

@media (max-width: 900px) {
  .oeuvres { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .deux-colonnes { grid-template-columns: 1fr; gap: 36px; }
  .deux-colonnes .portrait { max-width: 320px; }
}

@media (max-width: 620px) {
  .oeuvres { grid-template-columns: 1fr; }

  .intro { margin: 40px 0 48px; font-size: 17px; }
  .entete { padding-top: 26px; padding-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
