:root {
  --color-white: #ffffff;
  --color-black: #111111;
  --color-gold: #cca300;   /* Bright Sun */
  --color-blue: #3edfff;   /* Vivid Blue */
  --color-red:  #ff2828;   /* Cherry Red */

  --font-serif-title: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  --font-serif-body:  "EB Garamond", Garamond, "Times New Roman", serif;

  --fade-duration: 0ms;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-serif-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  height: 100dvh;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ---- Slides ---- */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide--home   { background: var(--color-white); z-index: 1; }
.slide--dakar  { background: var(--color-gold);  z-index: 2; }
.slide--paris  { background: var(--color-blue);  z-index: 2; }
.slide--tokyo  { background: var(--color-red);   z-index: 2; }

/* ---- Titre central ---- */
.title-block {
  text-align: center;
  padding: 0 2rem;
  user-select: none;
}

.logo {
  display: block;
  margin: 0 auto;
  width: min(60vw, 820px);
  height: auto;
  pointer-events: none;
}

.slide--home .title-block {
  transform: translateY(-6vh);
}

.city {
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.city em {
  font-family: var(--font-serif-title);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ---- Zone centrale (trigger) ---- */
.hover-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(60vw, 780px);
  height: min(40vh, 340px);
  z-index: 10;
  /* invisible mais capture les mouvements */
  background: transparent;
}

/* ---- Footers ---- */
.footer {
  position: absolute;
  bottom: 3.2vh;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  line-height: 1.35;
}

.footer--left {
  left: 5vw;
  font-family: var(--font-serif-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer--right {
  right: 5vw;
  font-family: var(--font-serif-body);
  font-size: 15px;
  text-align: right;
  letter-spacing: 0.04em;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.footer-link:hover {
  opacity: 0.6;
}

.footer-link--strong {
  font-weight: 700;
}

.footer--left em,
.footer--right em {
  font-style: italic;
  text-transform: none;
}

.footer-text {
  display: block;
}

/* Footers en blanc sur les slides colorées */
.stage[data-active="dakar"] .footer,
.stage[data-active="paris"] .footer,
.stage[data-active="tokyo"] .footer {
  color: var(--color-white);
}

.stage[data-active="dakar"] .footer-link:hover,
.stage[data-active="paris"] .footer-link:hover,
.stage[data-active="tokyo"] .footer-link:hover {
  opacity: 0.75;
}

/* ---- Responsive mobile ---- */
@media (max-width: 720px), (hover: none) {
  .hover-zone { display: none; }

  /* Le PNG contient ~50% de marge blanche : on élargit pour que
     le texte visible soit visuellement proche des noms de villes. */
  .logo { width: 100vw; }

  .footer {
    bottom: max(2.4vh, env(safe-area-inset-bottom, 0px));
    max-width: 44vw;
  }

  .footer--left {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .footer--right {
    font-size: 12px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}
