/* Flowback - Th�me principal */

:root {
    --couleur-principale: #ffffff;
    --bleu-gris-fonce: #37596E;
    --bleu-maritime: #2B4D6B;
    --bleu-nuit: #1D3052;
    --bleu-tres-fonce: #1B1E3E;
    --dore: #E3C170;
    --beige-clair: #FAD493;
}

/* G�n�ral */
body {
    background-color: var(--couleur-principale);
    color: var(--bleu-tres-fonce);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
}

a {
    color: var(--bleu-maritime);
    text-decoration: none;
}

a:hover {
    color: var(--bleu-gris-fonce);
    text-decoration: underline;
}

/* Navigation et header */
.navbar {
    background-color: #3D2463;
}

.navbar-brand {
    color: var(--couleur-principale);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}

.navbar-brand:hover {
    color: var(--beige-clair);
    text-decoration: none;
    background-color: rgba(227, 193, 112, 0.15);
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--couleur-principale);
    text-decoration: none;
    font-weight: bold;
}

.navbar-nav .nav-link:hover {
    color: var(--beige-clair);
    text-decoration: none;
}

.navbar-nav .nav-item:hover {
    background-color: rgba(227, 193, 112, 0.15);
    border-radius: 5px;
}

/* Boutons */
.btn {
    font-size: 13px;
    padding: 0.375rem 0.75rem;
}

.btn-primary {
    background-color: var(--bleu-maritime);
    border-color: var(--bleu-maritime);
}

.btn-primary:hover {
    background-color: var(--bleu-nuit);
    border-color: var(--bleu-nuit);
}

.btn-secondary {
    background-color: var(--bleu-gris-fonce);
    border-color: var(--bleu-gris-fonce);
}

.btn-secondary:hover {
    background-color: var(--bleu-maritime);
    border-color: var(--bleu-maritime);
}

.btn-warning {
    background-color: var(--dore);
    border-color: var(--dore);
    color: var(--bleu-tres-fonce);
}

.btn-warning:hover {
    background-color: #d4ae5a;
    border-color: #d4ae5a;
    color: var(--bleu-tres-fonce);
}

/* Cards */
.card {
    border-color: var(--bleu-gris-fonce);
}

.card-header {
    background-color: var(--bleu-tres-fonce);
    color: var(--couleur-principale);
    border-bottom-color: var(--bleu-maritime);
}

/* Formulaires */
.form-control {
    font-size: 13px;
    padding: 0.375rem 0.75rem;
}

.form-control:focus {
    border-color: var(--bleu-maritime);
    box-shadow: 0 0 0 0.2rem rgba(43, 77, 107, 0.25);
}

.form-label {
    color: var(--bleu-nuit);
    font-weight: 500;
    font-size: 13px;
}

/* Tables */
.table {
    color: var(--bleu-tres-fonce);
}

.table thead th {
    background-color: var(--bleu-tres-fonce);
    color: var(--couleur-principale);
    border-color: var(--bleu-maritime);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(250, 212, 147, 0.1);
}

.table-hover tbody tr:hover {
    background-color: rgba(227, 193, 112, 0.15);
}

/* Badges */
.badge-primary {
    background-color: var(--bleu-maritime);
}

.badge-secondary {
    background-color: var(--bleu-gris-fonce);
}

.badge-warning {
    background-color: var(--dore);
    color: var(--bleu-tres-fonce);
}

/* Alertes */
.alert-warning {
    background-color: rgba(227, 193, 112, 0.1);
    border-color: var(--dore);
    color: var(--bleu-tres-fonce);
}

/* Utilitaires */
.text-accent {
    color: var(--dore);
}

.bg-accent {
    background-color: var(--dore);
}

.bg-primary-dark {
    background-color: var(--bleu-tres-fonce);
}

.border-primary {
    border-color: var(--bleu-maritime);
}

.small, small {
    font-size: 12px;
}

p {
    font-size: 13px;
}

h6 {
    font-size: 15px;
}

input::placeholder, textarea::placeholder {
    font-size: 13px;
}

/* Cards documents */
.card-document {
    position: relative;
    transition: box-shadow 0.15s;
}

.card-document:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-document .card-title {
    font-size: 15px;
    font-weight: 600;
}

.card-document .metadonnees {
    font-size: 13px;
    line-height: 1.4;
}

.card-document .badge {
    font-size: 12px;
}

/* Modal document 80% */
.modal-document {
    max-width: 80%;
}

.modal-document .modal-title {
    font-size: 14px;
}

/* Tabs plus compacts */
.nav-tabs-sm .nav-link {
    font-size: 13px;
    padding: 0.35rem 0.75rem;
}

/* Contenu des onglets */
.content-text {
    font-size: 15px;
    line-height: 1.6;
}

/* Zoom texte modal - force heritage */
#modalDocument .tab-content * {
    font-size: inherit !important;
}

/* Timeline fil temporel */
.timeline {
    position: relative;
    padding-left: 90px;
}

.timeline-item {
    position: relative;
    padding-bottom: 15px;
}

/* Ligne verticale */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    bottom: 0;
    width: 2px;
    background-color: #3D2463;
}

/* Dernier element sans ligne vers le bas */
.timeline-item:last-child::before {
    display: none;
}

/* Point ouvert */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -35px;
    top: 0px;
    width: 12px;
    height: 12px;
    border: 2px solid #3D2463;
    border-radius: 50%;
    background-color: #ffffff;
}

/* Heure a gauche du point */
.timeline-heure {
    position: absolute;
    left: -88px;
    top: -1px;
    font-size: 12px;
    color: #3D2463;
    font-weight: 500;
    width: 48px;
    text-align: right;
}

/* Ligne horizontale du point vers la card */
.timeline-item .card-document::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 24px;
    height: 2px;
    background-color: #3D2463;
    z-index: 1;
}

/* Icones feedback up/down */
.feedback-icons {
    display: inline-flex;
    gap: 0.3rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.feedback-icon {
    cursor: pointer;
    color: #adb5bd;
    font-size: 1.1em;
    transition: all 0.15s;
}

.feedback-icon:hover {
    transform: scale(1.2);
}

.feedback-icon.active.feedback-up {
    color: #28a745;
    font-size: 1.3em;
    -webkit-text-stroke: 0.5px #28a745;
}

.feedback-icon.active.feedback-down {
    color: #dc3545;
    font-size: 1.3em;
    -webkit-text-stroke: 0.5px #dc3545;
}

/* Scoring dans header modal */
.scoring-item {
    display: flex;
    align-items: center;
}

.scoring-icons {
    display: inline-flex;
    gap: 2px;
}

.scoring-icon {
    cursor: pointer;
    color: #dee2e6;
    font-size: 14px;
    transition: color 0.15s, transform 0.1s;
}

.scoring-icon:hover {
    transform: scale(1.2);
}

.scoring-icon.active-star {
    color: #ffc107;
}

.scoring-icon.active-lightning {
    color: #dc3545;
}
