/******************* Navigation tabs offres */

.nav-tabs-offres {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1.5px solid #e0e0e0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-tabs-offres::-webkit-scrollbar {
    display: none;
}

.nav-tab-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    white-space: nowrap;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-tab-link:hover {
    color: #333;
    border-bottom-color: #aaa;
}

.nav-tab-link.active {
    color: #01a08c;
    border-bottom-color: #01a08c;
}

.nav-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    flex-shrink: 0;
}

.nav-tab-link.active .nav-tab-dot {
    opacity: 1;
}


@media (max-width: 768px) {
    .nav-tab-link {
        padding: 0.8rem 1rem;
        font-size: 1.2rem;
    }
}
.offres-cards-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .offre-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: hidden;
        transition: box-shadow 0.3s ease;
    }

    .offre-card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .card-header {
        background: #01a08c;
        color: white;
        padding: 15px 20px;
        font-weight: bold;
        font-size: 16px;
        position: relative;
    }

    .card-badge {
        background: #2c3e50;
        color: white;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 12px;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    .card-badge.attribuee {
        background: #28a745;
    }

    .card-badge.appel-offre {
        background: #007bff;
    }

    .card-body {
        padding: 20px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 20px;
        align-items: start;
    }

    .card-info {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px 20px;
    }

    .info-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .info-label {
        font-weight: bold;
        color: #555;
        font-size: 14px;
    }

    .info-value {
        color: #333;
        font-size: 14px;
    }

    .info-value a {
        color: #4a90e2;
        text-decoration: none;
    }

    .info-value a:hover {
        text-decoration: underline;
    }

    .card-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 120px;
    }

    .btn-consulter {
        background: #4a90e2;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        text-decoration: none;
        text-align: center;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .btn-consulter:hover {
        background: #357abd;
        color: white;
        text-decoration: none;
    }

    .btn-download {
        background: #28a745;
        color: white;
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        text-decoration: none;
        text-align: center;
        font-size: 12px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .btn-download:hover {
        background: #218838;
        color: white;
        text-decoration: none;
    }

    .no-offres {
        text-align: center;
        padding: 40px;
        color: #666;
        font-style: italic;
    }

    @media (max-width: 768px) {
        .card-body {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .card-info {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .card-actions {
            min-width: auto;
        }
    }
  
  
  
  .appelOffre {
    margin-top: 7rem;
  }

  .image-section .image-container {
    width: 95%;
  }
  .image-section .separator {
    height: 8px;
  }


.homologation form div {
    align-items: center;
}


.homologation select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

 
/* Style spécifique au bouton d'attribution */
.action-attribution {
  background: var(--green) !important;
  color: #fff !important;
  border-color: var(--green) !important;
  box-shadow: 0 0 8px rgba(0, 255, 150, 0.5);
  transition: 0.2s ease-in-out;
}

.action-attribution:hover {
  box-shadow: 0 0 14px rgba(0, 255, 150, 0.8);
  transform: translateY(-2px);
}


/* ---- Table d'attribution : occuper toute la largeur ---- */
.homologation .grid-tables.attribution-table {
  display: flex;                     /* deviens un conteneur flex */
  flex-direction: column;            /* la table en colonne */
  width: 100%;                       /* occupe toute la largeur */
  gap: 16px;
  background-color: #01a08c10;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.homologation .grid-tables.attribution-table table {
  width: 100%;                       /* la table aussi 100% */
  flex-grow: 1;                      /* prendre l'espace disponible */
}
/* Séparation visuelle entre les fabricants */
.fabricant-sep td {
    border-top: 3px solid #008c7f; /* ligne foncée entre groupes */
}

/* Empêche la toute première ligne d'avoir une bordure excessive */
.styled-table tbody tr:first-child td {
    border-top: none;
}

/******************************************************* Start Offres Cards Layout ***********************/
.offres-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.offre-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.offre-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.offre-card .card-header {
    background: #01a08c;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 16px;
    position: relative;
}

.offre-card .card-badge {
    background: #2c3e50;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 20px;
}

.offre-card .card-badge.attribuee {
    background: #28a745;
}

.offre-card .card-badge.appel-offre {
    background: #007bff;
}

.offre-card .card-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.offre-card .card-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px 20px;
}

.offre-card .info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offre-card .info-label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.offre-card .info-value {
    color: #333;
    font-size: 14px;
}

.offre-card .info-value a {
    color: #4a90e2;
    text-decoration: none;
}

.offre-card .info-value a:hover {
    text-decoration: underline;
}

.offre-card .card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.offre-card .btn-consulter {
    background: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.offre-card .btn-consulter:hover {
    background: #357abd;
    color: white;
    text-decoration: none;
}

.offre-card .btn-download {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.offre-card .btn-download:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.no-offres {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive pour les cartes d'offres */
@media (max-width: 768px) {
    .offre-card .card-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .offre-card .card-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .offre-card .card-actions {
        min-width: auto;
    }
}
/******************************************************* End Offres Cards Layout ***********************/
