* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f4f6f8;
  color: #0f172a;
}

.top-bar {
  width: 100%;
  padding: 16px 40px;
  background: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 25px;
}

nav a.active,
nav a:hover {
  color: #38bdf8;
}

.hero-contact {
  position: relative;
  height: 40vh;
  background: url("./images/ING.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-contact .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.hero-contact .hero-content {
  position: relative;
  text-align: center;
  color: white;
}

.hero-contact h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 50px 40px;
  justify-content: center;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-form {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
}

#formResponse {
  margin-top: 15px;
  color: green;
  font-weight: 600;
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  font-size: 1.2rem;
  padding: 15px 20px;
  border-radius: 50px;
  text-decoration: none;
  z-index: 999;
}

/* FOOTER PROFESSIONNEL */
.footer {
  background: #0f172a;
  color: #e5e7eb;
  font-family: "Segoe UI", sans-serif;
  padding: 60px 20px 30px;
  line-height: 1.6;
}

.footer a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1 1 220px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #ffffff;
  position: relative;
}

.footer-section h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #38bdf8;
  margin-top: 5px;
  border-radius: 2px;
}

.footer-section p,
.footer-section ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.socials {
  margin-top: 10px;
}

.socials a {
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.2s;
}

.socials a:hover {
  transform: scale(1.2);
}

.socials img {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom a {
  margin: 0 5px;
  color: #38bdf8;
}

.footer-bottom a:hover {
  color: #60a5fa;
}

/* ===============================
   MEDIA QUERY GLOBALE - MOBILE
=============================== */
@media screen and (max-width: 768px) {

  /* Top-bar : menu empilé + padding réduit */
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }
  .top-bar nav {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Hero : texte centré + taille réduite */
  .hero {
    height: 35vh;
    padding: 0 10px;
  }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.9rem; }

  /* Catalogue : padding réduit */
  .catalogue { padding: 20px 10px; }

  /* Grille produits : 1 colonne */
  .products { grid-template-columns: 1fr; gap: 15px; }

  /* Product-card : texte plus petit, image auto */
  .product-card img { height: auto; }
  .product-card h3 { font-size: 1rem; }
  .product-card p { font-size: 0.85rem; }
  .product-card .price { font-size: 0.9rem; }

  /* Buttons : padding réduit */
  .add-cart-btn, .cta button, .cart-footer button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  /* Cart : largeur adaptative, modal sur mobile */
  #cart { width: 90%; right: -100%; }
  #cart.active { right: 5%; }

  /* Toast : réduit taille et padding */
  #toast { padding: 8px 15px; font-size: 0.85rem; top: 10px; right: 10px; }

  /* Modal : largeur réduite */
  .modal-content { width: 90%; padding: 15px; }
  .modal-content input { font-size: 0.9rem; padding: 8px; }

  /* Footer : colonne unique */
  .footer-top { flex-direction: column; gap: 20px; }
}

