/* === GENERAL === */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f9f9f9;
  color: #1e1e1e;
}

/* === SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

/* === HEADER === */
header {
  text-align: center;
  padding: 40px 20px;
  background: #152184;
}

header img {
  width: 160px;
  filter: drop-shadow(0 0 20px rgba(126, 87, 194, 0.3));
}

header p {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #eee;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 100px 20px;
  background-image: url("img/code.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  color: #f0f0f0;
  max-width: 700px;
  margin: auto;
}

/* === SECTION STYLING === */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  background-color: #f0e6ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  margin-top: 40px;
}

section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #7e57c2;
  border-bottom: 2px solid #7e57c2;
  display: inline-block;
  padding-bottom: 10px;
}

/* === MES OFFRES === */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.offer-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  width: 100%;
}

.offer-box {
  width: 220px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 20px;
  font-weight: bold;
  color: #5e35b1;
  font-size: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
  min-height: 120px;
}

.offer-box:hover {
  background: #7e57c2;
  color: #fff;
  transform: translateY(-4px);
}

.offer-box .details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  font-size: 0.9rem;
  color: #eee;
  line-height: 1.4;
}

.offer-box:hover .details {
  max-height: 200px; /* suffisant pour 3 lignes */
  opacity: 1;
}

/* === ABOUT SECTION === */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  justify-content: center;
}

.about-container img {
  width: 200px;
  height: 200px;
  border-radius: 100%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 250px;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 15px;
}

/* === CONTACT FORM === */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

form input,
form textarea {
  padding: 15px;
  border: 1px solid #7e57c2;
  background: #fafafa;
  color: #333;
  font-size: 1rem;
  border-radius: 8px;
}

form button {
  padding: 15px;
  border: none;
  background: linear-gradient(90deg, #7e57c2, #5e35b1);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s;
  letter-spacing: 0.5px;
}

form button:hover {
  transform: scale(1.05);
}

/* === CLIENTS === */
.clients {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  margin-top: 40px;
  text-align: center;
}

.clients h2 {
  font-size: 2rem;
  color: #7e57c2;
  margin-bottom: 40px;
  border-bottom: 2px solid #7e57c2;
  display: inline-block;
  padding-bottom: 10px;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.client-logos img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}


/* === FOOTER === */
.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 2px solid #7e57c2;
  background-color: #f5f5f5;
  margin-top: 60px;
}

.footer p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #777;
}

/* === SOCIAL ICONS === */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px transparent;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px #7e57c2;
  background: linear-gradient(90deg, #f0e6ff, #c3baff);
}

.social-icons a:hover img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .offer-cards {
    flex-direction: column;
    align-items: center;
  }

  .offer-box {
    width: 90%;
  }

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

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



