/* =========================================================
   Deeva Dance — feuille de style principale (v2, images propres)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Work+Sans:wght@300;400;500;600&family=Caveat:wght@500;600&display=swap');

:root {
  --bg: #efeeec;
  --bg-alt: #e7e5e1;
  --bg-panel: #f6f5f3;
  --wine: #7b2350;
  --wine-soft: #611a3e;
  --ink: #3a3a3a;
  --muted: #6d6d6d;
  --line: rgba(0, 0, 0, 0.12);
  --paper: #f6f2ec;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  --font-script: 'Caveat', cursive;

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--wine);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
h4 { color: var(--ink); }

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-style: italic; font-weight: 400; }

p { color: var(--muted); margin: 0 0 1.2em; max-width: 62ch; }

.section { position: relative; padding: 88px 0; border-top: 1px solid var(--line); }
.section--first { border-top: none; }
.section--home {
  border-top: none;
}
.section--home::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 56px; height: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--wine);
  opacity: 0.85;
}
.section--home.section--first::before { display: none; }
.section--tight { padding: 56px 0; }
.section--first { border-top: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border: 1px solid var(--wine);
  color: var(--ink); font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--wine); color: var(--paper); }
.btn--solid { background: var(--wine); color: var(--paper); }
.btn--solid:hover { background: var(--wine-soft); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 238, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; padding-bottom: 26px;
}
.logo { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); letter-spacing: 0.01em; }
.logo .v { color: var(--wine); }
.logo small { display:block; font-family: var(--font-body); font-size: 0.55rem; letter-spacing: 0.25em; color: var(--muted); margin-top: -4px; }
.logo-img { height: 74px; width: auto; display: block; }

.main-nav ul { list-style: none; display: flex; gap: 38px; margin: 0; padding: 0; }
.main-nav a { font-size: 1.08rem; color: var(--ink); position: relative; padding-bottom: 4px; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--wine); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; font-size: 1.1rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 32px 20px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 0; }
}

/* ---------- Hero (image) ---------- */

.hero {
  position: relative; min-height: 60vh; display: flex; align-items: center;
  background-size: cover; background-position: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,8,0.05) 0%, rgba(10,8,8,0.15) 55%, rgba(10,8,8,0.55) 100%);
}
.hero-inner {
  position: absolute; top: 50%; right: 15%;
  transform: translateY(-50%);
  z-index: 2; max-width: 480px; width: auto;
  margin: 0; padding: 0; text-align: right;
}
.hero-inner h1, .hero-inner p { color: var(--paper); }
.hero-inner .tag { color: #e7cfda; font-size: 0.95rem; }

/* ---------- Hero (video, accueil) ---------- */

.hero--video { min-height: 86vh; align-items: center; }
.hero--video video {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
  object-fit: cover; transform: translate(-50%, -50%); z-index: 0;
}
.hero--video::before {
  background: linear-gradient(90deg, rgba(10,8,8,0.55) 0%, rgba(10,8,8,0.1) 55%, rgba(10,8,8,0.45) 100%);
}
.hero--video .wrap { position: relative; z-index: 2; width: 100%; height: 100%; }
.hero-tagline-img {
  position: absolute;
  top: 38%;
  left: 76%;
  width: clamp(280px, 34vw, 460px);
  transform: translate(-50%, -50%) rotate(-10deg);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
}

/* ---------- Layout helpers ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 780px) {
  .hero-inner { right: 6%; max-width: 82%; }
}
.grid-2--reverse .col-img { order: 2; }
.col-img { position: relative; }
.col-img img { }
.photo-credit {
  position: absolute; bottom: 10px;
  font-size: 0.7rem; letter-spacing: 0.02em;
  color: #c9c9c9;
  pointer-events: none;
}
/* offset accounts for the centering gap left by each image's max-width% */
.photo-credit--jump { right: calc(7.5% + 10px); }
.photo-credit--bridge { right: calc(5% + 10px); }
.section--home .col-img img { max-width: 85%; margin: 0 auto; display: block; }
.section--home .col-img img.col-img-bridge { max-width: 90%; }

/* ---------- Partners ---------- */

.partners-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px;
  align-items: center; margin-top: 44px;
}
.partners-grid img { filter: grayscale(1); opacity: 0.6; transition: opacity 0.25s ease, filter 0.25s ease; }
.partners-grid img:hover { filter: none; opacity: 1; }
@media (max-width: 780px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Shows ---------- */

.show {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px;
  padding: 52px 0; border-top: 1px solid var(--line); align-items: start;
}
.show:first-of-type { border-top: none; padding-top: 0; }
.show img { border: 1px solid var(--line); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.show img.poster-contain { object-position: top; }
.show h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
@media (max-width: 780px) { .show { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */

.team-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 900px) { .team-photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-photo-grid { grid-template-columns: 1fr; } }

.team-cell { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #111; }
.team-cell-link { display: block; width: 100%; height: 100%; cursor: pointer; }
.team-cell img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  filter: grayscale(1); transition: transform 0.5s ease;
}
.team-cell:hover img { transform: scale(1.04); }
.team-cell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,8,8,0.85) 100%);
  pointer-events: none;
}
.team-cell .info { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #f5f3f0; }
.team-cell .info .name { font-weight: 500; letter-spacing: 0.02em; font-size: 0.98rem; margin-bottom: 3px; }
.team-cell .info .role { font-size: 0.82rem; line-height: 1.4; color: #e4e0da; }
.team-cell .info .committee { font-size: 0.8rem; line-height: 1.4; color: rgba(210,160,185,0.65); margin-top: 2px; }

.team-heading { text-align: center; padding-bottom: 8px; }

/* ---------- Gallery ---------- */

.gallery-group { margin-top: 36px; }
.gallery-group h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px; grid-auto-flow: dense; gap: 12px;
}
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:nth-child(4) { grid-row: span 2; }
.gallery-grid a:nth-child(6) { grid-column: span 2; }
.gallery-grid a {
  display: block; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--line);
  position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: saturate(0.92); }
.gallery-grid a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,8,8,0.25) 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.07); filter: saturate(1.05); }
.gallery-grid a:hover::after { opacity: 1; }

@media (max-width: 600px) {
  .gallery-grid a:nth-child(1), .gallery-grid a:nth-child(4), .gallery-grid a:nth-child(6) {
    grid-column: span 1; grid-row: span 1;
  }
}

.gallery-grid a.gallery-hidden { display: none; }
.gallery-more {
  display: block; margin: 24px auto 0; background: none; cursor: pointer;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

.lightbox {
  position: fixed; inset: 0; background: rgba(6,5,5,0.95);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px; background: none;
  border: 1px solid rgba(255,255,255,0.4); color: var(--paper);
  font-size: 1.4rem; width: 42px; height: 42px; cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,0.4); color: var(--paper);
  font-size: 1.8rem; width: 48px; height: 48px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { border-color: var(--wine); color: var(--wine); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.tickets { border: 1px solid var(--line); padding: 26px; margin: 22px 0 28px; background: var(--bg-panel); }
.tickets a { display: block; color: var(--wine); margin-top: 8px; }
.tickets a:hover { text-decoration: underline; }

.contact-info .phone, .contact-info .email {
  display: block; font-family: var(--font-display); font-size: 1.15rem; margin: 6px 0; color: var(--ink);
}
.social-links { display: flex; gap: 18px; margin-top: 20px; align-items: center; }
.social-links a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.social-links a svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.social-links a:nth-child(2) svg { transform: translateY(-1.5px); }
.social-links a:hover { color: var(--wine); }

.contact-details { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; align-items: flex-start; text-align: left; justify-self: center; align-self: start; margin-top: 58px; }
.contact-line { display: flex; align-items: center; gap: 16px; justify-content: flex-start; }
.contact-line > svg { width: 26px; height: 26px; color: var(--wine); flex-shrink: 0; }
.contact-line a { font-size: 1.15rem; color: var(--ink); }
.contact-line a:hover { color: var(--wine); }
.social-links--badge { margin-top: 0; gap: 12px; }
.social-links--badge a {
  width: 40px; height: 40px; border-radius: 50%; background: #9a9a9a;
  color: var(--paper); padding: 9px;
}
.social-links--badge a:hover { background: var(--wine); color: var(--paper); }
.contact-form .btn--solid { padding: 12px 26px; align-self: end; font-size: 0.9rem; }

form.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 2px; color: var(--ink); font-family: var(--font-body); font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--wine); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; text-align: center; }
.site-footer .logo { justify-content: center; display: flex; margin-bottom: 18px; }
.site-footer p { font-size: 0.8rem; }
.site-footer .social-links { justify-content: center; margin-bottom: 16px; }

.center { text-align: center; }
.mt-lg { margin-top: 44px; }
::selection { background: var(--wine); color: var(--paper); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }

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

/* ---------- Person / bio page ---------- */
.team-cell { scroll-margin-top: 42vh; }
.person-back {
  display: inline-block; margin-bottom: 40px; color: var(--muted);
  font-size: 0.9rem; letter-spacing: 0.02em;
}
.section--person { padding-top: 34px; }
.person-back:hover { color: var(--wine); }
.person-grid {
  display: block;
}
.person-grid::after { content: ''; display: block; clear: both; }
.person-photo {
  float: left; width: 44%; margin-right: 64px; margin-bottom: 20px;
}
.person-photo img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1);
}
.person-text { }
.person-text h1 { margin-bottom: 0; }
.person-role {
  font-family: var(--font-script); color: var(--wine);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  white-space: nowrap;
  margin: 2px 0 28px;
}
.person-bio p { margin: 0 0 1.1em; color: var(--ink); line-height: 1.7; max-width: none; }
.person-bio ul { margin: -0.3em 0 1.1em; padding-left: 1.3em; color: var(--ink); line-height: 1.7; }
.person-bio li { margin-bottom: 0.3em; }
.person-signature {
  width: 190px; height: auto; margin-top: 30px; margin-left: auto; display: block;
  filter: brightness(0) saturate(100%);
  opacity: 0.55;
}
@media (max-width: 780px) {
  .person-photo { float: none; width: 100%; margin-right: 0; }
  .person-role { white-space: normal; font-size: 1.2rem; }
}
