/**
 * DCBeauty - Remplacement des styles inline
 * Ce fichier remplace tous les styles inline du projet par des classes CSS
 * Généré le : 2025-01-10
 */

/* ========================================
   1. ICÔNES (Bootstrap Icons)
   ======================================== */

.icon-1-5rem { font-size: 1.5rem; }
.icon-1-75rem { font-size: 1.75rem; }
.icon-2rem { font-size: 2rem; }
.icon-2-5rem { font-size: 2.5rem; }
.icon-3rem { font-size: 3rem; }
.icon-4rem { font-size: 4rem; }

/* ========================================
   2. VISIBILITÉ
   ======================================== */

.hidden { display: none !important; }
.d-inline { display: inline; }
.opacity-50 { opacity: 0.5; }

/* ========================================
   3. IMAGES ET MÉDIAS
   ======================================== */

/* Thumbnails et images de produits */
.img-thumb-50 { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
}

.img-thumb-60 { 
    width: 60px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: 4px; 
}

.img-thumb-100 { 
    height: 100px; 
    object-fit: cover; 
}

.img-thumb-120 { 
    width: 100%; 
    height: 120px; 
    object-fit: cover; 
}

.img-thumb-150 { 
    height: 150px; 
    object-fit: cover; 
}

.img-cover-120 { 
    width: 120px; 
    height: 60px; 
    object-fit: cover; 
}

.img-max-100 { 
    max-height: 100px; 
}

.img-max-150 { 
    max-width: 150px; 
}

.img-max-300 { 
    max-width: 300px; 
}

/* Nouvelle classe pour bannière admin */
.img-cover-120 {
    width: 120px;
    height: 60px;
    object-fit: cover;
}

/* Avatar circulaire */
.avatar-40 { 
    width: 40px; 
    height: 40px; 
    object-fit: cover; 
}

.avatar-40-placeholder {
    width: 40px;
    height: 40px;
}

/* Image draggable */
.img-draggable { 
    cursor: move; 
}

/* Image clickable */
.img-clickable {
    cursor: pointer;
}

/* ========================================
   4. LARGEURS DE COLONNES (Tableaux)
   ======================================== */

.col-w-10 { width: 10%; }
.col-w-15 { width: 15%; }
.col-w-20 { width: 20%; }
.col-w-25 { width: 25%; }
.col-w-35 { width: 35%; }
.col-w-40 { width: 40%; }

/* Largeurs fixes */
.col-w-100px { width: 100px; }
.col-w-120px { width: 120px; }
.col-w-150px { width: 150px; }

/* ========================================
   5. FORMULAIRES ET INPUTS
   ======================================== */

/* Transformations de texte */
.text-uppercase { 
    text-transform: uppercase; 
}

/* Indentation pour checkboxes hiérarchiques */
.indent-20 { margin-left: 20px; }
.indent-40 { margin-left: 40px; }
.indent-60 { margin-left: 60px; }

/* Progress bars */
.progress-h-5 { 
    height: 5px; 
}

/* ========================================
   6. MISE EN PAGE
   ======================================== */

/* Curseurs */
.cursor-pointer { cursor: pointer; }
.cursor-grab { cursor: grab; }
.cursor-grabbing { cursor: grabbing; }

/* Transitions */
.transition-all { 
    transition: all 0.3s; 
}

/* Heights fixes */
.h-300 { 
    height: 300px; 
}

.h-400 { 
    height: 400px; 
}

.max-h-400 { 
    max-height: 400px; 
    overflow-y: auto; 
}

.max-h-500 { 
    max-height: 500px; 
    overflow-y: auto; 
}

/* Conteneurs relatifs */
.pos-relative { 
    position: relative; 
}

/* Marges spéciales */
.mt-10px { margin-top: 10px; }
.mt-15px { margin-top: 15px; }
.mt-20px { margin-top: 20px; }
.mt-25px { margin-top: 25px; }
.mt-30px { margin-top: 30px; }

/* Paddings spéciaux */
.p-5px { padding: 5px; }
.p-10px { padding: 10px; }
.p-15px { padding: 15px; }
.p-20px { padding: 20px; }

/* Flex layouts */
.flex-1 { 
    flex: 1; 
}

.text-truncate-200 { 
    max-width: 200px; 
}

/* Minimum heights */
.min-h-60 { 
    min-height: 60px; 
}

/* Styles monospace */
.font-mono { 
    font-family: monospace; 
    font-size: 0.9em; 
}

.whitespace-pre { 
    white-space: pre-wrap; 
}

/* ========================================
   7. STYLES POUR LIGNES DE TABLEAUX
   ======================================== */

.tr-clickable {
    cursor: pointer;
}

/* ========================================
   8. STYLES DEBUG/INFO (Production seulement)
   ======================================== */

.info-box-light {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.text-success-color { 
    color: #28a745; 
}

.bg-light-gray {
    background: #f0f0f0;
}

/* ========================================
   9. COMPOSANTS JAVASCRIPT 
   ======================================== */

/* Admin banners */
.image-card-hover { 
    cursor: pointer; 
    transition: all 0.3s; 
}

/* Notifications */
.notification-message { 
    flex: 1; 
    color: #333; 
    font-size: 14px; 
}

.notification-close { 
    position: absolute; 
    top: 50%; 
    right: 15px; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    font-size: 24px; 
    color: #999; 
    cursor: pointer;
}

/* Upload zone */
.upload-zone-clickable { 
    cursor: pointer; 
}

/* Progress bar container */
.progress-bar-animated {
    width: 0%;
}

/* ========================================
   10. UTILITAIRES BOOTSTRAP MANQUANTS
   ======================================== */

/* Backgrounds */
.placeholder-box { 
    background: #f0f0f0; 
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-light-gray-2 {
    background: #f1f3f5;
}

/* Texts */
.text-muted-small { 
    color: #999; 
    font-size: 12px; 
}

.text-gray-666 {
    color: #666;
}

.text-gray-333 {
    color: #333;
}

.text-color-999 {
    color: #999;
}

.text-color-6c757d {
    color: #6c757d;
}

.text-purple-667eea {
    color: #667eea;
}

/* Line heights */
.lh-1-4 { line-height: 1.4; }
.lh-1-5 { line-height: 1.5; }
.lh-1-6 { line-height: 1.6; }

/* Font sizes */
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }
.fs-28 { font-size: 28px; }

/* Borders */
.border-ddd {
    border: 1px solid #ddd;
}

.border-ccc {
    border: 1px solid #ccc;
}

.border-bottom-e9ecef {
    border-bottom: 1px solid #e9ecef;
}

.border-bottom-dee2e6 {
    border-bottom: 2px solid #dee2e6;
}

/* Vertical align */
.va-top {
    vertical-align: top;
}

/* Display flex helpers */
.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-align-start {
    display: flex;
    align-items: flex-start;
}

/* Margin helpers */
.mr-10px { margin-right: 10px; }
.mr-15px { margin-right: 15px; }
.mt-2px { margin-top: 2px; }

/* Padding for table cells */
.td-padding-8 { padding: 8px; }
.td-padding-10 { padding: 10px; }
.td-padding-15 { padding: 15px; }

/* Width helpers */
.w-0 { width: 0%; }
.w-30px { width: 30px; }
.h-30px { height: 30px; }
.w-40px { width: 40px; }
.h-40px { height: 40px; }

/* Banner debug (production uniquement) */
.banner-debug {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    font-size: 11px;
}

/* ========================================
   11. CLASSES POUR EMAILS
   ======================================== */

/* 
   NOTE: Ces classes doivent être incluses dans une balise <style> 
   dans les templates d'emails pour compatibilité 
*/

.email-wrapper { 
    font-family: Arial, sans-serif; 
    max-width: 600px; 
    margin: 0 auto; 
}

.email-header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 30px; 
    text-align: center; 
    border-radius: 10px 10px 0 0; 
}

.email-body { 
    background: white; 
    padding: 30px; 
    border: 1px solid #e0e0e0; 
    border-top: none; 
}

.email-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.email-table th,
.email-table td { 
    padding: 10px; 
    border: 1px solid #ddd; 
}

.email-table th { 
    border-bottom: 2px solid #dee2e6; 
    text-align: left; 
}

.email-table td { 
    border-bottom: 1px solid #e9ecef; 
}

.email-info-box { 
    background: #f8f9fa; 
    padding: 20px; 
    border-radius: 8px; 
    margin: 20px 0; 
}

.email-alert-warning { 
    background: #fff3cd; 
    border: 1px solid #ffeaa7; 
    color: #856404; 
    padding: 15px; 
    border-radius: 8px; 
    margin: 20px 0; 
}

.email-alert-info { 
    background: #d1ecf1; 
    border: 1px solid #bee5eb; 
    color: #0c5460; 
    padding: 15px; 
    border-radius: 8px; 
    margin: 20px 0; 
}

.email-alert-success { 
    background: #d4edda; 
    border: 1px solid #c3e6cb; 
    color: #155724; 
    padding: 15px; 
    border-radius: 8px; 
    margin: 20px 0; 
}

.email-h1 {
    margin: 0;
    font-size: 28px;
}

.email-h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.email-h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.email-h3-color {
    color: #333;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.email-h3-18 {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.email-p {
    margin: 10px 0 0 0;
    font-size: 16px;
}

.email-p-gray {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.email-p-center {
    color: #999;
    font-size: 14px;
    text-align: center;
    margin: 30px 0 0 0;
}

.email-flex-container {
    display: flex;
    margin: 20px 0;
}

.email-flex-item {
    flex: 1;
    padding-right: 10px;
}

.email-flex-item-left {
    flex: 1;
    padding-left: 10px;
}

.email-total-row {
    background: #f1f3f5;
}

.email-step-icon {
    width: 30px;
    height: 30px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.email-step-icon-gray {
    width: 30px;
    height: 30px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.email-help-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* Spécifique pour alignement de texte dans tableaux */
.text-center-table {
    text-align: center;
}

.text-right-table {
    text-align: right;
}

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

/* Label pour newsletter */
.newsletter-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.newsletter-checkbox {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
}

.newsletter-text {
    flex: 1;
    color: #666;
}

/* Maintenance page text */
.maintenance-text {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* File input hidden */
.file-input-hidden {
    display: none;
}

/* Styles pour les notifications JavaScript */
.notification-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 15px 40px 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    border-left: 4px solid;
}

/* ========================================
   12. CALENDRIER DES RÉSERVATIONS
   ======================================== */

/* Navigation du calendrier */
.calendar-navigation {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Container du calendrier */
.calendar-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calendar {
    width: 100%;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
    margin-bottom: 1px;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
}

.calendar-day {
    background: white;
    min-height: 90px;
    padding: 5px;
    position: relative;
    border-radius: 5px;
    cursor: context-menu;
}

.calendar-day:hover {
    background: #d1ecf1;
}

.calendar-day-empty {
    background: #fafafa;
}

.calendar-day-today {
    background: #fff3cd;
}

.calendar-day-past {
    background: #f8f9fa;
}

.calendar-day-non-working {
    background: #e9ecef !important;
    opacity: 0.6;
}

.calendar-day-non-working .calendar-day-number {
    color: #6c757d;
}

.calendar-day-non-working .calendar-booking {
    opacity: 0.7;
}

/* Styles pour les exceptions - Très subtil */
.calendar-day[class*="has-exception-"] {
    background: rgba(248, 249, 250, 0.6) !important;
    position: relative;
}

.calendar-day[class*="has-exception-"]:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(108, 117, 125, 0.2);
}

.calendar-day-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    gap: 3px;
}

.calendar-day-indicators {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.calendar-day-number {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
}

.booking-count {
    color: #6c757d;
    font-weight: normal;
}

.booking-count small {
    font-size: 0.65rem;
}

.calendar-day-exceptions {
    display: inline-flex;
    gap: 2px;
}

.exception-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.55rem;
}

.exception-badge {
    font-size: 0.45rem;
    padding: 1px 3px;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
    border-radius: 8px;
    line-height: 1;
    height: 14px;
    border: none;
    opacity: 0.85;
}

.exception-badge .badge-text {
    font-size: 0.45rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.exception-badge i {
    font-size: 0.45rem;
}

/* Styles subtils pour chaque type de badge */
.exception-badge.bg-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #856404 !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
	display:inline-flex!important;

}

.exception-badge.bg-warning .badge-text,
.exception-badge.bg-warning i {
    color: #856404 !important;
	
}

.exception-badge.bg-info {
    background-color: rgba(23, 162, 184, 0.15) !important;
    color: #0c5460 !important;
		display:inline-flex!important;
}

.exception-badge.bg-info .badge-text,
.exception-badge.bg-info i {
    color: #0c5460 !important;
}

.exception-badge.bg-danger {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #721c24 !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.exception-badge.bg-danger .badge-text,
.exception-badge.bg-danger i {
    color: #721c24 !important;
}

.exception-badge.bg-secondary {
    background-color: rgba(108, 117, 125, 0.15) !important;
    color: #383d41 !important;
    border-color: rgba(108, 117, 125, 0.3) !important;
}

.exception-badge.bg-secondary .badge-text,
.exception-badge.bg-secondary i {
    color: #383d41 !important;
}

.exception-time {
    display: none; /* Les heures sont dans le tooltip */
}

.exception-reason {
    color: #495057;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
    display: inline-block;
}

/* Mise en évidence très subtile des exceptions lors du filtrage */
.calendar-day.filtered-exception {
    border: 1px solid rgba(108, 117, 125, 0.15);
}

.calendar-day-bookings {
    font-size: 0.85rem;
}

.calendar-booking {
    background: #f8f9fa;
    border-left: 2px solid;
    padding: 1px 3px;
    margin-bottom: 1px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-booking:hover {
    transform: translateX(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 5;
}

.calendar-booking-time {
    font-weight: bold;
    white-space: nowrap;
    font-size: 0.65rem;
    color: #495057;
    min-width: 65px;
    display: inline-block;
}

.calendar-booking-info {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
    color: #212529;
    background: transparent;
}

.calendar-booking-warning {
    border-color: #ffc107;
    background: #fff3cd;
}

.calendar-booking-info {
    border-color: #17a2b8;
    background: #d1ecf1;
}

.calendar-booking-unavailable {
    border-color: #d63384;
    background: #f8d7e4;
    font-style: italic;
    cursor: context-menu;
}

.calendar-booking-unavailable:hover {
    background: #f0c5d7;
}

.calendar-booking-unavailable .calendar-booking-info {
	background:#f8d7e4;
    color: #842029;
}
.calendar-booking-warning .calendar-booking-info {
	background:#fff3cd;
    color: #49506a;
}

.calendar-booking-success {
    border-color: #198754;
    background: #d1e7dd;
}

.calendar-booking-danger {
    border-color: #dc3545;
    background: #f8d7da;
}

.calendar-booking-secondary {
    border-color: #6c757d;
    background: #e2e3e5;
}

.calendar-booking-more {
    text-align: center;
    padding: 2px;
    font-size: 0.65rem;
}

.calendar-booking-more a {
    color: #6c757d;
    text-decoration: none;
    font-style: italic;
}

.calendar-booking-more a:hover {
    text-decoration: underline;
    color: #495057;
}

.calendar-legend {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calendar-legend .badge {
    margin-right: 5px;
}

/* Menu contextuel */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
    padding: 8px 0;
}

.context-menu ul {
    margin: 0;
    padding: 0;
}

.context-menu li {
    list-style: none;
}

.context-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #212529;
    text-decoration: none;
    transition: all 0.2s;
}

.context-menu a:hover {
    background: #f8f9fa;
    color: var(--bs-primary);
}

.context-menu i {
    width: 20px;
    text-align: center;
}

.context-menu li + li {
    border-top: 1px solid #e9ecef;
}

/* Style pour les notes cliquables - Minimaliste */
.note-indicator {
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
    color: #6c757d;
    font-size: 0.65rem;
    margin-left: 2px;
    opacity: 0.8;
}

.note-indicator:hover {
    transform: scale(1.15);
    color: #495057;
    opacity: 1;
}

.note-indicator i {
    font-size: 0.7rem;
}

/* Modal pour afficher les notes */
#viewNoteModal .modal-body {
    max-height: 400px;
    overflow-y: auto;
}

#viewNoteModal .modal-body #viewNoteContent {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Responsive pour calendrier */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 60px;
        padding: 3px;
        font-size: 0.7rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
    }
    
    .calendar-booking {
        padding: 0px 2px;
        font-size: 0.6rem;
        gap: 1px;
    }
    
    .calendar-booking-time {
        font-size: 0.55rem;
        min-width: 55px;
    }
    
    .calendar-booking-info {
        font-size: 0.55rem;
        display: none; /* Sur mobile, on cache le nom */
    }
    
    /* Afficher seulement les heures sur mobile */
    .calendar-booking {
        justify-content: center;
    }
    
    .calendar-day-header {
        font-size: 0.75rem;
        padding: 8px 2px;
    }
    
    /* Masquer le texte de la raison sur mobile */
    .exception-reason {
        display: none;
    }
    
    /* Réduire la taille des badges sur mobile */
    .exception-badge {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
    
    .exception-badge .badge-text {
        display: none;
    }
    
    .exception-time {
        font-size: 0.6rem;
        padding: 1px 2px;
    }
    
    .exception-badge-container {
        gap: 2px;
    }
}

/* EOF */