/*
Theme Name: Musée Vivre l'Art à l'École
Theme URI: https://www.musee-art-ecole.fr
Author: Laboratoire Epsylon
Author URI: https://epsylon.www.univ-montp3.fr
Description: Thème immersif de galerie muséale pour le programme Vivre l'Art à l'École — Université Paul Valéry Montpellier 3
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: musee-art-ecole
*/

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --cream:   #F5F0E8;
  --ink:     #1A1612;
  --gold:    #C9A84C;
  --warm:    #8B6F47;
  --dust:    #E8DDD0;
  --pale:    #FAF7F2;
  --wall:    #EDE5D0;
  --floor:   #C8B898;
  --baseboard:#A89878;
  --plaque:  #F0E8D2;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor-dot {
  position: fixed;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .18s, height .18s;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   GLOBAL NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 2rem;
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(26,22,18,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: .08em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(250,246,238,.45);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

/* ============================================================
   AILE PAGE — museum room style
   ============================================================ */
.aile-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #FFFFFF;
}

.room-ceiling {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

.room-light { display: none; }

.room-wall {
  position: absolute;
  top: 4px; left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
}
.room-wall::before { display: none; }
.room-wall::after  { display: none; }

.room-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: var(--gold);
  opacity: .3;
}
.room-floor::before { display: none; }

/* Master painting on white hero */
.hero-master {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  z-index: 5;
  text-align: center;
}

.master-frame {
  display: inline-block;
  padding: 16px;
  background: linear-gradient(145deg, #7A5F28 0%, #D4A840 25%, #9A7432 50%, #D4A840 75%, #6A4F1E 100%);
  box-shadow: 8px 14px 40px rgba(0,0,0,.18), inset 0 0 0 3px rgba(255,228,100,.2);
}

.master-frame img {
  width: 520px;
  max-width: 60vw;
  height: auto;
  display: block;
}

.master-spotlight { display: none; }

.master-label {
  margin-top: .8rem;
}
.master-label .ml-artist {
  font-family: 'Syne', sans-serif;
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: .3rem;
}
.master-label .ml-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem;
  font-style: italic;
  color: rgba(26,22,18,.4);
}

/* Hero text overlay — dark on white */
.hero-text {
  position: absolute;
  bottom: 8%;
  left: 0; right: 0;
  z-index: 6;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.hero-eyebrow::before {
  content: '';
  width: 1.8rem; height: 1px;
  background: var(--gold);
}

.aile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--ink);
  text-shadow: none;
}

.scroll-cue {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: .3;
  z-index: 6;
}
.sc-line {
  width: 1px; height: 40px;
  background: var(--ink);
  animation: scPulse 2s infinite;
}
.sc-txt {
  font-family: 'Syne', sans-serif;
  font-size: .55rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}
@keyframes scPulse {
  0%,100%{opacity:.3;transform:scaleY(1)}
  50%{opacity:.8;transform:scaleY(1.3)}
}

/* ============================================================
   INTRO TEXT SECTION
   ============================================================ */
.intro-section {
  background: var(--cream);
  color: var(--ink);
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.intro-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 12vw, 14rem);
  font-weight: 300;
  line-height: .9;
  color: var(--gold);
  opacity: .18;
}

.intro-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.intro-content h2 em { font-style: italic; color: var(--warm); }

.intro-content p {
  font-size: .9rem;
  line-height: 1.95;
  color: rgba(26,22,18,.68);
  max-width: 580px;
  margin-bottom: 1rem;
}

.intro-quote {
  margin-top: 2rem;
  padding-left: 2rem;
  border-left: 2px solid var(--gold);
}
.intro-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--warm);
  line-height: 1.6;
}

/* ============================================================
   GALLERY DIVIDER
   ============================================================ */
.section-divider {
  background: var(--cream);
  padding: 2.5rem 8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(26,22,18,.1);
}
.sd-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
}
.sd-count {
  font-family: 'Syne', sans-serif;
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--warm);
  opacity: .8;
}

/* ============================================================
   CHILDREN GALLERY (museum room)
   ============================================================ */
.gallery-room {
  background: var(--wall);
  position: relative;
  overflow: visible;
  padding: 4rem 0 0;
}
.gallery-room::before { display: none; }

.gallery-room .gr-floor {
  height: 40px;
  background: linear-gradient(to bottom, #BCA888, #A89070);
}
.gallery-room .gr-floor::before { display: none; }

.paintings-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 8rem 60px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

/* Individual child painting */
.child-painting {
  position: relative;
  text-align: center;
  cursor: none;
  transition: transform .3s ease;
}
.child-painting:hover { transform: translateY(-6px) scale(1.02); }

.cp-frame {
  display: inline-block;
  padding: 10px;
  background: linear-gradient(145deg, #7A5F28 0%, #C9A840 28%, #8A6828 55%, #C9A840 78%, #6A4F1E 100%);
  box-shadow: 4px 8px 24px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,220,80,.18);
}
.cp-frame img {
  display: block;
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

.cp-spotlight {
  position: absolute;
  top: -100%; left: 50%;
  transform: translateX(-50%);
  width: 160%; height: 260%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,248,200,.1) 0%, transparent 55%);
  pointer-events: none;
}

.cp-label {
  margin-top: .8rem;
}
.cp-label .cp-name {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .6;
  margin-bottom: .2rem;
}
.cp-label .cp-school {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: .8rem;
  font-style: italic;
  color: rgba(26,22,18,.45);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12,8,4,.97);
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  cursor: default;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 78vh;
  max-width: 90vw;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,.8);
}
.lightbox-cap {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(250,246,238,.7);
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  font-size: 1.5rem;
  color: rgba(250,246,238,.35);
  background: none;
  border: none;
  cursor: pointer;
  cursor: none;
  transition: color .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--gold); }
.lb-close { top: 1.5rem; right: 2rem; }
.lb-prev  { top: 50%; left: 1rem;  transform: translateY(-50%); }
.lb-next  { top: 50%; right: 1rem; transform: translateY(-50%); }

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote-band {
  background: var(--ink);
  padding: 7rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-deco {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18rem;
  line-height: .7;
  color: rgba(201,168,76,.06);
  position: absolute;
  top: -2rem; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.quote-band blockquote {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  max-width: 780px;
  margin: 0 auto 1.8rem;
  color: var(--cream);
}
.quote-source {
  font-family: 'Syne', sans-serif;
  font-size: .63rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   OTHER WINGS GRID
   ============================================================ */
.wings-nav {
  background: var(--cream);
  color: var(--ink);
  padding: 5rem 3rem;
}
.wn-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(26,22,18,.1);
  padding-bottom: 1.2rem;
}
.wn-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -.02em;
}
.wn-title em { font-style: italic; color: var(--warm); }

.wn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.wn-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dust);
  display: block;
  cursor: none;
}
.wn-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.wn-item:hover img { transform: scale(1.06); }
.wn-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,22,18,.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}
.wn-item:hover .wn-overlay { opacity: 1; }
.wn-art {
  font-family: 'Syne', sans-serif;
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .2rem;
}
.wn-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: white;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(201,168,76,.12);
}

/* LOGOS ROW */
.footer-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 3rem 3rem 2.5rem;
  border-bottom: 1px solid rgba(250,246,238,.06);
}

.footer-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s, filter .3s;
}
.footer-partner-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: .45;
  filter: grayscale(100%) brightness(1.8);
  transition: opacity .3s, filter .3s;
}
.footer-partner-logo:hover img {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

/* BOTTOM BAR */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.8rem 3rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
}
.footer-copy {
  font-size: .72rem;
  opacity: .3;
  font-family: 'DM Sans', sans-serif;
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: 'Syne', sans-serif;
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .35;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
