/* Base & Reset */
html {
  scroll-behavior: smooth;
}

* {
  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: #fff;
  transition: direction 0.3s, text-align 0.3s;
}
#home{
  width: 100%;
  background-image: url(images/piqure-seringue.jpg);
  background-size: cover;        /* ou contain, selon l'effet souhaité */
  background-repeat: no-repeat;
  background-position: right center; /* ← ceci déplace l'image vers la droite */
}



/* Style du sélecteur dans la navigation */
.nav ul {
  display: flex;
  align-items: center;
  gap: 20px; /* espace entre liens */
}

.lang-item {
  margin-left: 15px; /* un peu d'espace avant le sélecteur */
}

.lang-item select {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.lang-item select:hover {
  border-color: #007a7a;
}

/* Version mobile : le sélecteur reste visible dans le menu */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }
  .lang-item {
    margin-left: 0;
    align-self: flex-end;
  }
 .lang-item select {
    min-width: 70px;
    max-width: 100px;
    font-size: 14px;
  }

 
}




#logo-image{
  width: 100%;
  height: 50px; 
}

a img {
  border: none;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Language Switcher – en haut à gauche */
.lang-switcher {
  position: fixed;
  top: 15px;
  left: 45%; 
  z-index: 2000;
  background: white;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.lang-switcher select {
  padding: 6px 10px;
  font-size: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  font-weight: 600;
}
/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #007a7a;
}
.logo img {
  height: 40px;
  width: auto;
}
.nav ul {
  display: flex;
  gap: 25px;
}
.nav a {
  font-weight: 600;
  transition: color 0.3s;
}
.nav a:hover {
  color: #007a7a;
}
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #e0f7f7, #ffffff);
  padding: 180px 0 100px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #005f5f;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}
.btn {
  display: inline-block;
  background-color: #007a7a;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s;
}
.btn:hover {
  background-color: #005f5f;
}

/* Sections */
.section {
  padding: 80px 0;
}
.section h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #005f5f;
  text-align: center;
}
.section p {
  margin-bottom: 15px;
  text-align: justify;
}
.bg-light {
  background-color: #f9f9f9;
}

/* Values */
.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 40px 0;
}
.value-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 95, 95, 0.15);
}
.value-card h3 {
  color: #007a7a;
  margin-bottom: 10px;
}

.tagline {
  text-align: center;
  font-style: italic;
  margin-top: 30px;
  color: #555;
}

/* Products */
.product-placeholder {
  text-align: center;
  margin-top: 40px;
}
.product-placeholder img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.product-placeholder p {
  margin-top: 15px;
  font-weight: 500;
}

/* Contact */
#contact p {
  text-align: center;
  margin-bottom: 12px;
}
#contact a {
  color: #007a7a;
  font-weight: 600;
}
#contact a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #005f5f;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    background: white;
    width: 100%;
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
  }
  .nav.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero {
    padding: 140px 0 70px;
  }
}

/* RTL (Arabic) */
html[dir="rtl"] {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html[dir="rtl"] .container,
html[dir="rtl"] .nav ul,
html[dir="rtl"] .values,
html[dir="rtl"] .product-placeholder,
html[dir="rtl"] #contact p {
  text-align: right;
}
html[dir="rtl"] .lang-switcher {
  right: auto;
  left: 15px;
}




/* Animations au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}



@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 122, 122, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(0, 122, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 122, 122, 0); }
}
.btn {
  display: inline-block;
  background-color: #007a7a;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}
.btn:hover {
  background-color: #005f5f;
  transform: scale(1.05);
  animation: none;
}

/* Grille de produits */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 95, 95, 0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #f5f5f5;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 18px 10px 10px;
  color: #005f5f;
}

.product-card p {
  padding: 0 15px 15px;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}



/* Animation de focus lors du clic sur un lien de navigation */
@keyframes highlightSection {
  0% { 
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 95, 95, 0.2);
  }
  50% { 
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 95, 95, 0.2);
  }
  100% { 
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 95, 95, 0.2);
  }
}

.section.highlighted,
.hero.highlighted {
  animation: highlightSection 0.8s ease-out;
}