* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  
    background-color: #ffffff; 
    overflow-x: hidden;
}

/* invoice section styles */
.invoices-section {
    flex-direction: column;
    align-items: start;
  }
  
  /* Tabs */
  .tabs {
    width: 100%;
    display: flex;
    justify-content: start;
    gap: 10px;
    margin: 60px 0;
    border-bottom: 1px solid #E6E6E6;
    justify-content: center;
  }
  
  .tab {
    padding: 8px 15px;
    border: 1px solid #E6E6E6;
    background: white;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    width: 32%;
    text-decoration: none;
    color: inherit;
    text-align: center;
    display: inline-block;
    font-size: 15px;
  }
  
  .tab:hover {
    background: #f5f5f5;
  }
  .tab.active {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
  }
  
  
  .tab-content {
    display: none;
  }
  .tab-content.active {
    display: block;
    width: 100%;
  }
  .ai-section{
    margin: 0 20px;
  }
  .ai-header {
    margin-bottom: 30px;
  }
  .ai-score-card {
    background-color: #E9F2FF;
    border: 1px solid #A5C9FF;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 50px;
  }
  .ai-score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .ai-score-details {
    margin: 25px 0;
  }
  .ai-score-title{
    font-size: 24px;
    font-weight: 600;
    color: #010101;
  }
  .stars {
    display: flex;
    font-size: 30px;
  }
  .blue-stars{
    color: #237CFF;
  }
  .gray-stars{
    color: #979797;
  }
  .ai-rating{
    font-size: 26px;
    font-weight: 700;
    color: #010101;
  }
  .ai-reliability {
    color: #039600;
    font-size: 24px;
    font-weight: 700;
    margin-left: 15px;
  }
  .ai-score-small{
    font-size: 16px;
    color: #6C6C6C;
    font-weight: 500;
    margin-left: 5px;
  }
  .ai-score-cost{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 0.5px solid #00000033;
    padding-top: 25px;
  }
  .ai-message {
    color: #237CFF;
    font-size: 20px;
    font-weight: 600;
  }
  .ai-cost {
    font-weight: 600;
    font-size: 24px;
    color: #010101;
  }
  .ai-cost-value{
    margin-left: 10px;
  }
  .ai-issues-title{
    font-size: 32px;
    font-weight: 700;
    color: #010101;
    margin-bottom: 40px;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .ai-issues {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .issue-card {
    padding: 30px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #E6E6E6;
    box-shadow: 0px 1px 3px 0px #00000005,
    0px 5px 5px 0px #00000005,
    0px 12px 7px 0px #00000003,
    0px 21px 9px 0px #00000000,
    0px 33px 9px 0px #00000000;
    margin-bottom: 20px;
  }
  .ai-card-icon{
    margin-bottom: 20px;
  }
  .issue-title {
    font-size: 20px;
    font-weight: 700;
    color: #010101;
    margin-bottom: 10px;
  }
  .issue-card ul {
    color: #6C6C6C;
    font-size: 16px;
    font-weight: 500;
    margin-left: 30px;
  }
  .issue-card ul li {
    margin: 20px 0;
  }
  
  /* Section Title */
  .section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #010101;
  }

  .vin-number {
    font-size: 35px;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
  }
  
  /* Info Cards */
.info-section {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  
  .info-card {
    display: flex;
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
    border-radius: 16px;
    padding: 30px;
    width: 250px;
    align-items: center;
    gap: 40px;
    border: 1px solid #237CFF;
    width: fit-content;
  }

  .info-cont{
    display: flex;
    gap: 20px;
    margin-right: 30px;
  }
  
  /* Info box */
  .info-box {
    text-align: left;
  }
  
  .label{
    text-wrap: nowrap;
  }
  .value {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    text-wrap: nowrap;
  }
  
  /* Divider */
  .divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* Add Invoice Section */
  .add-invoice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E9F2FF;
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    border: 1px solid #A5C9FF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .add-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
  }
  
  .invoice-icon {
    width: 60px;
    height: 60px;
  }
  .plus-icon{
    font-size: 22px;
  }
  .add-btn {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    box-shadow: 0px 2px 4px 0px #3284FF17,
    0px 7px 7px 0px #3284FF14,
    0px 16px 10px 0px #3284FF0D,
    0px 28px 11px 0px #3284FF03,
    0px 44px 12px 0px #3284FF00;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  
  /* Invoice Cards */
  .invoice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 40px 0;
  }
  
  .invoice-card {
    background: #F1F2F4;
    border-radius: 10px;
    border: 1px solid #E6E6E6;
    padding: 15px;
    text-align: center;
    position: relative;
  }
  
  .invoice-image {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .invoice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  .invoice-name{
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
  }
  
  .action-btns{
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .action-btn{
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: none;
  }
  .action-btn img{
    width: 20px;
    height: 20px;
  }
  .eye-btn{
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
  }
  .download-btn{
    background: #979797;
  }
  .bin-btn{
    background: #FF4242;
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
    margin-bottom: 100px;
  }
  
  .page-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    border: 1.25px solid #E6E6E6;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .dot{
    border: none;
  }
  
  .page-btn.active {
    background: linear-gradient(132.7deg, #4892FF 0.21%, #237CFF 104.74%);
    color: white;
  }  

@media screen and (max-width: 350px) {
  .invoice-grid{
    grid-template-columns: 1fr !important;
    width: 100%;
}
}
/* Modification des media queries */
@media screen and (max-width: 1100px) {
    .tabs{
        margin: 30px 0;
    }
    .tab{
        font-size: 12px;
    }
    .section-title{
        font-size: 30px;
        margin-bottom: 20px;
    }
    .info-section{
        flex-direction: column;
    }
    .info-card{
        width: 100%;
    }
    .label{
        font-size: 12px;
    }
    .value{
        font-size: 20px;
    }
    .divider{
        height: 50px;
    }
    .add-invoice{
        flex-direction: column;
        gap: 10px;
    }
    .add-btn{
        width: 100%;
        justify-content: center;
    }
    .invoice-grid{
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    .pagination{
        margin-bottom: 50px;
        margin-top: 0;
    }
    .ai-section{
      margin: 0;
    }
    .ai-score-title{
      font-size: 20px;
    }
    .ai-score-details{
      flex-direction: column;
      align-items: start;
      margin: 15px 0;
    }
    .ai-score-cost{
      flex-direction: column;
      align-items: start;
      gap: 5px;
    }
    .ai-message{
      font-size: 16px;
    }
    .ai-cost{
      font-size: 20px;
    }
    .ai-issues-title{
      font-size: 24px;
    }
    .ai-issues{
      grid-template-columns: 1fr;
      gap: 20px;
      margin-bottom: 40px;
    }
    .issue-card{
      margin-bottom: 0;
    }
}

.ai-disclaimer {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  margin: 20px auto; /* Changé de "20px 0" à "20px auto" */
  font-style: italic;
  width: 100%; /* Assurez-vous que le paragraphe occupe toute la largeur */
  display: block; /* Rend l'élément block pour occuper toute la largeur */
  margin-bottom: 70px;
}

/* Styles pour les tooltips */
.issue-card li {
  position: relative;
  cursor: help;
  transition: color 0.2s;
}

.issue-card li:hover {
  color: #237CFF;
}

.issue-card li[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: -10px;
  transform: translateY(-100%);
  min-width: 250px;
  max-width: 300px;
  background-color: #237CFF;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: normal;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.issue-card li[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 20px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #237CFF transparent transparent transparent;
  z-index: 11;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media screen and (max-width: 768px) {
  .issue-card li[data-tooltip]:hover::after {
    min-width: 200px;
    max-width: 250px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    font-size: 12px;
  }
  
  .issue-card li[data-tooltip]:hover::before {
    left: 50%;
    transform: translateX(-50%);
  }
}