
/* ==========================================
   COMMA EVENT PRODUCTION
   STYLE.CSS COMPLET
========================================== */

/* POLICES */

@font-face {
  font-family: Montserrat;
  src: url(fonts/montserrat-2.woff);
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url(fonts/montserrat-5.woff);
  font-weight: 700;
  font-display: swap;
}

/* BASE */

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #BC5DCC #8d8e89;
}

body {
  margin: 0;
  background: #080e29;
  color: #fff;
  font-family: Montserrat, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  padding: 12px 0;
  font-size: 10px;
}

/* ==========================================
   GALERIE 3D
========================================== */

.journey {
  height: 420svh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #9a9b96;
}

#gallery {
  position: absolute;
  inset: 0;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================
   TITRES GALERIE
========================================== */

.chapter {
  position: absolute;
  top: 19%;
  left: 4%;
  pointer-events: none;
  text-shadow: 0 2px 12px #0002;
}

.chapter > span {
  font-size: 8px;
  letter-spacing: 2.8px;
  opacity: .8;
}

.chapter p {
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 15px 0;
}

/* ==========================================
   PRÉSENTATION — BASE
========================================== */

.navy {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #080e29;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 25px;

  transform: translateY(105%);
  will-change: transform;
}

.navy > span {
  font-size: 9px;
  letter-spacing: 4px;
}

.navy h1 {
  font-size: clamp(30px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -2px;
  margin: 35px 0;
}

.navy em {
  color: #BC5DCC;
  font-style: normal;
}

.navy p {
  font-size: 13px;
  color: #bcb4c9;
}

/* ==========================================
   FOOTER GALERIE
========================================== */

.stage footer {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 26px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  z-index: 5;
  font-size: 8px;
  letter-spacing: 1.6px;
}

.stage footer b {
  font-weight: 400;
  font-size: 16px;
  margin-left: 14px;
}

/* ==========================================
   NAVIGATION GALERIE
========================================== */

nav {
  display: flex;
  gap: 10px;
}

nav button {
  width: 30px;
  height: 28px;
  position: relative;
}

nav button::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff55;
}

nav button[aria-current="true"]::after {
  background: #BC5DCC;
}

#count {
  font-size: 20px;
  letter-spacing: 0;
}

#count small {
  font-size: 9px;
  margin-left: 6px;
  opacity: .65;
}

/* ==========================================
   PROGRESSION
========================================== */

.progress {
  height: 2px;
  background: #BC5DCC;
  position: absolute;
  bottom: 0;
  z-index: 6;
}

/* ==========================================
   FALLBACK 3D
========================================== */

#fallback {
  position: absolute;
  top: 45%;
  left: 10%;
  right: 10%;

  text-align: center;
  background: #080e29;
  padding: 25px;
  z-index: 11;
}

/* ACCESSIBILITÉ */

:focus-visible {
  outline: 2px solid #BC5DCC;
  outline-offset: 5px;
}

/* ==========================================
   MOBILE — GALERIE
========================================== */

@media (max-width: 700px) {

  .chapter {
    top: 16%;
    left: 6%;
  }

  .chapter > span {
    font-size: 6px;
    letter-spacing: 2px;
  }

  .chapter p {
    font-size: 22px;
  }

  .navy h1 {
    letter-spacing: -1px;
  }

  .stage footer {
    left: 6%;
    right: 6%;
    font-size: 6px;
  }

  .stage footer b {
    margin-left: 5px;
  }

  nav {
    gap: 5px;
  }

  nav button {
    width: 19px;
  }

  .navy > span {
    letter-spacing: 2px;
  }

  #count {
    font-size: 16px;
  }
}

/* ==========================================
   MOBILE — VOS ÉMOTIONS. NOTRE REGARD.
   UNE SEULE SECTION — SCROLL NATUREL
========================================== */

@media (max-width: 700px) {

  /*
   Ce bloc fonctionne avec le script
   qui déplace la section originale
   après .journey sur mobile.
  */

  .navy.intro.event-intro {
    position: relative !important;
    inset: auto !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;

    width: 100% !important;
    height: auto !important;
    min-height: 100svh !important;
    max-height: none !important;

    padding: 55px 7vw 65px !important;
    gap: 25px !important;

    overflow: visible !important;
    overflow-y: visible !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;

    align-content: start !important;
    align-items: start !important;
    justify-content: initial !important;

    text-align: left !important;
    touch-action: pan-y;
  }

  .event-intro .intro-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    min-width: 0;

    height: auto !important;
    max-height: none !important;

    overflow: visible !important;
  }

  .event-intro .intro-eyebrow {
    width: 100%;
    font-size: 20px !important;
    line-height: 1.4 !important;
    letter-spacing: -.5px !important;

    margin: 0 0 18px !important;
  }

  .event-intro .brand-logo {
    display: block;
    width: 150px !important;
    max-width: 65% !important;
    height: auto !important;

    margin: 0 0 22px !important;
  }

  .event-intro p {
    width: 100%;
    max-width: none !important;

    font-size: 12px !important;
    line-height: 1.8 !important;

    margin: 0 0 18px !important;
    overflow-wrap: break-word;
  }

  .event-intro .cta {
    max-width: 100%;
    margin-top: 8px !important;
  }

  .event-intro .event-photo {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }

  .event-intro .event-photo img {
    display: block;
    width: 100%;

    height: auto !important;
    max-height: none !important;
    aspect-ratio: 4 / 3;

    object-fit: cover;
    border-radius: 35px 8px 35px 8px;
  }
}
