/* --- Général --- */
.container {
padding-top: 2vw !important;
}
.card p{
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    text-align: justify;
}
header.header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: linear-gradient(135deg, #050588, #1e1e9c);
  color: #fff;
  border-radius: 0 0 2rem 2rem;
}

header.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.header-subtitle {
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0.9;
}

/* --- Introduction --- */
.intro {
  max-width: 900px;
  margin: 2rem auto;
  font-size: 1.1rem;
  text-align: center;
}

/* --- Services List --- */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin: 3rem auto;
  padding: 0 1rem;
}

.service-item {
  display: flex;
    height: 3cm;
    align-items: center;
    justify-content: center;
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: center;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.service-item i {
  font-size: 2rem;
  color: #050588;
  margin-bottom: 0.5rem;
  display: block;
}

.service-item:hover {
  transform: translateY(-8px);
}

/* --- Section Ingénierie --- */
.engineering-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.engineering-section h3 {
  margin-bottom: 1rem;
  color: #050588;
  font-size: 1.6rem;
  font-weight: 600;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem auto;
  padding: 0 1rem;
}

.card {
  background: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.card-img {
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.1);
}

/* Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,136,0.8);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-overlay-content h2 {
    width: -webkit-fill-available;
  background-color: #0b0c36; /* Dark blue background */
  color: #ffffff; /* White text */
  font-weight: bold; /* Make the text bold */
  padding: 10px 20px; /* Adjust padding as needed for height and width */
  border: 2px solid rgba(0, 0, 0, 0.6);
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

/* Contenu carte */
.card-content {
  padding: 1.5rem;
}
.card-img > img {
    height: 5cm !important;
}
.card-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #050588;
  margin-bottom: 0.5rem;
}

/* --- Responsive Header --- */
@media (max-width: 768px) {
  header.header h1 {
    font-size: 1.8rem;
  }
  .header-subtitle {
    font-size: 1rem;
  }
}
@media (min-width: 1400px) {
    .container{
        max-width: 1604px;}}
