/* reset global styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

/* principal background */
main {
    position: relative;
    background-image: url(../assets/imgs/curtainBacground.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;

}

/* Titre principal*/
h1 {
    font-size: 5.5rem;
    color: rgb(38, 131, 212);
    margin: 200px auto;
    text-align: center;
    text-shadow: 0px 0px 10px rgba(214, 70, 27, 0.904);
}

/* <<<<<<<<<<<<<< all semantic tags >>>>>>>>>>>>>> */

/*Background and curtain animation */
.curtain {
    position: absolute;
    background-image: url(../assets/imgs/curtainPortail.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transition: 2.5s ease-in-out, opacity 2s ease-in;
    /* transform: translateY(-100%);  */
    opacity: 1;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.5);

}

/* button positionning */
.btn-warning {
    position: absolute;
    top: 60%;
    left: 52%;
    transform: translate(-70%, -50%);
    padding: 10px;
}

/* button */
.btn-open {
    background-color: rgb(192, 95, 95);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 2.5rem;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* cacher l'icône au départ */
.logo-icon {
    display: none;
}

/* effet au survol */
.btn-open:hover {
    background: transparent;
    /* background-color:  rgb(192, 95, 95); */
    box-shadow: 0 6px 8px rgba(250, 244, 244, 0.137);
    transform: scale(1.05);
    border-radius: 50%;
    /* devient rond */
    padding: 15px;
    /* ajuste pour qu'il reste joli */
}

/* au survol : cacher le texte et montrer l'icône */
.btn-open:hover .btn-text {
    display: none;
}

.btn-open:hover .logo-icon {
    font-size: 2rem;
    width: 100px;
    display: inline;
}

/* CSS RESPONSIV DESIGN */

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin: 100px auto;
  }

    
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
    margin: 100px auto;
  }
  .btn-open {
    font-size: 1rem;
    padding: 5px 10px;
  }
    .logo-icon {
    width:  0.5rem;
    height: auto;
  }
}
