/* Global */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@200..1000&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Noto+Kufi+Arabic:wght@100..900&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

body {
  margin: 0;
  display: flex;
  direction: rtl;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.site-name {
  position: fixed;
  top: 20px;
  left: 25%;
  padding-right: 10px;
  transform: translateX(-50%);
  font-family: 'Tajawal', sans-serif;
  font-size: 60px;
  font-weight: bold;
  color: RGB(16, 111, 174);
  text-align: right;
  z-index: 1000;
  white-space: nowrap;
}
.logo {
  position: fixed;
  top: 20px;
  left: 80.58%;
  padding-left: 10px;
  z-index: 1000;
  white-space: nowrap;
}
.logo img {
  width: 80px;
  height: auto;
  display: block;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: absolute;
  top: 70px;
  right: 50px;
  z-index: 1100;
}
.hamburger .bar {
  width: 30px;
  height: 5px;
  background-color: rgb(16, 111, 174);
  transition: all 0.3s ease;
}
.hamburger:hover .bar {
  background-color: orange;
}

.home-icon {
  position: absolute;
  top: 20px;
  left: -200px;
  font-size: 25px;
  z-index: 1100;
  cursor: pointer;
}

.sidebar {
  font-family: "Tajawal", serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 0.8;
  width: 150px;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  transform: translateX(150%);
}

.sidebar.active {
  transform: translateX(0);
}
.sidebar ul {
  list-style-type: none;
  padding-right: 48px;
  margin: 0;
}
.sidebar ul li {
  cursor: pointer;
  color: rgb(16, 111, 174);
  text-align: right;
  padding: 5px;
  margin-bottom: 2px;
  transition: transform 0.3s ease, font-size 0.1s ease;
}
.sidebar ul li:hover {
  transform: translateX(-35px);
  color: rgb(44, 43, 42);
}

.content {
  width: 100%;
  height: 100%;
  position: relative;
  transition: margin-right 0.3s ease;
}

.containerLogo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.containerLogo img {
  max-width: 100%;
  height: auto;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}
.containerLogo h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: 50px;
  font-weight: bold;
  color: rgb(252, 198, 116);
  text-align: center;
  margin-top: -50px;
  z-index: 1000;
  white-space: nowrap;
}
.section {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: right;
  padding: 20px;
  margin-top: 50px;
  box-sizing: border-box;
  position: absolute;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s ease-in, opacity 0.5s ease-in-out;
}
.section.active {
  transform: translateX(0);
  opacity: 1;
}

.responsive-container {
  display: flex;
  flex-direction: row;
  gap: 5px;
  width: 80%;
  max-height: 500px;
  max-width: 1200px;
}
.responsive-container img {
  max-width: 500px;
  max-height: 500px;
  border: 1px solid;
  border-color: rgb(58, 113, 149);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.text-container {
  width: 100%;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.text-container h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: rgb(74, 73, 73);
  border-right: 0.1px solid rgb(127, 132, 133, 0.3);
  text-align: right;
  padding-right: 10px;
  margin-top: 1rem;
}
.text-container p {
  max-width: 500px;
  max-height: 500px;
  text-align: justify;
  font-family: 'Tajawal', sans-serif;
  font-size: 21px;
  line-height: 1;
  font-weight: 300;
  border-right: 0.1px solid rgb(127, 132, 133, 0.3);
  padding-right: 10px;
  margin: 0;
}
.text-container p b {
  color: rgb(90, 91, 91);
}

.content {
  flex: 1;
  width: 100%;
  position: relative;
}

.footer-container {
  width: 100%;
  text-align: center;
  margin: 5px;
  padding: 5px;
  z-index: 10;
  justify-content: center;
  align-items: center;
}
.footer-container p {
  font-family: "Tajawal", serif;
  font-size: 18px;
}

.social-media {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.social-media li {
  margin-top: -15px;
}
.social-media i{
  font-size: 30px;
  color:#1877f2;

  }
.social-media a {
  color: #333;
  font-size: 18px;
}
.instagram-badge {
  position: fixed;
  bottom: 50%;
  left: 5px;
  width: 35px;
  height: 140px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10%;
  align-content: center;
  align-items: center;
  z-index: 1000;
}
.instagram-badge a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
}
.instagram-badge:hover {
  transform: scale(1.1);
  transition: all 0.3s ease;
}
.text-span {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: rgb(197, 196, 196);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-right: 8px;
}

@media (max-width: 768px) {
  .site-name {
    font-size: 18px;
    top: 5px;
    left: 15%;
    padding-left: 2px;
  }
  .logo {
    right: 15%;
    top: 2%;
  }
  .logo img {
    width: 20px;
    height: auto;
    display: block;
  }
  .hamburger {
    display: flex;
    top: 20px;
    right: 25px;
  }
  .sidebar {
    transform: translateX(150%);
  }
  .sidebar ul li {
    transition: transform 0.3s ease, font-size 0.1s ease;
    background-color: rgba(240, 248, 255, 0.6);
  }
  .content {
    margin-right: 5px;
    width: 100%;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .section {
    margin-top: 10px;
  }
  .containerLogo {
    max-width: 90%;
  }
  .text-container h1 {
    font-size: 20px;
  }
  .text-container p {
    max-width: 500px;
    max-height: 500px;
    text-align: right;
  }
  .responsive-container {
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    height: auto;
    padding: 20px;
    margin-top: -80px;
  }
  .responsive-container img {
    width: 100%;
    max-width: 100%;
  }
  .responsive-container p {
    font-size: 1rem;
    padding: 5px;
  }
  footer {
    flex-direction: row;
    align-items: center;
    padding: 5px;
  }
  
 .social-media i{
  font-size: 20px;
  }
  .footer-container p {
      font-family: "Tajawal", serif;
      font-size: 15px;
   }
 
  .text-span {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    color: rgb(197, 196, 196);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-right: 8px;
  }

  
}

/* Surface Pro  en mode portrait */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: portrait) {
  .site-name {
    font-size: 18px;
    top: 5px;
    left: 15%;
    padding-left: 2px;
  }
  .logo {
    right: 15%;
    top: 2%;
  }
  .logo img {
    width: 50px;
    height: auto;
    display: block;
  }
  .hamburger {
    top: 25px;
    right: 30px;
  }
  .sidebar ul li {
    font-size: 16px;
  }
  .responsive-container {
    flex-direction: column;
    align-items: center;
    width: auto;
    height: auto;
    padding: 20px;
    margin-top: -80px;
  }
  .responsive-container img {
    width: 100%;
    max-width: 100%;
  }
  .responsive-container p {
    font-size: 1rem;
    padding: 5px;
  }
}
/* Galaxy Tab spécifique en mode portrait */

@media (max-width: 800px) and (orientation: portrait) {
  .site-name {
    font-size: 18px;
    top: 5px;
    left: 15%;
    padding-left: 2px;
  }
  .logo {
    right: 15%;
    top: 2%;
  }
  .hamburger {
    top: 18px;
    right: 20px;
  }
  .sidebar ul li {
    font-size: 14px;
    background-color: rgba(240, 248, 255, 0.8);
  }
  .responsive-container {
    flex-direction: column;
    align-items: center;
    width: auto;
    height: auto;
    padding: 20px;
    margin-top: -80px;
  }
  .responsive-container img {
    width: 100%;
    max-width: 100%;
  }
  .responsive-container p {
    font-size: 1rem;
    padding: 5px;
  }
}

/* Tablettes et appareils tactiles en mode portrait */
@media (max-width: 1024px) and (pointer: coarse) and (orientation: portrait) {
  .site-name {
    font-size: 18px;
    top: 5px;
    left: 15%;
    padding-left: 2px;
  }
  .logo {
    right: 15%;
    top: 2%;
  }
  .hamburger {
    top: 18px;
    right: 20px;
  }
  .responsive-container {
    padding: 15px;
    margin-top: -60px;
  }
  .text-container h1 {
    font-size: 18px;
  }
  .text-container p {
    font-size: 0.9rem;
    text-align: right;
  }
  .responsive-container {
    flex-direction: column;
    align-items: center;
    width: auto;
    height: auto;
    padding: 20px;
    margin-top: -80px;
  }
  .responsive-container img {
    width: 100%;
    max-width: 100%;
  }
  .responsive-container p {
    font-size: 1rem;
    padding: 5px;
  }
}