/* =========================================================
   Salon des éditeurs·trices neuchâtelois·es
   File: assets/css/styles.css

   Font note:
   Put the uploaded font files manually in:
   assets/fonts/big-shoulders-display.regular.ttf
   assets/fonts/big-shoulders-display.bold.ttf
   ========================================================= */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --burgundy: #73202b;
  --burgundy-dark: #551620;
  --burgundy-soft: #8d4650;
  --rose: #b99da2;
  --stone: #f2eee9;
  --stone-dark: #d8cec6;
  --ink: #241719;
  --white: #ffffff;
  --green: #3f8f19;
  --red: #ef2e22;
  --shadow: 0 24px 70px rgba(36, 23, 25, 0.2);
  --radius: 0;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--stone);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.nav-link,
.button,
.eyebrow,
.section-kicker,
.time,
.year-header {
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  letter-spacing: 0.035em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 54px);
  background: rgba(115, 32, 43, 0.94);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 250px;
}

.brand img {
  width: 46px;
  height: auto;
}

.brand strong {
  display: block;
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--stone-dark);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  border-color: var(--rose);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--burgundy-dark);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(85, 22, 32, 0.94) 0%, rgba(85, 22, 32, 0.78) 48%, rgba(85, 22, 32, 0.26) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: clamp(70px, 10vw, 140px) clamp(20px, 7vw, 90px);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  color: var(--rose);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}

.hero h1,
.page-hero h1 {
  margin: 10px 0 22px;
  font-size: clamp(3.8rem, 9vw, 8.3rem);
  line-height: 1;
  text-transform: uppercase;
}

.hero-text,
.page-hero p {
  max-width: 710px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid currentColor;
  font-weight: 700;
  font-size: 1.2rem;
}

.button-primary {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
}

.button-secondary {
  color: var(--white);
}

.button-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.event-card {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: clamp(24px, 5vw, 70px);
  z-index: 3;
  width: min(320px, calc(100% - 40px));
  padding: 28px;
  color: var(--burgundy);
  background: rgba(242, 238, 233, 0.94);
  box-shadow: var(--shadow);
}

.event-card img {
  width: 84px;
  margin-bottom: 20px;
}

.event-card strong {
  display: block;
  font-family: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  font-size: 2.25rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.event-card span {
  display: block;
  margin-top: 12px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.two-columns h2,
.highlight-band h2,
.split-poster h2,
.image-text h2 {
  color: var(--burgundy);
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.two-columns p,
.image-text p,
.split-poster p,
.sponsors-intro p {
  font-size: 1.12rem;
}

.highlight-band {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-left: clamp(20px, 7vw, 90px);
  padding-right: clamp(20px, 7vw, 90px);
  background: var(--burgundy);
  color: var(--white);
}

.highlight-band h2 {
  color: var(--white);
  max-width: 820px;
}

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

.feature-card {
  background: var(--white);
  box-shadow: 0 12px 38px rgba(36, 23, 25, 0.08);
}

.feature-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.feature-card div {
  padding: 26px;
}

.feature-card h3,
.contact-card h2,
.schedule-card h2,
.program-list h2 {
  color: var(--burgundy);
  font-size: 2.2rem;
  line-height: 1;
  text-transform: uppercase;
}

.split-poster,
.image-text {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.split-poster img {
  max-height: 720px;
  width: auto;
  margin-left: auto;
  box-shadow: var(--shadow);
}

.image-text img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
}

.page-hero {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 7vw, 90px);
  background:
    linear-gradient(90deg, rgba(85, 22, 32, 0.95), rgba(115, 32, 43, 0.78)),
    url("../images/peristyle-empty-2.jpg") center/cover;
  color: var(--white);
}

.page-hero.compact {
  min-height: 420px;
  display: flex;
  align-items: center;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.schedule-card,
.contact-card {
  padding: 36px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(36, 23, 25, 0.08);
}

.time {
  color: var(--burgundy);
  font-size: 2.5rem;
  line-height: 1;
}

.program-list {
  display: grid;
  gap: 20px;
}

.program-list article {
  padding: 30px;
  background: var(--white);
  border-left: 8px solid var(--burgundy);
}

.program-list time {
  color: var(--burgundy-soft);
  font-weight: 700;
}

.publisher-section {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
}

.publisher-list {
  padding: 44px;
  background: var(--burgundy);
  color: var(--white);
}

.publisher-list h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.publisher-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}

.publisher-list li {
  break-inside: avoid;
  padding: 10px 0;
  font-size: 1.08rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.publisher-note {
  padding: 40px;
  background: var(--white);
  align-self: start;
}

.publisher-note img {
  width: 140px;
  margin-bottom: 24px;
}

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

.gallery-grid figure {
  margin: 0;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(36, 23, 25, 0.08);
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 14px 16px 18px;
  color: var(--burgundy);
  font-weight: 700;
}

.sponsors-intro {
  max-width: 850px;
  text-align: center;
}

.sponsor-year {
  border-top: 1px solid var(--stone-dark);
}

.year-header {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
  color: var(--burgundy);
  text-transform: uppercase;
}

.year-header span {
  font-size: 1.4rem;
  color: var(--burgundy-soft);
}

.year-header h2 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.8;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.sponsor-card {
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(115, 32, 43, 0.12);
}

.sponsor-card img {
  max-height: 70px;
  width: auto;
}

.sponsor-logo-placeholder {
  color: var(--burgundy);
  font-weight: 700;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.muted {
  color: rgba(36, 23, 25, 0.58);
}

.site-footer {
  background: var(--burgundy-dark);
  color: var(--white);
  padding: 54px clamp(20px, 5vw, 70px) 24px;
}

.footer-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo {
  width: 72px;
  margin-bottom: 16px;
}

.site-footer h3 {
  color: var(--rose);
  text-transform: uppercase;
  font-size: 1.55rem;
}

.site-footer a {
  color: var(--white);
}

.footer-bottom {
  width: min(var(--max), 100%);
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    padding: 18px 22px 24px;
    background: var(--burgundy-dark);
  }

  .main-nav.is-open {
    display: grid;
  }

  .nav-link {
    padding: 12px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 240px;
  }

  .event-card {
    left: 20px;
    right: auto;
  }

  .two-columns,
  .split-poster,
  .image-text,
  .publisher-section,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .highlight-band {
    display: grid;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero-content {
    padding-bottom: 260px;
  }

  .cards-grid,
  .gallery-grid,
  .schedule-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .publisher-list ul {
    columns: 1;
  }

  .footer-bottom {
    display: grid;
  }
}


/* =========================================================
   Mobile hero correction v3
   ========================================================= */

.hero-content,
.page-hero,
.event-card,
.button {
  max-width: 100%;
}

.hero h1,
.page-hero h1 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 760px) {
  .hero {
    display: block;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-media,
  .hero-overlay {
    position: absolute;
    inset: 0;
  }

  .hero-content {
    width: 100%;
    padding: 56px 22px 24px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 14vw, 4.55rem);
    line-height: 0.9;
    max-width: 100%;
  }

  .hero-text {
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    font-size: 1.12rem;
    white-space: normal;
    text-align: center;
  }

  .event-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 3;
    width: calc(100% - 44px);
    margin: 0 22px 28px;
    padding: 24px;
  }

  .event-card img {
    width: 68px;
    margin-bottom: 18px;
  }

  .event-card strong {
    font-size: 2.65rem;
    line-height: 0.9;
    overflow-wrap: anywhere;
  }

  .event-card span {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 42px;
  }

  .brand strong {
    font-size: 0.92rem;
    letter-spacing: 0.03em;
  }

  .brand small {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .hero-content {
    padding: 46px 18px 22px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13.5vw, 3.8rem);
    letter-spacing: 0.02em;
  }

  .event-card {
    width: calc(100% - 36px);
    margin-left: 18px;
    margin-right: 18px;
  }

  .event-card strong {
    font-size: 2.25rem;
  }
}