/* ---------------------------------------------------------------
   Site vitrine — palette construite autour du bleu
   --------------------------------------------------------------- */

:root {
  /* Bleus, du plus profond au plus pâle */
  --abysse: #061229;
  --nuit: #0d2450;
  --outremer: #1c3fa8;
  --cobalt: #2f5fd9;
  --ciel: #7eb0ef;
  --glacier: #dbe7fa;
  --craie: #f6f9fe;

  --fond: var(--craie);
  --fond-carte: #ffffff;
  --texte: #0a1526;
  --texte-doux: #4a5b76;
  --accent: var(--outremer);
  --accent-clair: var(--cobalt);
  --bord: #d3e0f5;
  --ombre: 0 1px 2px rgba(6, 18, 41, .06), 0 12px 32px rgba(6, 18, 41, .07);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --largeur: 1120px;
  --rayon: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #050d1d;
    --fond-carte: #0b1830;
    --texte: #e7eefb;
    --texte-doux: #9fb3d4;
    --accent: var(--ciel);
    --accent-clair: #a3c8f7;
    --bord: #1b2f55;
    --glacier: #16294c;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .35);
  }
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .heros__titre {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-clair); }

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

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  background: var(--nuit);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}
.lien-evitement:focus { left: 16px; top: 12px; }

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

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

.entete {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  flex-wrap: wrap;
}

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.signature__pastille {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--ciel), var(--outremer) 62%, var(--abysse));
  flex: none;
}

.signature__texte { display: flex; flex-direction: column; line-height: 1.2; }
.signature__texte strong { font-family: var(--serif); font-size: 1.16rem; font-weight: 500; }
.signature__texte em {
  font-style: normal;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.navigation { display: flex; gap: 28px; }
.navigation a {
  text-decoration: none;
  color: var(--texte-doux);
  font-size: .93rem;
  letter-spacing: .02em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.navigation a:hover { color: var(--texte); }
.navigation a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--accent); }

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

.section { padding: 72px 0; }
.section--tete { padding-bottom: 24px; }
.section--sombre {
  background: linear-gradient(160deg, var(--nuit), var(--abysse));
  color: var(--glacier);
}
.section--sombre h2 { color: #fff; }
.section--sombre a { color: var(--ciel); }
.section--citation { background: var(--glacier); }

.section__entete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section__entete h2 { margin: 0; }

.surtitre {
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: 14px;
}

.chapeau {
  font-size: 1.12rem;
  color: var(--texte-doux);
  max-width: 62ch;
}

.vide { color: var(--texte-doux); font-style: italic; }

/* --- Héros --------------------------------------------------- */

.heros {
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(126, 176, 239, .55), transparent 70%),
    linear-gradient(155deg, var(--nuit) 0%, var(--abysse) 55%, #030a17 100%);
  color: #eaf1fd;
  padding: clamp(80px, 13vw, 156px) 0 clamp(64px, 9vw, 112px);
}

.heros .surtitre { color: rgba(219, 231, 250, .72); }

.heros__titre {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  margin: 0 0 .35em;
  color: #fff;
}

.heros__texte {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 54ch;
  color: rgba(230, 238, 251, .88);
}

.heros__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.bandeau-expo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 44px 0 0;
  padding: 10px 18px;
  border: 1px solid rgba(126, 176, 239, .38);
  border-radius: 100px;
  font-size: .92rem;
  background: rgba(6, 18, 41, .38);
}

.pastille-vive {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ciel);
  box-shadow: 0 0 0 4px rgba(126, 176, 239, .22);
  flex: none;
}

/* --- Boutons et liens --------------------------------------- */

.bouton {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--rayon);
  background: var(--cobalt);
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, transform .15s ease;
}
.bouton:hover { background: var(--outremer); color: #fff; transform: translateY(-1px); }

.bouton--fantome {
  background: transparent;
  border-color: rgba(219, 231, 250, .42);
  color: #eaf1fd;
}
.bouton--fantome:hover { background: rgba(219, 231, 250, .12); border-color: #eaf1fd; }

.lien-fleche {
  text-decoration: none;
  font-size: .93rem;
  white-space: nowrap;
}
.lien-fleche::after { content: " →"; }
.lien-fleche--gauche::after { content: none; }
.lien-fleche--gauche::before { content: "← "; }

/* --- Grille d'œuvres ---------------------------------------- */

.grille-oeuvres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 32px;
}

.carte-oeuvre { text-decoration: none; color: inherit; display: block; }

.carte-oeuvre__cadre {
  margin: 0 0 16px;
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  padding: 14px;
  box-shadow: var(--ombre);
  overflow: hidden;
}
.carte-oeuvre__cadre img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.carte-oeuvre:hover .carte-oeuvre__cadre img { transform: scale(1.035); }

.carte-oeuvre__sans-image {
  display: block;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--ciel), var(--outremer) 60%, var(--abysse));
}

.carte-oeuvre__cartel h3 { margin: 0 0 4px; }
.carte-oeuvre__cartel p {
  margin: 0;
  font-size: .87rem;
  color: var(--texte-doux);
}
.carte-oeuvre__serie {
  margin-top: 6px !important;
  font-size: .74rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent) !important;
}

/* --- Séries --------------------------------------------------- */

.grille-series {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.carte-serie {
  display: block;
  padding: 26px 24px 22px;
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.carte-serie:hover { border-color: var(--accent); transform: translateY(-2px); }
.carte-serie h3 { margin-bottom: .35em; }
.carte-serie p { color: var(--texte-doux); font-size: .93rem; margin-bottom: 14px; }
.carte-serie__compte {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Filtres -------------------------------------------------- */

.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.filtre {
  padding: 7px 16px;
  border: 1px solid var(--bord);
  border-radius: 100px;
  text-decoration: none;
  font-size: .88rem;
  color: var(--texte-doux);
  background: var(--fond-carte);
}
.filtre:hover { border-color: var(--accent); color: var(--texte); }
.filtre--actif {
  background: var(--nuit);
  border-color: var(--nuit);
  color: #fff;
}
.filtre--actif:hover { color: #fff; }

/* --- Citation ------------------------------------------------- */

.citation { margin: 0; max-width: 44ch; }
.citation p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.95rem);
  line-height: 1.35;
  color: var(--nuit);
}
@media (prefers-color-scheme: dark) {
  .citation p { color: var(--glacier); }
}
.citation cite {
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* --- Page œuvre ---------------------------------------------- */

.oeuvre__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.oeuvre__image {
  margin: 0;
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  padding: 20px;
  box-shadow: var(--ombre);
}

.cartel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  margin: 0 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
  font-size: .95rem;
}
.cartel dt {
  color: var(--texte-doux);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  align-self: center;
}
.cartel dd { margin: 0; }

.oeuvre__description { color: var(--texte-doux); }

.pagination-oeuvres {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--bord);
}

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

.colonnes-texte {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.texte-long { max-width: 66ch; }
.texte-long h2 { margin-top: 1.8em; }
.texte-long h2:first-child { margin-top: 0; }

.reperes {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 28px 26px;
  position: sticky;
  top: 100px;
}
.reperes h2 { font-size: 1.1rem; }

.frise { list-style: none; margin: 0; padding: 0; }
.frise li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--bord);
  font-size: .92rem;
}
.frise li:first-child { border-top: none; }
.frise span { color: var(--accent); font-variant-numeric: tabular-nums; }

.colonnes-expos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
}

.liste-expos { list-style: none; margin: 0; padding: 0; }
.liste-expos li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(126, 176, 239, .22);
  font-size: .94rem;
}
.liste-expos li:first-child { border-top: none; }
.liste-expos__annee { color: var(--ciel); font-variant-numeric: tabular-nums; }

/* --- Formulaire ---------------------------------------------- */

.colonnes-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.formulaire {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 32px 30px;
  box-shadow: var(--ombre);
}

.champ { margin-bottom: 20px; }
.champ label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: 7px;
}
.champ input,
.champ textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .97rem;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  resize: vertical;
}
.champ input:focus,
.champ textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(47, 95, 217, .16); }
.champ__erreur { color: #c0392b; font-size: .86rem; margin: 6px 0 0; }
@media (prefers-color-scheme: dark) {
  .champ__erreur { color: #ff9c8f; }
}

.formulaire__note { font-size: .84rem; color: var(--texte-doux); margin: 18px 0 0; }

.bloc-coordonnees h2 { font-size: 1.02rem; margin-top: 1.6em; }
.bloc-coordonnees h2:first-child { margin-top: 0; }
.bloc-coordonnees p { font-size: .95rem; }
.bloc-coordonnees__note { color: var(--texte-doux); font-size: .88rem !important; }

/* --- Alertes -------------------------------------------------- */

.alertes { list-style: none; margin: 20px 0 0; padding: 0; }
.alerte {
  padding: 14px 18px;
  border-radius: var(--rayon);
  border: 1px solid var(--bord);
  background: var(--glacier);
  font-size: .95rem;
}
.alerte--success { border-color: var(--cobalt); }
.alerte--error { border-color: #c0392b; }

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

.pied {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--abysse), #030a17);
  color: rgba(219, 231, 250, .82);
  padding: 64px 0 28px;
  font-size: .93rem;
}
.pied a { color: var(--ciel); text-decoration: none; }
.pied a:hover { text-decoration: underline; }

.pied__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.pied__titre {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(126, 176, 239, .9);
  margin-bottom: 10px;
}
.pied__note { color: rgba(219, 231, 250, .55); }
.pied p { margin: 0 0 6px; }

.pied__bas {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(126, 176, 239, .18);
  font-size: .84rem;
  color: rgba(219, 231, 250, .55);
}

/* --- Adaptations mobiles ------------------------------------- */

@media (max-width: 900px) {
  .oeuvre__grille,
  .colonnes-texte,
  .colonnes-contact { grid-template-columns: 1fr; gap: 40px; }
  .reperes { position: static; }
}

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .entete__interieur { min-height: 66px; padding-top: 10px; padding-bottom: 10px; }
  .navigation { gap: 18px; width: 100%; }
  .grille-oeuvres { gap: 32px 20px; }
}

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