/* ------------------------------------------------------------------
   TAG ALMA 2027, tagalma.ca
   Une seule page. Reproduction responsive de l'affiche du festival.
   Palette et proportions calquées sur l'affiche d'origine.
   ------------------------------------------------------------------ */

:root {
  --ink: #06060e;
  --ink-2: #08080f;
  --line: #14141f;
  --cyan: #45c8e8;
  --white: #ffffff;
  --pad-x: clamp(0.75rem, 2.2vw, 2.4rem);
  --ridge: #04060d;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-synthesis-weight: none;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- fond */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #16345f 0%, #102a4d 12%, #0b1c33 30%, #070a14 58%, var(--ink) 100%);
  overflow: hidden;
}

.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  mix-blend-mode: screen;
}

.bg__glow--left {
  left: -8%; bottom: 6%;
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(239,151,41,.55), rgba(239,151,41,0) 68%);
}

.bg__glow--center {
  left: 26%; bottom: -4%;
  width: 62vw; height: 52vw;
  background: radial-gradient(circle, rgba(196,60,190,.5), rgba(120,60,200,0) 70%);
}

.bg__glow--right {
  right: -10%; bottom: 8%;
  width: 48vw; height: 44vw;
  background: radial-gradient(circle, rgba(60,120,235,.45), rgba(60,180,200,0) 70%);
}

.bg__crowd {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(58vh, 620px);
  background-image: url("assets/foule.jpg");
  background-size: cover;
  background-position: center 62%;
  filter: blur(20px) saturate(1.3) brightness(.7);
  opacity: .34;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 52%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 52%, #000 100%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
}

/* -------------------------------------------------------------- en-tête */

.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.6vw, 2.4rem);
  padding: clamp(1rem, 2vw, 1.7rem) var(--pad-x) clamp(1.4rem, 3vw, 2.6rem);
  background:
    radial-gradient(80% 120% at 6% 12%, rgba(226,150,40,.34), rgba(226,150,40,0) 62%),
    radial-gradient(70% 130% at 96% 30%, rgba(70,200,232,.24), rgba(70,200,232,0) 60%),
    linear-gradient(180deg, #1d4278 0%, #173460 42%, #0d1d38 78%, #070b16 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(34px, 6vw, 76px);
  background: var(--ink);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62 L90 40 L168 66 L262 30 L352 70 L430 44 L520 74 L610 34 L700 68 L790 46 L880 72 L968 38 L1050 66 L1130 44 L1200 64 L1200 100 L0 100 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62 L90 40 L168 66 L262 30 L352 70 L430 44 L520 74 L610 34 L700 68 L790 46 L880 72 L968 38 L1050 66 L1130 44 L1200 64 L1200 100 L0 100 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.4vw, 2.2rem);
  margin: 0;
  flex: 1 1 22rem;
  min-width: 0;
}

.hero__logo {
  display: block;
  width: clamp(150px, 24vw, 372px);
  height: auto;
}

.hero__kicker {
  display: block;
  font-size: clamp(.6rem, 1vw, .84rem);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.6;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.94);
}

.hero__claim {
  margin: 0;
  flex: 0 1 auto;
}

.hero__claim img {
  display: block;
  width: clamp(126px, 17.5vw, 260px);
  height: auto;
}

.hero__dates {
  flex: 0 1 auto;
  text-align: center;
  padding-right: clamp(0px, 1.2vw, 1.4rem);
}

.datebox {
  display: inline-block;
  margin: 0;
  padding: .5em .95em .62em;
  border: 1.5px solid var(--cyan);
  border-radius: 2px;
  font-size: clamp(.78rem, 1.35vw, 1.24rem);
  font-weight: 700;
  font-stretch: 84%;
  line-height: 1.16;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.datebox span { display: block; }

.hero__place {
  margin: .85em 0 0;
  font-size: clamp(.55rem, .84vw, .74rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

/* --------------------------------------------------------- programmation */

.nights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.4rem, .85vw, .72rem);
  padding: 0 var(--pad-x);
  margin-top: clamp(-1.6rem, -2.2vw, -.6rem);
  position: relative;
  overflow-x: clip;
}

.nights::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 44%;
  bottom: -14%;
  z-index: -1;
  background-image: url("assets/foule.jpg");
  background-size: cover;
  background-position: center 58%;
  filter: blur(18px) saturate(1.35) brightness(.78);
  opacity: .72;
  -webkit-mask-image: radial-gradient(112% 96% at 50% 68%, #000 34%, transparent 84%);
  mask-image: radial-gradient(112% 96% at 50% 68%, #000 34%, transparent 84%);
}

.night {
  --rgb: 255,255,255;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 337 / 664;
  overflow: hidden;
  border-radius: 3px;
  background: transparent;
  isolation: isolate;
}

.night__photo {
  position: absolute;
  left: 0;
  width: 100%;
  top: 27%;
  height: auto;
  aspect-ratio: 674 / 452;
  object-fit: cover;
  object-position: center 42%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.night__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 42% at 50% -6%, rgba(255,255,255,.16), rgba(255,255,255,0) 62%),
    linear-gradient(180deg,
      rgb(var(--rgb)) 0%,
      rgb(var(--rgb)) 21%,
      rgba(var(--rgb), .86) 27%,
      rgba(var(--rgb), .32) 36%,
      rgba(8,8,16,.14) 45%,
      rgba(8,8,16,.4) 53%,
      rgba(8,8,16,.8) 62%,
      rgba(8,8,16,.92) 72%,
      rgba(8,8,16,.66) 84%,
      rgba(8,8,16,.3) 93%,
      rgba(8,8,16,0) 100%);
}

.night::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.night__intro,
.night__featured {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.night__intro {
  top: 0;
  padding: 7.4cqw 6cqw 0;
}

.night__date {
  margin: 0;
  font-size: 9.3cqw;
  font-weight: 700;
  font-stretch: 70%;
  line-height: .95;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.night__theme {
  margin: .55em 0 0;
  font-size: 5.1cqw;
  font-weight: 600;
  font-stretch: 72%;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.night__head {
  margin: .42em 0 0;
  font-size: var(--head, 18cqw);
  font-weight: 800;
  font-stretch: 62%;
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.night__featured {
  top: 61%;
  padding: 0 6cqw;
}

.night__rule {
  display: block;
  width: 12cqw;
  height: 1.1cqw;
  min-height: 3px;
  margin: 0 auto 2.4cqw;
  background: rgb(var(--rgb));
  border-radius: 1px;
}

.night__label {
  margin: 0;
  font-size: 3.2cqw;
  font-weight: 600;
  font-stretch: 80%;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}

.night__names {
  margin: 1.6cqw 0 0;
  font-size: 6.6cqw;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.16;
  letter-spacing: .005em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- pied */

.foot {
  position: relative;
  padding: clamp(2rem, 5vw, 4.2rem) var(--pad-x) clamp(1.1rem, 2.2vw, 1.9rem);
  text-align: center;
}

.foot__tagline {
  margin: 0;
  font-size: clamp(.82rem, 1.5vw, 1.4rem);
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.96);
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.4rem, 4.6vw, 5rem);
  margin: clamp(1.5rem, 3.4vw, 2.8rem) 0 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75em;
  font-size: clamp(.85rem, 1.25vw, 1.2rem);
}

.pillar__ring {
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border: 1.5px solid rgb(var(--rgb));
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 14px rgba(var(--rgb), .32);
}

.pillar__ring svg {
  width: 1.45em;
  height: 1.45em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar__label {
  font-size: .74em;
  font-weight: 600;
  letter-spacing: .19em;
  text-indent: .19em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

.foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2.2rem, 5vw, 4rem);
  padding-top: clamp(1rem, 2vw, 1.6rem);
  border-top: 1px solid rgba(255,255,255,.08);
}

.foot__contact {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.6vw, 1.5rem);
  flex-wrap: wrap;
}

.foot__site {
  font-size: clamp(.72rem, 1vw, .9rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.foot__site:hover { color: var(--cyan); }

.socials {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, .8vw, .75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: clamp(1.3rem, 1.75vw, 1.65rem);
  aspect-ratio: 1;
  color: #fff;
  opacity: .9;
  transition: opacity .18s ease, transform .18s ease;
}

.socials a:hover { opacity: 1; transform: translateY(-2px); }

.socials svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.foot__alma {
  display: block;
  width: clamp(74px, 8vw, 118px);
  height: auto;
}

/* ---------------------------------------------------------------- écrans */

@media (max-width: 1080px) {
  .nights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night { aspect-ratio: 337 / 620; }
}

@media (max-width: 720px) {
  .hero {
    justify-content: center;
    text-align: center;
    gap: 1.4rem;
    padding-bottom: 2rem;
  }
  .hero__brand {
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    flex-basis: 100%;
  }
  .hero__logo { width: min(74vw, 300px); }
  .hero__claim img { width: min(56vw, 240px); }
  .hero__dates { padding-right: 0; }
  .night { aspect-ratio: 337 / 660; }
  .foot__bottom { justify-content: center; text-align: center; }
  .foot__contact { justify-content: center; width: 100%; }
}

@media (max-width: 520px) {
  .nights { grid-template-columns: 1fr; }
  .night { aspect-ratio: 337 / 660; }
  .pillars { gap: 1.1rem 1.6rem; }
  .pillar { font-size: .8rem; }
  .foot__tagline { letter-spacing: .22em; text-indent: .22em; }
}

@media (prefers-reduced-motion: no-preference) {
  .night {
    animation: rise .7s cubic-bezier(.22,.7,.3,1) backwards;
  }
  .night:nth-child(1) { animation-delay: .05s; }
  .night:nth-child(2) { animation-delay: .13s; }
  .night:nth-child(3) { animation-delay: .21s; }
  .night:nth-child(4) { animation-delay: .29s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}
