﻿/* CSS RAPPORT PARTAGE (a trier) */

.background-identity {
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    /* 1. La propriété background-image et l'URL de l'image 
background-image: url('/background-nature.jpg');
 2. Empêche l'image de se répéter pour couvrir tout l'arrière-plan 
background-repeat: no-repeat;
 3. Assure que l'image couvre l'intégralité de l'élément body 
background-size: cover;
 4. Fixe l'image pour qu'elle ne défile pas avec le contenu 
background-attachment: fixed;
 5. Définit une couleur de secours si l'image ne charge pas 
background-color: var(--color-bg-main);*/
}



.global-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Espace entre tes blocs coordonnées */
    align-items: flex-start; /* Évite que les blocs s'étirent en hauteur inutilement */
}

.client-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Adaptabilité pour le container parent en flex-wrap */
    flex: 1 1 350px; /* Grandit, rétrécit, mais tente de garder 350px min */
    max-width: 100%; /* Ne dépasse jamais l'écran */
    box-sizing: border-box;
    /* Sécurité critique pour le mobile */
    min-width: 0;
    width: 100%;
}


/* Titre adaptable */
.section-title {
    font-size: clamp(1rem, 5vw, 1.2rem); /* Taille fluide selon l'écran */
    color: #ce1126;
    margin-bottom: 0.5rem;
    font-weight: bold;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}


/* GESTION DU RESPONSIVE INTERNE (CP + Ville) */


.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}


.form-row {
    display: flex;
    flex-wrap: wrap; /* Permet l'empilement si trop étroit */
    gap: 1rem;
    min-width: 280px;
    align-items: flex-start; /* Aligne tout en haut pour éviter les étirements */
}

/* Style des groupes */
.form-group.row-p1,
.form-group.row-p2 {
    display: flex;
    /*flex-direction: row;*/
}

.row-p1 {
    flex: 2 1 250px; /* Largeur de base 100px */
}

.row-p2 {
    flex: 0.5 1 50px; /* Largeur de base 200px */
}

/*******************/


.cp {
    flex: 1 1 100px; /* Largeur de base 100px */
}

.ville {
    flex: 2 1 200px; /* Largeur de base 200px */
}



/* Barre de navigation interne au bâtiment */

/* Conteneur principal du Quick-Nav */
.quick-nav-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes pour réduire la hauteur */
    gap: 6px;
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 10px;
}

/* Style des boutons individuels */
.quick-nav-btn {
    display: flex;
    flex-direction: column; /* Texte sous une éventuelle icône si tu en ajoutes */
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 10px; /* Texte plus petit pour que ça rentre */
    font-weight: 600;
    color: #495057;
    text-align: center;
    line-height: 1.1;
    min-height: 45px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .quick-nav-btn:active {
        background-color: #e9ecef;
        transform: translateY(1px);
    }

    /* Optionnel : mettre en avant la section active */
    .quick-nav-btn.active {
        border-color: #e67e22;
        color: #e67e22;
        background-color: #fff5ed;
    }

@media (min-width: 861px) {
    /* Sur Desktop, on peut garder affichage actuel ou le masquer */
    .quick-nav-container {
        display: none; /* Souvent inutile sur grand écran si tout est visible */
    }
}


.responsive-obs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

/* masque le button scroll to sur pc */
.floating-nav-btn {
    display: none;
}




/***************************************/



/* Container principal du formulaire */
.excel-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #d1d1d1;
    background: white;
    display: flex;
    flex-direction: column;
}

/* Barre des onglets */
.excel-tabs-bar {
    display: flex;
    background-color: #f3f3f3; /* Gris très clair Excel */
    padding-top: 8px;
    padding-left: 10px;
    border-bottom: 1px solid #d1d1d1;
}

/* Style de l'onglet individuel */
.excel-tab-button {
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 18px;
    color: #444;
    margin-bottom: -1px; /* Pour chevaucher la bordure basse */
    position: relative;
    outline: none;
    transition: background 0.2s;
}

    /* Survol de l'onglet */
    .excel-tab-button:hover:not(.active) {
        background-color: #e6e6e6;
    }

    /* L'onglet ACTIF (Style Excel) */
    .excel-tab-button.active {
        background-color: #ffffff;
        border: 1px solid #d1d1d1;
        border-bottom-color: #ffffff; /* Masque la ligne du bas */
        color: #107c10; /* Vert Excel */
        font-weight: 600;
    }

        /* La petite barre verte au dessus de l'onglet actif */
        .excel-tab-button.active::before {
            content: "";
            position: absolute;
            top: -8px;
            left: -1px;
            right: -1px;
            height: 3px;
            background-color: #107c10;
        }

/* Zone de contenu */
.excel-content {
    padding: 20px;
    background: white;
    min-height: 300px;
}

/* Petit badge de compteur */
.count-badge {
    background: #888;
    color: white;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 5px;
}

.active .count-badge {
    background: #107c10;
}



/* Style spécifique pour les sous-onglets de bâtiments */
/*.excel-sub-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0;
}*/
.excel-sub-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px; /* Un peu d'air pour le scroll */
    /* --- LE FIX ICI --- */
    overflow-x: auto; /* Active le scroll horizontal */
    white-space: nowrap; /* Empêche le texte de revenir à la ligne */
    flex-wrap: nowrap; /* Force les boutons à rester sur une ligne */
    /* Optionnel : cache la barre de scroll moche sur certains navigateurs */
    -webkit-overflow-scrolling: touch;
}

    .excel-sub-tabs::-webkit-scrollbar {
        height: 4px; /* Barre de scroll très fine */
    }

    .excel-sub-tabs::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }



.sub-tab-button {
    flex: 0 0 auto; /* Empêche les boutons de rétrécir */
    border: 1px solid #ccc;
    background: #eee;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    color: #666;
}

    .sub-tab-button.active {
        background: #ec6907;
        border-bottom-color: #fff;
        font-weight: bold;
        color: #000;
        margin-bottom: -1px;
    }

/*.btn-add-bat {
    background: none;
    border: 1px dashed #ec6907;
    color: #ec6907;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;*/
/*min-width: fit-content;*/
/*max-width: 50px;
}*/
.btn-add-bat {
    display: flex;
    flex-direction: column; /* Aligne l'icône et le texte verticalement */
    align-items: center; /* Centre horizontalement l'icône et le texte */
    justify-content: center; /* Centre verticalement le contenu */
    text-align: center; /* Centre les deux lignes de texte entre elles */
    border: 1px dashed #ec6907;
    color: #ec6907;
    width: 120px; /* Largeur fixe (ajuste selon ton besoin) */
    min-width: 120px; /* Sécurité pour le flex-container */
    padding: 5px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.75rem; /* Un peu plus petit pour que ça tienne mieux */
    line-height: 1.1; /* Resserre l'espace entre les deux lignes de texte */
    /* Optionnel : pour le scroll horizontal vu précédemment */
    flex: 0 0 auto;
}

    .btn-add-bat img {
        margin-bottom: 2px; /* Espace entre l'icône et le début du texte */
    }

    .btn-add-bat:hover {
        background: #eaf5ea;
    }


/*******/
/* bloc coordonée client */
/* Le conteneur principal devient fluide */
.client-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Adaptabilité pour le container parent en flex-wrap */
    flex: 1 1 350px; /* Grandit, rétrécit, mais tente de garder 350px min */
    max-width: 100%; /* Ne dépasse jamais l'écran */
    box-sizing: border-box;
}

/* Titre adaptable */
.section-title {
    font-size: clamp(1rem, 5vw, 1.2rem); /* Taille fluide selon l'écran */
    color: #ce1126;
    margin-bottom: 0.5rem;
    font-weight: bold;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}



/*.form-group-row {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
}*/

/* Inputs fluides */
.form-input {
    width: 100%; /* Force l'occupation de l'espace */
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Crucial pour le responsive */
}



/* Media Query pour les petits écrans (Mobile) */
@media (max-width: 480px) {
    .client-card {
        padding: 1rem; /* Réduit l'espace interne sur mobile */
    }

    /*.form-row {
        flex-direction: column;*/ /* CP et Ville l'un sur l'autre sur petit mobile */
    /*gap: 1.2rem;
    }*/

    .form-row {
        gap: 0.5rem; /* Réduit l'espace entre Sécurité et Hauteur sur mobile */
    }

    .form-group.row-p1,
    .form-group.row-p2 {
        flex: 1 1 100%; /* Force la pleine largeur */
        margin-top: 0 !important; /* Supprime toute marge haute parasite */
        /*flex-direction: column;*/
    }

        .form-group.row-p2 label {
            margin-top: 5px; /* Juste un petit espace minimal pour respirer */
        }

    .form-input {
        font-size: 16px; /* Évite le zoom automatique sur iPhone au focus */
    }
}

.excel-tab-button {
    display: flex;
    flex-direction: column; /* Icône au dessus du texte (optionnel) */
    align-items: center;
    justify-content: center;
    flex: 1; /* Chaque bouton prend la même place */
    padding: 10px 5px;
}

.tab-icon {
    font-size: 1.4rem; /* Taille de l'emoji */
}

/* Sur Mobile */
@media (max-width: 900px) {
    .tab-text {
        display: none; /* On cache le texte */
    }

    .excel-tab-button {
        padding: 12px 0;
    }

    .count-badge {
        /* On repositionne le badge pour qu'il "flotte" sur l'icône */
        position: absolute;
        top: 5px;
        right: 5px;
        margin: 0;
    }
}

/* Sur Desktop */
@media (min-width: 861px) {
    .excel-tab-button {
        flex-direction: row; /* Alignement horizontal icône + texte */
        gap: 8px;
    }
}
/* style button TYPE */
.segmented-control {
    display: flex;
    background-color: #e9ecef;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #ced4da;
    min-width: 250px;
    max-width: 400px;
    cursor: pointer;
    user-select: none; /* Empêche la sélection du texte au clic */
}

.segment-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 500;
    border: solid var(--color-primary) 0.1px;
}

    /* L'état sélectionné est géré par la classe .active de Blazor */
    .segment-item.active {
        background-color: forestgreen;
        color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        font-weight: 700;
    }

    .segment-item:hover:not(.active) {
        background-color: rgba(255, 255, 255, 0.5);
    }



.form-control {
    min-width: 150px;
    max-width: 300px !important;
}


/* Info blocage signature */

.error-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.error-popup-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.error-list-container {
    max-height: 50vh;
    overflow-y: auto;
}

.error-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
/* L'icône devient orange/bleue quand l'onglet est sélectionné */
/*.excel-tab-button.active svg {
    fill: #e67e22;*/ /* Ou la couleur dominante de ton bouton */
/*transition: fill 0.3s ease;
}*/

/* On peut aussi agrandir très légèrement l'icône active */
/*.excel-tab-button.active .tab-icon {
    transform: scale(1.1);
}*/



/* Grille adaptative */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    width: 100%;
}

/* La carte */
.photo-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* width: auto;
    min-width:450px;*/
}

    .photo-card.mandatory {
        border-left: 5px solid #ff4444;
    }

/* Zones d'upload */
.upload-container {
    width: 100%;
    min-height: 180px;
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 4px;
    position: relative;
    margin-bottom: 8px;
}

.image-wrapper {
    position: relative;
    width: 100%;
}

.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 250px;
}

/* Overlay boutons sur image */
.image-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Inputs "Clean" */
.input-clean {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-size: 1.1rem;
    outline: none;
}

.input-area-clean {
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fcfcfc;
    padding: 8px;
    resize: none;
    font-size: 0.9rem;
}

/* Adaptations Mobile */
@media (max-width: 900px) {
    .mobile-hide {
        display: none;
    }

    .mobile-only {
        display: inline;
    }
}


.card-header-custom.pointer {
    cursor: pointer;
    user-select: none; /* Évite de sélectionner le texte en cliquant vite */
}

.card-header-custom:hover {
    background-color: #f8f9fa;
}




/* permet de ne pas propager le scroll sur le body, tant que le menu mobile est ouvert
    il faut ajouter /supprimer la classe via JSinterop */
/*body.menu-open {
    overflow: hidden !important;
    position: fixed;*/ /* Technique ultime pour iOS */
/*width: 100%;
}*/
/*
.img-responsive : { max-width: 100%; height: auto; display: block; } (Indispensable pour tes photos de chantiers).
.object-fit-cover : Pour que tes images dans des cadres fixes ne soient pas déformées.
*/
/*****************************/
/* Classes de Titre et Texte */
/*   RATIONALISÉES           */
/*****************************/
.title {
    display: flex;
    font-size: var(--f-size-title);
    line-height: 1.2; /* Important pour les gros titres */
    color: var(--color-text-link); /* Utilise la couleur principale du projet */
    font-weight: 800; /* Gardé car c'est un titre principal fort */
    font-family: var(--font-family-base);
}

/*.title-medium {
    display: flex;
    font-size: var(--f-size-medium);
    color: var(--color-text-link);
    font-weight: 700;*/ /* Choix du 700 standard */
/*font-family: var(--font-family-base);
}*/

.title-small {
    display: flex;
    font-size: var(--f-size-small);
    color: var(--color-text-link);
    font-weight: 700;
    font-family: var(--font-family-base);
}

.subTitleContent {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    font-size: clamp(1.2rem, 1rem + 1vw, 3.5rem);
    font-family: var(--font-family-base);
    font-weight: 800;
}



.text {
    display: flex;
    font-size: 1rem;
    color: var(--color-text-body); /* Couleur du texte par défaut */
    font-weight: 400;
    line-height: 2rem;
    font-family: var(--font-family-secondary);
}


/******************************/
/* la suite du settings doit être vérifier mais 
    normalement repris par les autres lib (ntm libFusion) */
/******************************/
.text-ellipsis {
    white-space: nowrap; /* Empêche le retour à la ligne */
    overflow: hidden; /* Coupe ce qui dépasse */
    text-overflow: ellipsis; /* Ajoute les '...' */
    display: block; /* Ou inline-block, impératif pour que l'overflow fonctionne */
}

/* NOT FIND */
.spe-conf {
    width: 100%;
    height: auto;
    background-color: var(--color-background-light);
    border-radius: var(--radius-xxl);
    vertical-align: top;
    margin: 0 0 2rem 2rem;
}

.sub-title {
    font-size: 1.6rem;
    font-weight: 100;
    flex-grow: 1;
    color: var(--color-text-on-light);
    margin-left: 2rem;
}

.info-conf {
    padding: 0.25rem 0 0 0;
    font-size: 1.5rem;
    color: var(--color-text-on-light);
}

.sub-info-conf {
    padding: 0.25rem 0 0 0;
    font-size: 1rem;
    color: var(--color-text-on-light);
}



.page-twopart {
    width: 50%;
    height: auto;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--color-background-light);
    color: var(--color-text-on-light);
    text-align: center;
}




.part-card {
    width: 33rem;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: solid var(--color-accent-light) 3px;
    background-color: var(--color-background-light);
    color: var(--color-text-on-light);
    text-align: center;
    border-radius: var(--radius);
}


    .part-card .title-card {
        width: 90%;
        height: auto;
        display: flex;
        flex-grow: 1;
        text-align: left;
    }




    .part-card img {
        width: 100%;
        height: 1.5rem;
    }

    .part-card .content-card {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
    }

    .part-card .line-element,
    .part-card-conf .line-element,
    .part-card-error .line-element {
        font-size: 1rem;
        color: var(--color-text-on-light);
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }





.part-card-conf {
    width: 20rem;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: solid var(--color-accent-light) 3px;
    background-color: var(--color-background-light);
    color: var(--color-text-on-light);
    text-align: center;
    border-radius: var(--radius);
}


    .part-card-conf .title-card {
        width: 60%;
        height: auto;
        display: flex;
        flex-grow: 1;
        text-align: left;
    }



    .part-card-conf .content-card,
    .part-card-error .content-card {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }





.part-card-error {
    width: 80%;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: solid var(--color-accent-light) 3px;
    background-color: var(--color-background-light);
    color: var(--color-text-on-light);
    text-align: left;
    border-radius: var(--radius);
}




.part-card-ticket {
    width: 40%;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: solid var(--color-accent-light) 3px;
    background-color: var(--color-background-light);
    color: var(--color-text-on-light);
    text-align: left;
    border-radius: var(--radius);
}

.ticket-user-actif {
    width: 40%;
    height: auto;
    border: var(--color-text-on-light) 2px solid;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin: 1rem auto;
    background-color: white;
}

.ticket-user-inactif {
    width: 40%;
    height: auto;
    border: var(--color-text-on-light) 2px solid;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin: 1rem auto;
    background-color: ghostwhite;
}




.container-statut {
    padding-bottom: 1rem;
    border-bottom: solid var(--color-accent-light) 4px;
    border-top: solid var(--color-accent-light) 4px;
}

.state-chantier-on {
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
    border-radius: var(--radius-circle);
    background-image: var(--color-bg-main);
    display: inline-block;
    color: #fff;
}

.state-chantier-off {
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
    border-radius: var(--radius-circle);
    background-image: var(--color-bg-main);
    opacity: 0.3;
    display: inline-block;
    color: #fff;
}

.container-doc {
    padding-top: 1rem;
    border-top: solid var(--color-accent-light) 4px;
}





.statutpointOn {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-circle);
    background-color: forestgreen;
    margin: 0.25rem 0.5rem 0 0;
}

.statutpointOff {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-circle);
    background-color: red;
    margin: 0.25rem 0.5rem 0 0;
}

.statutpointOrange {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-circle);
    background-color: darkorange;
    margin: 0.25rem 0.5rem 0 0;
}


.card-dash, .card-dash-double, .card-dash-min {
    margin: 2rem 1rem;
    text-align: center;
    cursor: pointer;
}


.card-dash-inner, .card-dash-double-inner, .card-dash-min-inner {
    background-image: var(--color-bg-main);
    border-radius: 0.5rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.card-dash {
    width: 100%;
    max-width: 22rem;
    height: 4rem;
}

.card-dash-min {
    width: auto;
    min-width: 16rem;
    height: 8rem;
}

.card-dash-double, .card-dash-double-inner {
    width: auto;
    height: 18rem;
}


    .card-dash a, .card-dash-double a, .card-dash-min a {
        color: #fff;
        text-decoration: none;
        display: block;
        height: 100%;
        width: 100%;
    }


.card-dash .title-card-dash {
    font-weight: 600;
    font-size: 1.1rem;
    /*margin-top: 1rem;*/
}

.card-dash-double .title-card-dash {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-dash-min .title-card-dash {
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.count-title {
    font-size: 1.2rem;
}

.count {
    font-size: 2.5rem;
    font-weight: bold;
}

Images + spans animés
.card-dash img,
.card-dash span {
    transition: transform 0.4s ease;
    transform-origin: center center;
}





.badge-new {
    position: absolute;
    top: 8px;
    right: 12px;
    background-color: #e03e3e;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-double);
    box-shadow: 0 0 6px rgba(224, 62, 62, 0.7);
    animation: pulse 2.5s infinite ease-in-out;
    pointer-events: none;
}


/*    ********************************
     Class menu déroulant (profil & chantier) 
    ********************************
*/

.info-user {
    width: auto;
    height: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    padding: 1rem 0.5rem 0 0.5rem;
    cursor: pointer;
}

.btn-profil {
}

.container-menu {
    width: auto;
    height: auto;
    min-height: 6rem;
    max-height: 100vh -8rem;
    position: absolute;
    top: var(--height-menu-taskbar);
    right: 4px;
    border-left: var(--color-border-primary) 3px solid;
    border-bottom: #77A6F7 3px solid;
    color: var(--color-text-on-light);
    background-color: #2ebaf9;
}






.container-doc h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
}


.container-row.j-start .container-col.cursor-pointer img {
    transition: transform 0.3s ease;
}

.container-row.j-start .container-col.cursor-pointer:hover img {
    transform: scale(1.1);
}


.badge.bg-success {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
}

.container-doc {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container-row.border-blue-dark {
    border: 1px solid #007BFF;
    border-radius: 8px;
    background-color: #fff;
    transition: background 0.2s ease;
}

    .container-row.border-blue-dark:hover {
        background-color: #f0f8ff;
    }

/*   *************************

     Style dédié au button Home (TaskBar) */
.home-label {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    display: none;
}

.hover-scale:hover .home-label {
    display: inline;
}

.hover-scale {
    transition: transform 0.2s ease-in-out;
}

    .hover-scale:hover {
        transform: scale(1.05);
    }



.signature-label {
    font-weight: bold;
    font-style: italic;
    color: #555;
    border: 1px solid #ccc;
}

.signature-style {
    font-weight: bold;
    font-size: 1.4rem;
    color: #1a237e;
    border: 1px solid #1a237e;
}

.htCenter.header-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.htCenter {
    text-align: center !important;
}

.header-title {
    font-weight: bold;
    background-color: #3f51b5;
    color: white;
    text-align: center;
}


/* Class liées composants LOGIN */

.background-identity {
    width: 100%;
    height: 100vh;
        background-image: var(--color-bg-main);
    background-image: url('/assets/images/background/background-nature.jpg');
     background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

}

.background-hello {
    width: 100%;
    height: calc(100vh - var(--height-menu-taskbar));
    background-image: var(--color-bg-main);
    background-image: url('/assets/images/background/background-hello2-HD.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: var(--color-bg-main);
    background-position: center bottom;
}




.container-login {
    width: 40%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.title-login h1 {
    color: var(--color-white);
}


.container-logo-entreprise {
}


.logo-entreprise {
    /* On dit au navigateur d'ignorer la valeur fixe de 50px ou 100px */
    width: 100% !important;
    min-width: 8rem;
    height: auto !important;
    /* On garde un aspect propre pour les logos de différentes formes */
    max-height: 200px; /* Ou la taille max que tu souhaites pour tes logos */
    min-height: 5rem;
    object-fit: contain;
    /*filter: grayscale(0.3);
    transition: filter 0.3s ease;*/
    display: block;
    align-items: center;
    margin: 0.5rem;
}
/***************************/



/* Style filtre LogConnect */
.container-row.flex-wrap {
    flex-wrap: wrap;
    gap: 1rem;
}





/* Composant Profil */
.text-helloProfil {
    display: flex;
    flex-direction: row;
    justify-content: center;
    min-width: 10vw;
    max-width: 15vw;
}

.toolBarChantier {
    margin-top: 0;
}
