/* ==============================================
   Jam Calendar Manager - Frontend Styles
   Style moderne et responsive pour PC et mobile
   ============================================== */

/* Variables CSS */
:root {
    /* Couleurs Art'K'fée */
    --jcm-violet: #8B5FBF;
    --jcm-turquoise: #4ECDC4;
    --jcm-orange: #FFB499;
    --jcm-yellow: #F9E784;
    
    /* Couleurs système */
    --jcm-primary: #8B5FBF;
    --jcm-secondary: #4ECDC4;
    --jcm-accent: #FFB499;
    --jcm-success: #4ECDC4;
    --jcm-warning: #F9E784;
    --jcm-dark: #2c3e50;
    --jcm-light: #ecf0f1;
    --jcm-border: #bdc3c7;
    --jcm-shadow: rgba(139, 95, 191, 0.1);
    --jcm-radius: 12px;
    --jcm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et styles de base */
.jcm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.jcm-container * {
    box-sizing: border-box;
}

/* ==============================================
   Page détails (single Jam)
   ============================================== */

.jcm-single-container {
    max-width: 1200px;
}

.jcm-single-breadcrumb {
    margin: 10px 0 16px;
}

.jcm-single-header {
    background: #fff;
    border-radius: var(--jcm-radius);
    box-shadow: 0 4px 20px var(--jcm-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.jcm-single-image {
    width: 100%;
    height: auto;
    display: block;
}

.jcm-single-title-centered {
    margin: 16px 18px 6px;
    text-align: center;
    font-size: 32px;
    line-height: 1.2;
    color: var(--jcm-dark);
}

.jcm-single-badges-centered {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 18px 10px;
}

.jcm-single-genres-centered {
    text-align: center;
    padding: 0 18px 18px;
    font-weight: 700;
    color: var(--jcm-primary);
}

@media (max-width: 768px) {
    .jcm-single-title-centered {
        font-size: 26px;
    }
}

/* Sur la page single, on harmonise Google Maps et Waze (même look) */
.jcm-nav-google,
.jcm-nav-waze {
    background: linear-gradient(135deg, var(--jcm-primary), var(--jcm-secondary));
    color: #fff;
}

.jcm-nav-google:hover,
.jcm-nav-waze:hover {
    background: linear-gradient(135deg, var(--jcm-secondary), var(--jcm-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 95, 191, 0.35);
}

/* ==============================================
   Loading et messages
   ============================================== */
.jcm-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--jcm-primary);
}

.jcm-loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 20px auto 0;
    border: 4px solid var(--jcm-light);
    border-top-color: var(--jcm-primary);
    border-radius: 50%;
    animation: jcm-spin 1s linear infinite;
}

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

.jcm-error, .jcm-success {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: var(--jcm-radius);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jcm-error {
    background: #fee;
    border: 2px solid var(--jcm-accent);
    color: #c0392b;
}

.jcm-success {
    background: #efe;
    border: 2px solid var(--jcm-success);
    color: #229954;
}

.jcm-error::before {
    content: '⚠️';
    font-size: 24px;
}

.jcm-success::before {
    content: '✅';
    font-size: 24px;
}

/* ==============================================
   Calendrier
   ============================================== */
.jcm-calendar-wrapper {
    background: white;
    border-radius: var(--jcm-radius);
    box-shadow: 0 4px 20px var(--jcm-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.jcm-calendar-header {
    background: linear-gradient(135deg, var(--jcm-primary), var(--jcm-secondary));
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.jcm-calendar-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.jcm-view-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 25px;
}

.jcm-view-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jcm-view-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.jcm-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.jcm-calendar-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jcm-calendar-title::before {
    content: '🎸';
    font-size: 32px;
}

.jcm-calendar-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.jcm-calendar-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--jcm-transition);
    font-size: 15px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.jcm-calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.jcm-calendar-nav .jcm-today-btn {
    background: white;
    color: var(--jcm-primary);
    border-color: white;
}

.jcm-calendar-nav .jcm-today-btn:hover {
    background: var(--jcm-light);
}

/* Grille du calendrier */
.jcm-calendar-body {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.jcm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: white;
    min-width: 100%;
}

/* Vue semaine */
.jcm-calendar-grid.jcm-week-view .jcm-calendar-day {
    min-height: 150px;
}

.jcm-calendar-grid.jcm-week-view .jcm-event-item {
    font-size: 13px;
    padding: 8px 12px;
}

.jcm-calendar-day-header {
    background: linear-gradient(180deg, #f8f9fa, #e9ecef);
    padding: 15px 5px;
    text-align: center;
    font-weight: bold;
    color: var(--jcm-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--jcm-primary);
}

.jcm-calendar-day {
    background: white;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #e9ecef;
    position: relative;
    cursor: pointer;
    transition: var(--jcm-transition);
}

.jcm-calendar-day:hover {
    background: #f8f9fa;
    box-shadow: inset 0 0 0 2px var(--jcm-primary);
}

.jcm-calendar-day.other-month {
    background: #fafafa;
    opacity: 0.4;
}

.jcm-calendar-day.today {
    background: linear-gradient(135deg, #fff5eb, #ffe8d1);
    box-shadow: inset 0 0 0 2px var(--jcm-secondary);
}

.jcm-calendar-day-number {
    font-weight: bold;
    color: var(--jcm-dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.jcm-calendar-day.today .jcm-calendar-day-number {
    background: linear-gradient(135deg, var(--jcm-primary), var(--jcm-secondary));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(211, 84, 0, 0.3);
}

.jcm-event-item {
    background: linear-gradient(135deg, var(--jcm-primary), var(--jcm-secondary));
    color: white;
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--jcm-transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.jcm-event-icon {
    font-size: 14px;
    flex-shrink: 0;
    filter: brightness(1.5) saturate(2);
}

.jcm-event-item:hover {
    transform: translateX(3px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.jcm-event-item.status-cancelled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    text-decoration: line-through;
    opacity: 0.7;
}

.jcm-event-item.status-full {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.jcm-event-item.status-full::after {
    content: '🔒';
    margin-left: auto;
}

.jcm-event-time {
    font-weight: bold;
    font-size: 11px;
    opacity: 0.9;
}

/* ==============================================
   Liste de Jams
   ============================================== */
.jcm-jams-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.jcm-jam-card {
    background: white;
    border-radius: var(--jcm-radius);
    box-shadow: 0 4px 15px var(--jcm-shadow);
    overflow: hidden;
    transition: var(--jcm-transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.jcm-jam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--jcm-primary), var(--jcm-secondary));
}

.jcm-jam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.jcm-jam-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--jcm-primary), var(--jcm-secondary));
}

.jcm-jam-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.jcm-jam-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--jcm-dark);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.jcm-jam-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.jcm-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.jcm-meta-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.jcm-jam-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.jcm-jam-level.all {
    background: #d4edda;
    color: #155724;
}

.jcm-jam-level.beginner {
    background: #cfe2ff;
    color: #084298;
}

.jcm-jam-level.intermediate {
    background: #fff3cd;
    color: #856404;
}

.jcm-jam-level.advanced {
    background: #f8d7da;
    color: #721c24;
}

.jcm-jam-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.jcm-jam-status.scheduled {
    background: rgba(39, 174, 96, 0.9);
    color: white;
}

.jcm-jam-status.cancelled {
    background: rgba(192, 57, 43, 0.9);
    color: white;
}

.jcm-jam-status.full {
    background: rgba(52, 152, 219, 0.9);
    color: white;
}

.jcm-jam-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.jcm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--jcm-transition);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    flex: 1;
}

.jcm-btn-primary {
    background: linear-gradient(135deg, var(--jcm-primary), var(--jcm-secondary));
    color: white;
    box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3);
}

.jcm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 84, 0, 0.4);
}

.jcm-btn-secondary {
    background: white;
    color: var(--jcm-primary);
    border: 2px solid var(--jcm-primary);
}

.jcm-btn-secondary:hover {
    background: var(--jcm-primary);
    color: white;
}

/* Messages de formulaire */
.jcm-form-message {
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    border-radius: var(--jcm-radius);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    animation: fadeInDown 0.5s ease;
}

.jcm-form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
}

.jcm-form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #dc3545;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   Formulaire d'ajout
   ============================================== */
.jcm-form-wrapper {
    background: white;
    border-radius: var(--jcm-radius);
    box-shadow: 0 4px 20px var(--jcm-shadow);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.jcm-form-title {
    font-size: 32px;
    color: var(--jcm-dark);
    margin: 0 0 30px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.jcm-form-title::before {
    content: '🎸';
    font-size: 40px;
}

.jcm-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: var(--jcm-radius);
    border-left: 4px solid var(--jcm-primary);
}

.jcm-form-section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--jcm-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.jcm-form-row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.jcm-form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.jcm-form-group {
    display: flex;
    flex-direction: column;
}

.jcm-form-label {
    font-weight: 600;
    color: var(--jcm-dark);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jcm-form-label .required {
    color: var(--jcm-accent);
    font-size: 16px;
}

.jcm-form-input,
.jcm-form-textarea,
.jcm-form-select {
    padding: 12px 15px;
    border: 2px solid var(--jcm-border);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--jcm-transition);
    font-family: inherit;
    background: white;
}

.jcm-form-input:focus,
.jcm-form-textarea:focus,
.jcm-form-select:focus {
    outline: none;
    border-color: var(--jcm-primary);
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.1);
}

.jcm-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.jcm-form-help {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.jcm-form-submit {
    text-align: center;
    margin-top: 30px;
}

.jcm-btn-submit {
    background: linear-gradient(135deg, var(--jcm-success), #229954);
    color: white;
    padding: 16px 50px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--jcm-transition);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.jcm-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.jcm-btn-submit:disabled {
    background: var(--jcm-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==============================================
   Modal
   ============================================== */
.jcm-modal {
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999999 !important;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    padding-bottom: 0;
    backdrop-filter: blur(5px);
}

/* Override Divi et autres thèmes */
body.et_pb_pagebuilder_layout .jcm-modal,
body.et-db .jcm-modal,
body .jcm-modal {
    z-index: 9999999 !important;
}

.jcm-modal.active {
    display: flex;
}

.jcm-modal-content {
    background: white;
    border-radius: var(--jcm-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 99999999 !important;
    animation: jcm-modal-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 50px rgba(139, 95, 191, 0.3);
}

/* Override Divi */
body.et_pb_pagebuilder_layout .jcm-modal-content,
body.et-db .jcm-modal-content,
body .jcm-modal-content {
    z-index: 99999999 !important;
}

@keyframes jcm-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jcm-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jcm-modal-header {
    padding: 25px;
    border-bottom: 2px solid var(--jcm-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--jcm-primary), var(--jcm-secondary));
    color: white;
    flex-shrink: 0;
}

.jcm-modal-title {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.jcm-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.jcm-status-badge.status-scheduled {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.jcm-status-badge.status-cancelled {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.jcm-status-badge.status-postponed {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.jcm-status-badge.status-full {
    background: linear-gradient(135deg, #d35400, #e67e22);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Section contenu du post */
.jcm-content-section {
    background: linear-gradient(135deg, #fdfbfb, #f7f5f9);
    border-left-color: var(--jcm-accent);
}

.jcm-post-content {
    line-height: 1.7;
    color: var(--jcm-dark);
}

.jcm-post-content p {
    margin-bottom: 15px;
}

.jcm-post-content h1,
.jcm-post-content h2,
.jcm-post-content h3,
.jcm-post-content h4 {
    color: var(--jcm-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.jcm-post-content ul,
.jcm-post-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.jcm-post-content a {
    color: var(--jcm-secondary);
    text-decoration: underline;
}

.jcm-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 28px;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--jcm-transition);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.jcm-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.jcm-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

.jcm-detail-row {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--jcm-primary);
}

.jcm-detail-label {
    font-weight: bold;
    color: var(--jcm-primary);
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jcm-detail-value {
    color: var(--jcm-dark);
    font-size: 16px;
    line-height: 1.5;
}

/* Contact Section */
.jcm-contact-section {
    background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
    border-left-color: var(--jcm-secondary);
}

.jcm-contact-item {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jcm-contact-link {
    color: var(--jcm-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--jcm-transition);
}

.jcm-contact-link:hover {
    color: var(--jcm-primary);
    text-decoration: underline;
}

/* Statuts Améliorés */
.jcm-jam-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jcm-jam-status.status-scheduled {
    background: linear-gradient(135deg, var(--jcm-success), #5fd47f);
    color: white;
}

.jcm-jam-status.status-cancelled {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    color: white;
}

.jcm-jam-status.status-postponed {
    background: linear-gradient(135deg, var(--jcm-warning), #f9d99c);
    color: var(--jcm-dark);
}

.jcm-jam-status.status-full {
    background: linear-gradient(135deg, var(--jcm-accent), #ffcab9);
    color: white;
}

/* Navigation Buttons (Google Maps / Waze) */
.jcm-navigation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 15px;
    background: transparent;
    border: none;
}

.jcm-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 44px;
}

.jcm-nav-google {
    background: linear-gradient(135deg, #4285f4, #357ae8);
    color: white;
}

.jcm-nav-google:hover {
    background: linear-gradient(135deg, #357ae8, #2a65c9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.jcm-nav-waze {
    background: linear-gradient(135deg, #33ccff, #00b8e6);
    color: white;
}

.jcm-nav-waze:hover {
    background: linear-gradient(135deg, #00b8e6, #0099cc);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 204, 255, 0.4);
}

.jcm-nav-icon {
    font-size: 18px;
}

/* ==============================================
   Filtres de recherche
   ============================================== */
.jcm-filters {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: var(--jcm-radius);
    box-shadow: 0 4px 20px var(--jcm-shadow);
    margin-bottom: 30px;
    border: 2px solid var(--jcm-light);
    position: relative;
    overflow: hidden;
}

.jcm-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--jcm-primary), var(--jcm-secondary));
}

.jcm-filters-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--jcm-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jcm-filters-title::before {
    content: '🔍';
    font-size: 26px;
}

.jcm-filters-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1.2fr auto;
    gap: 15px;
    align-items: end;
}

.jcm-filter-group {
    display: flex;
    flex-direction: column;
}

.jcm-filter-group label {
    font-weight: 600;
    color: var(--jcm-dark);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jcm-filter-search,
.jcm-filter-select,
.jcm-filter-date {
    padding: 12px 15px;
    border: 2px solid var(--jcm-border);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--jcm-transition);
    font-family: inherit;
    background: white;
}

.jcm-filter-search:focus,
.jcm-filter-select:focus,
.jcm-filter-date:focus {
    outline: none;
    border-color: var(--jcm-primary);
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.1);
}

.jcm-filter-reset {
    padding: 12px 20px !important;
    white-space: nowrap;
}

.jcm-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: var(--jcm-radius);
    margin-top: 20px;
}

.jcm-no-results-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.jcm-no-results-text {
    font-size: 18px;
    color: #999;
}

/* ==============================================
   Responsive Mobile
   ============================================== */
@media screen and (max-width: 768px) {
    .jcm-container {
        padding: 10px;
    }
    
    .jcm-calendar-header {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .jcm-calendar-controls {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .jcm-view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .jcm-view-btn {
        flex: 1;
        padding: 10px 20px;
    }
    
    .jcm-calendar-title {
        font-size: 18px;
        text-align: center;
    }
    
    .jcm-calendar-title::before {
        font-size: 22px;
    }
    
    /* Scroll horizontal pour le calendrier sur mobile */
    .jcm-calendar-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .jcm-calendar-grid {
        min-width: 700px;
    }
    
    .jcm-calendar-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .jcm-calendar-nav button {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .jcm-calendar-day {
        min-height: 100px;
        padding: 8px 4px;
    }
    
    .jcm-calendar-day-header {
        padding: 12px 5px;
        font-size: 12px;
        font-weight: 700;
    }
    
    .jcm-calendar-day-number {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .jcm-event-item {
        font-size: 11px;
        padding: 6px 8px;
        margin: 4px 0;
        line-height: 1.3;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .jcm-event-item::before {
        font-size: 14px;
        margin-right: 3px;
    }
    
    .jcm-event-time {
        display: block;
        font-size: 10px;
        font-weight: 600;
    }
    
    .jcm-jams-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .jcm-jam-card {
        margin: 0 5px;
    }
    
    .jcm-form-wrapper {
        padding: 25px 15px;
    }
    
    .jcm-form-row.two-cols,
    .jcm-form-row.three-cols {
        grid-template-columns: 1fr;
    }
    
    .jcm-form-title {
        font-size: 24px;
    }
    
    .jcm-form-section {
        padding: 20px 15px;
    }
    
    .jcm-jam-actions {
        flex-direction: column;
    }
    
    .jcm-modal-content {
        margin: 0;
        max-height: 95vh;
        height: 95vh;
        border-radius: var(--jcm-radius);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .jcm-modal-body {
        padding: 15px;
    }
    
    .jcm-detail-row {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .jcm-detail-label {
        font-size: 12px;
    }
    
    .jcm-detail-value {
        font-size: 14px;
    }
    
    .jcm-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        font-size: 14px;
    }
    
    .jcm-modal-header {
        padding: 15px;
    }
    
    .jcm-modal-title {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .jcm-status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .jcm-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .jcm-filters {
        padding: 20px 15px;
    }
    
    .jcm-filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .jcm-filter-reset {
        width: 100%;
    }
    
    .jcm-navigation-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .jcm-nav-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .jcm-nav-icon {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .jcm-calendar-day {
        min-height: 85px;
        padding: 6px 3px;
    }
    
    .jcm-calendar-day-number {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .jcm-event-item {
        font-size: 10px;
        padding: 5px;
        margin: 3px 0;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        text-align: center;
        line-height: 1.2;
    }
    
    .jcm-event-item::before {
        margin-right: 2px;
    }
    
    .jcm-event-time {
        display: block;
        font-size: 9px;
    }
    
    .jcm-form-input,
    .jcm-form-textarea,
    .jcm-form-select {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .jcm-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .jcm-share-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .jcm-weather-forecast-toggle {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .jcm-modal-close {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .jcm-contact-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .jcm-nav-btn {
        padding: 16px 20px;
        font-size: 14px;
        min-height: 50px;
    }
}

/* ==============================================
   Animations
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jcm-fade-in {
    animation: fadeInUp 0.4s ease;
}

/* ==============================================
   Accessibilité
   ============================================== */
.jcm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 3px solid var(--jcm-primary);
    outline-offset: 2px;
}

/* ==============================================
   Utilitaires
   ============================================== */
.jcm-text-center {
    text-align: center;
}

.jcm-hidden {
    display: none !important;
}

.jcm-no-jams {
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: #999;
}

.jcm-no-jams::before {
    content: '🎸';
    display: block;
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ==============================================
   Partage sur Réseaux Sociaux
   ============================================== */
.jcm-share-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--jcm-light);
}

.jcm-share-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--jcm-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jcm-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.jcm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: var(--jcm-transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.jcm-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.jcm-share-facebook {
    background: linear-gradient(135deg, #4267B2, #5578C8);
}

.jcm-share-messenger {
    background: linear-gradient(135deg, #00B2FF, #0084FF);
}

.jcm-share-twitter {
    background: linear-gradient(135deg, #1DA1F2, #34AAF3);
}

.jcm-share-whatsapp {
    background: linear-gradient(135deg, #25D366, #4ADE7D);
}

.jcm-share-email {
    background: linear-gradient(135deg, var(--jcm-primary), var(--jcm-secondary));
}

.jcm-share-copy {
    background: linear-gradient(135deg, var(--jcm-accent), var(--jcm-warning));
    color: var(--jcm-dark);
}

.jcm-share-btn.copied {
    background: var(--jcm-success) !important;
    color: white !important;
}

/* Responsive boutons partage */
@media screen and (max-width: 768px) {
    .jcm-share-section {
        margin-top: 20px;
    }
    
    .jcm-share-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .jcm-share-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .jcm-share-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .jcm-share-btn span {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .jcm-share-buttons {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   Widget Météo dans Modal
   ============================================== */
.jcm-modal-weather {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: var(--jcm-radius);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.jcm-modal-weather::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: jcm-weather-float 20s infinite linear;
}

@keyframes jcm-weather-float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.jcm-modal-weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.jcm-modal-weather-title {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.jcm-modal-weather-current {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.jcm-modal-weather-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.jcm-modal-weather-temp {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.jcm-modal-weather-desc {
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.jcm-modal-weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.jcm-modal-weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.jcm-modal-weather-detail-icon {
    font-size: 20px;
}

.jcm-modal-weather-detail-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.jcm-modal-weather-detail-value {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.jcm-modal-weather-loading {
    text-align: center;
    padding: 15px;
    position: relative;
    z-index: 1;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Accordéon Prévisions 7 jours */
.jcm-weather-forecast {
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.jcm-weather-forecast-toggle {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--jcm-transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.jcm-weather-forecast-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.jcm-weather-forecast-toggle .arrow {
    transition: transform 0.3s ease;
}

.jcm-weather-forecast-toggle.active .arrow {
    transform: rotate(180deg);
}

.jcm-weather-forecast-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.jcm-weather-forecast-content.active {
    max-height: 1200px;
}

.jcm-weather-forecast-days {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.jcm-weather-forecast-day {
    display: grid;
    grid-template-columns: 80px 40px 1fr 60px 60px;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.jcm-forecast-date {
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.jcm-forecast-icon {
    font-size: 24px;
    text-align: center;
}

.jcm-forecast-desc {
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.jcm-forecast-temp-max {
    font-weight: bold;
    font-size: 14px;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.jcm-forecast-temp-min {
    font-size: 13px;
    opacity: 0.8;
    text-align: right;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .jcm-modal-weather {
        padding: 15px;
        margin: 15px 0;
    }
    
    .jcm-modal-weather-current {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .jcm-modal-weather-icon {
        font-size: 40px;
    }
    
    .jcm-modal-weather-temp {
        font-size: 32px;
    }
    
    .jcm-modal-weather-desc {
        font-size: 13px;
    }
    
    .jcm-modal-weather-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .jcm-modal-weather-detail {
        padding: 6px;
    }
    
    .jcm-modal-weather-detail-icon {
        font-size: 18px;
    }
    
    .jcm-modal-weather-detail-label {
        font-size: 9px;
    }
    
    .jcm-modal-weather-detail-value {
        font-size: 12px;
    }
    
    .jcm-weather-forecast-toggle {
        padding: 10px;
        font-size: 13px;
    }
    
    .jcm-weather-forecast-day {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5px;
        padding: 8px;
    }
    
    .jcm-forecast-date {
        font-size: 12px;
    }
    
    .jcm-forecast-icon {
        font-size: 28px;
    }
    
    .jcm-forecast-desc {
        font-size: 11px;
    }
    
    .jcm-forecast-temp-max,
    .jcm-forecast-temp-min {
        text-align: center;
        display: inline;
    }
    
    .jcm-forecast-temp-max::after {
        content: ' / ';
        opacity: 0.6;
    }
}

@media screen and (max-width: 480px) {
    .jcm-modal-weather {
        padding: 12px;
    }
    
    .jcm-modal-weather-icon {
        font-size: 36px;
    }
    
    .jcm-modal-weather-temp {
        font-size: 28px;
    }
    
    .jcm-modal-weather-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .jcm-modal-weather-detail-icon {
        font-size: 16px;
    }
    
    .jcm-modal-weather-detail-label {
        font-size: 8px;
    }
    
    .jcm-modal-weather-detail-value {
        font-size: 11px;
    }
}
