/* ================================================================
   Page BTTF — HTML/CSS pur (page unique, 2 logos)
   Fond plein écran repris de la landing techno2main.fr :
     - illustration opacity-40 : src/components/landing/Hero.tsx
     - voile de lisibilité    : src/styles/landing.css (.landing-hero-overlay)
     - couleur de fond        : src/styles/global.css
   Logos : bttf.png (BTTF) / fbtg.png (FBTG)
           -> bascule au clic sur la DeLorean, même page (voir index.html)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  /* Couleur de fond (repli avant chargement de l'illustration) */
  background: hsl(220 30% 8%);
}

body {
  margin: 0;
  min-height: 100%;
  line-height: inherit;
  background: none;
  color: hsl(200 20% 90%);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Protection légère des images (complète le blocage du glisser-déposer) */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Page : le logo est centré sur toute la hauteur ---------- */

.landing-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: hsl(220 30% 8%);
  color: hsl(200 20% 90%);
}

/* Le contenu passe au-dessus du fond plein écran */
.landing-page main {
  position: relative;
  z-index: 1;
}

/* ---------- Fond plein écran (toute la page) ---------- */

.page-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.page-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;                 /* illustration opacity-40 (Hero.tsx) */
}

/* Voile de lisibilité (landing.css : .landing-hero-overlay) */
.page-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(
    to bottom,
    hsl(220 30% 8% / 0.6),
    hsl(220 30% 8% / 0.8),
    hsl(220 30% 8%)
  );
}

/* ---------- Logo BTTF / FBTG ---------- */

.logo-container {
  position: relative;
  display: inline-block;
  line-height: 0;
}

/* Images 300 x 450 px (ratio 2/3).
   Hauteur limitée par l'écran (80 vh), par 60 rem, ou par 138 vw
   (= 92 vw de large) : le ratio reste donc toujours intact. */
.logo-img {
  display: block;
  height: min(80vh, 60rem, 138vw);
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}

/* Zone cliquable uniquement sur la DeLorean (bascule BTTF <-> FBTG) */
.car-link {
  position: absolute;
  left: 28%;
  bottom: 1%;
  width: 44%;
  height: 10%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.car-link:focus-visible {
  outline: 2px solid #43a7de;
  outline-offset: 4px;
  border-radius: 0.25rem;
}