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

:root {
  --black: #0a0a0a;
  --white: #f0ede8;
  --red: #c8102e;
  --grey: #888880;
  --grey-light: #2a2a2a;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background-color: var(--black); color: var(--white); font-family: 'Cormorant Garamond', serif; font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── CURSOR ─────────────────────────────────────────── */
* { cursor: none; }
.cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: difference;
}
.cursor.expand { width: 60px; height: 60px; }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.7) 0%, transparent 100%);
  pointer-events: none;
}
.nav-left, .nav-right { display: flex; gap: 48px; position: relative; align-items: center; }
.nav-logo { position: relative; }
.nav-logo img { height: 48px; width: auto; transition: opacity var(--transition); }
.nav-logo:hover img { opacity: 0.75; }
nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); transition: opacity var(--transition);
  position: relative;
}
nav a:hover { opacity: 0.55; }
nav a.active { opacity: 0.55; }
.lang-switch { display: flex; gap: 6px; align-items: center; font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 400; letter-spacing: 0.15em; }
.lang-switch span { cursor: none; transition: opacity var(--transition); opacity: 0.45; }
.lang-switch span.active { opacity: 1; }
.lang-switch .sep { opacity: 0.2; }

/* ─── PAGE TRANSITIONS ────────────────────────────────── */
.page-wrapper { opacity: 0; animation: fadeIn 0.8s ease forwards; animation-delay: 0.15s; }
@keyframes fadeIn { to { opacity: 1; } }

/* ─── ACCUEIL ─────────────────────────────────────────── */
.hero { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); animation: heroZoom 8s ease forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0) 40%, rgba(10,10,10,0.5) 100%); }
.hero-btn {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
  display: inline-block;
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(240,237,232,0.45);
  padding: 14px 36px; transition: all var(--transition);
  backdrop-filter: blur(4px); background: rgba(10,10,10,0.15);
  animation: fadeUp 1s ease forwards; animation-delay: 1s; opacity: 0;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero-btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ─── BIOGRAPHIE ──────────────────────────────────────── */
.bio-page { padding-top: 92px; }
.bio-hero-img {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.bio-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  padding: 72px 52px 80px;
}
.bio-title-col { padding-right: 48px; }
.section-label { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey); margin-bottom: 32px; }
.bio-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(42px, 5vw, 68px); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; color: var(--white); }
.bio-title em { font-style: italic; color: rgba(240,237,232,0.45); display: block; }
.bio-divider { width: 32px; height: 1px; background: var(--red); margin: 36px 0; }
.bio-text { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; line-height: 1.9; color: rgba(240,237,232,0.82); }

/* ─── GALERIE MASONRY ─────────────────────────────────── */
.gallery-header { padding: 120px 52px 52px; display: flex; align-items: flex-end; justify-content: space-between; }
.gallery-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(52px, 7vw, 96px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.gallery-count { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 400; letter-spacing: 0.2em; color: var(--grey); padding-bottom: 12px; }
.gallery-grid { columns: 3; column-gap: 4px; padding: 0 4px 80px; }
.gallery-item { position: relative; overflow: hidden; cursor: none; break-inside: avoid; margin-bottom: 4px; display: block; }
.gallery-item-inner { position: relative; overflow: hidden; }
.gallery-item-inner img { width: 100%; height: auto; display: block; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-item:hover .gallery-item-inner img { transform: scale(1.04); }
.gallery-hover {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.78);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-hover-num { font-family: 'Montserrat', sans-serif; font-size: 9px; letter-spacing: 0.2em; color: var(--grey); margin-bottom: 6px; }
.gallery-hover-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; color: var(--white); margin-bottom: 4px; }
.gallery-hover-dims { font-family: 'Montserrat', sans-serif; font-size: 9px; letter-spacing: 0.12em; color: rgba(240,237,232,0.6); }

/* ─── PAGE OEUVRE ─────────────────────────────────────── */
.artwork-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 360px; padding-top: 92px; }
.artwork-image-col { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 52px; background: #080808; }
.artwork-image-col img { max-height: calc(100vh - 180px); max-width: 100%; object-fit: contain; box-shadow: 0 32px 80px rgba(0,0,0,0.6); }
.artwork-info-col { display: flex; flex-direction: column; justify-content: center; padding: 80px 48px; border-left: 1px solid var(--grey-light); }
.artwork-num { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.28em; color: var(--grey); margin-bottom: 28px; }
.artwork-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 2.5vw, 40px); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 40px; }
.artwork-meta { display: flex; flex-direction: column; gap: 0; margin-bottom: 48px; }
.artwork-meta-row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--grey-light); padding: 14px 0; }
.artwork-meta-label { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.artwork-meta-value { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 300; color: rgba(240,237,232,0.85); }
.artwork-nav-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 32px; border-top: 1px solid var(--grey-light); }
.artwork-nav-bottom a { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(240,237,232,0.7); display: flex; align-items: center; gap: 10px; transition: color var(--transition); }
.artwork-nav-bottom a:hover { color: var(--white); }
.btn-back-gallery { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); transition: color var(--transition); display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.btn-back-gallery:hover { color: var(--white); }

/* ─── EXPOSITIONS ─────────────────────────────────────── */
.expo-header { padding: 120px 52px 52px; }
.expo-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(52px, 7vw, 96px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
.expo-subtitle { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey); }
.expo-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; margin-bottom: 4px; }
.expo-featured-img { position: relative; overflow: hidden; height: 300px; }
.expo-featured-img img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.expo-featured-img.singapour img { object-fit: contain; background: #111; object-position: center center; }
.expo-featured-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; background: linear-gradient(to top, rgba(10,10,10,0.88), transparent); }
.expo-featured-label h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; margin-bottom: 4px; }
.expo-featured-label p { font-family: 'Montserrat', sans-serif; font-size: 9px; letter-spacing: 0.18em; color: rgba(240,237,232,0.6); text-transform: uppercase; }

/* Expo list */
.expo-list-section { padding: 64px 52px 80px; }
.expo-list-header { display: grid; grid-template-columns: 70px 2fr 1fr; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--grey-light); }
.expo-list-header span { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.expo-row { display: grid; grid-template-columns: 70px 2fr 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(42,42,42,0.8); transition: background var(--transition); }
.expo-row:hover { background: rgba(255,255,255,0.02); }
.expo-year { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 0.1em; color: var(--grey); display: flex; align-items: center; }
.expo-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 300; color: rgba(240,237,232,0.75); display: flex; align-items: center; }
.expo-city { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(240,237,232,0.9); display: flex; align-items: center; }

/* ─── CONTACT ─────────────────────────────────────────── */
.contact-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 92px 52px 80px; }
.contact-label { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey); margin-bottom: 48px; }
.contact-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(52px, 8vw, 110px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; margin-bottom: 56px; }
.contact-title em { font-style: italic; color: rgba(240,237,232,0.35); }
.contact-phrase { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 300; font-style: italic; color: rgba(240,237,232,0.55); margin-bottom: 40px; max-width: 480px; }
.contact-divider { width: 32px; height: 1px; background: var(--grey-light); margin: 0 auto 40px; }
.contact-email { font-family: 'Cormorant Garamond', serif; font-size: clamp(18px, 2.5vw, 26px); font-weight: 300; letter-spacing: 0.05em; color: rgba(240,237,232,0.85); border-bottom: 1px solid rgba(240,237,232,0.2); padding-bottom: 4px; transition: border-color var(--transition), color var(--transition); }
.contact-email:hover { border-color: var(--white); color: var(--white); }

/* ─── FOOTER ──────────────────────────────────────────── */
footer { padding: 32px 52px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--grey-light); }
footer p { font-family: 'Montserrat', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.18em; color: var(--grey); text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════
   MOBILE  — max-width: 768px
   Desktop inchangé au-dessus de 768px.
═══════════════════════════════════════════════════════ */

/* Éléments mobile toujours cachés sur desktop */
.mobile-nav     { display: none; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 600; }
.mobile-menu {
  position: fixed; top: 0; left: 0;
  width: 72vw; max-width: 280px; height: 100vh;
  background: var(--black); z-index: 700;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex; align-items: center; padding: 0 40px;
}
.mobile-menu.open { transform: translateX(0); }
.gallery-item-wrap  { display: contents; }
.gallery-mobile-info { display: none; }

@media (max-width: 768px) {

  /* ─ Cursor désactivé ─ */
  * { cursor: auto !important; }
  .cursor { display: none !important; }

  /* ─ Nav desktop masquée ─ */
  nav { display: none; }

  /* ─ Barre mobile fixe en haut ─ */
  .mobile-nav {
    display: flex;
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 500;
    padding: 18px 24px;
    align-items: center; justify-content: space-between;
    background: linear-gradient(to bottom, rgba(10,10,10,0.75) 0%, transparent 100%);
  }

  /* Hamburger ☰ */
  .hamburger {
    background: none; border: none; padding: 4px;
    cursor: pointer !important;
    display: flex; flex-direction: column; gap: 5px;
  }
  .hamburger span {
    display: block; width: 24px; height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Logo mobile */
  .mobile-logo img { height: 32px; width: auto; }

  /* Overlay visible quand menu ouvert */
  .mobile-overlay.open { display: block; }

  /* Menu glissant */
  .mobile-menu-links { display: flex; flex-direction: column; gap: 28px; width: 100%; }
  .mobile-menu-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 300;
    color: var(--white); text-decoration: none;
  }
  .mobile-lang-wrap {
    display: flex; gap: 8px; align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px; letter-spacing: 0.15em;
    margin-top: 8px;
  }
  .mobile-lang-wrap span { cursor: pointer !important; opacity: 0.4; transition: opacity 0.3s; }
  .mobile-lang-wrap span.active { opacity: 1; }
  .mobile-lang-wrap .sep { opacity: 0.2; }

  /* ─ Hero (accueil) ─ */
  .hero-btn {
    top: 50%; bottom: auto;
    transform: translate(-50%, -50%);
    padding: 14px 22px;
    letter-spacing: 0.14em;
    font-size: 9px;
    text-align: center;
    white-space: nowrap;
  }

  /* ─ Biographie ─ */
  .bio-page     { padding-top: 0; }
  .bio-hero-img { height: 38vh; }
  .bio-content  { grid-template-columns: 1fr; padding: 40px 24px 60px; }
  .bio-title-col { padding-right: 0; margin-bottom: 24px; }
  .bio-title { font-size: clamp(34px, 9vw, 52px); }
  .bio-text  { font-size: 16px; line-height: 1.8; }

  /* ─ Expositions ─ */
  .expo-header { padding: 88px 24px 32px; }
  .expo-title  { font-size: clamp(34px, 9vw, 60px); }
  .expo-featured { grid-template-columns: 1fr; }
  .expo-featured-img { height: 200px; }
  .expo-list-section { padding: 40px 24px 60px; }
  .expo-list-header { grid-template-columns: 40px 1fr 70px; gap: 10px; padding-bottom: 10px; }
  .expo-row         { grid-template-columns: 40px 1fr 70px; gap: 10px; padding: 11px 0; }
  .expo-year { font-size: 10px; }
  .expo-name { font-size: 12px; line-height: 1.3; }
  .expo-city { font-size: 10px; letter-spacing: 0.06em; }

  /* ─ Contact ─ */
  .contact-page   { padding: 88px 24px 60px; }
  .contact-title  { font-size: clamp(36px, 11vw, 72px); }
  .contact-phrase { font-size: 16px; max-width: 100%; }
  .contact-email  { font-size: 16px; }

  /* ─ Galerie — header ─ */
  .gallery-header { padding: 80px 24px 24px; }
  .gallery-title  { font-size: clamp(34px, 9vw, 56px); }
  .gallery-wrapper { padding: 0 0 60px; }

  /* ─ Galerie — layout ─ */
  .gallery-row { display: block !important; margin-bottom: 0; }

  .gallery-item-wrap {
    display: block !important;
    margin: 0 auto 28px;
  }
  .gallery-item-wrap .gallery-item {
    width: 100% !important;
    aspect-ratio: unset !important;
  }
  .gallery-item-wrap .gallery-item img {
    height: auto !important;
    object-fit: contain !important;
  }

  /* Overlay hover caché sur mobile */
  .gallery-hover { display: none; }

  /* Infos sous chaque image */
  .gallery-mobile-info { display: block; padding: 7px 2px 0; }
  .gallery-mobile-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px; font-weight: 400; color: var(--white);
    margin-bottom: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .gallery-mobile-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 8px; letter-spacing: 0.11em;
    color: rgba(240,237,232,0.5); text-transform: uppercase;
  }

  /* Largeurs mobile légèrement proportionnelles (formule : 55 + realW/195 × 35) */
  .wrap-iris,   .wrap-nuitb            { width: 75%; }
  .wrap-vgs,    .wrap-cafe,
  .wrap-heritiere                       { width: 78%; }
  .wrap-voiles                          { width: 73%; }
  .wrap-chef,   .wrap-soiree-ete,
  .wrap-colline                         { width: 68%; }
  .wrap-marco,  .wrap-anniv             { width: 90%; }
  .wrap-marche, .wrap-frenesis          { width: 76%; }
  .wrap-fanny                           { width: 64%; }
  .wrap-bormes, .wrap-hiver,
  .wrap-soiree-cannes                   { width: 81%; }
  .wrap-rialto, .wrap-opera             { width: 84%; }
  .wrap-seller                          { width: 65%; }

  /* ─ Page oeuvre (détail) ─ */
  .artwork-page { grid-template-columns: 1fr; padding-top: 60px; min-height: auto; }
  .artwork-image-col { padding: 16px 20px; }
  .artwork-image-col img { max-height: 55vw; min-height: 150px; }
  .artwork-info-col { border-left: none; border-top: 1px solid var(--grey-light); padding: 16px 20px 16px; justify-content: flex-start; }
  .btn-back-gallery { font-size: 8px; margin-bottom: 8px; }
  .artwork-num { font-size: 8px; margin-bottom: 6px; }
  .artwork-title { font-size: clamp(16px, 4.5vw, 22px); margin-bottom: 12px; }
  .artwork-meta { margin-bottom: 0; }
  .artwork-meta-row { padding: 7px 0; }
  .artwork-meta-label { font-size: 8px; }
  .artwork-meta-value { font-size: 12px; }
  .artwork-nav-bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 14px 20px;
    background: var(--black);
    border-top: 1px solid var(--grey-light);
    margin-top: 0;
    z-index: 100;
  }
  .artwork-nav-bottom a { font-size: 8px; }

  /* ─ Footer ─ */
  footer { padding: 24px; flex-direction: column; gap: 6px; text-align: center; }
}
