/* MATBELTRADE website styles */

/* Basic resets */
html,body{
  margin:0;
  padding:0;
  /* Utilisation d'une police moderne pour une lecture agréable */
  font-family:'Segoe UI', Arial, Helvetica, sans-serif;
  color:#333;
  line-height:1.6;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:#0066aa;
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

/* Layout containers */
.container{
  width:90%;
  max-width:1200px;
  margin:0 auto;
  padding:20px;
}

/* Navigation */
.nav{
  background:#004466;
  color:#fff;
  padding:15px 0;
  box-shadow:0 2px 4px rgba(0,0,0,0.1);
}
.nav .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.nav .logo{
  font-size:1.5em;
  font-weight:bold;
  display:flex;
  align-items:center;
}
.nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
}
.nav li{
  margin-left:15px;
}
.nav a{
  color:#fff;
  font-weight:bold;
  font-size:0.95em;
}
.nav a:hover{
  text-decoration:underline;
}

/* Adjust logo image size in nav */
/* Adjust logo size for better visibility */
/* Increase logo image size for better visibility */
/* Enlarged logo in the navigation for better visibility */
/* Size of logo in navigation bar */
.nav .logo img{
  height:80px !important;
}

/* Language switcher styles */
.nav {
  position: relative;
}
.lang-switcher {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}
.lang-switcher a {
  color: #fff;
  font-size: 1.3em;
  text-decoration: none;
  line-height: 1;
}
.lang-switcher a:hover {
  opacity: 0.8;
}

/* Hero section */
.hero{
  position:relative;
  color:#fff;
  text-align:center;
  padding:80px 20px;
  background-size:cover;
  background-position:center;
}

/* Hero slider container */
.hero-images{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  overflow:hidden;
  z-index:-1;
}

.hero-images img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  animation:slideShow 15s infinite;
}

.hero-images img:nth-child(1){ animation-delay:0s; }
.hero-images img:nth-child(2){ animation-delay:7.5s; }

@keyframes slideShow{
  0%,40%   { opacity:1; }
  45%,95% { opacity:0; }
  100%    { opacity:1; }
}
.hero h1{
  font-size:2.5em;
  margin-bottom:0.5em;
}
.hero p{
  max-width:700px;
  margin:0 auto 1em;
  font-size:1.2em;
}
.btn{
  display:inline-block;
  padding:10px 20px;
  background:#007acc;
  color:#fff;
  border-radius:4px;
  margin-top:10px;
}
.btn:hover{
  background:#005fa3;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.hero .btn {
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
}

.hero h1 { animation-delay: 0.3s; }
.hero p { animation-delay: 0.6s; }
.hero .btn { animation-delay: 0.9s; }

/* Category grid */
.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-top:40px;
}
.category-item{
  border:1px solid #ddd;
  border-radius:4px;
  overflow:hidden;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.category-item:hover{
  box-shadow:0 6px 14px rgba(0,0,0,0.2);
  transform:translateY(-5px) scale(1.02);
}
.category-item img{
  width:100%;
  height:180px;
  object-fit:cover;
}
.category-item h3{
  margin:10px;
  font-size:1.2em;
}
.category-item p{
  margin:0 10px 10px;
  font-size:0.9em;
  color:#555;
}

/* Footer */
.footer{
  background:#004466;
  color:#fff;
  padding:20px 0;
  text-align:center;
  margin-top:40px;
}
.footer p{
  margin:5px 0;
  font-size:0.9em;
}

/* Product page */
.product-header{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  margin-top:20px;
}
.product-header img{
  flex:1 1 300px;
  max-width:400px;
  border:1px solid #ddd;
  border-radius:4px;
}
.product-header .product-info{
  flex:2 1 400px;
}
.product-header .product-info h1{
  margin-top:0;
}
.product-table{
  width:100%;
  border-collapse:collapse;
  margin-top:20px;
}
.product-table th, .product-table td{
  border:1px solid #ddd;
  padding:8px;
  text-align:left;
}
.product-table th{
  background:#f0f8ff;
}
.product-table caption{
  font-weight:bold;
  margin-bottom:10px;
  font-size:1.1em;
}

/* Gallery for machined components */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

/* Images in gallery with slight shadow and hover effect */
.gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  /* Smooth transition for interactive hover effect */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* On hover, gently scale up gallery images and enhance shadow */
.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Features list styling */
.features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.features-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.features-list li::before {
  content: '\2022';
  color: #007acc;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Form styles */
.form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin-top: 20px;
}

.form-container label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-container input,
.form-container select,
.form-container textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.form-container textarea {
  resize: vertical;
  height: 120px;
}

.form-container button {
  padding: 10px 20px;
  background: #007acc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-container button:hover {
  background: #005fa3;
}

/* Responsive typography */
@media(max-width:768px){
  .hero h1{
    font-size:2em;
  }
  .hero p{
    font-size:1em;
  }
}

/* ------------------------------------------------------------------- */
/* Additional styles for enhanced branding and advantages section */

/* Large logo overlay in the hero section */
/*
 * Affichage du logo dans la section héroïque :
 * - plus grand pour renforcer l'identité visuelle
 * - repositionné légèrement pour mieux l'incruster dans le décor
 * - ajout d'une ombre portée pour le faire ressortir sur n'importe quel fond
 */
.hero-logo {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 200px;
  height: auto;
  opacity: 0.95;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
}

/* Advantages section container */
.advantages {
  background: #f7f8fa;
  padding: 60px 20px;
}
.advantages h2 {
  text-align: center;
  font-size: 2em;
  color: #004466;
  margin-bottom: 30px;
}
.adv-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.adv-item {
  background: #fff;
  border-radius: 6px;
  padding: 20px 20px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.adv-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
.adv-item h3 {
  margin-top: 0;
  font-size: 1.3em;
  color: #004466;
  padding-left: 50px;
}
.adv-item p {
  margin: 10px 0 0;
  font-size: 0.9em;
  color: #555;
  padding-left: 50px;
}
.adv-item::before {
  content: '\2714';
  font-size: 2em;
  color: #007acc;
  position: absolute;
  top: 20px;
  left: 20px;
}