:root {
    --primary: #10B981;
    --dark: #1F2937;
    --light: #F9FAFB;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.logo svg {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #10B981;
    border-radius: 10px;
    transition: all 0.3s linear;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.tool-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* SEO Content */
.seo-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.seo-content.bottom {
    margin-top: 2rem;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content-section section {
    margin-bottom: 2rem;
}

.content-section h2 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.seo-text ul {
    list-style: none;
    padding: 0;
}

.seo-text li {
    margin: 1rem 0;
}

.seo-image img {
    width: 100%;
    border-radius: 4px;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-copyright {
    text-align: center;
    padding: 1rem;
}

.footer-copyright a {
    color: inherit;
    text-decoration: none;
    margin-left: 0.5rem;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Calculator Specific */
.calculator-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calculator {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

#display, #display-scientific {
    width: 100%;
    height: 60px;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: right;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    box-sizing: border-box;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calculator button {
    padding: 15px;
    font-size: 18px;
    border: none;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculator button:hover {
    background: #e9ecef;
}

.calculator button.equals {
    grid-row: span 2;
    background: var(--primary);
    color: white;
}

.calculator button.equals:hover {
    background: #0ea572;
}

.calculator button.zero {
    grid-column: span 2;
}

.calculator-mode {
    max-width: 400px;
    margin: 0 auto 20px;
    display: flex;
    gap: 10px;
}

.mode-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
}

.mode-button.active {
    background: var(--primary);
    color: white;
}

.hidden {
    display: none;
}

.calculator-grid.scientific {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .seo-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* Nouvelles fonctionnalités - Phase 1 */
.tool-controls {
  max-width: 400px;
  margin: 0 auto 10px;
  display: flex;
  justify-content: flex-end;
}

.control-button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.control-button:hover {
  background: #0ea572;
}

.control-button .icon {
  font-size: 16px;
}

.history-panel {
  max-width: 400px;
  margin: 20px auto;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.history-panel h3 {
  margin-top: 0;
  color: var(--dark);
  font-size: 1.1em;
}

.history-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.history-item:hover {
  background-color: #f5f5f5;
}

/* Styles pour l'historique */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.history-header h3 {
  margin: 0;
}

.clear-history-button {
  background: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.clear-history-button:hover {
  background: #d32f2f;
}

.clear-history-button .icon {
  font-size: 14px;
}

/* Message pour historique vide */
.history-empty {
  text-align: center;
  color: #6c757d;
  padding: 10px;
  font-style: italic;
}



/* Styles pour la nouvelle page d'accueil */
.hero-section {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  row-gap: 2.5rem;
  column-gap: 2rem;
  margin-bottom: 5rem;
}

.tool-card {
  display: flex;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-decoration: none;
  color: var(--dark);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.tool-icon {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.calculator-icon {
  background-color: #edfdf5;
}

.calculator-icon svg {
  stroke: #10B981;
}

.converter-icon {
  background-color: #eff6ff;
}

.converter-icon svg {
  stroke: #3b82f6;
}

.percentage-icon {
  background-color: #fdf2f8;
}

.percentage-icon svg {
  stroke: #ec4899;
}

.tool-icon svg {
  width: 28px;
  height: 28px;
}

.tool-content {
  padding: 1.5rem 1rem;
  flex: 1;
}

.tool-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.tool-content p {
  margin: 0 0 1rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tool-cta {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-cta {
  transform: translateX(5px);
}

.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--dark);
}

.feature p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .features-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature {
    padding: 1rem;
  }
}

/* Styles pour la nouvelle page d'accueil */
.home {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  row-gap: 2.5rem;
  column-gap: 2rem;
  margin-bottom: 5rem;
}

.tool-card {
  display: flex;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-decoration: none;
  color: var(--dark);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.tool-icon {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.calculator-icon {
  background-color: #edfdf5;
}

.calculator-icon svg {
  stroke: #10B981;
}

.converter-icon {
  background-color: #eff6ff;
}

.converter-icon svg {
  stroke: #3b82f6;
}

.percentage-icon {
  background-color: #fdf2f8;
}

.percentage-icon svg {
  stroke: #ec4899;
}

.tool-icon svg {
  width: 28px;
  height: 28px;
}

.tool-content {
  padding: 1.5rem 1rem;
  flex: 1;
}

.tool-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.tool-content p {
  margin: 0 0 1rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tool-cta {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-cta {
  transform: translateX(5px);
}

.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--dark);
}

.feature p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .features-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature {
    padding: 1rem;
  }
}

/* Styles pour la nouvelle page d'accueil */
.home {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  row-gap: 2.5rem;
  column-gap: 2rem;
  margin-bottom: 5rem;
}

.tool-card {
  display: flex;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-decoration: none;
  color: var(--dark);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.tool-icon {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.calculator-icon {
  background-color: #edfdf5;
}

.calculator-icon svg {
  stroke: #10B981;
}

.converter-icon {
  background-color: #eff6ff;
}

.converter-icon svg {
  stroke: #3b82f6;
}

.percentage-icon {
  background-color: #fdf2f8;
}

.percentage-icon svg {
  stroke: #ec4899;
}

.tool-icon svg {
  width: 28px;
  height: 28px;
}

.tool-content {
  padding: 1.5rem 1rem;
  flex: 1;
}

.tool-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.tool-content p {
  margin: 0 0 1rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tool-cta {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-cta {
  transform: translateX(5px);
}

.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--dark);
}

.feature p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .features-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature {
    padding: 1rem;
  }
}

/* Nouvelles styles pour les caractéristiques dans le footer */
.footer-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--light);
  border-radius: 50%;
  font-size: 20px;
  flex-shrink: 0;
}

.footer-feature-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.footer-feature-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Modifiez le layout du footer */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Styles modernes pour la section SEO */
.modern-seo-section {
  background: transparent;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: none;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.modern-seo-section h2 {
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.seo-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.seo-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seo-card-icon svg {
  width: 24px;
  height: 24px;
}

.seo-card-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--dark);
}

.seo-card-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-light);
}

.seo-info {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.seo-info p {
  margin-top: 0;
  line-height: 1.6;
}

.seo-audience h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem 0;
  color: var(--dark);
}

.seo-audience ul {
  margin: 0;
  padding-left: 1.5rem;
}

.seo-audience li {
  margin: 0.5rem 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .seo-cards {
    grid-template-columns: 1fr;
  }
  
  .seo-card {
    padding: 1rem;
  }
}

/* Styles pour les icônes d'emoji dans la section SEO */
.seo-card .feature-icon {
  width: 40px;
  height: 40px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Correction pour éviter la superposition des fonds */
.seo-content.no-background {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* Ajustements pour éviter la double boîte */
.seo-content.bottom .modern-seo-section h2 {
  margin-top: 1rem;
}

.seo-content.bottom .seo-cards {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.seo-content.bottom .seo-info {
  margin-top: 1.5rem;
}

/* Styles pour l'icône IMC */
.imc-icon {
  background-color: #e5f6fd;
}

.imc-icon svg {
  stroke: #0ea5e9;
}

/* Correction pour la largeur de l'outil IMC */
.imc-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.imc-calculator {
  width: 100%;
  max-width: 100% !important;
  margin: 0 auto;
}

/* Assurer que la page d'outil IMC a la même apparence que les autres */
.seo-content.bottom .modern-seo-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Améliorations pour la grille d'outils sur la page d'accueil */
.tools-grid {
  margin-top: 2rem;
}

/* Assure un alignement vertical des cartes d'outils */
.tool-card {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  align-items: stretch;
}

/* Responsive: passer à 2 colonnes sur tablette et 1 sur mobile */
@media (max-width: 992px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 650px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Fixer la hauteur des cartes d'outils */
.tool-card {
  height: 200px !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ajuster le contenu pour s'adapter à la hauteur fixe */
.tool-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-content p {
  flex-grow: 1;
}

.tool-cta {
  margin-top: auto;
}


/* Style pour l'icône Jours Ouvrés */
.workdays-icon {
  background-color: #f0f9ff;
}

.workdays-icon svg {
  stroke: #3b82f6;
}
/* Styles pour l'icône d'âge */
.age-icon {
  background-color: #fdf2f8;
}

.age-icon svg {
  stroke: #ec4899;
}

/* Styles pour le calculateur d'âge */
.milestone-item {
  transition: background-color 0.2s ease;
}

.milestone-item:hover {
  background-color: #f8f9fa;
}

@media (max-width: 768px) {
  .milestone-item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    padding: 15px 10px;
  }
  
  .milestone-status {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
  
  .milestone-date {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Style pour l'icône Calcul de Moyenne */
.average-icon {
  background-color: #fefce8; /* Jaune très clair */
}
.average-icon svg {
  stroke: #f59e0b; /* Ambre/Orange */
}