/*
Theme Name: Cornerstone
Theme URI: https://thecornerstone.fr
Author: Compagnie Cornerstone
Description: ThÃ¨me officiel de la Compagnie Cornerstone
Version: 2.0
Text Domain: cornerstone
*/

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

:root {
  --noir:       #070706;
  --anthracite: #101010;
  --gris:       #1a1a18;
  --gris-2:     #2a2a27;
  --or:         #c4a45f;
  --or-clair:   #e2cfa0;
  --creme:      #f2ede3;
  --muted:      #6a6a62;
  --serif: 'Raleway', sans-serif;
  --sans:  'Raleway', sans-serif;
  --ease: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--creme);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  margin: 0;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* â”€â”€ NAVIGATION â”€â”€ */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 56px;
  transition: padding var(--ease), background var(--ease), border-color var(--ease);
  border-bottom: 0.5px solid transparent;
}

#site-nav.scrolled {
  padding: 18px 56px;
  background: rgba(7,7,6,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(196,164,95,0.12);
}

.nav-logo {
  display: block;
  width: 120px;
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-logo img {
  width: 100%;
  display: block;
  filter: brightness(0.9);
}

/* Menu WordPress */
#site-nav .menu {
  display: flex;
  gap: 48px;
  list-style: none;
  margin: 0; padding: 0;
}

#site-nav .menu li { margin: 0; padding: 0; }

#site-nav .menu a {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 4px;
}

#site-nav .menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 0.5px;
  background: var(--or);
  transition: width var(--ease);
}

#site-nav .menu a:hover { color: var(--or-clair); }
#site-nav .menu a:hover::after { width: 100%; }

/* â”€â”€ HOMEPAGE â”€â”€ */
.page-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--noir);
}

.home-logo {
  width: clamp(200px, 36vw, 460px);
  animation: appear 1.6s ease both;
}

.home-logo img { width: 100%; display: block; }

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

/* â”€â”€ PAGE WRAPPER GÃ‰NÃ‰RIQUE â”€â”€ */
.page-wrapper {
  min-height: 100vh;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 56px 100px;
}

.page-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 0.5px;
  background: var(--or);
}

/* â”€â”€ Ã€ PROPOS â”€â”€ */
.page-apropos { background: var(--noir); }

.apropos-content,
.apropos-content p {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--creme);
  width: 100%;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-spacing: -0.05em;
}

.apropos-content p { margin-bottom: 1.6em; }
.apropos-content p:last-child { margin-bottom: 0; }
.apropos-content em { font-style: italic; }
.apropos-content strong { font-weight: 400; }

/* â”€â”€ SPECTACLES â”€â”€ */
.page-spectacles { background: var(--noir); }

.spectacles-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 56px 48px;
}

.spectacles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.spectacles-grid .spec-item {
  overflow: hidden;
  position: relative;
  display: block;
}

.spectacles-grid .spec-item.featured {
  grid-column: 1 / -1;
}

.spectacles-grid .spec-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.72) saturate(0.85);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.spectacles-grid .spec-item.featured img {
  max-height: 70vh;
  object-fit: cover;
}

.spectacles-grid .spec-item:not(.no-link):hover img {
  transform: scale(1.04);
  filter: brightness(0.85) saturate(1);
}

.spectacles-grid .spec-item.no-link { cursor: default; }

/* â”€â”€ DATES â”€â”€ */
.page-dates { background: var(--noir); }

/* Styles pour le contenu WP de la page Dates */
.dates-content h1 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
  margin: 56px 0 20px;
  padding-bottom: 14px;
  border-bottom: none;
}

.dates-content h1:first-child { margin-top: 0; }

.dates-content p,
.dates-content li {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--creme);
  padding: 18px 0;
  border-bottom: none;
}

.dates-content strong {
  font-size: 20px;
  font-weight: 400;
  color: var(--or-clair);
  margin-right: 16px;
}

/* Rendu structurÃ© alternatif si le contenu est formatÃ© en HTML */
.date-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 0.5px solid rgba(42,42,39,0.7);
  align-items: baseline;
}

.date-when {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.date-when strong {
  display: block;
  font-weight: 400;
  color: var(--or-clair);
  font-size: 13px;
  margin-bottom: 2px;
}

.date-info .show-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--creme);
  margin-bottom: 3px;
  display: block;
}

.date-info .venue {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.05;
}

.dates-section-heading {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
  margin: 56px 0 20px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--gris-2);
}

.dates-section-heading:first-child { margin-top: 0; }

/* â”€â”€ CONTACT â”€â”€ */
.page-contact { background: var(--noir); }
.page-contact .section-inner { text-align: center; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 780px;
}

.contact-block { margin-bottom: 44px; }

.contact-content,
.contact-content *,
.contact-content address { text-align: center !important; }

.contact-block h2,
.contact-content h2 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 16px;
}

.contact-block a,
.contact-content a {
  margin-top: 0;
  line-height: 1;
  padding-top: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--creme);
  text-decoration: none;
  transition: color var(--ease);
  display: block;
  margin-bottom: 52px;
  text-align: center;
}

.contact-block a:hover,
.contact-content a:hover { color: var(--or-clair); }

.contact-block address,
.contact-content address,
.contact-block p,
.contact-content p {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  font-style: normal;
  color: var(--creme);
  line-height: 1.2;
  margin: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-spacing: -0.05em;
}

.contact-content strong {
  display: block;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0;
  margin-top: 48px;
  font-style: normal;
  text-align: center;
}

.contact-content strong:first-child { margin-top: 0; }
/* br entre strong (label) et l'email suivant uniquement */
.contact-content strong + br { display: none; }

/* â”€â”€ FOOTER â”€â”€ */
#site-footer {
  background: var(--noir);
  border-top: 0.5px solid var(--gris-2);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0.45);
}

#site-footer p {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--sans);
}

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 860px) {
  #site-nav,
  #site-nav.scrolled {
    padding-left: 28px;
    padding-right: 28px;
  }

  .section-inner,
  .spectacles-header {
    padding-left: 28px;
    padding-right: 28px;
  }

  #site-nav .menu { gap: 24px; }

  .spectacles-grid { grid-template-columns: 1fr 1fr; }

  .date-row { grid-template-columns: 1fr; gap: 6px; }

  .contact-grid { grid-template-columns: 1fr; gap: 0; }

  #site-footer {
    padding-left: 28px;
    padding-right: 28px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}