:root {
    --color-bg: #8181a5;
}

.logo {
    width: 8.825rem;
    height: 3.854rem;
    position: relative;
    gap: 0rem;
}

.logo-login {
    width: 20rem;
    /* 300px ÷ 16 = 18.75rem */
    height: auto;
    /* 300px ÷ 16 = 18.75rem */
    position: relative;
    gap: 0rem;
    /* Pas de changement, le gap est déjà en rem */
}

.svg-container {
    font-size: 1rem;
    display: flex;
    padding: 0;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: fit-content;
    block-size: fit-content;
}

.form-forgotcode {
    background: var(--color-input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-forgotcode {
    position: relative;
}

.input-mail-forgotcode {
    background: #f0f0f0;
    border: 1px solid var(--Input-Border, #aaa);
    padding-right: 30px;
    pointer-events: none;
    cursor: not-allowed;
}

.js-message {
    display: none;
    padding: 10px;
    margin-top: 20px;
}

.resend-msg {
    display: none;
}

.resend-code {
    display: none;
    text-decoration: underline;
    color: inherit;
}

.custom-text {
    color: var(--Typo-Secondary, #8181a5);
    text-align: left;
    font-feature-settings: "liga" off, "clig" off;
    font-weight: 400;
}

.error-nwl {
    color: red;
    text-align: left;
    margin-top: 5px;

}

.form-container-reset {
    margin: 0 auto;
    background: var(--color-bg);
    padding-top: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-icon {
    margin-bottom: 2rem;
}

.svg-icon-forgocode {
    margin-top: 0.25rem;
}

.input-field-reset {
    margin-bottom: 2.1875rem;
}

.textLink {
    color: var(--color-text);
    font-family: "Clash Grotesk", sans-serif;
    font-size: var(--font-size-label);
    font-weight: 500;
    text-decoration: underline;
}

/* Wrapper: Conteneur principal pour la sidebar et le contenu */
.wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: flex-start;
}

body {
    background-color: var(--color-bg) !important;
}

/* === Header mobile === */

#mobile-header {
    width: 100%;
    height: 80px;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    display: flex;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    /* Centrer verticalement */
    justify-content: center;
    /* Centrer horizontalement les éléments */
}

#mobile-header.hidden {
    display: none;
}

/* Logo centré dans le header mobile */
.mobile-header .logo {
    margin: 0 auto;
    justify-self: center;
}

.mobile-header .logo img {
    max-height: 50px;
}

/* Quand la sidebar est ouverte, cache le header */
.sidebar-open .mobile-header {
    display: none;
}

.btnBlack:hover {
    color: #fff;
    background-color: rgb(60, 60, 60);
}

/* CSS pour les écrans de bureau et plus larges */
#mobile {
    display: none;
}

/* === Sidebar === */

#sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #ffffff !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}

/* Sidebar et bouton de fermeture */
.sidebar-header {
    position: relative;
    padding: 15px;
    display: flex;
    justify-content: center;
}

/* La croix pour fermer la sidebar */
.sidebar-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 24px;
}

.sidebar.open {
    width: 250px;
    /* Largeur de la sidebar ouverte */
    transition: 0.3s ease-in-out;
}

#sidebar .close-btn {
    position: absolute;
    top: 10px;
    /* Ajuste la distance par rapport au haut */
    right: 20px;
    /* Ajuste la distance par rapport au bord droit */
    font-size: 24px;
    /* Taille du bouton de fermeture */
    cursor: pointer;
    color: #333;
    /* Couleur du bouton de fermeture */
    z-index: 1000;
    /* S'assurer qu'il reste au-dessus des autres éléments */
}

/* === Liens de la sidebar === */

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #666666;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px;
    font-weight: 500;
}

/* Icônes dans les liens de la sidebar */
#sidebar ul li a img.sidebar-icon {
    width: 20px;
    margin-right: 15px;
}

/* Style de survol et lien actif dans la sidebar */
#sidebar ul li a:hover {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333333;
}

/* Effet sur le lien actif */
#sidebar ul li.active a {
    background-color: #eef2fc;
    color: #333333;
    font-weight: bold;
    border-radius: 8px;
}

/* Icones noires affichées uniquement sur hover ou lien actif */
.sidebar-icon.black-icon {
    display: none;
}

#sidebar ul li.active a .default-icon,
#sidebar ul li a:hover .default-icon {
    display: none;
}

/* Afficher les icônes noires au survol et lorsque le lien est actif */
#sidebar ul li.active a .black-icon,
#sidebar ul li a:hover .black-icon {
    display: inline-block;
}

/* Profil utilisateur en bas de la sidebar */
.user-profile {
    margin-top: auto;
    text-align: center;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.profile-name {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    color: #666666;
}

/* === Dashboard === */

/* Conteneur principal du dashboard */
.container-fluid {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: white !important;
    padding: 18px !important;
    border-radius: 12px;
    transition: width 0.3s ease;
    height: auto;
    min-height: 95vh;
    overflow-y: auto;
}

/* Section du contenu principal */
#content {
    margin-left: 280px;
    padding: 20px !important;
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
    transition: width 0.3s ease;
    overflow-y: auto;
    height: fit-content !important;
}

/* === Stat-boxes et boutons === */
.stat-box-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stat-box {
    background: #fff;
    padding: 15px 10px !important;
    height: auto;
    margin: 5px;
    border-radius: 12px;
    transition: transform 0.2s ease-in-out;
    border: 3px solid #000;
    max-height: 120px;
}

.stat-box h2 {
    font-weight: 700;
    font-size: 28px;
    line-height: 35px;
}

.stat-box p {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.hamburger {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.burger-icon {
    cursor: pointer;
    position: absolute;
    left: 20px;
    /* Positionner le burger à gauche */
    border: none;
    background: none;
}

.burger-icon .bar {
    width: 25px;
    height: 3px;
    background-color: #202124;
    margin: 4px 0;
    transition: 0.4s;
    border: none;
}

/* Masquer le header mobile quand la sidebar est ouverte */
.hide {
    display: none;
}

.clickable-row {
    padding: 18px !important;
    cursor: pointer;
    /* Change le curseur en main sur hover */
}

/* === Styles spécifiques pour la gestion des sites === */

/* Conteneur blanc sans bordure */
.table-container {
    position: relative;
    border-radius: 12px !important;
    width: 100%;
    min-height: 95vh !important;
    position: relative;
    /* Nécessaire pour positionner la pagination à l'intérieur */
    transition: width 0.3s ease;
}

.table-container .btn-primary {
    padding: 0.10rem 0.4rem !important;
    /* Ajustez les valeurs */
    width: auto;
}

/* Table with border-radius and outline */
table {
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 12px;
    /* Coins arrondis */
    outline: 3px solid black;
    /* Outline noire autour du tableau */
    outline-offset: -3px;
    /* Décalage de l'outline pour l'intégrer au tableau */
    overflow: hidden;
}

/* Bordure et espacement des cellules */
table th,
table td {
    height: 40px !important;
    /* Assure la hauteur identique pour toutes les cellules */
    min-height: 40px !important;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    border-left: 2px solid black;
    border-top: 2px solid black !important;
    box-sizing: border-box;
    overflow: hidden;
}

table tr {
    height: 60px !important;
    /* Fixe explicitement la hauteur */
    min-height: 60px !important;
    padding: 18px !important;
}

.table> :not(caption)>*>* {
    border-bottom-width: 0px !important;
}

/* Style pour les lignes vides */
.empty-row td {
    height: 50px !important;
    /* Fixe explicitement la hauteur */
    min-height: 50px !important;
    padding: 18px !important;
    vertical-align: middle;
    background-color: transparent !important;
    cursor: default !important;
}

/* Coins arrondis pour le tableau */
table thead th:first-child {
    border-top-left-radius: 12px;
    /* Coin supérieur gauche */
}

table thead th:last-child {
    border-top-right-radius: 12px;
    /* Coin supérieur droit */
}

table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
    /* Coin inférieur gauche */
}

table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
    /* Coin inférieur droit */
}

/* Hover effect pour les lignes non vides */
.table-row:hover {
    background-color: #f0f0f0;
    /* Changer couleur de fond au survol */
    cursor: pointer;
}

/* Désactiver le hover pour les lignes vides */
.empty-row:hover {
    background-color: transparent !important;
    /* Pas de changement de fond */
    cursor: default !important;
    /* Le curseur ne change pas */
}

@media (max-width: 768px) {
    .pagination {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        position: relative !important;
    }

    .pagination .page-item {
        margin: 5px;
        display: inline-flex !important;
    }

    .pagination .page-item .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    .pagination-container {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        gap: 10px;
    }
}

/* Pagination */
.pagination-container {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px !important;
    padding-bottom: 15px;
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .page-item .page-link {
    background-color: #f5f5fa;
    color: black;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
}

.pagination .page-item.active .page-link {
    background-color: #e6e6e6;
    color: rgb(0, 0, 0);
    position: relative;
}

/* Trait noir sous la page active */
.pagination .page-item.active .page-link::after {
    content: "";
    display: block;
    width: 35px;
    height: 4px;
    background-color: black;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Style des boutons Préc et Suiv */
.pagination .page-item.disabled .page-link {
    background-color: #ccc;
    color: #fff;
}

.pagination .page-item .page-link:hover {
    background-color: #3c9ed9;
    color: white;
}

.btn-outline-secondary {
    font-weight: 700 !important;
    color: #b9b9cd !important;
    background-color: #f2f2f6 !important;
    border: none !important;
    padding: 10px !important;
}

.btn-outline-secondary:hover {
    font-weight: 700 !important;
    color: #dfdfdf !important;
    background-color: #202124 !important;
    border: none !important;
}

/* Modification du site */
.preview {}

/*----------------------------------------------------------------------------*/
/* Boutons d'ajout et de modification */

.btn-modifier {
    padding: 10px 20px !important;
    max-width: 80% !important;
    color: white;
    border: none;
}

.btn-ajouter {
    display: flex;
    height: 45px !important;
    width: fit-content !important;
    line-height: 38px !important;
    align-items: center;
    /* Centre verticalement le contenu */
    justify-content: center;
    /* Centre horizontalement le contenu */
    min-width: fit-content !important;
    max-width: 200px !important;
    text-align: center !important;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700 !important;
    border-radius: 4px !important;
    background-color: #202124;
    /* Assurez-vous d'avoir une couleur de fond */
    color: white;
    /* Couleur du texte */
    border: none;
    /* Supprime la bordure */
    margin: 0 !important;
    padding: 0;
    /* Enlevez tout padding qui pourrait causer un désalignement */
}


.btn-ajouter:hover,
.btn-modifier:hover {
    background-color: #3c9ed9;
}

.btn-modifier {
    font-weight: 700 !important;
    font-size: 14px !important;
    display: block;
    width: 200px !important;
    margin: auto;
    background-color: #202124;
    color: white;
    border: none;
    border-radius: 8px;
}

.btn-voir {
    font-weight: 700 !important;
    font-size: 14px !important;
    display: block;
    max-width: 80% !important;
    margin: auto;
    background-color: #202124;
    color: white;
    border: none;
    border-radius: 8px;
}

/* Supprimer le texte 'Showing X to Y of Z results' */
.text-muted {
    display: none !important;
}

/* Cacher les flèches '<<' et '>>' générées automatiquement */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    display: none;
}

/* Alignement du titre et du tri */
.d-flex.align-items-center img {
    margin-right: 8px;
    /* Espacement entre l'icône et le texte */
}

#sortOrder {
    font-weight: bold;
    border: none;
    background-color: transparent;
    text-align: left;
}

/* Dropzone */
#drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */
    flex-direction: column;
    /* Pour s'assurer que l'icône et le texte sont empilés verticalement */
    height: 200px;
    /* Vous pouvez ajuster cette hauteur selon vos besoins */
}

#drop-zone.highlight {
    border-color: #00b3bb;
    background-color: #f0f8ff;
}

.upload_img {
    max-width: 100%;
    max-height: 100px;
    /* Ajustez si nécessaire pour éviter que l'icône soit trop grande */
    object-fit: contain;
    margin-top: 10px;
}

/* *********************************************************************** */
/* Styles spécifiques pour la page d'ajout de site (page-ajout-site) */
/* *********************************************************************** */

/* Conteneur général */
.page-ajout-site {
    background-color: white;
    padding: 0 30px !important;
    border-radius: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    /* Hauteur minimale pour occuper la page */
    position: relative;
    /* Nécessaire pour positionner la pagination à l'intérieur */
    transition: width 0.3s ease;
}

/* Conteneur blanc */
.container-white {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px !important;
    display: flex;
    width: 100%;
    position: relative;
    justify-content: space-between;
    transition: width 0.3s ease;
}

.right_row {
    /* display: flex;
    flex-direction: column; */
}


/* Prévisualisation client */
.preview {
    max-width: 100%;
    height: 812px !important;
    /* Hauteur d'un écran mobile comme un iPhone X */
    text-align: center;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.preview .preview-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.preview img {
    width: 100%;
    object-fit: cover;
}

.preview h3 {
    margin-top: 15px;
    text-align: left;
    font-size: 14px;
}

#preview-price {
    font-size: 50px;
    font-weight: 800;
    color: #000;
}

.preview p {
    margin: 5px 0;
    font-size: larger;
    font-weight: 700;
    color: #666666;
}

.preview .conditions {
    font-size: 12px;
    margin-top: 10px;
}

.preview .conditions a {
    color: #00a9f3;
}

.preview button {
    background-color: #00a9f3;
    color: #fff;
    max-width: 60% !important;
    align-self: center;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 700;
    margin: 10px;
}

/* Ajout d'un conteneur pour simuler les bords de l'écran mobile */
.mobile-frame {
    height: 812px !important;
    /* Hauteur d'un écran mobile comme un iPhone X */
    border: 1px solid #000;
    /* Contour noir */
    padding: 0;
    max-width: 375px;
    /* Taille maximale pour l'écran du mobile */
    margin: 0 auto;
    /* Centrer le conteneur */
    background-color: #fff;
    /* Fond blanc à l'intérieur */
}

/*Assure la même hauteur et largeur pour les deux boutons  */
.btn-valider,
.btn-retour {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 20px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    border-radius: 18px;
    transition: background-color 0.3s ease;
    /* Transition fluide */
    text-decoration: none !important;
}

.btn-valider {
    background-color: #202124;
    color: #ffffff;
    border: none;
    cursor: pointer;

}

.btn-valider:hover {
    background-color: #4990c0;

}

.btn-retour {
    background-color: #ffffff;
    border: 2px solid #202124;
    color: #202124;
}

.btn-retour:hover {
    background-color: #d6d6d6;
    color: #202124;
}

.containerOptionSite {
    width: 60vw;

}

.BtnOptionSite {
    padding: 18px 20px;
    margin: 5px;
    border: 0px solid black;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 15px;
    text-align: center;
    width: 100%;
    background-color: #8181A5;
    font-size: medium;
    font-weight: bolder;
    color: #fff;
}

.BtnOptionSite:hover {
    background-color: #4990c0;

}

.selectBoxSite {

    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid black;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 2rem;

}

/* Style pour le bouton actif/sélectionné */
.selectBoxSite.active {
    background: #202124;
    color: #fff;
    border: none;
}


.select-option,
.select-demandes {
    border-radius: 8px;
    justify-content: center;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
}

#backRecoverySite,
#backRequestSite {
    margin-top: 7px;
    width: 60vw;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #28a745;
}

input:checked+.slider:before {
    transform: translateX(26px);
}



/* Gestion admin */

.action-buttons .action-btn {
    display: flex;
    /* Pour centrer l'icône */
    justify-content: center;
    align-items: center;
    width: 60px;
    /* Dimensions identiques pour chaque bouton */
    height: 48px;
    border: none;
    /* Supprime les bordures */
    background: none;
    /* Supprime le fond */
    cursor: pointer;
    /* Affiche un pointeur clic */
    transition: all 0.3s ease;
    /* Transition fluide pour le hover */
    padding: 0;
    /* Supprime tout espace interne */
}

.action-buttons .action-btn:hover {
    background-color: #f0f0f0;
    /* Ajoute un effet de survol */
    border-radius: 6px;
    /* Ajoute un léger arrondi au hover */
}

.action-buttons .action-btn i {
    transition: transform 0.2s ease, color 0.3s ease;
    /* Animation fluide au hover */
}

.action-buttons .action-btn:hover i {
    transform: scale(1.1);
    /* Agrandit légèrement l'icône */
}

.action-buttons a {
    text-decoration: none;
    /* Enlève le soulignement */
}

.fa-2xl {
    font-size: 2.5em !important;
}

.no-card-border .card {
    border: none !important;
}

/* Create.blade.php gestion admin */

.label-create {
    color: var(--color-text);
    font-family: "Montserrat", sans-serif;
    font-size: var(--font-size-label);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
}

.title-create {
    display: block;
    color: var(--color-text, #000);
    /* Utilise une variable pour la couleur */
    font-family: "Montserrat", sans-serif;
    font-size: var(--font-size-title);
    /* Taille de police configurable */
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
    white-space: nowrap;
}

.form-create {
    display: flex;
    width: 600px;
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
    box-sizing: border-box;
    /* Assure que paddings et bordures ne dépassent pas */
    padding: 15px;
    /* Optionnel : ajustez selon vos besoins */
}

.div-create {
    display: flex;
    width: 80%;
    /* 80% de la largeur du parent */
    max-width: 1200px;
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
    margin: 0 auto;
    height: 100vh;
    /* Remplit la hauteur totale de la page */
    justify-content: center;
    /* Centre verticalement */
}

.form-create {
    display: flex;
    flex-direction: column;
    /* Label au-dessus de l'input */
    width: 600px;
    /* Largeur définie */
    align-items: flex-start;
    /* Aligne les éléments à gauche */
    gap: 21px;
    /* Espacement entre le label et l'input */
}

.div-input-create {
    display: flex;
    width: 100%;
    /* Fait en sorte que la div prenne toute la largeur de la div parente */
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    /* Assure que padding et bordure ne font pas déborder l'élément */
}

.input-create {
    border-radius: var(--border-radius);
    background: var(--color-input-bg);
    /* Utilisation d'une variable pour la couleur de fond */
    padding: 10px;
    /* Padding pour les inputs */
    width: 100%;
    /* S'assure que les inputs prennent toute la largeur disponible */
    box-sizing: border-box;
    height: 3.875rem;
}

.bouton-create {
    display: flex;
    justify-content: center;
    /* Centre les boutons horizontalement */
    align-items: center;
    /* Centre les boutons verticalement */
    width: 100%;
    /* La div prend toute la largeur de son parent */
    gap: 10px;
    /* Espacement entre les boutons */
}

.bouton-create .btn-valider,
.bouton-create .btn-retour {
    width: 100%;
    /* Chaque bouton prend toute la largeur disponible */
    max-width: 18rem;
    /* Limite la largeur maximale de chaque bouton */
}

/* Classe pour l'icône de l'œil */
.password-icon {
    box-sizing: border-box;
    position: relative;
    width: fit-content;
    bottom: 45px;
    left: 90%;
    cursor: pointer;
}

/* Pour l'alignement horizontal des deux boutons */
.title-sort {
    gap: 10px !important;
    /* Ajoute un espacement uniforme entre les boutons */
}

.nuage-upload {
    width: 100px !important;
    margin-bottom: 20px;
}

.form-check {
    margin-bottom: 20px;
}

.form-check-label {
    font-weight: 500;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#preview-image-right {
    width: 328px;
    height: 248px;
    object-fit: cover;
    /* Optionnel, pour que l'image remplisse bien la zone sans distorsion */
}

#preview-image {
    width: 373px;
    height: 248px;
    object-fit: cover;
    /* Garde le ratio sans déformer l'image */
}

/* === Media Queries === */

/* max-width: 1500px */
@media (max-width: 1500px) {
    .stat-box-container .row {
        display: flex;
        flex-wrap: wrap;
    }

    .btn-add {
        max-width: 50%;
    }

    .stat-box-container .col-md-3 {
        width: 50%;
        margin-bottom: 10px;
        /* Moins d'espace entre les lignes */
    }

    /* S'assurer que l'on peut scroller si le contenu dépasse */
    .stat-box-container {
        height: auto;
    }
}

/* max-width: 1260px */
@media (max-width: 1260px) {
    .d-flex.mb-5.col-12.align-items-center.justify-content-between.p-3 {
        flex-direction: column;
        /* Empile les éléments verticalement */
        align-items: flex-start;
    }

    .d-flex.mb-5.col-12.align-items-center.justify-content-between.p-3 h3 {
        margin-bottom: 20px;
        /* Ajoute un espacement entre le titre et les autres éléments */
        text-align: center;
        /* Centre le texte du h3 */
    }

    .btn-ajouter {
        width: 100%;
        /* Le bouton prend toute la largeur */
        margin: 20px auto 0 auto;
        /* Centre le bouton et ajoute un espacement au-dessus */
    }

    .hide-on-small {
        display: none;
    }

}

/* max-width: 992px */
@media (max-width: 992px) {
    .container-white {
        flex-direction: column;
        /* Empiler les éléments pour les petits écrans */
        align-items: center;
    }

    .preview {
        margin-top: 20px;
        width: 100%;
        /* Prendre toute la largeur */
    }
}

@media (max-width: 991px) {
    #content {
        margin-top: 80px !important;
    }
}

/* max-width: 991px */
@media (max-width: 991px) {

    /* Sidebar and content adjustments */
    #sidebar {
        position: fixed;
        left: -280px;
        /* Masquer la sidebar */
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    #sidebar.open {
        left: 0;
        height: 100vh;
    }

    .hamburger {
        position: absolute;
        left: 20px;
        top: 10px;
        z-index: 1001;
    }

    #content {
        margin-left: 0 !important;
        /* Remplacer pour forcer à 0 lorsque la sidebar est fermée */
        width: 100% !important;
        transition: margin-left 0.3s ease;
    }

    #sidebar.open+#content {
        width: 100% !important;
    }

    /* Close sidebar visibility */
    .close-sidebar {
        display: block;
    }

    #content {
        margin-top: 80px !important;
    }

    /* Ajuste le contenu pour laisser de l'espace pour le header */
    .headerAdmin {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        height: 70px;
        margin-bottom: 50px;
        border-bottom: 1px solid #d9d9d9;
    }

    .headerAdmin .logo {
        width: 160px;
        margin-right: auto;
    }

    .myLinks {
        display: flex;
        justify-content: flex-end;
        gap: 20px;
    }

    .myLinks a {
        text-decoration: none;
        color: #000 !important;
    }

    @media (max-width: 550px) {
        .myInfoToHide {
            display: none;
        }

        /* Stat-box container adjustment */
        .stat-box-container .row>div {
            flex: 0 0 100%;
            max-width: 100%;
        }

        #sidebar+#content .container-fluid {
            width: 100% !important;
            margin-left: 0 !important;
        }

        /* Mobile header adjustments */
        #mobile-header {
            display: flex !important;
        }
    }

    /* max-width: 768px */
    @media (max-width: 768px) {
        .btn-ajouter {
            width: 100%;
            /* Sur petits écrans, le bouton prend toute la largeur */
        }

        .preview img {
            height: auto;
        }

        .container-white {
            padding: 20px;
        }

        .empty-state-img {
            min-width: 50%;
            max-width: 100%;
            height: auto;
            margin-bottom: 20px;
        }
    }

    /* max-width: 680px */
    @media (max-width: 680px) {
        .table-container {
            padding-bottom: 120px !important;
            /* Ajoute un espace sous le tableau pour la pagination */
        }

        .pagination-container {
            margin-top: 20px !important;
            /* Ajoute un peu d'espace au-dessus de la pagination */
        }
    }

    /* Par défaut (grand écran) */
    .title-sort {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* max-width: 630px */
    @media (max-width: 630px) {
        .title-sort {
            flex-direction: column;
            align-items: flex-start;
        }

        .title-sort h3 {
            margin-bottom: 0.5rem;
            text-align: left;
        }

        .sort-options {
            width: 100%;
        }

        .btn-ajouter {
            width: 100%;
            margin-top: 10px;
        }

        .table-header {
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            width: 100%;
        }

        .table-header h3 {
            width: 100%;
            text-align: left;
        }
    }

    .sort-options {
        display: flex;
        align-items: center;
        margin-left: auto;
        /* Pousse le tri vers la droite */
    }

    .table-title {
        flex-grow: 1;
        /* Prend tout l'espace disponible à gauche */
    }

    /* Centrage global pour l'état vide */
    .empty-state {
        height: 100%;
        /* Prend toute la hauteur disponible */
        width: 30%;
        text-align: center;
        padding: 20px;
        /* Ajout d'un espacement pour éviter le chevauchement */
        justify-self: center;
        vertical-align: middle;
        margin-top: 10%;
    }

    /* Image dans l'état vide */
    .empty-state-img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    /* Texte dans l'état vide */
    .empty-state-text {
        font-size: 18px;
        /* Ajustez la taille de la police */
        margin-bottom: 20px;
        color: #6c757d;
        /* Texte gris */
    }

    /* Bouton "Ajouter" dans l'état vide */
    .empty-state-btn {
        width: auto;
        /* Ajuste la largeur pour qu'elle corresponde au contenu */
        padding: 10px 20px;
        /* Ajuste le padding pour un bouton plus compact */
        font-size: 16px;
        /* Réduit la taille de la police */
        text-align: center;
        margin: 10px auto;
        border-radius: var(--border-radius);
        background-color: var(--color-primary);
        /* Conserve la couleur primaire */
        color: white;
        font-weight: bold !important;
        transition: background-color 0.3s ease-in-out;
    }

    .empty-state-btn:hover {
        background-color: var(--color-primary-hover);
        /* Conserve le hover global */
    }

    .btn-danger {
        max-width: 15% !important;
    }

    .danger-edit {
        min-width: 100% !important;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }

    .table-header h3 {
        width: 100%;
        text-align: left;
    }

}

.sort-options {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* Pousse le tri vers la droite */
}

.table-title {
    flex-grow: 1;
    /* Prend tout l'espace disponible à gauche */
}

/* Centrage global pour l'état vide */
.empty-state {
    height: 100%;
    /* Prend toute la hauteur disponible */
    width: 30%;
    text-align: center;
    padding: 20px;
    /* Ajout d'un espacement pour éviter le chevauchement */
    justify-self: center;
    vertical-align: middle;
    margin-top: 10%;
}

/* Image dans l'état vide */
.empty-state-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Texte dans l'état vide */
.empty-state-text {
    font-size: 18px;
    /* Ajustez la taille de la police */
    margin-bottom: 20px;
    color: #6c757d;
    /* Texte gris */
}

/* Bouton "Ajouter" dans l'état vide */
.empty-state-btn {
    width: auto;
    /* Ajuste la largeur pour qu'elle corresponde au contenu */
    padding: 10px 20px;
    /* Ajuste le padding pour un bouton plus compact */
    font-size: 16px;
    /* Réduit la taille de la police */
    text-align: center;
    margin: 10px auto;
    border-radius: var(--border-radius);
    background-color: var(--color-primary);
    /* Conserve la couleur primaire */
    color: white;
    font-weight: bold !important;
    transition: background-color 0.3s ease-in-out;
}

.empty-state-btn:hover {
    background-color: var(--color-primary-hover);
    /* Conserve le hover global */
}

.btn-danger {
    max-width: 230px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
}

.danger-edit {
    min-width: 100% !important;
}

/* //////////////////////// Vue Ticket en cours simulation mobile  */
/* Aligner la preview à gauche */
.mobile-preview-container {
    margin: 20px;
}

/* Couleurs & apparence globale */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mobile-device-frame {
    width: 425px;
    min-height: 900px !important;
    border: 2px solid #E0E0E0;
    border-radius: 30px;
    background-color: #fff;
    overflow: visible;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-device-frame:before {
    content: "";
    display: block;
    width: 60px;
    height: 8px;
    background: #000;
    border-radius: 4px;
    margin: 10px auto;
}

.mobile-content {
    padding: 15px;
    color: #333;
}

/* En-tête */
.headerAppContent {
    display: flex;
    justify-content: end;
    align-items: center;
    margin: 15px;
}

.header-service-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
}

.service-dot.green {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
}

.header-actions a,
.header-actions button {
    text-decoration: none;
    background: none;
    border: none;
    color: #202124;
    cursor: pointer;
    font-size: 0.9em;
}

.header-actions i.fas.fa-trash {
    font-size: 1.2em;
    color: #202124;
    margin-left: 10px;
}

/* Titres & sections */
.ticket-card h1.ticket-title {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: #333;
}

.ticket-subtitle {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

.section-block {
    background: #F9F9F9;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.section-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1em;
    color: #333;
}

/* Formulaires */
.form-control {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #CCC;
    border-radius: 5px;
    font-size: 0.9em;
    color: #333;
}

.textarea {
    height: 80px;
    resize: none;
}

/* Photos */
.photos-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-main {
    margin-bottom: 10px;
}

.photo-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


.photo-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* Thumbnails uniformes */
.thumbnail {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: visible;
    /* background: #dadada; */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pour que l'image dans la miniature s'ajuste bien */
.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    background-color: #dadada;
    border: 1px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.front {
    margin-left: 100px;
}

.photo-placeholder img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.photo-placeholder span {
    margin-top: 5px;
    font-size: 12px;
}

.photo-placeholder.small {
    width: 80px;
    height: 80px;
}

/* 
.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #dadada;
    border-radius: 8px;
    width: 100%;
    height: 100px;
}

.placeholder-img {
    width: 50px;
    height: auto;
    margin-bottom: 5px;
}

.photo-placeholder.small {
    height: 80px;
}

.placeholder-icon {
    font-size: 1.2em;
    color: #555;
}

/* Historique */
.historique-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.historique-item {
    font-size: 0.85em;
    line-height: 1.2em;
}

.link-default {
    color: #333;
    font-size: 0.9em;
    text-decoration: underline;
    cursor: pointer;
}

/* Boutons */
.no-style-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: inline-flex;
    align-items: center;
}

.trash-btn i {
    font-size: 1.2em;
    color: #202124;
    /* Couleur de l'icône poubelle */
}

/* Pour le conteneur titre + poubelle */
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    /* Vous pouvez ajuster selon le rendu souhaité */
}

@media (max-width: 932px) {
    .btn-ajouter {
        margin-left: 0 !important;
        margin-right: auto !important;
        margin-top: 10px !important;

    }

}

.empty-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-img {
    min-width: 200px;
    max-width: 300px;
    width: 30%;
    height: auto;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .empty-container {
        min-height: 50vh;
        padding: 20px;
    }

    .empty-state-img {
        width: 50%;
        max-width: 250px;
    }

    .empty-state-text {
        font-size: 14px;
    }

    .btn-add {
        padding: 10px 20px;
        font-size: 14px;
        max-width: 100%;
    }
}

.profile-name {
    font-weight: bold;
}

.logout-img {
    transition: filter 0.3s ease-in-out;
}

.logout:hover .logout-img {
    filter: invert(25%) sepia(100%) saturate(500%) hue-rotate(-50deg);
}

/* installation page css */
.img-reduce {
    width: 50%;
    height: auto;
    /* Maintient les proportions */
    display: block;
    margin: 0 auto;
    /* Centre les images */
}

.img-container {
    border: 2px solid #ddd;
    /* Bordure grise */
    border-radius: 10px;
    /* Coins arrondis */
    padding: 10px;
    /* Espacement intérieur */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    /* Espacement autour de l'image */
    max-width: 60%;
    /* Ajuste la largeur du conteneur */
    background-color: #f9f9f9;
    /* Fond léger pour encadrement */
}

.btn-large {
    width: 80vw;
    /* 80% de la largeur de la fenêtre */
    max-width: 400px;
    /* Limite la taille sur grand écran */
    display: block;
    /* Occupe toute la largeur définie */
    text-align: center;
    /* Centre le texte */
    padding: 15px;
    /* Ajoute du padding pour un beau rendu */
    font-size: 18px;
    /* Texte plus grand */
    font-weight: bold;
    border-radius: 10px;
    /* Coins arrondis */
    margin: 0 auto;
    /* Centre le bouton horizontalement */
}