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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f1f7ff;
  color: #003b5c;
}

/* HEADER + NAV */

header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 10px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap img {
  height: 70px;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  color: #004f7a;
}

.brand-sub {
  font-size: 12px;
  color: #4b7ea5;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: #003b5c;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #0aa3e0;
  transition: width 0.2s;
}

nav a:hover::after {
  width: 100%;
}

/* HERO SLIDER */

.hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroFade 16s infinite;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }

@keyframes heroFade {
  0%, 20% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.45);
  padding: 20px 30px;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

.hero-text p {
  font-size: 15px;
}

/* SECTIONS */

.section {
  padding: 45px 6%;
}

.section h2 {
  text-align: center;
  margin-bottom: 22px;
  font-size: 30px;
  color: #004f7a;
}

/* Welcome section */

.section.welcome p {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: #114566;
}

/* PRODUCTS GRID */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 15px 16px 18px;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #004f7a;
}

.card-body p {
  font-size: 14px;
  color: #315d7a;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.18s, box-shadow 0.18s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0,0,0,0.26);
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}

/* CONTACT FORM */

.contact-box {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  padding: 24px 22px;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.12);
}

.contact-box form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-box input,
.contact-box textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #c3d8ea;
  font-family: inherit;
  font-size: 14px;
}

.contact-box textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-box button {
  align-self: flex-start;
  background: #0aa3e0;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.contact-box button:hover {
  background: #007fc4;
}

/* FOOTER */

footer {
  background: #003b5c;
  color: #ffffff;
  text-align: center;
  padding: 20px 6%;
  margin-top: 40px;
  font-size: 13px;
}

footer a {
  color: #aee3ff;
  text-decoration: none;
}

/* TABLE (optional on produits page) */

.table-specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 14px;
}

.table-specs th,
.table-specs td {
  border: 1px solid #0aa3e0;
  padding: 8px 10px;
  text-align: left;
}

.table-specs th {
  background: #0aa3e0;
  color: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .hero {
    height: 300px;
  }
  .hero img {
    height: 300px;
  }
  .hero-text h1 {
    font-size: 20px;
  }
  nav {
    justify-content: center;
    margin-top: 8px;
  }
}
