/* ============================================
   ExFA COHORTE 2026 — Système de design
   ============================================ */

:root {
  --black:   #0d0d0d;
  --white:   #f5f4f0;
  --grey-1:  #e8e6e0;
  --grey-2:  #c8c5bc;
  --grey-3:  #888480;
  --accent:  #1F63F4;

  --border: 1px solid var(--black);
  --border-light: 1px solid var(--grey-2);

  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --space-xs:  0.4rem;
  --space-sm:  0.8rem;
  --space-md:  1.6rem;
  --space-lg:  3.2rem;
  --space-xl:  6.4rem;
  --space-2xl: 12rem;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- TYPOGRAPHIE ---- */
.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-3);
}

/* ---- DIVISEUR ---- */
.divider-full {
  border-top: var(--border);
  border-bottom: var(--border-light);
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  background: var(--white);
  position: sticky;
  top: 48px;
  z-index: 90;
}

/* ============================================
   COUVERTURE
   ============================================ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0d0d0d;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cover__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 30vw, 480px);
  height: auto;
  z-index: 1;
  mix-blend-mode: screen;
}

.cover__enter {
  position: relative;
  z-index: 1;
  margin: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: #fff;
  border: none;
  color: #0d0d0d;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cover__enter:hover {
  background: var(--accent);
  color: #fff;
}

.cover__arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.cover__enter:hover .cover__arrow {
  transform: translateX(6px);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--space-lg);
  border-bottom: var(--border);
  background: var(--white);
}

.nav__left {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.nav__center {
  display: flex;
  gap: var(--space-lg);
}

.nav__center a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav__center a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav__center a:hover::after { width: 100%; }

.nav__right { display: flex; justify-content: flex-end; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding-top: 48px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  border-bottom: var(--border);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--border-light);
}

.hero__title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: var(--space-lg);
}

.hero__logo {
  width: auto;
  height: clamp(110px, 18.5vw, 290px);
  flex-shrink: 0;
  margin-top: var(--space-xl);
  animation: logo-float 4s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%       { transform: translateY(-12px) rotate(4deg); }
  70%       { transform: translateY(8px) rotate(-3deg); }
}

.hero__title {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg) 0;
  font-size: clamp(56px, 11vw, 180px);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.hero__title--year {
  font-size: clamp(40px, 8vw, 120px);
  color: var(--accent);
  padding-left: clamp(80px, 16vw, 280px);
  padding-top: var(--space-md);
}

.hero__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--border-light);
  margin-top: var(--space-xl);
}

.hero__desc {
  padding: var(--space-lg);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  border-right: var(--border-light);
}

.hero__detail {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-md);
}

.hero__detail-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-sm);
  font-size: 13px;
}

.hero__scroll-hint {
  text-align: right;
  padding: var(--space-sm) var(--space-lg);
  font-size: 20px;
  border-top: var(--border-light);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============================================
   À PROPOS
   ============================================ */
.about {
  padding: var(--space-xl) 0 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 60px 1fr 200px;
  border-bottom: var(--border-light);
}

.about__col { padding: 0 var(--space-lg) var(--space-xl); }

.about__col--label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  border-right: var(--border-light);
}

.about__col--text {
  border-right: var(--border-light);
}

.about__body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: #333;
  max-width: 640px;
}

.about__body + .about__body { margin-top: var(--space-md); }

.about__pano {
  width: 100%;
  border-top: var(--border-light);
}

.about__pano-img {
  width: 100%;
  height: auto;
  display: block;
}

.about__col--stats {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat__num {
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.15em;
}

/* ============================================
   PROGRAMME
   ============================================ */
.programme {
  padding: var(--space-xl) 0;
}

.programme__date-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: 0 var(--space-lg) var(--space-lg);
  border-bottom: var(--border-light);
}

.programme__day-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-3);
}

.programme__day-date {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.programme__day-year {
  color: var(--grey-3);
}

.programme__timeline {
  padding: 0 var(--space-lg);
}

.programme__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: var(--border-light);
  align-items: start;
}

.programme__item:last-child {
  border-bottom: none;
}

.programme__time {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.programme__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.programme__event {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
}

.programme__detail {
  color: var(--grey-3);
}

/* ============================================
   LIEU & ACCÈS
   ============================================ */
.lieu {
  padding-bottom: var(--space-xl);
}

.lieu__map-full {
  width: 100%;
  height: 480px;
  border-bottom: var(--border-light);
  overflow: hidden;
}

.lieu__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(20%);
}

.lieu__info-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  border-bottom: var(--border-light);
}

.lieu__info-block {
  padding: var(--space-lg);
  border-right: var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.lieu__info-block--cta {
  border-right: none;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
}

.lieu__name {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: var(--space-xs);
}

.lieu__address {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
}

.lieu__info-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-top: var(--space-xs);
}

.lieu__directions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--accent);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.lieu__directions:hover {
  background: var(--accent);
  color: #fff;
}

.lieu__directions-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.lieu__directions:hover .lieu__directions-arrow {
  transform: translateX(4px);
}

/* ============================================
   PRÉSIDENCE D'HONNEUR
   ============================================ */
.honneur {
  padding: var(--space-xl) 0;
}

.honneur__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: var(--border-light);
  align-items: center;
}

.honneur__col--img {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.honneur__img {
  width: clamp(180px, 22vw, 360px);
  height: auto;
  display: block;
}

.honneur__col {
  padding: 0 var(--space-lg) var(--space-xl);
}

.honneur__col--label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  border-right: var(--border-light);
}

.honneur__kicker {
  margin-bottom: var(--space-md);
  display: block;
}

.honneur__name {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.honneur__body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: #333;
  max-width: 640px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: var(--border);
  padding: var(--space-lg) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto 1fr;
  padding: 0 var(--space-lg);
  gap: var(--space-lg);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 12px;
  font-weight: 300;
}

.footer__brand {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.footer__col--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__ulaval-logo {
  height: 90px;
  width: auto;
}

.footer__col a:hover { text-decoration: underline; }

.footer__col--right { align-items: flex-end; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  :root { --space-lg: 2rem; }

  .hero__sub { grid-template-columns: 1fr; }
  .hero__desc { border-right: none; border-bottom: var(--border-light); }

  .about__grid { grid-template-columns: 1fr; }
  .about__col--label { display: none; }
  .about__col--stats {
    flex-direction: row;
    border-top: var(--border-light);
  }

  .programme__item {
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
  }

  .lieu__map-full { height: 360px; }
  .lieu__info-row { grid-template-columns: 1fr 1fr; }
  .lieu__info-block--cta {
    grid-column: 1 / -1;
    border-right: none;
    border-top: var(--border-light);
    padding: var(--space-lg);
  }

  .honneur__grid { grid-template-columns: 1fr; }
  .honneur__col--label { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--right { align-items: flex-start; }
}

@media (max-width: 600px) {
  .nav__center { display: none; }
  .hero__title { font-size: clamp(44px, 14vw, 100px); }
  .footer__grid { grid-template-columns: 1fr; }
  .lieu__map-full { height: 280px; }
  .lieu__info-row { grid-template-columns: 1fr; }
  .lieu__info-block { border-right: none; border-bottom: var(--border-light); }
  .lieu__info-block--cta { border-bottom: none; }
}
