@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap'); 
body, html {
    margin: 0;
    padding: 0;
    font-family: "Playfair Display", serif;
  }
  
   /* Full-Width Header */
   .header {
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
   /* background: linear-gradient(to right, #4592e0ad, #a9d1ee);*/
    padding: 0 50px;
    position: relative;
    overflow: hidden;
    background: #d2eaf4;
  }

  /* Left Side Text */
  .header-text {
    color: #11124d;
    max-width: 50%;
  }

  .header-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
  }

  .header-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  /* Call to action button */
  .header-text a {
    display: inline-block;
    background-color: #0e3156;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
  }

  .header-text a:hover {
    background-color: #3083dc;
  }

  /* Right Side Half Circle Image */
  .half-circle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    border-radius: 50% 0 0 50%;
    overflow: hidden;
  }

  .half-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .navbar {
    position: absolute;
    top: 20px;
    width: 80%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between; /* Distributes space between items */
    align-items: center;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    padding: 10px;
    border-radius: 5px;
  }
  
  .navbar .logo {
    flex: 1; 
    margin-left: 30px;
  }
  
  .navbar .logo a {
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: #333;
  }
  
  .navbar .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px; 
    margin-right: 100px;
  }
  
  .navbar .nav-links li {
    margin: 0;
  }
  
  .navbar .nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
  }

/* Colored Section */
.services-header {
    font-size: xx-large;
    padding: 50px;
    text-align: center;
}

/* Small Text Before Big Title */
.small-text {
    text-align: center;
    font-size: 1rem;
    color: #636e72;
    margin-top: 20px;
}

/* Big Title */
.big-title {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0 20px;
    color: #2c3e50;
    margin-top: 40px;
}

/* Highlight 'Professional' in blue */
.highlight {
    background-color: #0984e3;  /* Blue highlight background */
    color: white;  /* Text color becomes white to contrast */
    padding: 0 5px;  /* Adds a bit of space inside the highlight */
    border-radius: 5px;  /* Softens the edges of the highlight */
}

.subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #636e72;
    margin-bottom: 50px;
}

/* Service Cards */
.cards {
    display: flex;
    justify-content: space-evenly;
    /*align-items: flex-start;*/
    margin: 0 auto;
    /*max-width: 1200px;*/
}

.card {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    color: white;
    width: 300px;
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Overflowing Card Titles */
.card h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222431;
    position: relative;
    top: -50px;
}

.card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Card Hover Effect */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* Different gradient styles */
.card:nth-child(1) { background: linear-gradient(135deg, #74b9ff, #cccbd5); }
.card:nth-child(2) { background: linear-gradient(135deg, #729bea, #bfc4c3); }
.card:nth-child(3) { background: linear-gradient(135deg, #6fb5d8, #88c3e7); }

/* Modal (overlay card) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Softer overlay */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal content: cute and simple */
.modal-content {
    background-color: #f8f9fa; /* Soft white background */
    padding: 30px;
    border-radius: 20px; /* Rounded edges for a cute look */
    text-align: center;
    width: 80%;
    max-width: 400px; /* Limit width for a focused look */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    background-color: #f1f1f1; /* Subtle background for close button */
    border: none;
    border-radius: 50%;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

.modal-content .close:hover {
    background-color: #ccc; /* Slight hover effect for close button */
}

/* Simple and cute header for modal */
.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0984e3; /* Accent color */
}

/* Modal paragraph styling */
.modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d3436; /* Darker text for easy reading */
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Style global de la section */
.service-description {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 30px 0;
  transition: all 0.3s ease-in-out;
}

.service-description:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Style de l'image */
.service-image {
  flex-shrink: 0;
  width: 250px; /* Taille plus grande de l'image */
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-right: 30px;
  transition: transform 0.3s ease-in-out;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.service-image:hover img {
  transform: scale(1.1); /* Agrandissement de l'image au survol */
}

/* Style du texte */
.service-text {
  flex-grow: 1;
  max-width: 650px;
  font-family: 'Arial', sans-serif;
  color: #333;
}

.service-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: #007BFF;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.service-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  text-align: justify;
}

.service-text h3:hover {
  color: #0056b3; /* Couleur au survol du titre */
}

.service-text p {
  margin-top: 10px;
}

/* Style pour les écrans plus petits */
@media (max-width: 768px) {
  .service-description {
      flex-direction: column;
      text-align: center;
      padding: 20px;
  }

  .service-image {
      width: 80%;
      height: auto;
      margin-right: 0;
      margin-bottom: 20px;
  }

  .service-text h3 {
      font-size: 24px;
  }

  .service-text p {
      font-size: 16px;
  }
}


.card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card.active {
  border: 2px solid #007BFF;
  background-color: #f0f8ff;
}

  /* footer*/
footer {
    background-color: #10182f;
    color: #EEF7FF;
    padding: 20px 0;
    text-align: center;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-section {
    flex: 1;
    margin: 10px;
    min-width: 250px;
  }
  
  .footer-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1679AB;
  }
  
  .footer-section p, 
  .footer-section a {
    font-size: 14px;
    color: #EEF7FF;
    text-decoration: none;
  }
  
  .footer-section a:hover {
    color: #1679AB;
  }
  
  .social-icon {
    display: inline-block;
    margin: 5px;
    font-size: 18px;
    color: #EEF7FF;
    transition: color 0.3s;
  }
  
  .social-icon:hover {
    color: #1679AB;
  }
  
  .footer-bottom {
    margin-top: 20px;
    font-size: 14px;
  }
  /* Responsive Design for Small Screens */
@media (max-width: 768px) {
  /* Header adjustments */
  .header {
    flex-direction: column;
    padding: 20px;
    height: auto;
    width: 400px;
  }

  .header-text {
    max-width: 100%;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 150px;
  }

  .header-text h1 {
    font-size: 32px;
  }

  .header-text p {
    font-size: 16px;
  }

  .header-text a {
    padding: 10px 20px;
    font-size: 14px;
  }

  .half-circle {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 50%;
    margin-top: 20px;
  }

  .half-circle img {
    height: auto;
  }

  /* Navbar adjustments */
  .navbar {
    flex-direction: column;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .navbar .logo {
    margin: 0;
  }

  .navbar .nav-links {
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }

  /* Cards layout */
  .cards {
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
    width: 400px;
  }

  .card {
    width: 90%;
    margin: 10px 0;
  }

  .card h3 {
    font-size: 1.8rem;
    top: 0;
  }

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

  /* Service Description Section */
  .service-description {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    width: 400px;
  }

  .service-image {
    width: 80%;
    height: auto;
    margin-bottom: 20px;
  }

  .service-text h3 {
    font-size: 24px;
  }

  .service-text p {
    font-size: 16px;
  }

  /* Footer adjustments */
  footer .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    text-align: center;
  }
}
