html {
  scroll-behavior: smooth;
  }

@font-face {
  font-family: 'B Nazanin';
  src: url('fonts/B-Nazanin.woff2') format('woff2'),
        url('fonts/B-Nazanin.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body{
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  direction: rtl;
  }

:root {
  --bg-color: #fff;
  --text-color: #15202B;
  }

.dark-theme {
  --bg-color: #15202B;
  --text-color: #fff;
  }


  /* div & image principale */
  .div-principal{
  margin: 20px 50px;
  position: relative;
  }

.div-principal h1{
  font-size: 40px;
  color: #29eaff;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-100%, -100%);
  font-weight: 600;
  font-style: italic;
  }

.img-principale{
  width: 100%;
  max-height: 500px;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: brightness(80%);
  box-shadow: #57b1e4 0px 0px 10px;
  }

  /* information */
.information{
  justify-content: space-around;
  margin: 50px 0;
  padding: 0 50px;
  box-sizing: border-box;
  }

.information-box{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: 10px;
  vertical-align: top;
  }

.information h2{
  font-size:30px;
  color: var(--text-color);
  text-align: center;
  font-weight: 600;
  margin:10px 0;
  }

.information-box h3{
  font-size: 25px;
  color: var(--text-color);
  text-align: center;
  font-weight: 600;
  align-items: flex-start;
  display: flex;
  margin: 0;
  }

.divs-information p{
  font-size: 18px;
  color: var(--text-color);
  font-weight: 400;
  text-align: right;
  }

.p{
  text-align: center;
}

.divs-information{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: fit-content;
  border-radius: 10px;
  box-shadow: #57b1e4 0px 0px 10px;
  margin:  8px 0;
  padding: 30px;
  }

.box {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.box.visible {
  opacity: 1;
  transform: translateY(0);
}



  /* --------------------- TABLETTE --------------------- */

@media  (max-width: 1024px){
.div-principal {
  margin: 20px;
  position: relative;
  }

.div-principal h1 {
  font-size: 25px;
  }

.img-principale {
  height: 400px;
  }

  /* information */
.information{
  padding: 0 ;
  }

.divs-information{
  max-width: 80%;
  padding: 20px;
  }
  }
    /* mobil */

  @media  (max-width: 768px) {
/* div & image principale */
.div-principal h1{
  font-size: 20px;
  }

.img-principale{
  width: 100%;
  }

  /* information */
.information{
  margin-top: 20px;
  }

.information h2{
  font-size: 20px;
  }

.information-box h3{
  font-size: 16px;
  }

.information p{
  font-size: 12px;
  }
  }

