
/* === Custom Fonts === 
@font-face {
  font-family: 'Poppins';
  src: url('css/fonts/Poppins-Regular.woff2') format('woff2'),
       url('css/fonts/Poppins-Regular.woff') format('woff'),
       url('css/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('css/fonts/Poppins-Bold.woff2') format('woff2'),
       url('css/fonts/Poppins-Bold.woff') format('woff'),
       url('css/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('css/fonts/Poppins-SemiBold.woff2') format('woff2'),
       url('css/fonts/Poppins-SemiBold.woff') format('woff'),
       url('css/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('css/fonts/Poppins-Light.woff2') format('woff2'),
       url('css/fonts/Poppins-Light.woff') format('woff'),
       url('css/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('css/fonts/Rubik-Regular.woff2') format('woff2'),
       url('css/fonts/Rubik-Regular.woff') format('woff'),
       url('css/fonts/Rubik-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('css/fonts/Rubik-Bold.woff2') format('woff2'),
       url('css/fonts/Rubik-Bold.woff') format('woff'),
       url('css/fonts/Rubik-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('css/fonts/Rubik-Medium.woff2') format('woff2'),
       url('css/fonts/Rubik-Medium.woff') format('woff'),
       url('css/fonts/Rubik-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('css/fonts/Rubik-Light.woff2') format('woff2'),
       url('css/fonts/Rubik-Light.woff') format('woff'),
       url('css/fonts/Rubik-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rythmic';
  src: url('css/fonts/Rythmic-Regular.woff2') format('woff2'),
       url('css/fonts/Rythmic-Regular.woff') format('woff'),
       url('css/fonts/Rythmic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/
/* style.css */
:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --white: #fff;
    --chat-ai-bg: #e9e9eb;
    --chat-user-bg: #4A90E2;
    --sec-yellow: #f6c23e;
    --spacing-unit: 16px;
    --border-radius: 100px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --box-highlight: #d6def1;
  }
  /* .app-header{
  
  } */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family:'Poppins', sans-serif;
  
  }
  
  .app-container {
    /* display: grid;
    grid-template-columns: 1fr; */
    gap: 2rem;
    max-width: 1200px;
    margin: 20px auto;
  }
  
  @media (min-width: 992px) {
    .app-container {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  /* Upload Section Styles */
  .upload-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
  }
  
  .file-name {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    word-break: break-all;
  }
  
  .upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-group {
    position: relative;
  }
  
  .file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    position: absolute;
    z-index: -1;
  }
  
  .file-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    font-weight: 500;
  }
  
  .file-label:hover {
    background-color: var(--primary-dark);
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
  }
  
  /* Drop Zone Styles */
  .drop-zone {
    width: 100%;
    height: 432px;
    min-height: 200px;
    padding: 2rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem 0;
    background-color: var(--white);
    position: relative;
    box-sizing: border-box;
  }
  
  .drop-zone:hover {
    border-color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.05);
  }
  
  .drop-zone.dragover {
    background-color: rgba(74, 144, 226, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.01);
  }
  
  .drop-zone.file-loaded {
    border-color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.05);
  }
  
  .drop-zone__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .drop-zone__icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }
  
  .drop-zone__prompt {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
  }
  
  .drop-zone__info {
    font-size: 0.9rem;
    color: var(--text-light);
  }
  
  .file-name {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    word-break: break-all;
    transition: all 0.3s ease;
  }
  
  .file-name.file-selected {
    color: var(--success-color);
    font-weight: 500;
  }
  
  .file-name.error {
    color: var(--error-color);
  }
  
  .file-input {
    display: none;
  }
  
  .output-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 4px;
    border: 1px solid #ddd;
    min-height: 100px;
    display: none;
  }
  .assistant-container{
    /* width: 60vw; */
    position: fixed;
    	bottom:40px;
	  right:40px;
    z-index: 1000;
  }
  /* Chat Container Styles */
  .chat-container {
    background-color: var(--white);
    border-radius: 30px 30px 0px 30px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font-size: 1.3rem;
    /* display: none;  */
    flex-direction: column;
    overflow: hidden;
    height: 60vh;
    border: 2px solid #418bce;
    /* width: 50%;
    margin-top: 5%;
    margin-left: 25%;  */
  }
  
  .chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
  }
  
  .chatbox {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .message {
    padding: 0.75rem 1.25rem;
    border-radius: 18px;
    line-height: 1.5;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
.user-message {
  background-color: var(--chat-user-bg);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.user-message,
.user-message p,
.user-message li,
.user-message strong,
.user-message span,
.user-message code {
  color: #ffffff;
}
  
  .ai-message {
    background-color: var(--chat-ai-bg);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }
  
  .chat-input-area {
    display: flex;
    padding: 1rem;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
     align-items: end;
  }
  #userInput {
  flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 1em;
    width: 100%;

}
#userInput:focus {
    outline: none;
    border-color: #4A90E2;
    
}
#sendButton{
    /* background-color: #4A90E2; */
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
    height: 103px;
}


  .chat-input {
    flex-grow: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
  }
  
  .chat-input:focus {
    border-color: var(--primary-color);
  }
  
  .btn-send {
    background-color: var(--primary-color);
    color: var(--white);
    min-width: 80px;
  }
  
  .btn-send:hover {
    background-color: var(--primary-dark);
  }
  
  /* Scrollbar Styles */
  .chatbox::-webkit-scrollbar {
    width: 8px;
  }
  
  .chatbox::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .chatbox::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
  }
  
  .chatbox::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
  }

  /* Progress Bar Styles */
.progress-bar-container {
  width: 100%;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  margin: 1rem 0;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4A90E2, #6BB9F0);
  border-radius: 10px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-text {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #333;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

/* Animation for progress bar */
@keyframes progressAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.progress-bar.uploading {
  background: linear-gradient(90deg, #4A90E2, #6BB9F0, #4A90E2);
  background-size: 200% 100%;
  animation: progressAnimation 2s linear infinite;
}

.progress-bar-container {
  width: 100%;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  margin: 1rem 0;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4A90E2, #6BB9F0);
  border-radius: 10px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-text {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #333;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

/* Add these styles to your existing style.css */

/* Header Styles */
.main-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.add-project-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 1rem;
}

.add-project-btn:hover {
  background-color: var(--primary-dark);
}

/* Footer Styles */
.main-footer {
  background-color: #f8f9fa;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-logo {
  height: 30px;
  width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .add-project-btn {
    margin: 0.5rem 0;
    order: 3;
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-item {
    justify-content: center;
  }
}

.tlcharger-le-fichier {
  	position: relative;
  	font-size: 14px;
  	letter-spacing: 0.1px;
  	line-height: 20px;
  	font-weight: 500;
  	font-family: 'Poppins', sans-serif;
  	color: #625b71;
  	text-align: left;
}

/**************projet*******************/
.bloc-les-projets h2 {
  color: #2c3e50;
  font-weight: bold;
  /*text-align: center;*/
  margin-bottom: 30px;
}

.bloc-les-projets .project-card {
  display: flex;
  gap: 20px;
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  align-items: center;
  background-color: transparent;
}

.bloc-les-projets .project-card img {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.bloc-les-projets .project-info-left {
  flex: 1;
  font-size: 14px;
  color: #333;
  min-width: 200px;
}

.bloc-les-projets .project-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bloc-les-projets .project-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.bloc-les-projets .project-versions {
  font-size: 12px;
  color: #555;
  margin-top: 5%;
  margin-right: 90px;
  min-width: 180px;
}
.bloc-les-projets .project-versions2 {
  font-size: 12px;
  color: #555;
  margin-top: 5%; 
  min-width: 100px;
}
.bloc-les-projets .project-buttons {
  display: flex;
  /* flex-direction: column; */
  gap: 8px;
}

.bloc-les-projets .btn {
  cursor: pointer;
  padding: 8px 15px 4px;
  border-radius: 4px;
  /*color: white;*/
  font-weight: 300;
  text-align: center;
  user-select: none;
  font-size: 16px;
}

.bloc-les-projets .btn.red {
  background-color: #e74c3c;
}

.bloc-les-projets .btn.blue {
  background-color: #3498db;
}

.bloc-les-projets .btn.green {
  background-color: #27ae60;
}

.bloc-les-projets .pagination {
  margin-left: 70%;
  margin-top: 20px;
  text-align: center;
}

.bloc-les-projets .pagination button.page {
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 3px;
}

.bloc-les-projets .pagination button.page.active {
  background: #053a5e;
  color: white;
  border-color: #2980b9;
}
.project-buttons {
  display: flex;
  gap: 10px; /* espace entre boutons */
}

.project-button {
  padding-left: 26px;
  padding-right: 26px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  display: inline-flex;
  cursor: pointer;
  height: 40px; /* hauteur fixe pour tous les boutons (ajuste si besoin) */
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16.8px;
  color: white;
  /* flex-direction: column; */
  white-space: nowrap;
  user-select: none;
}

.project-button > div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  word-wrap: break-word;
}

/* Couleurs personnalisées */

.project-button.red {
  background-color: #FF2B48;
}

.project-button.blue {
  background-color: #0055FF;
}

.project-button.green {
  background-color: #27AE60;
}
.project-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -6%;
}

.project-badge {
  display: inline-block;
  padding: 4px 26px;
  border-radius: 12px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  line-height: 16px;
  color: white;
  white-space: nowrap;
  user-select: none;
}

.project-badge.red {
  background-color: #FF2B48;
}

.project-badge.blue {
  background-color: #072c75;
}

.project-badge.green {
  background-color: #27AE60;
}
.text-recherche {
  color: #B5B7C0;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  word-wrap: break-word;
}

.text-date {
  color: #5E6366;
  font-size: 12px;
  font-family:'Poppins', sans-serif;
  font-weight: 400;
  word-wrap: break-word;
}

.text-filtrer {
  color: #7E7E7E;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  word-wrap: break-word;
}

.text-rapports {
  color: #3D3C42;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  word-wrap: break-word;
}

/* Badges (Métrés, Estimation, Bilan, En cours) */
.badge-metres {
  color: white;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  word-wrap: break-word;
  background-color: #FF2B48;
  padding: 4px 26px;
  border-radius: 12px;
  cursor: pointer;
}

.badge-estimation {
  color: white;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  word-wrap: break-word;
  background-color: #082358;
  padding: 4px 26px;
  border-radius: 12px;
  cursor: pointer;
}

.badge-bilan {
  color: white;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 16.8px;
  word-wrap: break-word;
  background-color: #27AE60;
  padding: 4px 26px;
  border-radius: 12px;
  cursor: pointer;
}

.badge-encours {
  color: #1A3266;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 16.8px;
  word-wrap: break-word;
  background-color: #E0E7FF;
  padding: 4px 26px;
  border-radius: 12px;
  cursor: pointer;
}

.badge-Termine {
  color: #2c8a54;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 16.8px;
  word-wrap: break-word;
  background-color: #E0E7FF;
  padding: 4px 26px;
  border-radius: 12px;
  cursor: pointer;
}
.badge-Brouillon {
  color: #2c8a54;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 16.8px;
  word-wrap: break-word;
  background-color: #E0E7FF;
  padding: 4px 26px;
  border-radius: 12px;
  cursor: pointer;
}

.search-input-container {
  position: relative;
  width: 250px; /* ou la largeur que tu souhaites */
}

.search-input {
  /* width: 100%;
  padding: 8px 30px 8px 12px; espace pour l’icône à droite */
  font-size: 14px;
  font-family:'Poppins', sans-serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* l’icône ne bloque pas le clic dans l’input */
  color: #aaa;
  font-size: 14px;
}
.badges-filter {
  display: flex;
  /*align-items: center;*/
  gap: 10px; /* espace entre les éléments */
  /*margin-left: 38.5%;*/
  margin-bottom: 10px;
  flex-wrap: wrap; /* pour s'adapter sur petits écrans */
  justify-content: flex-end;
}

.badges-filter .search-wrapper {
  position: relative;
}

.badges-filter .search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #aaa;
  pointer-events: none;
}

.badges-filter .search-input {
  height: 26px;
  padding: 6px 12px 6px 30px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #F9FBFF;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
}

.badges-filter .filter-label {
  font-size: 12px;
  font-family:'Poppins', sans-serif;
  color: #7E7E7E;
}

.badges-filter .projet-tablefilterType {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  background: #fff;
}
.date-input-wrapper {
  position: relative;
  display: inline-block;
  width: 220px; /* ajuste la largeur */
}

.date-input-wrapper .calendar-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
  color: #aaa;
}

.date-input-wrapper .date-input {
      width: 92%;
    padding: 6px 12px 6px 35px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #F9FBFF;
    height: 27px;
    font-size: 12px;
    font-family:'Poppins', sans-serif;
}

  
      
      .option-card {
          display: flex;
          flex-direction: column;
          width: 300px;
          align-items: center;
          justify-content: center;
          padding: 48px 32px;
          border-radius: var(--border-radius);
          color: var(--text-white);
          text-align: center;
          height: 100%;
          min-height: 350px;
          transition: transform 0.3s ease, box-shadow 0.3s ease;
          cursor: pointer;
      }
      
      .option-card:hover {
          transform: translateY(-5px);
          box-shadow: var(--box-shadow);
      }
      /* Add to your style.css or in a <style> block */
.option-card.selected {
border: 2px solid #007bff;
box-shadow: 0 0 8px #007bff44;
}
      .option-card--blue {
          background-color: var(--primary-blue);
      }
      
      .option-card--green {
          background-color: var(--primary-green);
      }
      
      .option-card--red {
          background-color: var(--primary-red);
      }
      
      .option-icon {
          width: 60px;
          height: 60px;
          margin-bottom: var(--spacing-unit);
      }
      
      .option-title {
          font-size: 1.75rem;
          font-weight: 500;
          margin-bottom: var(--spacing-unit);
          line-height: 1.2;
      }
      
      .option-description {
          font-size: 1.3rem;
          line-height: 1.5;
          max-width: 300px;
      }
      


      .project-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }
      
      .project-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 20px rgba(119, 158, 231, 0.1);
        background-color: #E0E7FF;
      }

/* updated Code */
.projet-rounded{
    border-radius: 1rem;
}
.projet-bg-dimensions{
  background-color: var(--box-highlight);
}
.projet-badge-filter { 
  width: 160px;
  border-radius: 10px;
  background-color: #292d32;
  height: 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0px 26px;
  margin: 5px 10px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 12px;
}
.projet-badge-filter.all{
  background-color: var(--sec-blue-dark);
  color: #fff;
}

.projet-badge-filter.exist{
  background-color: var(--sec-green);
  color: #fff;
}
.projet-badge-filter.missing{
  background-color: var(--sec-yellow);
  color: #000000;
}
.projet-badge-filter.nulled{
  background-color: var(--sec-red);
  color: #fff;
}
.projet-badge-filter.nontraite{
   background-color: #000;
  color: #fff;
}

.projet-dimension-cell.exist{
  background-color: var(--sec-green);
  color: #fff;
}
.projet-dimension-cell.missing{
  background-color: var(--sec-yellow);
  color: #000000;
}
.projet-dimension-cell.nulled{
  background-color: var(--sec-red);
  color: #fff;
}

 


.try-again-button{
  /* display: none; */
  background-color: var(--sec-green);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 1rem;
  align-self: flex-start;
}


/*****************************  style assistance responsive + resize */

/* === Conteneur principal du chat === */
#chatAssistant {
  position: relative;
  resize: none; /* on gère le resize manuellement */
  overflow: hidden;
  border-radius: 25px 25px 23px 0px; 
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

/* === Poignée de redimensionnement en bas à gauche avec indicateur visuel === */
/*#chatAssistant::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ccc 25%, transparent 25%) repeat-x,
              linear-gradient(45deg, #ccc 25%, transparent 25%) repeat-y;
  background-size: 6px 6px;
  border-radius: 3px;
  cursor: nwse-resize;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: rotate(270deg);  
}

#chatAssistant:hover::after {
  opacity: 1;
}*/

#chatAssistant::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 14px;
  height: 14px;

  /* SVG optimisé : diagonale plus visible + noir pur + plus épais */
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"> <polyline points="20 8 20 4 16 4"/><polyline points="4 16 4 20 8 20"/><line x1="20" y1="4" x2="4" y2="20"/></svg>') no-repeat center;

  background-size: contain;
  cursor: nesw-resize;
  opacity: 0.9;
  animation: blinkArrow 1.2s infinite ease-in-out;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  filter: drop-shadow(0 0 1px #fff0); /* ✅ améliore la netteté visuelle */
}

/* Animation clignotante */
@keyframes blinkArrow {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

#chatAssistant::after:hover {
  opacity: 1;
  transform: scale(1.15);
}
 
/* === Ligne de saisie du message === */
.chat-input-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid #eee;
}

/* Champ de saisie */
.chat-input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: #3498db;
}

/* Bouton d’envoi */
.btn-send {
  background: #3498db;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 48px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-send:hover {
  background: #2980b9;
  transform: scale(1.05);
}

.btn-send svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* === Responsive mobile === */
@media (max-width: 480px) {
 
  .chat-input-row {
    gap: 4px;
  }

  .chat-input {
    font-size: 13px;
    padding: 6px 8px;
  }

  .btn-send {
    width: 42px;
    height: 38px;
  }
}


#chatAssistant .chat-input-area {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 16px;
  border-top: 1px solid #ddd;
  background: #fff;
  position: relative;
}

/* La div w-100 s'adapte à la largeur du champ */
#chatAssistant .chat-input-area .w-100 {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

/* Le champ de saisie */
#chatAssistant #userInput {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 15px;
  resize: none;
  min-height: 86px;
  max-height: 190px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.2s ease;
  line-height: 1.45;
}

#chatAssistant #userInput:focus {
  border-color: #3498db;
}

/* Bouton envoyer */
#chatAssistant #sendButton {
    flex-shrink: 0;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    width: 72px;
    transition: background 0.2s ease, transform 0.1s ease;
}

#chatAssistant #sendButton:hover {
  background: #2980b9;
  transform: scale(1.05);
}

#chatAssistant #sendButton svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* === Responsive mobile === */
@media (max-width: 600px) {
  #chatAssistant .chat-input-area {
    flex-wrap: nowrap;
    padding: 6px;
    gap: 6px;
  }

  #chatAssistant #userInput {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 56px;
  }

  #chatAssistant #sendButton {
    width: 48px;
    height: 48px;
  }
}

.listebtnassistance #predefinedButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centré et propre */
  gap: 8px;
  padding: 6px 0;
}

/* Taille équilibrée — lisible mais compacte */
.listebtnassistance #predefinedButtons button {
  flex: 1 1 auto;
  min-width: 70px;
  max-width: 156px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;        /* ✅ lisible mais pas énorme */
  font-weight: 500;       /* moyen, plus léger que 600 */
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

/* Légère animation au survol */
.listebtnassistance #predefinedButtons button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive mobile */
@media (max-width: 600px) {
  .listebtnassistance #predefinedButtons {
    justify-content: center;
  }
  .listebtnassistance #predefinedButtons button {
    flex: 1 1 45%;
    font-size: 13.5px;
    padding: 6px 10px;
  }
}



.table-group-headerExcel {
  background-color: #4caf5038 !important;
  font-weight: 600;
  text-transform: uppercase;
  border-top: 2px solid #ccc;
}


.badgestatIgnore{
  background: #FF2B48 !important;
  font-weight: 600;
}
.badgestatNontraite{
  background: #7c7d7c !important;
  font-weight: 600;
}
.badgestatTraite{
  background: #27AE60 !important;
  font-weight: 600;
}

 
.badgelisteprojet{
  height: 25px;

}

.barannime{
  display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #E0E7FF;
    transition: width .6s ease;
        border-radius: 10px;
}

/* Assistant panel sizing override for edit project pages */
#assistantChat .assistant-container #chatAssistant {
  width: clamp(520px, 39vw, 780px);
  max-width: calc(100vw - 48px);
  min-width: 420px;
}

@media (max-width: 900px) {
  #assistantChat .assistant-container #chatAssistant {
    width: min(680px, calc(100vw - 32px));
    min-width: 340px;
  }
}

@media (max-width: 600px) {
  #assistantChat .assistant-container #chatAssistant {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
  }
}


