/* ============================================================
   LES MAÎTRES OUBLIÉS — Feuille de style principale
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --creme:      #F7F3EE;
  --blanc:      #FFFFFF;
  --noir:       #1A1714;
  --gris:       #6B6560;
  --gris-clair: #E8E2DA;
  --or:         #A8864A;
  --or-clair:   #C9A96E;
  --sombre:     #2C2620;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Raleway', 'Helvetica Neue', sans-serif;

  --rayon:  2px;
  --ombre:  0 4px 24px rgba(26,23,20,.10);
  --ombre-fort: 0 8px 48px rgba(26,23,20,.20);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--noir);
  background: var(--creme);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typographie ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p   { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ── Utilitaires ──────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }
.section--sombre { background: var(--sombre); color: var(--creme); }
.section--gris   { background: #F0EBE4; }

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .5rem;
}
.separateur {
  width: 48px;
  height: 1px;
  background: var(--or);
  margin: 1.2rem 0;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border: 1px solid currentColor;
  transition: background .25s, color .25s;
  cursor: pointer;
}
.btn--clair {
  color: var(--blanc);
  border-color: var(--blanc);
}
.btn--clair:hover {
  background: var(--blanc);
  color: var(--noir);
}
.btn--sombre {
  color: var(--noir);
  border-color: var(--noir);
}
.btn--sombre:hover {
  background: var(--noir);
  color: var(--blanc);
}
.btn--or {
  color: var(--blanc);
  background: var(--or);
  border-color: var(--or);
}
.btn--or:hover {
  background: var(--sombre);
  border-color: var(--sombre);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: rgba(247,243,238,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 2.5rem;
}
.header__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--blanc);
  transition: color .3s;
  line-height: 1.2;
}
.header__logo span {
  display: block;
  font-size: .65rem;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .75;
}
.header.scrolled .header__logo { color: var(--noir); }

.nav__list {
  display: flex;
  gap: 2.2rem;
}
.nav__list a {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .2s;
  position: relative;
  padding-bottom: 3px;
}
.nav__list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--or-clair);
  transition: width .3s;
}
.nav__list a:hover, .nav__list a.active { color: var(--blanc); }
.nav__list a:hover::after, .nav__list a.active::after { width: 100%; }
.header.scrolled .nav__list a { color: var(--gris); }
.header.scrolled .nav__list a:hover,
.header.scrolled .nav__list a.active { color: var(--noir); }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--blanc);
  transition: all .3s;
}
.header.scrolled .nav__toggle span { background: var(--noir); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__list {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--creme);
    flex-direction: column;
    padding: 1.5rem 2.5rem;
    gap: 1.2rem;
    box-shadow: var(--ombre);
  }
  .nav__list.open { display: flex; }
  .nav__list a { color: var(--noir); font-size: .8rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sombre);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,23,20,.7) 0%, rgba(26,23,20,.35) 60%, rgba(26,23,20,.1) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--blanc);
  max-width: 640px;
  padding: 0 3rem;
  animation: fadeUp .9s .2s both;
}
.hero__tag {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: 1rem;
}
.hero__content h1 {
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero__content p {
  font-size: 1.05rem;
  opacity: .85;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero__arrows {
  position: absolute;
  bottom: 2.5rem; right: 2.5rem;
  z-index: 2;
  display: flex;
  gap: .8rem;
}
.hero__arrow {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  color: var(--blanc);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .2s, border-color .2s;
  display: flex; align-items: center; justify-content: center;
}
.hero__arrow:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.8); }
.hero__dots {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; gap: .5rem;
}
.hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
}
.hero__dot.active {
  background: var(--or-clair);
  transform: scale(1.4);
}

/* ============================================================
   SECTION INTRO
   ============================================================ */
.intro {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.intro h2 {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.intro p { color: var(--gris); font-size: 1.05rem; }

/* ============================================================
   GRILLE D'ŒUVRES
   ============================================================ */
.galerie__filtres {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
}
.filtre-btn {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .5rem 1.2rem;
  border: 1px solid var(--gris-clair);
  background: transparent;
  cursor: pointer;
  color: var(--gris);
  transition: all .2s;
  border-radius: var(--rayon);
}
.filtre-btn:hover, .filtre-btn.actif {
  background: var(--noir);
  border-color: var(--noir);
  color: var(--blanc);
}

.galerie__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Carte d'œuvre ── */
.oeuvre-card {
  background: var(--blanc);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.oeuvre-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-fort);
}
.oeuvre-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gris-clair);
}
.oeuvre-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.oeuvre-card:hover .oeuvre-card__img img { transform: scale(1.05); }
.oeuvre-card__body {
  padding: 1.2rem 1.4rem 1.5rem;
}
.oeuvre-card__cat {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .35rem;
}
.oeuvre-card__titre {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: .4rem;
}
.oeuvre-card__meta {
  font-size: .8rem;
  color: var(--gris);
  font-style: italic;
}
.oeuvre-card__lire {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or);
  margin-top: .9rem;
  transition: gap .2s;
}
.oeuvre-card__lire:hover { gap: .7rem; }

/* ── Masonry grid ─────────────────────────────────────────── */
/* Utilisé sur homepage, collection et page artiste           */
.masonry-grid {
  columns: 4;
  column-gap: 1.2rem;
}
/* Dans la masonry, les images s'affichent à leur ratio naturel */
.masonry-grid .oeuvre-card {
  break-inside: avoid;
  margin-bottom: 1.2rem;
}
.masonry-grid .oeuvre-card__img {
  aspect-ratio: unset;   /* annule le ratio forcé 4/3 */
  height: auto;
}
.masonry-grid .oeuvre-card__img img {
  height: auto;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Homepage : 3 colonnes (sélection réduite) */
.masonry-grid--home {
  columns: 3;
  column-gap: 1.2rem;
}
.masonry-grid--home .oeuvre-card {
  break-inside: avoid;
  margin-bottom: 1.2rem;
}
.masonry-grid--home .oeuvre-card__img {
  aspect-ratio: unset;
  height: auto;
}
.masonry-grid--home .oeuvre-card__img img {
  height: auto;
  width: 100%;
  display: block;
}

@media(max-width:1100px) { .masonry-grid { columns: 3; } }
@media(max-width:900px)  { .masonry-grid { columns: 2; } .masonry-grid--home { columns: 2; } }
@media(max-width:560px)  { .masonry-grid { columns: 1; } .masonry-grid--home { columns: 1; } }

/* ============================================================
   MODAL / LIGHTBOX
   ============================================================ */
.modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(26,23,20,.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn .25s;
}
.modal.open { display: flex; }
.modal__inner {
  background: var(--blanc);
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
@media(max-width:700px) { .modal__inner { grid-template-columns: 1fr; } }
.modal__img { background: var(--gris-clair); }
.modal__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  max-height: 70vh;
}
.modal__body { padding: 2.5rem 2rem; }
.modal__cat {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .5rem;
}
.modal__titre {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}
.modal__fiche {
  border-top: 1px solid var(--gris-clair);
  padding-top: 1rem;
  margin: 1.2rem 0;
}
.modal__fiche dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1rem;
  font-size: .85rem;
}
.modal__fiche dt { color: var(--gris); font-weight: 500; white-space: nowrap; }
.modal__fiche dd { color: var(--noir); }
.modal__desc { font-size: .95rem; color: var(--gris); line-height: 1.75; }
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gris);
  line-height: 1;
  transition: color .2s;
}
.modal__close:hover { color: var(--noir); }

/* ============================================================
   SECTION ARTISTE (home)
   ============================================================ */
.artiste-apercu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 6rem 0;
}
@media(max-width:768px) { .artiste-apercu { grid-template-columns: 1fr; gap: 2.5rem; } }
.artiste-apercu__img {
  position: relative;
}
.artiste-apercu__img img {
  width: 100%;
  filter: grayscale(15%);
  box-shadow: var(--ombre-fort);
}
.artiste-apercu__img::after {
  content: '';
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  width: 60%; height: 60%;
  border: 1px solid var(--or);
  z-index: -1;
}
.artiste-apercu__texte h2 { font-style: italic; font-weight: 300; margin-bottom: 1.2rem; }
.artiste-apercu__texte p { color: var(--gris); margin-bottom: 1.5rem; }
.artiste-apercu__dates {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .5rem;
}

/* ============================================================
   PAGE ARTISTE
   ============================================================ */
.page-hero {
  height: 40vh; min-height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--sombre);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: .4;
}
.page-hero__content {
  position: relative;
  z-index: 2;
  color: var(--blanc);
  padding: 3rem 2.5rem;
}
.page-hero__content h1 { font-weight: 300; font-style: italic; }

.bio-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}
@media(max-width:768px) { .bio-section { grid-template-columns: 1fr; } }
.bio-portrait img {
  width: 100%;
  max-width: 360px;
  filter: grayscale(20%);
  box-shadow: var(--ombre-fort);
}
.bio-texte h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 1.8rem 0 .6rem;
  color: var(--or);
}
.bio-texte h3:first-child { margin-top: 0; }
.bio-texte p { color: var(--gris); }

/* ============================================================
   PAGE OEUVRE
   ============================================================ */
.oeuvre-page {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}
@media(max-width:900px) { .oeuvre-page { grid-template-columns: 1fr; } }
.oeuvre-page__img img { width: 100%; box-shadow: var(--ombre-fort); }
.oeuvre-page__infos h1 { font-style: italic; font-weight: 300; margin-bottom: .5rem; }
.oeuvre-fiche {
  margin: 1.5rem 0;
  border-top: 1px solid var(--gris-clair);
  border-bottom: 1px solid var(--gris-clair);
  padding: 1.2rem 0;
}
.oeuvre-fiche dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: .5rem .8rem;
  font-size: .9rem;
}
.oeuvre-fiche dt { color: var(--gris); font-weight: 500; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.oeuvre-fiche dd { color: var(--noir); }

/* ============================================================
   AGENDA
   ============================================================ */
.expo-list { display: flex; flex-direction: column; gap: 2rem; }
.expo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  background: var(--blanc);
  padding: 2rem;
  box-shadow: var(--ombre);
  align-items: start;
}
.expo-date {
  text-align: center;
  min-width: 80px;
  border-right: 1px solid var(--gris-clair);
  padding-right: 2rem;
}
.expo-date__jour {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--or);
}
.expo-date__mois {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gris);
}
.expo-body h3 { margin-bottom: .4rem; }
.expo-body p  { color: var(--gris); font-size: .95rem; }
.expo-lieu {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .4rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 5rem 0;
}
@media(max-width:768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--gris-clair);
  background: var(--blanc);
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--noir);
  outline: none;
  transition: border-color .2s;
  margin-bottom: 1rem;
  border-radius: var(--rayon);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--or); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: .35rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--sombre);
  color: rgba(247,243,238,.7);
  padding: 4rem 0 2rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media(max-width:768px) { .footer__inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer__logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--creme);
  margin-bottom: .8rem;
}
.footer__desc { font-size: .88rem; line-height: 1.7; }
.footer__titre {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: 1rem;
}
.footer__liens li { margin-bottom: .5rem; }
.footer__liens a {
  font-size: .88rem;
  transition: color .2s;
}
.footer__liens a:hover { color: var(--creme); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s, transform .7s;
}
.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header variante sombre (pages oeuvre) ───────────────── */
.header--oeuvre {
  background: rgba(26,23,20,.75);
}
.header--oeuvre .header__logo { color: var(--creme); }
.header--oeuvre .nav__list a  { color: rgba(255,255,255,.85); }
.header--oeuvre .nav__toggle span { background: var(--blanc); }
.header--oeuvre .lang-switcher { border-color: rgba(255,255,255,.35); }
.header--oeuvre .lang-switcher a  { color: rgba(255,255,255,.7); }
.header--oeuvre.scrolled {
  background: rgba(247,243,238,.97);
}

/* ── Sélecteur de langue ─────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .3s;
  flex-shrink: 0;
}
.header.scrolled .lang-switcher {
  border-color: var(--gris-clair);
}
.lang-switcher a {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  padding: .45rem .75rem;
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s;
  line-height: 1;
}
.header.scrolled .lang-switcher a {
  color: var(--gris);
}
.lang-switcher a.actif {
  background: var(--or);
  color: var(--blanc) !important;
}
.lang-switcher a:not(.actif):hover {
  background: rgba(255,255,255,.12);
  color: var(--blanc);
}
.header.scrolled .lang-switcher a:not(.actif):hover {
  background: var(--gris-clair);
  color: var(--noir);
}
.lang-switcher span {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.25);
  display: block;
}
.header.scrolled .lang-switcher span {
  background: var(--gris-clair);
}

/* ── Responsive ─────────────────────────────────────────── */
@media(max-width:768px) {
  .header__inner { padding: 0 1.5rem; }
  .hero__content { padding: 0 1.5rem; }
  .container { padding: 0 1.5rem; }
  .section { padding: 3.5rem 0; }
}
