/* ─────────────────────────────────────────────
   Kare — stylesheet
   Site one-page, structure modulaire par sections
   (pensé pour évoluer vers un multi-pages plus tard)
   ───────────────────────────────────────────── */

:root {
  /* Fond uni clair — gris-argent bleuté très clair, texte foncé.
     Karen : "beaucoup plus clair, un gris plus clair" — plus clair
     que la première version silver testée. */
  --bg:        #F0F1F3;
  --bg-alt:    #E4E5E9;
  --ink:       #141414;
  --ink-soft:  rgba(20, 20, 20, 0.62);

  /* ── Couleur d'accent du projet en cours ──────
     Lunar Metamorphosis = argent bleuté.
     C'est LA variable à changer d'un projet à l'autre :
     tout le site référence --accent, jamais une couleur en dur. */
  --accent:       #A1A3AF;
  --accent-dark:  #757889;
  --accent-faint: rgba(133, 135, 147, 0.16);

  /* Même échantillonnage, pour les coins/barres façon doc de Karen. */
  --frame-silver: #8B8D9C;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Dissuasion — empêche la sélection et l'appui long ("Enregistrer
   l'image") sur mobile. Complète initImageGuard dans script.js.
   Toujours pas une vraie protection, voir la note là-bas. */
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  background-color: var(--bg);
  /* Fond uni + grain fin seulement (pas de bandes "métal brossé" —
     retirées, ça faisait tôle ondulée sur un fond plus foncé).
     Dégradé statique (pas de background-attachment: fixed), il
     défile normalement avec la page. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='1.6' intercept='-0.15'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 4rem;
}

/* ── Repères de section ─────────────────────── */

.side-nav {
  /* Centré verticalement via une colonne flex sur toute la hauteur
     de la fenêtre plutôt que top:50%/translateY — évite que la barre
     d'adresse des navigateurs mobiles (qui apparaît/disparaît au
     scroll) ne vienne rogner le bas de la nav en fin de page. */
  position: fixed;
  inset: 0 auto 0 2rem;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  width: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  pointer-events: none;
}

.side-nav-link {
  pointer-events: auto;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  text-align: center;
  transition: color 0.25s;
}

.side-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-nav-link::before {
  content: "";
  display: block;
  width: 1px;
  height: 14px;
  margin: 0 auto 0.5rem;
  background: var(--ink-soft);
  opacity: 0.35;
  transition: height 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.side-nav-link:first-child::before { display: none; }

.side-nav-link:hover { color: var(--ink); }

.side-nav-link.active {
  color: var(--ink);
}

.side-nav-link.active::before {
  height: 22px;
  opacity: 1;
  background: var(--accent-dark);
}

/* Repère au-dessus d'une photo — voir initSideNavContrast dans
   script.js. Basculé individuellement par repère, donc si la nav
   chevauche pour moitié une image, seuls les repères concernés
   passent en blanc. */
.side-nav-link.on-image { color: rgba(240, 241, 243, 0.85); }
.side-nav-link.on-image:hover,
.side-nav-link.on-image.active { color: #F0F1F3; }
.side-nav-link.on-image::before { background: rgba(240, 241, 243, 0.85); }
.side-nav-link.on-image.active::before { background: #F0F1F3; }

/* ── Section head (kicker + title) ─────────────*/

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 4rem;
}

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--frame-silver);
}

.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frame-silver);
  padding-bottom: 0.7rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--frame-silver);
}

/* ── HOME ───────────────────────────────────── */

.home-section {
  /* Karen: full-height felt like a blank page and hid the fact the
     site scrolls — kept noticeably shorter than the other sections
     on purpose so the next block peeks into view. */
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-inline: 2rem;
}

.home-inner {
  position: relative;
  padding: 2.5rem;
}

.home-logo {
  width: 320px;
  max-width: 65vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

.scroll-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-soft);
  transition: color 0.2s;
  animation: scroll-arrow-nudge 2.4s ease-in-out infinite;
}

.scroll-arrow:hover { color: var(--accent-dark); }

@keyframes scroll-arrow-nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 5px); }
}

/* ── ABOUT ──────────────────────────────────── */

.about-section {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.about-text {
  max-width: 680px;
}

.about-text p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.about-text em {
  font-style: italic;
  color: var(--ink);
}

/* ── Visual breaks (cover / anticipation photos) ── */

.visual-section {
  width: 100%;
  line-height: 0;
}

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

/* Karen: "feel free to tone up the photo to more silver colour
   to match website aesthetics" — desaturated + cooled slightly
   rather than a full greyscale, to stay a photo, not an effect. */
.visual-cover .visual-img {
  filter: saturate(0.6) contrast(1.05) brightness(1.02);
}

/* ── EXHIBITION ─────────────────────────────── */

.exhibition-section {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.exhibition-hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.exhibition-wordmark {
  width: min(85%, 420px);
  height: auto;
  display: block;
  margin: 0 auto 0.9rem;
}

.exhibition-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frame-silver);
}

.exhibition-curatorial {
  max-width: 480px;
  margin: 1.6rem auto 0;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
}

.exhibition-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.2rem;
  padding: 0.85rem 1.8rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.exhibition-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.exhibition-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 4rem 8rem;
}

.exhibition-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.info-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.info-block p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.work-card-img {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(150deg, #e6e5e2, var(--accent-faint) 60%, #d8d7d3);
  border: 1px solid rgba(20, 20, 20, 0.08);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card-img span {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.work-card-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.work-card-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ── CONTACT / FOOTER ───────────────────────── */

.contact-section {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.socials {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
}

.social-icon {
  display: inline-flex;
  color: var(--ink);
  transition: color 0.2s;
}
.social-icon:hover { color: var(--accent-dark); }

/* Barre argentée — motif du doc de Karen (barres/cadres), en argent
   plutôt que doré. Un seul trait pour l'instant, en clôture du site ;
   à dupliquer entre les sections si l'effet plaît une fois testé. */
.silver-bar {
  width: 100%;
  height: 14px;
  background: var(--frame-silver);
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 4rem;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p,
footer a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--accent-dark); }

/* ── Scroll reveal ──────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 860px) {
  .exhibition-info,
  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Repères de scroll numérotés — utiles sur grand écran, superflus
     sur mobile où on scrolle au doigt et où ils prennent de la place. */
  .side-nav { display: none; }

  .section { padding-inline: 1.5rem; }

  .home-inner { padding: 1.5rem; }

  .about-section { padding-top: 5rem; padding-bottom: 5rem; }

  /* Trop de vide sur mobile avec le 86vh du desktop — hauteur réduite
     ici seulement (même rythme haut/bas que les autres sections),
     desktop inchangé. */
  .exhibition-section { min-height: auto; padding-top: 5rem; padding-bottom: 5rem; }

  .exhibition-info { gap: 1.6rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; }

  .works-grid { gap: 2rem; }

  .contact-section { padding-top: 5rem; padding-bottom: 5rem; }

  footer {
    padding: 1.6rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
