/* Police pour faire panneau d'aeroport, style 7 segments */
/* Regular */
@font-face {
  font-family: 'Digital7';
  src: url('./fonts/digital-7.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
/* Italic */
@font-face {
  font-family: 'Digital7';
  src: url('./fonts/digital-7\ \(italic\).ttf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

/* Police pour la piste */
@font-face {
  font-family: 'Airborn86';
  src: url('./fonts/Airborne\ 86.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Police plus lisible, pour les panneaux d'affichage */
@font-face {
  font-family: 'VCR';
  src: url('./fonts/VCR_OSD_MONO_1.001.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* --------------- Les variables ---------------- */
body{
  --police_panneau: 'Digital7';
  --police_piste: 'Airborn86';
  --police_lisible: 'VCR';
}
/* éviter que les liens aient l'apparence classique bleu + soulignés */
a {
  color: inherit; /* hérédité de la div parente */
  text-decoration: none;
}
/* style du lien au survol, pour voir quand même que c'est un lien */
a:hover {
  opacity: 0.8;
  text-decoration: underline;
}


/* Image qui se répète, avec effet parallaxe JS */
.background-clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 500%;
  background-image: url('./images/sky1.jpg');
  background-repeat: repeat;
  background-size: 800px;
  z-index: -1; /* stay behind everything */
  will-change: transform;
}

html, body {
  margin: 0;
  padding: 0;
  /*background: lightblue;*/
  color: #fff;
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
}

/*-------------- Partie avion au centre ---------------*/
.center-icon {
  position: fixed;
  top: -140px;
  left: 50%;
  transform: translate(-50%, -50%)  rotate(180deg); 
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(135deg, lightgrey, darkgrey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.5);
  visibility: visible;
  animation: 2s ease-in-out takeoff forwards;
  animation-delay: 0.2s;
}
@keyframes takeoff {
    0% {visibility: visible; top: -140px;}
    100% {visibility: visible; top:50%;}
}
.avion{
  width: 300px;
  height: auto;
  filter: drop-shadow(0px 0px 4px darkgrey);
  animation: 1.8s ease-in takeoff-ombre forwards; 
  animation-delay: 0.4s;
}
@keyframes takeoff-ombre {
    0% {filter: drop-shadow(0px 0px 4px darkgrey);}
    100% {filter: drop-shadow(-40px -40px 4px darkgrey);}
}

/*-------------- Partie piste ---------------*/
.runway-container{
  /*border: 2px solid blue;*/
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  margin-bottom: 200px;
  padding-bottom: 100px;
  background-color: lightgrey;
  background-image: url(./images/grass1.png);
  background-repeat: repeat;
  background-size: 100px;
}
.runway{
  /*border: 2px solid red;*/
  border-bottom: 4px solid white;
  border-left: 4px solid white;
  border-right: 4px solid white;
  height: 100%; 
  width: 300px;
  padding: 0px 10px 10px 10px;
  background-color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.center-line{
  border: 5px dashed white;
  height: 100%;
}
.bearing{
  padding-left: 35px;
  margin: 0px;
  font-size: 3rem;
  font-family: var(--police_piste);
}
#bear1{
  margin-top: 20px;
}
#bear2{
  margin-bottom: 20px;
}
.small-text{
  font-size: 1rem;
}
.end-container{
  /*border: 1px solid blue;*/
  height: 100px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.end-line{
  height: 100%;
  width: 5%;
  background-color: white;
}
.scroll-text{
  position: fixed;
  top: 700px;
  font-size: 2rem;
  font-weight: bold;
  color: #333333;
  opacity: 0; /* start invisible */
  transition: opacity 1s ease; /* smooth fade in */
  animation: pulse 2s ease-in-out infinite;
  animation-delay: 3s;
  z-index: 10;
}
/* Pulsing animation */
@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
/* Fade-in after 1s (JS toggles this) */
.scroll-text.visible {
  opacity: 0.8;
}
/* Fade-out once scrolling */
.scroll-text.fade-out {
  /*
  opacity: 0;
  transform: translateY(20px);
  animation: none;
  pointer-events: none;
  transition: opacity 1s ease;
  */
  visibility: hidden;
}

.runway-container-end{
  /*border: 2px solid blue;*/
  height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  margin-top: 200px;
  padding-top: 100px;
  background-color: lightgrey;
  background-image: url(./images/grass1.png);
  background-repeat: repeat;
  background-size: 100px;
}
.runway-end{
  /*border: 2px solid red;*/
  border-bottom: none;
  border-left: 4px solid white;
  border-right: 4px solid white;
  border-top: 4px solid white;
  height: 100%; 
  width: 300px;
  padding: 10px;
  background-color: black;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
.bearing-end{
  padding-left: 0px;
  margin: 20px;
  font-size: 3rem;
  font-family: var(--police_piste);
}

/*-------------- Partie texte et infos qui apparaissent sur les cotes ---------------*/
.section {
  /*border: 2px solid red;*/
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px; /* Space between the two boxes */
  overflow: hidden;
}
/* Square boxes */
.square {
  width: 500px;
  /*height: 200px;*/
  background: #1a1a1a;
  border: 4px solid lightgrey;
  border-radius: 10px;
  opacity: 0;
  position: relative;
  transition: all 1.2s ease-out;
  display: flex;
  align-items: left;
  justify-content: center;
  flex-direction: column;
  text-align: left;
  padding: 20px;
  padding-top: 5px;
}
.bill-title{
  font-size: 2.5rem;
  font-weight: bold;
  margin: 10px 0px;
  padding: 0px;
  align-items: top;
}
.bill-title p{
  color: darkgoldenrod !important;
  font-family: var(--police_panneau);
  margin: 0px;
  padding: 0px;
}
.bill-text{
  color: white;
  margin: 2px;
  text-transform: uppercase;
  font-family: var(--police_lisible);
  font-size: 1.45rem;
  letter-spacing: 1.2px;
}
.square hr{
  margin: 5px 0px;
}
.photo-container{
  align-items: center;
  padding: 40px;
}
.img_portrait{
  width: 330px;
  display: block; /* optional: removes inline spacing */
  border-radius: 10px;
  border: 4px solid darkgoldenrod;
}

/*-------------- Animation d'apparition des boites depuis les cotes ---------------*/
/* Slide in from left */
.left {
  transform: translateX(-800px);
}
/* Slide in from right */
.right {
  transform: translateX(800px);
}
/* Active state when in view */
.left.active {
  opacity: 1;
  transform: translateX(-200px);
}
.right.active {
  opacity: 1;
  transform: translateX(200px);
}

/* Responsive stacking for small screens */
@media (max-width: 600px) {
  .section {
    flex-direction: column;
    gap: 30px;
  }
  .left, .right {
    transform: translateX(0);
  }
}