/* General styles */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    background: linear-gradient(45deg, #e0eeff 0%, rgba(255, 255, 255, 0.9) 50%, #f5f9ff 100%) 255px 100%;
    background-size: calc(100% - 255px) 100%;
    background-attachment: fixed;
    color: #333;
    margin: 0;
}

/* Sidebar */
.sidebar {
    width: 255px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 20px 0 40px rgba(59, 64, 86, 0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 500;
}

.sidebar-content {
    flex: 1;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    min-height: 0;
}

.sidebar-logo {
    padding: 8px;
    margin-top: 18px;
}

.sidebar-logo img {
    width: 200px;
    height: auto;
}

.sidebar-logo::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #E2E8F0;
    margin-top: 25px;
}

.sidebar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: -25px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 16px;
    color: #A7A7A7;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    z-index: 1;
}

.nav-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 100%;
    background: #F4F7FB;
    box-shadow: 0px 5px 20px rgba(59, 64, 86, 0.03);
    border-radius: 16px;
    z-index: -1;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 100%;
    background: #EBEFF6;
    box-shadow: 0px 5px 20px rgba(59, 64, 86, 0.05);
    border-radius: 16px;
    z-index: -1;
}

.nav-item.active {
    color: #2D3748;
}

.nav-item:hover {
    background: rgba(250, 252, 255, 0.5);
}

.nav-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 2px;
}

.nav-item.active .nav-icon {
    background: #2E71F3;
    border-radius: 17px;
}

.nav-item.active .nav-icon img {
    filter: brightness(0) invert(1);
    width: 100%;
}

.nav-section-title {
    padding: 0 24px;
    color: #2D3748;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-footer {
    padding: 8px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.help-section {
    border-radius: 16px;
    padding: 16px 0;
}

.help-icon-link {
    display: block;
}

.help-icon {
    width: 100%;
    height: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid #E2E8F0;
    /* Ajoute une barre de séparation */
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.user-name {
    color: #2D3748;
    font-size: 14px;
    font-weight: 500;
}

.user-email {
    color: #2E71F3;
    font-size: 12px;
    font-weight: 400;
}

/* Contenu principal */
.content-wrapper {
    margin-left: 275px;
    width: calc(100% - 285px);
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

/* Reusable components */
.status-card {
    padding: 32px 24px;
    background: white;
    box-shadow: 0 20px 40px rgba(59, 64, 86, 0.05);
    border-radius: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    height: 100px;
    /* Hauteur fixe basée sur la carte la plus grande */
}

.status-icon {
    padding: 8px;
    border-radius: 16px;
    outline: 1px solid white;
    display: flex;
    /* Ajouté pour centrer l'icône */
    align-items: center;
    justify-content: center;
}

.status-icon i {
    font-size: 32px;
}

.status-label {
    color: #A7A7A7;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.status-count {
    color: #09090B;
    font-size: 18px;
    font-weight: 700;
    line-height: 25.2px;
}



.badge-envoye-lgdf {
    background: #f8f9fa;
    color: #333;
}

/* Classes pour fonds transparents */
.bg-soft-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.bg-soft-info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.bg-soft-primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.bg-soft-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.bg-soft-dark {
    background: rgba(33, 37, 41, 0.1);
    color: #212529;
}

.bg-soft-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.bg-soft-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn-primary-custom {
    padding: 8px 16px;
    background: #2E71F3;
    border-radius: 24px;
    /* Bordures plus arrondies */
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    border: none;
    outline: none;
}

.btn-primary-custom:hover {
    background: #1E61E3;
    color: white;
}

.btn-primary-custom:focus {
    outline: none;
}

.btn-primary-custom i {
    font-size: 16px;
}

/* Page-specific styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 16px 0;
}

.page-breadcrumb {
    color: #A0AEC0;
    font-size: 13px;
    font-family: Arial;
    line-height: 36px;
}

.page-breadcrumb span {
    color: #2D3748;
}

.page-title {
    color: #09090B;
    font-size: 24px;
    font-weight: 700;
}

.page-subtitle {
    color: #A7A7A7;
    font-size: 15px;
    font-weight: 400;
}

.timeline-section {
    width: 100%;
    padding: 24px;
    background: white;
    box-shadow: 0 20px 40px rgba(59, 64, 86, 0.05);
    border-radius: 16px;
}

.timeline-header {
    height: 65px;
    background: #FAFCFF;
    border-radius: 16px;
    padding: 24px;
    outline: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
}

.timeline-month {
    color: #2E71F3;
    font-size: 20px;
    font-weight: 700;
    text-transform: capitalize;
}

.timeline-arrow i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.timeline-header[aria-expanded="true"] .timeline-arrow i {
    transform: rotate(180deg);
}

.timeline-header[aria-expanded="false"] .timeline-arrow i {
    transform: rotate(0deg);
}

.timeline-wrapper {
    position: relative;
    padding-left: 80px;
}

.timeline-item {
    display: flex;
    align-items: center;
    border-radius: 24px;
    /* Bordures plus arrondies */
    outline: 1px solid #E2E8F0;
    margin-bottom: 16px;
    position: relative;
}

.timeline-date {
    position: absolute;
    left: -80px;
    width: 80px;
    text-align: center;
}

.timeline-date-placeholder {
    position: absolute;
    left: -80px;
    width: 80px;
    height: 60px;
}

.timeline-day {
    color: #2E71F3;
    font-size: 20px;
    font-weight: 700;
}

.timeline-month-label {
    color: #09090B;
    font-size: 16px;
    font-weight: 500;
}

.timeline-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.timeline-field {
    flex: 1;
    color: #09090B;
    font-size: 14px;
    font-weight: 500;
}

.timeline-date-field {
    color: #A7A7A7;
    font-size: 14px;
    font-weight: 400;
    margin-right: 20px;
}

/* Trait vertical pour les dossiers du même jour */
.timeline-item.has-vertical-line {
    position: relative;
}

.timeline-item.has-vertical-line::before {
    content: '';
    position: absolute;
    left: -40px;
    /* Centre du timeline-date (80px / 2) */
    top: 0;
    /* Début au début du dossier */
    width: 2px;
    height: calc(100% + 16px);
    /* Étend jusqu'au prochain dossier (inclut margin-bottom) */
    background: #2E71F3;
    /* Même couleur que timeline-day */
}

.timeline-item.has-vertical-line.last-in-day::before {
    height: 90%;
    /* ou une valeur fixe comme '50px' si vous voulez encore moins */
}

/* Drawer styles */
.drawer {
    position: fixed;
    top: 0;
    right: -385px;
    width: 385px;
    height: 100%;
    background: rgba(255, 255, 255, 0.79);
    box-shadow: -20px 0 40px rgba(59, 64, 86, 0.07);
    border-radius: 24px 0 0 24px;
    /* Bordures plus arrondies */
    backdrop-filter: blur(11.5px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.drawer.active {
    right: 0;
}

.drawer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-step {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 0;
}

.drawer-title-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-title {
    color: #09090B;
    font-size: 16px;
    font-weight: 700;
}

.drawer-subtitle {
    color: #09090B;
    font-size: 13.56px;
    font-weight: 400;
    line-height: 20px;
}

.drawer-close,
.drawer-back {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.drawer-close i,
.drawer-back i {
    font-size: 24px;
    color: #09090B;
}

.drawer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    padding: 0 24px 80px 24px;
    /* Ajout de padding-bottom pour éviter que le contenu soit masqué par le footer */
    max-height: calc(100vh + 100px);
    /* Limite la hauteur pour forcer le défilement */
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    /* Ajoute de l'espace au-dessus */
}

.form-label {
    color: #2D3748;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    gap: 12px;
}

.form-control {
    padding: 16px 20px;
    background: white;
    border-radius: 20px;
    /* Bordures plus arrondies */
    outline: 1px solid #E2E8F0;
    color: #8B8B9C;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
}

.formalites-search {
    margin-bottom: 10px;
}

#formalites-search {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    outline: 0.5px solid #E2E8F0;
    color: #8B8B9C;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
}

.formalites-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.formalites-list::-webkit-scrollbar {
    width: 8px;
}

.formalites-list::-webkit-scrollbar-thumb {
    background: #A0AEC0;
    border-radius: 4px;
}

.formalites-list::-webkit-scrollbar-track {
    background: #E2E8F0;
}

.formalite-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.70);
    border-radius: 16px;
    outline: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.formalite-item-selected .formalite-checkbox {
    background: #2E71F3;
    color: #FAFAFA;
}

.formalite-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.formalite-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    border: 1px solid #09090B;
}

.formalite-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.formalite-type {
    color: #8B8B9C;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.formalite-forme {
    color: #2D3748;
    font-size: 14px;
    font-weight: 700;
    line-height: 19.6px;
}

.formalite-price {
    color: #2E71F3;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.formalite-item:not(.formalite-item-selected) .formalite-price {
    color: #A0AEC0;
}

.drawer-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 365px;
    background: rgba(255, 255, 255, 0.79);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    z-index: 1001;
}

#step-1 .drawer-footer {
    justify-content: center;
}

#step-1 .drawer-footer .btn-primary-custom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 0;
    /* Supprime le gap par défaut */
}

#step-1 .drawer-footer .btn-primary-custom span {
    display: inline-block;
    text-align: center;
}

#step-1 .drawer-footer .btn-primary-custom i {
    margin-left: 8px;
}

#step-1 .btn-primary-custom {
    display: flex !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* Styles pour l'étape 2 (ajout des contacts) */
.alert-info {
    background: #F8F9FA;
    border-radius: 20px;
    /* Bordures plus arrondies */
    padding: 8px 12px;
    color: #2D3748;
    font-size: 12px;
    line-height: 16.8px;
    margin-top: 16px;
    /* Ajoute de l'espace au-dessus */
}

.alert-info .alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #2D3748;
    line-height: 19.6px;
    margin-bottom: 4px;
}

.alert-info p {
    margin: 0;
}

.alert-info .alert-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #2D3748;
    font-size: 12px;
    font-weight: 700;
    line-height: 16.8px;
    text-decoration: underline;
    cursor: pointer;
}

.alert-info .alert-link i {
    font-size: 16px;
}

.step-2-scrollable {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Réduit l’espace entre les éléments */
}

#add-contact {
    margin-top: 10px;
    /* Ajuste la distance au-dessus du bouton */
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}

.contacts-list::-webkit-scrollbar {
    width: 8px;
}

.contacts-list::-webkit-scrollbar-thumb {
    background: #A0AEC0;
    border-radius: 4px;
}

.contacts-list::-webkit-scrollbar-track {
    background: #E2E8F0;
}

.contact-compact {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.70);
    border-radius: 20px;
    /* Bordures plus arrondies */
    outline: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-title {
    color: #8B8B9C;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.contact-delete {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #E53E3E;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    cursor: pointer;
}

.contact-name {
    color: #2E71F3;
    font-size: 14px;
    font-weight: 700;
    line-height: 19.6px;
}

.contact-role,
.contact-email,
.contact-phone {
    color: #2D3748;
    font-size: 12px;
    font-weight: 400;
    line-height: 16.8px;
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    max-height: 400px;
    /* Ajuste la hauteur pour inclure le bouton "Ajouter un contact" et l’alerte */
    min-height: 300px;
}

.contacts-form::-webkit-scrollbar {
    width: 8px;
}

.contacts-form::-webkit-scrollbar-thumb {
    background: #A0AEC0;
    border-radius: 4px;
}

.contacts-form::-webkit-scrollbar-track {
    background: #E2E8F0;
}

.contact-entry {
    background: rgba(255, 255, 255, 0.70);
    border-radius: 20px;
    /* Bordures plus arrondies */
    outline: 1px solid #E2E8F0;
    padding: 8px 12px;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.contact-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2D3748;
    line-height: 21px;
}

.contact-actions {
    display: flex;
    gap: 8px;
}

.contact-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-add-contact {
    padding: 12px 16px;
    border-radius: 24px;
    /* Bordures plus arrondies */
    outline: 1px solid #2E71F3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: transparent;
    cursor: pointer;
    border: none;
}

.btn-add-contact i {
    font-size: 16px;
    color: #2E71F3;
}

.btn-add-contact span {
    color: #2E71F3;
    font-size: 14px;
    font-weight: 500;
}

.btn-add-contact .optional-text {
    font-weight: 400;
}

.btn-back {
    padding: 8px 16px;
    background: white;
    border-radius: 24px;
    /* Bordures plus arrondies */
    outline: 0.5px solid #E2E8F0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: #2D3748;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-back i {
    font-size: 16px;
    transform: rotate(180deg);
}



#next-step {
    display: flex;
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */
    width: 100%;
    /* Prend toute la largeur disponible dans le footer */
    padding: 10px 20px;
    /* Ajuste l’espacement interne si nécessaire */
}

#next-step span {
    flex: 1;
    /* Permet au texte de prendre l’espace central */
    text-align: center;
    /* Centre le texte dans son espace */
}

#next-step i {
    margin-left: 10px;
    /* Espace entre le texte et l’icône */
}

/* troncature des infos dans contacts show qd trop long */

.truncate-text {
    display: inline-block;
    max-width: 150px;
    /* Ajustez cette valeur selon vos besoins */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.truncate-text.expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
}

/* filtres documents du show */

.filter-button {
    cursor: pointer;
}

.filter-button.active {
    background: white;
}

.filter-button.active div {
    color: #09090B;
}

.filter-button:not(.active) {
    background: transparent;
}

.filter-button:not(.active) div {
    color: #A7A7A7;
}

.filter-button:hover {
    background: #e6f0ff;
}

/* chat show */

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 75%;
    margin-bottom: 20px;
    position: relative;
}

.chat-message-user {
    align-items: flex-end;
    align-self: flex-end;
    margin-left: auto;
}

.chat-message-other {
    align-items: flex-start;
    align-self: flex-start;
    margin-right: auto;
}

.chat-sender {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 4px;
    padding: 0 4px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    max-width: 100%;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message-user .chat-bubble {
    background: linear-gradient(135deg, #2E71F3 0%, #1E5AD7 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-other .chat-bubble {
    background: #F8F9FA;
    color: #2D3748;
    border: 1px solid #E2E8F0;
    border-bottom-left-radius: 4px;
}

.chat-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.chat-time {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
}

.chat-message-user .chat-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-message-other .chat-time {
    color: #64748B;
}

.chat-status-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.chat-status-icon img {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* trash disparaissant */

.document-item .delete-document {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-item:hover .delete-document {
    opacity: 1;
}

/* css du login et register */

.login-container {
    padding: 2% 5%;
    background: white;
    border-radius: 16px;
    border: 1px solid #E4E4E7;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
}

.alert-danger {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
}

.logged-in-message {
    color: #09090B;
    font-size: 16px;
    font-family: 'Helvetica Neue', sans-serif;
    text-align: center;
}

.logged-in-message a {
    color: #2E71F3;
    text-decoration: underline;
}

.login-card {
    display: flex;
    box-shadow: 0px 20px 40px rgba(59, 64, 86, 0.05);
    border-radius: 16px;
    border: 1px solid #E4E4E7;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.left-section {
    flex: 1;
    position: relative;
    height: 100%;
    background: #377DFF;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.right-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.40);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    border-left: 1px solid #E4E4E7;
    box-sizing: border-box;
    overflow: hidden;
}

.login-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.login-link {
    color: #2E71F3;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    text-decoration: none;
}

.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    max-width: 350px;
    width: 100%;
}

.form-section {
    display: none;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.form-section.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-section .name-row {
    display: flex;
    gap: 8px;
}

.form-section .name-row .mb-3 {
    flex: 1;
}

.login-form h1 {
    color: #09090B;
    font-size: 34px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: -8px;
    /* Réduire l'espace sous le h1 */
}

.login-form p {
    color: #71717A;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    text-align: center;
    margin-top: -6px;
    /* Supprimer l'espace au-dessus du p */
}

.login-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: #09090B;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    margin-bottom: 4px;
}

.form-control2 {
    width: 100%;
    padding: 20px 20px;
    background: white;
    border-radius: 15px;
    border: 1px solid #E2E8F0;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    color: #09090B;
}

.form-control2::placeholder {
    color: #8B8B9C;
}

.btn-primary2 {
    width: 100%;
    padding: 12px 16px;
    background: #2E71F3;
    color: white;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    /* Supprimer l'espace au-dessus du p */
}

.btn-secondary {
    width: 100%;
    padding: 12px 16px;
    background: #E4E4E7;
    color: #09090B;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 16px;
    height: 16px;
}

.form-check-label {
    color: #71717A;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
}

.divider {
    display: flex;
    align-items: center;
    width: 100%;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E4E4E7;
}

.divider span {
    color: #71717A;
    font-size: 12px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    padding: 0 8px;
}

.btn-google {
    width: 100%;
    padding: 8px 16px;
    background: white;
    border-radius: 16px;
    border: 0.5px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    color: #09090B;
    cursor: pointer;
}

.btn-google img {
    width: 16px;
    height: 16px;
}

.terms {
    color: #71717A;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    text-align: center;
}

.terms a {
    color: #71717A;
    text-decoration: underline;
}




/* Ajustements pour les cards du dashboard */
.dashboard-card {
    border-radius: 24px;
    /* Bords plus arrondis */
    padding: 24px 16px;
    background: white;
    box-shadow: 0 20px 40px rgba(59, 64, 86, 0.05);
    min-height: 190px;
}

.dashboard-card-inner {
    border-radius: 20px;
    /* Bords internes arrondis */
    padding: 12px 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    outline: 1px dashed #E2E8F0;
    /* Contour pointillé gris */
    outline-offset: -1px;
    min-height: 150px;
}

/* Ajustement pour le bouton "Créer une nouvelle compagnie" */
.btn-create-company {
    border-radius: 16px;
    /* Bords plus arrondis */
    padding: 8px 16px;
    background: white;
    border: 0.5px solid #E2E8F0;
    color: #2D3748;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    /* ✅ enlève le soulignement */
}

.btn-create-company:hover {
    background-color: #f7f9fa;
    /* léger assombrissement */
    border-color: #CBD5E0;
    /* bord un peu plus visible au hover */
    cursor: pointer;
}


/* Card désactivée */
.dashboard-card-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Texte grisé pour la card désactivée */
.dashboard-card-disabled .card-title,
.dashboard-card-disabled .card-text {
    color: #6B7280 !important;
    /* Gris foncé */
}

/* Bouton désactivé blanc-gris */
.btn-disabled-custom {
    background: #F3F4F6;
    /* Blanc-gris */
    color: #6B7280;
    /* Gris foncé pour le texte */
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: not-allowed;
}

/* Bouton désactivé avec bords plus arrondis */
.btn-back2 {
    padding: 8px 16px;
    background: rgba(243, 244, 246, 0.7);
    /* Gris transparent */
    border-radius: 32px;
    /* Bords plus arrondis */
    outline: 0.5px solid #E2E8F0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: #9CA3AF;
    /* Gris clair pour le texte */
    font-size: 14px;
    font-weight: 500;
    cursor: not-allowed;
    border: none;
    opacity: 0.6;
    /* Apparence plus désactivée */
}

/* Drawer pour nouvelle compagnie */
.drawer-compagnie {
    position: fixed;
    top: 0;
    right: -365px;
    width: 365px;
    height: 100%;
    background: rgba(255, 255, 255, 0.79);
    box-shadow: -20px 0 40px rgba(59, 64, 86, 0.07);
    border-radius: 24px 0 0 24px;
    backdrop-filter: blur(11.5px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.drawer-compagnie.active {
    right: 0;
}

.drawer-compagnie .drawer-content {
    flex: 1;
    /* Permet au contenu de prendre l'espace restant */
    overflow-y: auto;
    /* Ajoute une barre de défilement verticale si nécessaire */
    padding-bottom: 24px;
    /* Espace pour éviter que le contenu ne soit masqué par le bas */
}

.drawer-compagnie .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-compagnie .form-select {
    padding: 16px 20px;
    background: white;
    border-radius: 15px;
    outline: 1px solid #E2E8F0;
    color: #8B8B9C;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
}

.label-sm {
    font-size: 13px;
    /* ou 14px, 13px selon tes préférences */
}

.drawer-footer2 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 365px;
    background: rgba(255, 255, 255, 0.79);
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
    z-index: 1001;
}

.btn-wide {
    width: 100%;
    max-width: 320px;
    text-align: center;
    /* ✅ centre le texte horizontalement */
    display: flex;
    /* ✅ centrer aussi verticalement si besoin */
    align-items: center;
    /* centre verticalement */
    justify-content: center;
    /* centre horizontalement */
}

/* css de societes */
.row.g-4.my-4 {
    display: flex;
    flex-wrap: wrap;
}

.col-md-4 {
    display: flex;
}

.company-card-container {
    padding: 16px;
    background: white;
    box-shadow: 0px 20px 40px rgba(59, 64, 86, 0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
    flex: 1;
}

.company-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.company-card-title {
    color: #2E71F3;
    font-size: 14px;
    font-family: Helvetica, sans-serif;
    font-weight: 700;
    line-height: 19.60px;
    text-align: left;
    text-decoration: none;
}

.company-modifier-button {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.company-modifier-icon {
    color: #2E71F3;
    font-size: 14px;
}

.company-modifier-text {
    color: #2E71F3;
    font-size: 12px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.company-info-section {
    padding: 16px;
    background: rgba(255, 255, 255, 0.70);
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-section-title {
    color: #8B8B9C;
    font-size: 12px;
    font-family: Helvetica, sans-serif;
    font-weight: 700;
    line-height: 18px;
}

.company-info-text {
    color: #2D3748;
    font-size: 14px;
    font-family: Helvetica, sans-serif;
    font-weight: 700;
    line-height: 19.60px;
}

.company-users-section {
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, 0.70);
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    width: 100%;
    min-height: 80px;
}

.company-user-email {
    color: #2D3748;
    font-size: 12px;
    font-family: Helvetica, sans-serif;
    font-weight: 400;
    line-height: 16.80px;
}

.company-toggle-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    margin-top: 12px;
}

.company-toggle-text {
    color: #2E71F3;
    font-size: 12px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
}

.company-toggle-icon {
    color: #2E71F3;
    font-size: 16px;
}

.container-fluid {
    padding-left: 25px;
}

.small-text {
    font-size: 0.75em;
    color: #999;
}

.chat-status-icon {
    display: flex;
    align-items: center;
}

.chat-status-tick {
    width: 16px;
    /* adapte la taille de l’icône */
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}