/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fffe;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* RTL Support */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .hero-content {
  flex-direction: row-reverse;
}

.rtl .contact-item {
  text-align: right;
}

.rtl .hero-features {
  justify-content: flex-end;
}

.rtl .footer-content {
  flex-direction: row-reverse;
}

/* Header */
header {
  background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  background: linear-gradient(135deg, #1aa34a 0%, #1bc653 100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.title-section h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 300;
}

.main-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.lang-switch {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  min-height: 500px;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 2.5rem;
  color: #1db954;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1db954;
  font-weight: 500;
}

.feature i {
  font-size: 1.2rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.main-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(29, 185, 84, 0.2);
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: translateY(-10px);
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 2.2rem;
  color: #1db954;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Services Section */
.services-section {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f8fffe;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(29, 185, 84, 0.15);
  border-color: #1db954;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1db954, #1ed760);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Parapharmacie Section */
.parapharmacie-section {
  background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
}

.parapharmacie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.para-category {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.para-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(29, 185, 84, 0.15);
}

.para-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
}

.para-category h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.para-category p {
  color: #666;
  line-height: 1.6;
}

/* Horaires Section */
.horaires-section {
  background: white;
}

.horaires-content {
  display: flex;
  justify-content: center;
}

.horaires-card {
  background: linear-gradient(135deg, #1db954, #1ed760);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(29, 185, 84, 0.3);
  max-width: 500px;
  width: 100%;
}

.day-group {
  margin-bottom: 2rem;
}

.day-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
}

.day-item:last-child {
  border-bottom: none;
}

.day-item.closed {
  opacity: 0.7;
}

.day {
  font-weight: 600;
}

.time {
  font-weight: 500;
}

.horaires-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
}

.horaires-note i {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.horaires-note p {
  margin: 0;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(29, 185, 84, 0.15);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1db954, #1ed760);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.contact-details a {
  color: #1db954;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #1aa34a;
  text-decoration: underline;
}

.legal-info {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem;
  background: rgba(29, 185, 84, 0.1);
  border-radius: 10px;
  color: #666;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1aa34a 0%, #1bc653 100%);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.footer-info p {
  opacity: 0.9;
  font-style: italic;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-section {
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav {
    justify-content: center;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text h2 {
    font-size: 2rem;
  }
  
  .hero-features {
    justify-content: center;
  }
  
  .services-grid,
  .parapharmacie-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  .horaires-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-text h2 {
    font-size: 1.7rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .service-card,
  .para-category,
  .contact-item {
    padding: 1.5rem;
  }
  
  .main-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .logo {
    width: 60px;
    height: 60px;
  }
  
  .title-section h1 {
    font-size: 1.4rem;
  }
}