@import url('global.css');
/* Styles pour la bannière */
.banner {
  position: relative;
  background-image: url(../img/banniere.webp);
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  height: 500px;
  background-repeat: no-repeat;
}

.banner .title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.banner h1 {
  margin: 0;
  font-size: 48px;
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.7);
}

/* ===== VERSION DESKTOP ===== */

/* Desktop (769px et plus) */
@media (min-width: 769px) {
  .banner .title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: none;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
  .banner {
    height: 300px;
  }
  
  .banner .title {
    width: 100%;
  }
  
  .banner h1 {
    font-size: 28px;
    width: 100%;
    text-align: center;
  }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
  .banner {
    height: 200px;
  }
  
  .banner .title {
    width: 100%;
  }
  
  .banner h1 {
    font-size: 20px;
    width: 100%;
    text-align: center;
    padding: 0 10px;
  }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
  .banner {
    height: 150px;
  }
  
  .banner .title {
    width: 100%;
  }
  
  .banner h1 {
    font-size: 16px;
    width: 100%;
    text-align: center;
    padding: 0 5px;
  }
}
