/* Divi Events Calendar - Frontend Styles */

:root {
    --dec-primary: #2271b1;
    --dec-primary-dark: #135e96;
    --dec-homme: #4facfe;
    --dec-femme: #f093fb;
    --dec-mixte: #667eea;
    --dec-text: #1d2327;
    --dec-text-light: #646970;
    --dec-border: #dcdcde;
    --dec-bg: #ffffff;
    --dec-bg-light: #f6f7f7;
}

.dec-calendar-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--dec-bg);
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header */
.dec-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--dec-primary) 0%, var(--dec-primary-dark) 100%);
    color: #fff;
}

.dec-current-month {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    min-width: 250px;
    text-align: center;
}

.dec-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 24px;
}

.dec-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dec-today-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.dec-today-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Calendar Grid */
.dec-calendar-grid {
    padding: 20px;
}

.dec-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.dec-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--dec-text-light);
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 0;
}

.dec-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.dec-day {
    min-height: 100px;
    background: var(--dec-bg-light);
    border-radius: 8px;
    padding: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.dec-day:hover {
    background: #eef5fb;
}

.dec-day-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--dec-text);
    margin-bottom: 5px;
}

.dec-day.dec-other-month {
    background: transparent;
    opacity: 0.4;
}

.dec-day.dec-today {
    background: #e3f2fd;
    box-shadow: inset 0 0 0 2px var(--dec-primary);
}

.dec-day.dec-today .dec-day-number {
    color: var(--dec-primary);
}

/* Events */
.dec-day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dec-event {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.dec-event:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dec-event-homme {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dec-event-femme {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

.dec-event-more {
    font-size: 10px;
    color: var(--dec-text-light);
    cursor: pointer;
    text-align: center;
    padding: 2px;
}

.dec-event-more:hover {
    color: var(--dec-primary);
}

/* Legend */
.dec-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 20px;
    background: var(--dec-bg-light);
    border-top: 1px solid var(--dec-border);
}

.dec-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dec-text-light);
}

.dec-legend-color {
    width: 20px;
    height: 12px;
    border-radius: 3px;
}

.dec-legend-homme {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dec-legend-femme {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

/* Modal */
.dec-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.dec-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dec-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.dec-modal-content {
    position: relative;
    background: var(--dec-bg);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dec-modal-in 0.3s ease;
}

@keyframes dec-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dec-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--dec-bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dec-text-light);
    transition: all 0.2s ease;
    z-index: 10;
}

.dec-modal-close:hover {
    background: #e0e0e0;
    color: var(--dec-text);
}

.dec-modal-body {
    padding: 30px;
}

/* Event Detail */
.dec-event-detail {
    
}

.dec-event-header {
    margin-bottom: 25px;
    padding-right: 40px;
}

.dec-event-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dec-text);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.dec-event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dec-event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--dec-text-light);
}

.dec-event-meta-icon {
    width: 20px;
    text-align: center;
}

.dec-event-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dec-text-light);
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--dec-border);
}

/* Places Info */
.dec-places-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.dec-places-box {
    background: var(--dec-bg-light);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.dec-places-box.dec-places-homme {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.dec-places-box.dec-places-femme {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.dec-places-number {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.dec-places-label {
    font-size: 12px;
    color: var(--dec-text-light);
}

.dec-places-full {
    color: #d32f2f;
}
/* Badge COMPLET */
.dec-places-box.dec-places-complet {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%) !important;
    border: 2px solid #ef5350 !important;
    border-radius: 12px !important;
    padding: 20px 40px !important;
    text-align: center !important;
    margin: 20px auto !important;
    display: inline-block !important;
}

.dec-places-box.dec-places-complet .dec-places-number {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #d32f2f !important;
    letter-spacing: 2px !important;
}

/* Date de l'événement plus grande */
.dec-event-meta-item {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #532354 !important;
    margin: 15px 0 !important;
}

.dec-event-meta-item span:not(.dec-event-meta-icon) {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #532354 !important;
}

.dec-event-meta-icon {
    font-size: 22px !important;
}

/* Titre de l'événement plus grand aussi */
.dec-event-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #532354 !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
}
/* Registration Form */
.dec-registration-form {
    
}

.dec-registration-form h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--dec-text);
}

.dec-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.dec-form-group {
    margin-bottom: 15px;
}

.dec-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--dec-text);
    margin-bottom: 6px;
}

.dec-form-group label .required {
    color: #d32f2f;
}

.dec-form-group input,
.dec-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--dec-border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dec-form-group input:focus,
.dec-form-group select:focus {
    outline: none;
    border-color: var(--dec-primary);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.dec-form-group.has-error input,
.dec-form-group.has-error select {
    border-color: #d32f2f;
}

.dec-form-error {
    font-size: 12px;
    color: #d32f2f;
    margin-top: 5px;
}

.dec-gender-options {
    display: flex;
    gap: 15px;
}

.dec-gender-option {
    flex: 1;
}

.dec-gender-option input {
    display: none;
}

.dec-gender-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--dec-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dec-gender-option input:checked + label {
    border-color: var(--dec-primary);
    background: rgba(34, 113, 177, 0.1);
}

.dec-gender-option.disabled label {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--dec-bg-light);
}

.dec-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--dec-primary) 0%, var(--dec-primary-dark) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dec-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 113, 177, 0.4);
}

.dec-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success Message */
.dec-success-message {
    text-align: center;
    padding: 40px 20px;
}

.dec-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: #fff;
}

.dec-success-message h3 {
    font-size: 24px;
    color: var(--dec-text);
    margin: 0 0 10px 0;
}

.dec-success-message p {
    color: var(--dec-text-light);
    margin: 0;
}

/* Loading */
.dec-loading {
    text-align: center;
    padding: 40px;
    color: var(--dec-text-light);
}

.dec-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dec-border);
    border-top-color: var(--dec-primary);
    border-radius: 50%;
    animation: dec-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}



/* ============================================
   CORRECTIONS FINALES POPUP
   ============================================ */

/* 1. CACHER le badge orange catégorie */
.dec-day-event-category,
.dec-event-category {
    display: none !important;
}

/* 2. CACHER les blocs Hommes et Femmes */
.dec-place-homme,
.dec-place-femme {
    display: none !important;
}

/* 3. Centrer le bloc Total restant */
.dec-places-grid {
    display: flex !important;
    justify-content: center !important;
    gap: 0 !important;
}

/* 4. Agrandir légèrement le bloc Total */
.dec-place-item:first-child {
    transform: scale(1.15);
    margin: 10px auto !important;
}


/* Badge multi-jours */
.dec-event-multiday-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #F5F5F5 !important;
    border-left: 4px solid #FC8E41 !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    margin: 15px 0 !important;
}

.dec-multiday-text strong {
    color: #FC8E41 !important;
}

/* Places Total centrées */
.dec-places-total {
    margin: 0 auto !important;
}

@keyframes dec-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .dec-calendar-header {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .dec-current-month {
        font-size: 20px;
        min-width: auto;
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dec-day {
        min-height: 70px;
        padding: 5px;
    }
    
    .dec-day-number {
        font-size: 12px;
    }
    
    .dec-event {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .dec-calendar-legend {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .dec-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .dec-modal-body {
        padding: 20px;
    }
    
    .dec-form-row {
        grid-template-columns: 1fr;
    }
    
    .dec-places-info {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .dec-day-header {
        font-size: 10px;
    }
    
    .dec-day {
        min-height: 50px;
    }
    
    .dec-day-events {
        display: none;
    }
    
    .dec-day.has-events::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: var(--dec-primary);
        border-radius: 50%;
    }
}

/* ============================================ */
/* ZEMASSAGE - COLORIMÉTRIE COMPLÈTE */
/* ============================================ */

:root {
    --zm-orange: #FC8E41;
    --zm-prune: #532354;
    --zm-beige: #E2BDA0;
    --zm-gris: #E6DFD9;
}

/* Header calendrier - Orange */
.dec-calendar-header {
    background: linear-gradient(135deg, var(--zm-orange) 0%, #ff9d5c 100%) !important;
}

/* Jours header - Prune */
.dec-day-header {
    color: var(--zm-prune) !important;
}

/* Jours - Gris/Beige */
.dec-day {
    background: var(--zm-gris) !important;
}

.dec-day:hover {
    background: var(--zm-beige) !important;
}

/* Aujourd'hui - Orange */
.dec-day.dec-today {
    background: rgba(252, 142, 65, 0.15) !important;
    box-shadow: inset 0 0 0 2px var(--zm-orange) !important;
}

.dec-day.dec-today .dec-day-number {
    color: var(--zm-orange) !important;
}

/* Modal overlay - Prune */
.dec-modal-overlay {
    background: rgba(83, 35, 84, 0.7) !important;
}

/* Modal close button - Gris/Beige */
.dec-modal-close {
    background: var(--zm-gris) !important;
    color: var(--zm-prune) !important;
}

.dec-modal-close:hover {
    background: var(--zm-beige) !important;
}

/* Titres - Prune */
.dec-event-title,
.dec-day-events-title,
.dec-registration-form h4 {
    color: var(--zm-prune) !important;
}

/* Labels formulaire - Prune */
.dec-form-group label {
    color: var(--zm-prune) !important;
}

/* Champs formulaire - Beige */
.dec-form-group input,
.dec-form-group select {
    border: 2px solid var(--zm-beige) !important;
}

.dec-form-group input:focus,
.dec-form-group select:focus {
    border-color: var(--zm-orange) !important;
    box-shadow: 0 0 0 3px rgba(252, 142, 65, 0.15) !important;
}

/* Required - Orange */
.dec-form-group label .required {
    color: var(--zm-orange) !important;
}

/* Options gender - Beige/Orange */
.dec-gender-option label {
    border: 2px solid var(--zm-beige) !important;
}

.dec-gender-option input:checked + label {
    border-color: var(--zm-orange) !important;
    background: rgba(252, 142, 65, 0.1) !important;
}

.dec-gender-option.disabled label {
    background: var(--zm-gris) !important;
}

/* Boutons - Orange */
.dec-submit-btn,
.dec-btn-primary {
    background: linear-gradient(135deg, var(--zm-orange) 0%, #ff9d5c 100%) !important;
}

.dec-submit-btn:hover,
.dec-btn-primary:hover {
    box-shadow: 0 5px 20px rgba(252, 142, 65, 0.4) !important;
}

/* Success icon - Orange */
.dec-success-icon {
    background: linear-gradient(135deg, var(--zm-orange) 0%, #ff9d5c 100%) !important;
}

.dec-success-message h3 {
    color: var(--zm-prune) !important;
}

/* Places boxes - Gris */
.dec-places-box {
    background: var(--zm-gris) !important;
}

.dec-places-number {
    color: var(--zm-prune) !important;
}

/* Event more hover - Orange */
.dec-event-more:hover {
    color: var(--zm-orange) !important;
}

/* Spinner - Orange */
.dec-spinner {
    border: 3px solid var(--zm-gris) !important;
    border-top-color: var(--zm-orange) !important;
}

/* Mobile - has-events indicator - Orange */
@media screen and (max-width: 480px) {
    .dec-day.has-events::after {
        background: var(--zm-orange) !important;
    }
}

/* Description border - Gris */
.dec-event-description {
    border-bottom: 1px solid var(--zm-gris) !important;
}

/* BO - Stats cards Total inscriptions - Prune/Orange */
#dec_event_registrations_count .inside > div > div[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, var(--zm-prune) 0%, var(--zm-orange) 100%) !important;
}

/* ============================================ */
/* ZEMASSAGE - POPUP JOUR ULTRA COMPACT */
/* ============================================ */

/* Modal plus petite */
.dec-modal-content {
    max-width: 380px !important;
    width: 90% !important;
}

.dec-modal-body {
    padding: 18px !important;
}

/* Header compact */
.dec-day-events-header {
    text-align: center;
    padding: 0 0 12px 0;
    border-bottom: 1px solid #E6DFD9;
    margin-bottom: 14px;
}

.dec-day-events-title {
    font-size: 18px;
    font-weight: 700;
    color: #532354;
    margin: 0 0 4px 0;
}

.dec-day-events-count {
    font-size: 12px;
    color: #646970;
    margin: 0;
}

/* Liste événements */
.dec-day-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 6px;
}

/* Card événement - Plus compact */
.dec-day-event-card {
    background: #fff;
    border-left: 3px solid;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s ease;
    cursor: default;
    box-shadow: none !important;
}

.dec-day-event-card:hover {
    box-shadow: 0 2px 6px rgba(83, 35, 84, 0.08) !important;
}

/* Header card */
.dec-day-event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
    padding: 0;
    border: none;
}

.dec-day-event-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #532354;
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

.dec-day-event-category {
    padding: 3px 8px;
    border-radius: 10px;
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Meta */
.dec-day-event-card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0;
    background: transparent !important;
}

.dec-event-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #532354;
}

.dec-event-meta-icon {
    font-size: 12px;
}

/* Places - TITRE À GAUCHE sur même ligne */
.dec-day-event-places {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 8px;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.dec-day-event-places h4 {
    font-size: 10px;
    font-weight: 700;
    color: #532354;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Grid 3 colonnes EN LIGNE - Plus compact */
.dec-places-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    justify-content: flex-start !important;
    flex: 1 !important;
}

/* Items places - Plus petits et compacts */
.dec-place-item {
    background: white !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
    text-align: center;
    border: 2px solid #E6DFD9 !important;
    transition: all 0.2s ease;
    flex: 0 0 auto !important;
    min-width: 60px !important;
    max-width: 80px !important;
}

.dec-place-item:hover {
    border-color: #E2BDA0 !important;
}

.dec-place-item.dec-place-homme {
    border-color: #4facfe !important;
}

.dec-place-item.dec-place-femme {
    border-color: #f093fb !important;
}

.dec-place-item.full {
    background: #ffebee !important;
    border-color: #ef5350 !important;
}

.dec-place-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.dec-place-number {
    font-size: 14px;
    font-weight: 800;
    color: #532354;
    margin-bottom: 1px;
}

.dec-place-item.full .dec-place-number {
    color: #d32f2f;
}

.dec-place-label {
    font-size: 8px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* Bouton */
.dec-day-event-actions {
    display: flex;
    margin-top: 8px;
}

.dec-btn-primary {
    background: linear-gradient(135deg, #FC8E41 0%, #ff9d5c 100%) !important;
    color: white;
    border: none;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.dec-btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(252, 142, 65, 0.25) !important;
}

.dec-btn-disabled {
    background: #E6DFD9 !important;
    color: #9e9e9e;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    width: 100%;
}

/* Scrollbar */
.dec-day-events-list::-webkit-scrollbar {
    width: 4px;
}

.dec-day-events-list::-webkit-scrollbar-track {
    background: #E6DFD9;
    border-radius: 10px;
}

.dec-day-events-list::-webkit-scrollbar-thumb {
    background: #FC8E41;
    border-radius: 10px;
}

/* ============================================ */
/* ÉVÉNEMENTS MULTI-JOURS */
/* ============================================ */

.dec-event-multiday-info {
    background: linear-gradient(135deg, rgba(252, 142, 65, 0.1) 0%, rgba(83, 35, 84, 0.1) 100%);
    border-left: 4px solid #FC8E41;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.dec-event-multiday-info h4 {
    color: #532354;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.dec-event-multiday-info p {
    color: #532354;
    font-size: 14px;
    margin: 0;
}

.dec-registration-info {
    margin: 20px 0;
}

.dec-registration-info p {
    margin: 0;
}

/* Badge jour sur événement calendrier */
.dec-event[data-duration] {
    position: relative;
    padding-right: 35px;
}

.dec-event[data-duration]::after {
    content: attr(data-current-day) "/" attr(data-duration);
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #532354;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
}


/* FIX DÉBORDEMENT TEXTE ÉVÉNEMENTS */
.dec-event {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    max-width: 100% !important;
}

.dec-day-events {
    overflow: hidden !important;
    width: 100% !important;
}

.dec-day {
    overflow: hidden !important;
    min-width: 0 !important;
}


/* POPUP SIMPLIFIÉE - TAILLE NORMALE */

/* Popup un peu plus grande que l'original */
.dec-modal-content {
    max-width: 450px !important;
    width: 90% !important;
	height:500px;
}

/* Cacher les éléments non souhaités */
.dec-day-events-count,
.dec-day-event-category,
.dec-day-event-places {
    display: none !important;
}

/* Tailles de texte raisonnables */
.dec-day-events-title {
    font-size: 24px !important;
    margin-bottom: 5px !important;
}

.dec-day-event-card-title {
    font-size: 20px !important;
    font-weight: 600 !important;
}

.dec-day-event-card-meta {
    font-size: 16px !important;
}

.dec-btn-primary {
    font-size: 16px !important;
    padding: 12px 24px !important;
}


/* Responsive */
@media screen and (max-width: 768px) {
    .dec-modal-content {
        max-width: 95% !important;
    }
    
    .dec-day-event-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .dec-modal-body {
        padding: 14px !important;
    }
    
    .dec-places-grid {
        flex-direction: row !important;
        gap: 4px !important;
    }
    
    .dec-day-event-card {
        padding: 8px;
    }
    
    .dec-day-event-card-title {
        font-size: 14px;
    }
    
    .dec-place-icon {
        font-size: 16px;
    }
    
    .dec-place-number {
        font-size: 14px;
    }
    
    .dec-place-label {
        font-size: 7px;
    }
}



/* ===================================
   AGRANDISSEMENT CALENDRIER - ZEMASSAGE
   =================================== */

/* Calendrier pleine largeur */
.dec-calendar-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

/* Grille plus haute */
.dec-calendar-grid {
    min-height: 900px !important;
}

/* Cellules des jours BEAUCOUP plus hautes */
.dec-day {
    min-height: 180px !important;
    height: auto !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Numéro du jour plus gros */
.dec-day-number {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: #532354 !important;
}

/* Container des événements */
.dec-day-events {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    overflow: visible !important;
    width: 100% !important;
}

/* Événements - TEXTE COMPLET + HEURE */
.dec-event {
    font-size: 13px !important;
    line-height: 1.5 !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    word-wrap: break-word !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* Afficher l'heure en GRAS au début */
.dec-event::before {
    content: attr(data-time) " • " !important;
    font-weight: 800 !important;
    display: inline !important;
    margin-right: 4px !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Hover plus prononcé */
.dec-event:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
}

/* Responsive - Desktop large */
@media (min-width: 1400px) {
    .dec-calendar-wrapper {
        max-width: 100% !important;
    }
    
    .dec-day {
        min-height: 200px !important;
    }
    
    .dec-event {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}

/* Responsive - Desktop normal */
@media (min-width: 1200px) and (max-width: 1399px) {
    .dec-day {
        min-height: 180px !important;
    }
}

/* Responsive - Tablette */
@media (min-width: 769px) and (max-width: 1199px) {
    .dec-day {
        min-height: 150px !important;
    }
    
    .dec-event {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .dec-day {
        min-height: 120px !important;
    }
    
    .dec-event {
        font-size: 11px !important;
        padding: 5px 7px !important;
    }
    
    .dec-day-number {
        font-size: 16px !important;
    }
}

/* Afficher badge jour pour événements multi-jours */
.dec-event[data-duration]::after {
    content: "J" attr(data-current-day) "/" attr(data-duration) !important;
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #532354 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 3px 6px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.dec-event[data-duration] {
    position: relative !important;
    padding-right: 50px !important;
}
/* ===================================
   MODAL - CENTRAGE DU CONTENU
   =================================== */

/* Centrer tout le contenu du modal */
.dec-event-detail {
    text-align: center !important;
}

/* Titre centré */
.dec-event-title {
    text-align: center !important;
}

/* Header centré */
.dec-event-header {
    text-align: center !important;
}

/* Date centrée */
.dec-event-meta {
    justify-content: center !important;
    align-items: center !important;
}

.dec-event-meta-item {
    justify-content: center !important;
    text-align: center !important;
}

.dec-event-date-large {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Description centrée */
.dec-event-description {
    text-align: center !important;
}

/* Badge COMPLET centré */
.dec-places-info {
    display: flex !important;
    justify-content: center !important;
}

/* Badge multi-jours centré */
.dec-event-multiday-badge {
    justify-content: center !important;
    text-align: center !important;
}

/* Message inscription centré (si réactivé un jour) */
.dec-registration-info {
    text-align: center !important;
}
/* ===================================
   BOUTON RÉSERVER - ZEMASSAGE
   =================================== */

.dec-reservation-actions {
    margin-top: 25px !important;
    text-align: center !important;
    padding-top: 20px !important;
    border-top: 2px solid #E6DFD9 !important;
}

/* Bouton Réserver */
.dec-btn-reserver {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #FC8E41 0%, #FF6B35 100%) !important;
    color: white !important;
    padding: 16px 30px !important;
    border-radius: 30px !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(252, 142, 65, 0.4) !important;
    margin-bottom: 10px !important;
}

.dec-btn-reserver:hover {
    background: linear-gradient(135deg, #532354 0%, #6B2C5C 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(83, 35, 84, 0.4) !important;
}

.dec-btn-reserver:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Bouton Login */
.dec-btn-login {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #532354 0%, #6B2C5C 100%) !important;
    color: white !important;
    padding: 16px 30px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(83, 35, 84, 0.3) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
}

.dec-btn-login:hover {
    background: linear-gradient(135deg, #FC8E41 0%, #FF6B35 100%) !important;
    transform: translateY(-3px) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Note créer un compte */
.dec-login-note {
    margin-top: 12px !important;
    color: #666 !important;
    font-size: 14px !important;
    text-align: center !important;
}

.dec-login-note a {
    color: #FC8E41 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* Bouton Complet */
.dec-btn-complet {
    display: block !important;
    width: 100% !important;
    background: #E6DFD9 !important;
    color: #999 !important;
    padding: 16px 30px !important;
    border-radius: 30px !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: not-allowed !important;
}

/* Message d'erreur */
.dec-reserver-error {
    color: #d32f2f !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
    padding: 10px 15px !important;
    background: #ffebee !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}


/* Message multi-jours - autres jours */
.dec-multiday-info {
    background: #f0ece8 !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    text-align: center !important;
    color: #532354 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.dec-multiday-info p {
    margin: 5px 0 !important;
}

/* Note sous bouton multi-jours */
.dec-multiday-note {
    font-size: 12px !important;
    color: #532354 !important;
    margin-top: 10px !important;
    font-style: italic !important;
    text-align: center !important;
}


/* ============================================
   POPUP ÉVÉNEMENT FLEXIBLE
   ============================================ */

#zmb-flexible-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zmb-fp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

.zmb-fp-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(83,35,84,0.25);
    z-index: 1;
}

.zmb-fp-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 5px;
}
.zmb-fp-close:hover { color: #532354; }

.zmb-fp-back {
    background: none;
    border: none;
    color: #FC8E41;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 15px;
    display: block;
}
.zmb-fp-back:hover { text-decoration: underline; }

.zmb-fp-modal h3 {
    color: #532354;
    font-size: 22px;
    margin: 0 0 6px 0;
}

.zmb-fp-subtitle {
    color: #999;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* Cartes cours */
.zmb-fp-courses {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zmb-fp-course-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.zmb-fp-course-card:hover {
    border-color: #FC8E41;
    background: #fffaf6;
    transform: translateX(4px);
}

.zmb-fp-course-color {
    width: 12px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
}

.zmb-fp-course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.zmb-fp-course-info strong { color: #532354; font-size: 15px; }
.zmb-fp-duration { color: #999; font-size: 13px; }

.zmb-fp-course-price {
    font-weight: 700;
    color: #FC8E41;
    font-size: 16px;
    white-space: nowrap;
}

/* Grille créneaux */
.zmb-fp-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.zmb-fp-slot {
    padding: 12px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.zmb-fp-slot-free {
    background: #f0f9ff;
    border: 2px solid #b3dff7;
    color: #1565c0;
    cursor: pointer;
}
.zmb-fp-slot-free:hover {
    background: #532354;
    border-color: #532354;
    color: white;
    transform: translateY(-2px);
}
.zmb-fp-slot-free.selected {
    background: #532354;
    border-color: #532354;
    color: white;
}

.zmb-fp-slot-taken {
    background: #f5f5f5;
    border: 2px solid #ddd;
    color: #bbb;
    cursor: not-allowed;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.zmb-fp-taken-label {
    font-size: 11px;
    color: #ccc;
    font-weight: 400;
}

/* Confirmation */
.zmb-fp-confirm {
    background: #f9f3ff;
    border: 2px solid #532354;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.zmb-fp-confirm p { color: #532354; margin: 0 0 12px 0; font-size: 15px; }
.zmb-fp-confirm strong { color: #532354; }

.zmb-fp-btn-confirm {
    background: linear-gradient(135deg, #FC8E41 0%, #ff9d5c 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(252,142,65,0.35);
}
.zmb-fp-btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252,142,65,0.45);
}
.zmb-fp-btn-confirm:disabled { opacity: 0.7; cursor: not-allowed; }

/* Bouton flexible dans modal calendrier */
.dec-btn-flexible {
    background: linear-gradient(135deg, #532354 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(83,35,84,0.3);
    width: 100%;
    margin-top: 10px;
}
.dec-btn-flexible:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(83,35,84,0.4);
}