/* Styles généraux */
body {
  background-color: #f5f5f5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: #333;
  min-height: 100vh; /* Hauteur minimale de 100% de la hauteur de la fenêtre */
  display: flex;
  flex-direction: column;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.logo img {
  height: 50px;
  padding-top: 20px;
}
.search-container {
  display: flex;
  align-items: center;
}
.search-box {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 14px;
}
.search-icon {
  font-size: 20px;
  color: #333;
  cursor: pointer;
}
.main-nav {
  display: flex;
  justify-content: right;
  background-color: white;
  padding: 5px 0;
  margin-bottom: -25px;
}
.main-nav ul {
  display: flex;
  list-style: none;
}
.main-nav ul li {
  margin: 0 15px;
}
.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.home-icon {
  margin-right: 0.1px;
  font-size: 14px;
  position: relative;
  top: -1px;
  display: inline-flex;
  align-items: center;
}
.main-nav ul li a:hover {
  color: #0066cc;
}
.main-nav ul li:first-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 3px;
}
/* Media query pour les appareils mobiles */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
    flex-direction: column;
  }
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .popular-tools-grid {
    grid-template-columns: 1fr;
  }
}
.hero-contain {
  font-size: 16px;
  color: #f5f5f5;
  background-image: url("../images/BatimentIRR.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: 15px;
}
.hero-title {
  font-size: 32px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  padding: 50px;
  height: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 15px;
}
.link-white a:link {
  color: white;
}
.link-white a:visited {
  color: white;
}
.link-white a:hover {
  color: white; /* ou une couleur légèrement différente comme #e0e0e0 pour l'effet hover */
}
.description {
  margin-left: 50px;
  margin-right: 40px;
  text-align: justify;
}
.footer {
  text-align: center;
  font-size: 0.9em;
  line-height: 0.5em;
  color: #817979;
  width: 100%;
  margin-top: auto;
  padding: 20px 0;
}

.description a:hover {
  text-decoration: underline;
}

/* Main Content */
.tools-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.intro-text {
  margin-bottom: 30px;
  text-align: center;
}

/* Accordion Style */
.accordion-item {
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
  border-left: 4px solid #ddd;
}

.authorization {
  border-left-color: #6200ea;
}


.statistics {
  border-left-color: #2196F3;
}

.scales {
  border-left-color: #4CAF50;
}

.accordion-header {
  background-color: #f9f9f9;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.accordion-header h2 {
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

.accordion-header .toggle-icon {
  font-size: 1.5rem;
}

.accordion-content {
  padding: 15px;
  background-color: #fff;
  border: 1px solid #eee;
  border-top: none;
}

.category-icon {
  font-size: 24px;
  margin-right: 10px;
}

/* Tool Lists */
.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.tool-list li:last-child {
  border-bottom: none;
}

.tool-list a {
  text-decoration: none;
  color: #0066cc;
  display: flex;
  align-items: center;
}

.tool-list a:hover {
  text-decoration: underline;
}

.tool-icon {
  margin-right: 10px;
}

/* Subcategories */
.subcategory {
  margin-top: 15px;
  margin-bottom: 15px;
}

.subcategory-title {
  font-weight: bold;
  color: #555;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

