:root {
  /* Palette de couleurs simplifiée */
  --primary: #ffffff;
  --secondary: #419d78;
  --light: #3636365b;
  --dark: rgb(0, 0, 0);
  --white: #9b83838a;

  /* Variables système */
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
  --container: min(1200px, 90%);
  --spacing: clamp(1rem, 5vw, 2rem);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("new/images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding: clamp(1rem, 5vw, 4rem);
}


/* Overlay pour améliorer la lisibilité */
body::before {
  content: "";
  position: fixed;
  top: 0;
  opacity: 70%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(44, 22, 22, 0.877) 0%,
    rgba(70, 56, 56, 0.76) 100%
  );
  z-index: -1;
}

/* Ajustement pour que le contenu soit au-dessus du fond */
main {
  position: relative;
  z-index: 1;
}

/* Assure que l'image de fond ne perturbe pas la lisibilité */
.tab-2,
.contact-section,
.footer {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(71, 44, 44, 0.781); /* Augmentation de l'opacité ici aussi */
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--primary);
  background-color: var(--light);
}

/* Layout */
.container {
  width: var(--container);
  margin: 0 auto;
  padding: var(--spacing);
}

/* Header */
.header {
  text-align: center;
  padding: 4rem 1rem;
  font-size: clamp(1rem, 1.4vw, 3rem);
}

.header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}


.service-content {
  background-color: #ffffff; /* Fond blanc propre */
  color: #333;               /* Texte bien lisible */
  padding: 1.5rem;           /* Espacement intérieur */
  margin-top: -4px;          /* Réduction du vide avec l'image */
  border-radius: 12px;       /* Coins arrondis */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); /* Ombre douce */
  border: 1px solid #ddd;    /* Bordure discrète */
}

.service-content h3 {
  color: #419d78;         /* Titre en vert */
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-content ul {
  list-style: none;
  padding: 0;
}

.service-content li {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
  color: #383838;
}

.service-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #419d78;
  font-weight: bold;
}


/* Contact Section */
.contact {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 2rem;
}

.social-links a {
  padding: 0.8rem 1.5rem;
  background: var(--light);
  border-radius: var(--radius);
  color: var(--dark);
  
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--primary);
}

.contact-image {
  width: 100%; /* Ajuste à la largeur du conteneur */
  max-width: 800px; /* Limite la taille max */
  display: block;
  margin: 10px auto; /* Centre l’image */
  border-radius: 10px; /* Coins arrondis (optionnel) */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 2rem;
  margin: 4rem auto 0;
  text-align: center;
  border-radius: var(--radius);
  width: var(--container);
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
  .social-links {
    flex-direction: column;
  }

  .social-links a {
    width: 100%;
  }
}
