/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #0a5db3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/*
 * Container sizing
 * We increase the maximum width and horizontal padding of the main container
 * to give more breathing room on larger displays. A wider max‑width and
 * a higher percentage width ensures that content does not feel cramped,
 * while still centering nicely on smaller screens.
 */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
  color: #0a5db3;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #0a5db3;
  font-weight: 500;
  transition: border-bottom 0.2s;
}

.nav-links li a:hover {
  border-bottom: 2px solid #0a5db3;
}

/* Hero section */

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/hero-bg.png');
  /* Taille et animation: on agrandit la taille horizontale pour un effet de déplacement */
  background-size: 200% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  padding: 9rem 0;
  text-align: center;
  color: #fff;
  animation: heroSlide 30s linear infinite;
}

/* Add a subtle overlay on hero for better text contrast */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 25, 65, 0.3);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #e6e6e6;
}

.hero .cta-button {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.hero .cta-button:hover {
  background-color: #ffffff;
  color: #0a5db3;
}

/* Section headings */
section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #0a5db3;
}

/* About section */
.about-section p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Features section */
.features-section {
  background-color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background-color: #fdfaf5;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-item h3 {
  margin-bottom: 0.5rem;
  color: #0a5db3;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Quality section */
/* Quality section with decorative background */
.quality-section {
  position: relative;
  /* abstract background image */
  background-image: url('../images/section-bg1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay to improve readability on quality background */
.quality-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 0;
}

/* ensure content appears above overlay */
.quality-section .container {
  position: relative;
  z-index: 1;
}

.quality-section p {
  margin-bottom: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* History section */
/*
 * History section with decorative background.
 * We reuse one of the abstract swirl backgrounds to give this section
 * a distinctive look while maintaining legibility via a translucent
 * white overlay.
 */
.history-section {
  position: relative;
  background-image: url('../images/section-bg2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.history-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 0;
}

.history-section .container {
  position: relative;
  z-index: 1;
}

.history-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Products section */
/* Products section with decorative background */
.products-section {
  position: relative;
  background-image: url('../images/section-bg2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay to improve readability on products background */
.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 0;
}

.products-section .container {
  position: relative;
  z-index: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-item img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}

.product-item h3 {
  margin-bottom: 0.5rem;
  color: #0a5db3;
  font-weight: 600;
}

.product-item p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Usage section */
/*
 * Usage section with subtle background and overlay.
 * An abstract backdrop adds visual interest without overpowering the
 * instructional content. A translucent layer ensures text and icons
 * remain crisp and clear.
 */
.usage-section {
  position: relative;
  background-image: url('../images/section-bg1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.usage-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  z-index: 0;
}

.usage-section .container {
  position: relative;
  z-index: 1;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.usage-item {
  background-color: #fdfaf5;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.usage-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.usage-item h3 {
  margin-bottom: 0.5rem;
  color: #0a5db3;
  font-weight: 600;
}

.usage-item p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Icons for usage steps */
.usage-icon {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto 0.5rem auto;
}

.usage-section h3 + ul {
  margin-top: 1.2rem;
}

.advantages-list {
  list-style: disc;
  margin-left: 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Certifications section */
.certifications-section {
  background-color: #fdfaf5;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cert-item {
  background-color: #fff;
  border-left: 4px solid #0a5db3;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cert-item h3 {
  margin-bottom: 0.5rem;
  color: #0a5db3;
  font-weight: 600;
}

.cert-item p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Contact section */
.contact-section {
  background-color: #ffffff;
  text-align: center;
}

.contact-section p {
  max-width: 700px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-section a {
  color: #0a5db3;
  font-weight: 500;
  text-decoration: underline;
}

.contact-section a:hover {
  text-decoration: none;
}

/* Footer */
footer {
  background-color: #0a5db3;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

footer p {
  font-size: 0.9rem;
}

/*
 * Animations & interactions
 *
 * Les cartes de fonctionnalités, produits, usages et certifications
 * apparaissent avec une animation de fondu et de translation verticale.
 */



/*
 * Initial state for animated items. We rely on JavaScript (via
 * IntersectionObserver) to add an 'in-view' class once the items
 * enter the viewport. Until then, they remain invisible and shifted
 * downward slightly. When the 'in-view' class is applied, they
 * transition to full opacity and their natural position.
 */
.feature-item,
.product-item,
.usage-item,
.cert-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-item.in-view,
.product-item.in-view,
.usage-item.in-view,
.cert-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hero background subtle movement */
@keyframes heroSlide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/*
 * Increase vertical spacing for sections
 * To further separate the content blocks and improve scannability, we
 * significantly increase the top and bottom paddings. A larger margin
 * below each section prevents them from feeling stacked on top of one
 * another, especially on mobile devices.
 */
.about-section,
.features-section,
.quality-section,
.history-section,
.products-section,
.usage-section,
.certifications-section,
.contact-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  margin-bottom: 6rem;
}

/* Wave divider styling */
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px; /* avoid gap between sections */
}