/* ------------------------------
   🌐 Komondi - Global Stylesheet
   Last Updated: Nov 2025
--------------------------------*/

body {
  font-family: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  direction: ltr;
  text-align: left;
}

/* ---------- Header ---------- */
header {
  background: linear-gradient(90deg, #0069ff, #00aaff);
  color: white;
  text-align: center;
  padding: 35px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.4;
}

header img {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}

/* ---------- Navigation Buttons ---------- */
.nav-container {
  text-align: center;
  margin: 25px 0;
}

.nav-button {
  text-decoration: none;
  background: #007BFF;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
  margin: 5px;
}

.nav-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* ---------- Content Section ---------- */
section {
  max-width: 900px;
  width: 95%;
  margin: 25px auto;
  background: white;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

h2 {
  color: #007BFF;
  font-size: 20px;
  border-left: 4px solid #007BFF;
  padding-left: 10px;
}

h3 {
  color: #0056b3;
  margin-top: 20px;
  font-size: 18px;
}

ul {
  padding-left: 25px;
  margin-top: 10px;
}

a {
  color: #007BFF;
  text-decoration: none;
  word-break: break-word;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #007BFF, #00aaff);
  margin: 40px auto;
  width: 70%;
  border-radius: 2px;
}

/* ---------- Warning Box ---------- */
.warning-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  color: #856404;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 30px 10px;
  direction: ltr;
  word-break: break-word;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  header {
    padding: 25px 10px;
  }
  header h1 {
    font-size: 20px;
  }
  section {
    width: 90%;
    padding: 18px 15px;
  }
  h2 {
    font-size: 18px;
  }
  h3 {
    font-size: 16px;
  }
  p,
  li {
    font-size: 15px;
  }
  .nav-button {
    padding: 8px 14px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 18px;
  }
  section {
    width: 92%;
    padding: 15px;
  }
  h2 {
    font-size: 17px;
  }
}
/* ---------- Contact Page (contactez-nous.html) ---------- */
.contact-container {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form label {
  font-weight: bold;
  display: block;
  margin-top: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.contact-form button {
  background: linear-gradient(90deg,#0069ff,#00aaff);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  font-weight: bold;
}

.contact-form button:hover {
  opacity: 0.9;
}

.alert-warning {
  display: none;
  background: #fff8e1;
  border: 1px solid #ffecb3;
  color: #7a5f00;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
}

.note {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 12px;
  border-radius: 8px;
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

/* ---------- Success Overlay ---------- */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup {
  background: white;
  padding: 30px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: popupFade 0.6s ease;
}

.popup h3 { color: #155724; margin-top: 10px; }
.popup p { color: #555; font-size: 14px; }
.emoji { font-size: 45px; }

@keyframes popupFade {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Footer Buttons ---------- */
.back-btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: bold;
}

.back-btn:hover {
  background: #0056b3;
}

/* ---------- Logo ---------- */
.logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 10px auto;
}
/* ---------- Mobile Drawer Menu ---------- */

.drawer {
  position: fixed;
  top: 0;
  left: -320px;      /* إخفاء كامل خارج الشاشة */
  width: 290px;
  height: 100%;
  background: #ffffff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: left 0.35s ease-in-out;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.drawer.open {
  left: 0 !important;   /* تظهر عند الضغط على الزر */
}

.drawer a {
  display: block;
  padding: 14px 10px;
  color: #007bff;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}

.drawer a:hover {
  background: #f1f1f1;
}

.menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  background: #007bff;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}


