/* =========================================================
GEMA IRRIGATION MAGHREB — style.css
========================================================= */

:root {
  --vert: #61b32e;
  --vert-fonce: #0d3f33;
  --bleu: #0b5fa5;
  --blanc: #ffffff;
  --gris-clair: #f5f5f5;
  --texte: #1c2b27;

  --radius: 14px;

  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* =========================================================
RESET / BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  padding-top: 76px;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.brand-text {
  font-family: var(--font-display);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* =========================================================
NAVBAR
========================================================= */

#mainNav {
  z-index: 1000;
  padding: 14px 0;

  background: rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 8px 25px rgba(13, 63, 51, 0.08);

  transition: all 0.3s ease;
}

.navbar-brand {
  color: var(--vert-fonce);
}

.navbar-brand #navLogo {
  width: auto;
  height: 40px;
}

.brand-text {
  color: var(--vert-fonce);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--vert);
}

.brand-text small {
  display: block;

  color: var(--bleu);

  font-size: 0.6rem;
  font-weight: 600;

  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  padding: 10px 18px !important;

  border-radius: 30px;

  color: var(--vert-fonce);

  font-weight: 600;

  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: var(--vert);
  color: var(--blanc);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 18px;

  border-radius: 30px;

  background: var(--vert);
  color: var(--blanc) !important;

  font-weight: 600;

  transition: all 0.2s ease;
}

.btn-nav-cta:hover,
.btn-nav-cta:focus {
  background: var(--vert-fonce);
  color: var(--blanc) !important;
}

/* =========================================================
HERO
========================================================= */

.hero {
  position: relative;

  overflow: hidden;

  padding: 130px 0 110px;

  background: linear-gradient(
    135deg,
    var(--vert-fonce) 0%,
    #113f34 55%,
    var(--bleu) 130%
  );

  color: var(--blanc);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 22px;
  padding: 6px 16px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.12);

  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero h1 {
  max-width: 650px;

  margin-bottom: 24px;

  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--vert);
}

.hero-text {
  max-width: 580px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-image {
  max-width: 100%;

  border-radius: 25px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);

  transition: transform 0.4s ease;
}

.hero-image:hover {
  transform: scale(1.03);
}

/* =========================================================
HERO BUTTONS
========================================================= */

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 15px 34px;

  border: none;
  border-radius: 50px;

  background: linear-gradient(135deg, var(--vert), var(--bleu));

  color: var(--blanc);

  font-weight: 700;

  box-shadow: 0 10px 25px rgba(11, 95, 165, 0.25);

  transition: all 0.35s ease;
}

.btn-primary-cta:hover,
.btn-primary-cta:focus {
  transform: translateY(-4px);

  color: var(--blanc);

  box-shadow: 0 18px 35px rgba(11, 95, 165, 0.35);
}

.btn-outline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 34px;

  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50px;

  background: rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(8px);

  color: var(--blanc);

  font-weight: 700;

  transition: all 0.35s ease;
}

.btn-outline-cta:hover,
.btn-outline-cta:focus {
  transform: translateY(-4px);

  background: var(--blanc);
  color: var(--vert-fonce);
}

/* =========================================================
HERO DECORATION
========================================================= */

.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(97, 179, 46, 0.25),
      transparent 45%
    ),
    radial-gradient(circle at 10% 85%, rgba(11, 95, 165, 0.3), transparent 50%);
}

/* =========================================================
SECTIONS COMMUNES
========================================================= */

.section-eyebrow {
  margin-bottom: 8px;

  color: var(--vert);

  font-size: 0.82rem;
  font-weight: 700;

  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 18px;

  color: var(--vert-fonce);

  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
}

.section-text {
  color: #4b5b57;

  font-size: 1.02rem;
  line-height: 1.7;
}

/* =========================================================
À PROPOS
========================================================= */

.section-about {
  padding: 120px 0;

  background: linear-gradient(to bottom, #ffffff 0%, #f9fbfa 100%);
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 16px;

  height: 100%;

  padding: 22px;

  border: 1px solid rgba(97, 179, 46, 0.12);
  border-radius: 18px;

  background: var(--blanc);

  color: var(--vert-fonce);

  font-weight: 600;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

  transition: all 0.35s ease;
}

.stat-box:hover {
  transform: translateY(-8px);

  box-shadow: 0 18px 35px rgba(13, 63, 51, 0.12);
}

.stat-box i {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;

  flex-shrink: 0;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--vert), var(--bleu));

  color: var(--blanc);

  font-size: 1.3rem;
}

.about-visual {
  height: 100%;

  overflow: hidden;

  border-radius: 24px;

  box-shadow: 0 20px 40px rgba(13, 63, 51, 0.18);
}

.about-image {
  display: block;

  width: 100%;
  height: 420px;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: scale(1.05);
}

/* =========================================================
SECTION PRODUITS
========================================================= */

.section-products {
  padding: 90px 0;

  background: var(--gris-clair);
}

.products-intro {
  max-width: 640px;
}

/* =========================================================
GRANDES CARTES
========================================================= */

.main-product-card {
  height: 100%;

  overflow: hidden;

  border: 1px solid rgba(13, 63, 51, 0.08);
  border-radius: 20px;

  background: var(--blanc);

  cursor: pointer;

  box-shadow: 0 8px 24px rgba(13, 63, 51, 0.08);

  transition: all 0.25s ease;
}

.main-product-card:hover,
.main-product-card:focus {
  transform: translateY(-6px);

  border-color: var(--vert);

  box-shadow: 0 16px 35px rgba(13, 63, 51, 0.15);
}

.main-product-image {
  height: 220px;

  overflow: hidden;

  background: var(--gris-clair);
}

.main-product-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.main-product-card:hover .main-product-image img {
  transform: scale(1.05);
}

.main-product-content {
  position: relative;

  padding: 22px;
}

.main-product-content h3 {
  margin: 0 40px 8px 0;

  color: var(--vert-fonce);

  font-size: 1.25rem;
  font-weight: 800;
}

.main-product-content p {
  margin: 0;

  color: #5c6a66;

  font-size: 0.9rem;
}

.product-arrow {
  position: absolute;

  top: 50%;
  right: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  transform: translateY(-50%);

  border-radius: 50%;

  background: var(--vert);
  color: var(--blanc);
}

/* =========================================================
NIVEAUX PRODUITS
========================================================= */

.product-level {
  display: none;

  margin-top: 45px;
  padding: 30px;

  border: 1px solid rgba(13, 63, 51, 0.07);
  border-radius: 20px;

  background: var(--blanc);

  box-shadow: 0 8px 25px rgba(13, 63, 51, 0.08);
}

.product-level.active {
  display: block;

  animation: productFadeIn 0.3s ease;
}

@keyframes productFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
TITRE DES NIVEAUX
========================================================= */

.product-level-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 25px;
}

.product-level-title h3 {
  margin: 0;

  color: var(--vert-fonce);

  font-size: 1.5rem;
  font-weight: 800;
}

.close-products {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: var(--gris-clair);
  color: var(--vert-fonce);

  cursor: pointer;

  transition: all 0.2s ease;
}

.close-products:hover,
.close-products:focus {
  background: var(--vert);
  color: var(--blanc);
}

/* =========================================================
CARTES CATÉGORIES
========================================================= */

.category-card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 18px;

  min-height: 150px;

  padding: 25px;

  border: 1px solid rgba(13, 63, 51, 0.06);
  border-radius: 16px;

  background: var(--gris-clair);

  cursor: pointer;

  transition: all 0.25s ease;
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-5px);

  border-color: var(--vert);

  background: var(--blanc);

  box-shadow: 0 10px 25px rgba(13, 63, 51, 0.1);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 55px;
  min-width: 55px;
  height: 55px;

  border-radius: 14px;

  background: linear-gradient(145deg, var(--vert), var(--vert-fonce));

  color: var(--blanc);

  font-size: 1.35rem;
}

.category-card h4 {
  margin: 0;
  padding-right: 30px;

  color: var(--vert-fonce);

  font-size: 1rem;
  font-weight: 700;
}

.category-card > span {
  margin-left: auto;

  flex-shrink: 0;

  color: var(--vert);
}

/* =========================================================
SOUS-CATÉGORIES
========================================================= */

.subcategory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 120px;

  padding: 24px;

  border: 1px solid rgba(13, 63, 51, 0.06);
  border-radius: 16px;

  background: var(--gris-clair);

  cursor: pointer;

  transition: all 0.25s ease;
}

.subcategory-card:hover,
.subcategory-card:focus {
  transform: translateY(-5px);

  border-color: var(--vert);

  background: var(--blanc);

  box-shadow: 0 10px 25px rgba(13, 63, 51, 0.1);
}

.subcategory-card h4 {
  margin: 0;

  color: var(--vert-fonce);

  font-size: 1rem;
  font-weight: 700;
}

.subcategory-card > span {
  margin-left: 15px;

  flex-shrink: 0;

  color: var(--vert);
}

/* =========================================================
LISTE DES PRODUITS
========================================================= */

.product-items {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 15px;
}

.product-item {
  padding: 18px 20px;

  border-left: 4px solid var(--vert);
  border-radius: 12px;

  background: var(--gris-clair);

  color: var(--vert-fonce);

  font-weight: 600;

  transition: all 0.2s ease;
}

.product-item:hover {
  transform: translateX(4px);

  background: var(--vert);

  color: var(--blanc);
}

/* =========================================================
CONTACT
========================================================= */

.section-contact {
  padding: 90px 0;

  background: var(--blanc);
}

.contact-info-card {
  height: 100%;

  padding: 35px;

  border-radius: 22px;

  background: linear-gradient(145deg, var(--vert-fonce), var(--bleu));

  color: var(--blanc);

  box-shadow: 0 20px 45px rgba(13, 63, 51, 0.18);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  color: var(--blanc);

  transition: transform 0.3s ease;
}

.contact-line:hover {
  transform: translateX(8px);
}

.contact-line i {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--blanc);

  color: var(--vert-fonce);

  font-size: 1.2rem;
}

.contact-line span {
  display: block;

  color: rgba(255, 255, 255, 0.6);

  font-size: 0.78rem;
}

.contact-line strong {
  font-size: 0.96rem;
  font-weight: 600;
}

/* =========================================================
INSTAGRAM
========================================================= */

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  margin-top: 18px;

  border-radius: 50%;

  background: var(--vert);

  color: var(--blanc);

  font-size: 1.2rem;

  transition: all 0.2s ease;
}

.instagram-link:hover,
.instagram-link:focus {
  transform: translateY(-2px);

  background: var(--bleu);

  color: var(--blanc);
}

/* =========================================================
GOOGLE MAPS
========================================================= */

.map-wrap {
  height: 100%;

  min-height: 380px;

  overflow: hidden;

  border-radius: var(--radius);

  box-shadow: 0 10px 30px rgba(13, 63, 51, 0.1);
}
.instagram-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--vert);
  color: var(--blanc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all .2s ease;
}

.instagram-link:hover {
  background: var(--bleu);
  color: var(--blanc);
  transform: translateY(-2px);
}

.map-wrap iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}

/* =========================================================
FOOTER
========================================================= */

.site-footer {
  padding: 60px 0 24px;

  background: var(--vert-fonce);

  color: rgba(255, 255, 255, 0.75);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 10px;

  color: var(--blanc);

  font-size: 1.05rem;
  font-weight: 700;
}

.footer-brand img {
  width: auto;
  height: 34px;
}

.footer-brand strong {
  color: var(--vert);
}

.site-footer h4 {
  margin-bottom: 14px;

  color: var(--blanc);

  font-size: 0.95rem;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 8px;

  font-size: 0.92rem;
}

.site-footer p i {
  width: 18px;

  color: var(--vert);
}

.site-footer hr {
  margin: 30px 0 18px;

  border-color: rgba(255, 255, 255, 0.12);
}

.copyright {
  margin: 0;

  text-align: center;

  font-size: 0.85rem;
}

/* =========================================================
WHATSAPP FLOTTANT
========================================================= */

.wa-float {
  position: fixed;

  right: 24px;
  bottom: 24px;

  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border-radius: 50%;

  background: #25d366;

  color: var(--blanc);

  font-size: 1.7rem;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

  animation: pulse 2.4s infinite;
}

.wa-float:hover,
.wa-float:focus {
  color: var(--blanc);

  transform: scale(1.05);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* =========================================================
RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 991px) {
  body {
    padding-top: 68px;
  }

  .hero {
    padding: 80px 0 60px;

    text-align: left;
  }

  .navbar-collapse {
    margin-top: 12px;

    padding: 14px;

    border-radius: 12px;

    background: var(--blanc);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }

  .navbar-nav .nav-link {
    padding: 10px 15px !important;
  }

  .btn-nav-cta {
    margin-top: 8px;
  }

  .section-about {
    padding: 90px 0;
  }

  .section-products,
  .section-contact {
    padding: 75px 0;
  }
}

/* =========================================================
RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 576px) {
  body {
    padding-top: 64px;
  }

  .hero {
    padding: 65px 0 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .btn-primary-cta,
  .btn-outline-cta {
    width: 100%;

    padding: 13px 24px;
  }

  .section-about {
    padding: 70px 0;
  }

  .section-products,
  .section-contact {
    padding: 65px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .stat-box {
    gap: 12px;

    padding: 16px;
  }

  .stat-box i {
    width: 45px;
    height: 45px;

    font-size: 1rem;
  }

  .about-image {
    height: 300px;
  }

  /* Grandes cartes */

  .main-product-image {
    height: 180px;
  }

  .main-product-content {
    padding: 18px;
  }

  .main-product-content h3 {
    font-size: 1.1rem;
  }

  /* Niveaux produits */

  .product-level {
    margin-top: 30px;

    padding: 20px 15px;
  }

  .product-level-title h3 {
    font-size: 1.25rem;
  }

  .category-card {
    min-height: 120px;

    padding: 18px;
  }

  .category-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;

    font-size: 1.1rem;
  }

  .subcategory-card {
    min-height: 100px;
    padding: 18px;
  }

  .product-items {
    grid-template-columns: 1fr;
  }

  /* Contact */

  .contact-info-card {
    padding: 25px 20px;
  }

  .contact-line {
    gap: 12px;
  }

  .contact-line i {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .contact-line strong {
    font-size: 0.85rem;
  }

  .map-wrap {
    min-height: 320px;
  }

  /* WhatsApp */

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;

    font-size: 1.4rem;
  }
}
