body {
    padding-top: 75px;
    padding-bottom: 80px;
}

a {
    color: #17a2b8;
}

a:hover {
    color: #11828f;
}

.navbar-center-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    white-space: nowrap;
}

table th, table tr, table td {
    text-align: center;
}

.table-sm td, .table-sm th {
    padding: 0.5em;
}

.content-left-align {
    text-align: left;
}

.copyright {
    font-size: 0.8em;
}

.avatar-navbar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-initiales {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #17a2b8;
    color: #fff;
    font-weight: 600;
    line-height: 1;
}

.avatar-initiales-lg {
    font-size: 2rem;
}

.chrono-navbar {
    font-size: 0.85rem;
}

/* ------------------------------------------------------------------ */
/* Liste des projets                                                   */
/* ------------------------------------------------------------------ */

.hero-section {
    padding: 30px 15px 15px;
    text-align: center;
}

.projet-row {
    cursor: pointer;
}

.projet-row:hover {
    background-color: #f5fbfc;
}

/* ------------------------------------------------------------------ */
/* Page projet                                                         */
/* ------------------------------------------------------------------ */

.projet-form-card, .agent-form-card {
    border: none;
    border-radius: 0.75rem;
}

.indicateur-card {
    border: none;
    border-radius: 0.75rem;
    text-align: center;
    padding: 1rem 0.5rem;
}

.indicateur-valeur {
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
}

.indicateur-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dessin-projet {
    max-width: 100%;
    max-height: 340px;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.bouton-lecture {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.custom-file-input ~ .custom-file-label::after {
    content: "Parcourir" !important;
}

.section-title {
    color: #212529;
    font-weight: 600;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

/* ------------------------------------------------------------------ */
/* Heatmap de fluidité (1 carré = 1 jour)                               */
/* ------------------------------------------------------------------ */

.heatmap-fluidite {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    grid-auto-flow: column;
    grid-auto-columns: 12px;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.heatmap-case {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: #ebedf0;
}

.heatmap-case[data-niveau="1"] { background-color: #c3e6ef; }
.heatmap-case[data-niveau="2"] { background-color: #7fcbdd; }
.heatmap-case[data-niveau="3"] { background-color: #3aa9c2; }
.heatmap-case[data-niveau="4"] { background-color: #17a2b8; }

/* ------------------------------------------------------------------ */
/* Écran de chargement plein écran                                      */
/* ------------------------------------------------------------------ */

.ecran-chargement {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.94);
}

.ecran-chargement-contenu {
    text-align: center;
}

.ecran-chargement-logo {
    max-width: 160px;
    animation: pulsation-logo 1.6s ease-in-out infinite;
}

@keyframes pulsation-logo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.ecran-chargement-texte {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Recherche typeahead (badger sur un nouveau projet)                   */
/* ------------------------------------------------------------------ */

.recherche-typeahead-wrap {
    position: relative;
}

.recherche-typeahead {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1040;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0.5rem 0.5rem;
    background-color: #fff;
}

.recherche-typeahead:empty {
    box-shadow: none;
}

.recherche-typeahead-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.recherche-typeahead-item:hover {
    background-color: #eaf6f9;
}

.avatar-compte {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

/* ------------------------------------------------------------------ */
/* Pastille d'état (colonne État de la liste des projets)               */
/* ------------------------------------------------------------------ */

.statut-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.statut-dot-gris   { background-color: #adb5bd; }
.statut-dot-vert   { background-color: #28a745; }
.statut-dot-orange { background-color: #fd7e14; }
.statut-dot-rouge  { background-color: #dc3545; }
.statut-dot-noir   { background-color: #212529; }
.statut-dot-blanc  { background-color: #fff; color: #212529; border: 1px solid #adb5bd; }

/* ------------------------------------------------------------------ */
/* Icône Teams (liste des projets)                                      */
/* ------------------------------------------------------------------ */

.icone-teams {
    color: #5059c9;
}

.icone-teams:hover {
    color: #383e96;
}

/* Champ numérique qui n'a pas besoin de prendre toute la largeur du formulaire */
.form-control-etroit {
    max-width: 160px;
}
