/**
 * Styles pour le plugin de sécurité et formulaires Ciril GROUP
 * Version: 1.0
 */

/* ==========================================
   NOTIFICATIONS MODERNES
   ========================================== */
.modern-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: slideInRight 0.4s ease forwards;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.modern-notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
}

.modern-notification-success .modern-notification-content {
    border-left: 4px solid #4CAF50;
}

.modern-notification-error .modern-notification-content {
    border-left: 4px solid #F44336;
}

.modern-notification-icon {
    margin-right: 12px;
    display: flex;
}

.modern-notification-success .modern-notification-icon {
    color: #4CAF50;
}

.modern-notification-error .modern-notification-icon {
    color: #F44336;
}

.modern-notification-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.modern-notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
}

.modern-notification-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==========================================
   CALENDRIER FULLCALENDAR
   ========================================== */
        :root {
            --fc-border-color: rgba(21, 101, 193, 0.1);
            --fc-day-today-bg-color: rgba(102, 153, 204, 0.1);
            --primary-color: #002d62;
            --secondary-color: rgba(21, 101, 193, 1);
        }
		#monthTitle, .fc-col-header-cell-cushion  {
			text-transform:capitalize;
		}
		#monthTitle, #langSelect, .fc-col-header-cell-cushion {
			color:#216dc4;
		}
		table tbody > tr:nth-child(2n+1) > td, table tbody > tr:nth-child(2n+1) > th,table tbody tr:hover > td, table tbody tr:hover > th, .fc-liquid-hack td, .fc-liquid-hack th {
			background:#eff4fa;
		}
		.fc-daygrid-dot-event.fc-event-mirror, .fc-daygrid-dot-event, .fc-daygrid-dot-event.fc-event-mirror, .fc-daygrid-dot-event:hover {
			background:transparent !important;
		}
		
		.fc .fc-daygrid-day.fc-day-today, .fc .fc-cell-shaded, .fc .fc-day-disabled , table tbody tr > td, table tbody tr:hover > td{
			background:#eff4fa !important;
		}
		.fc-scrollgrid-sync-inner {
			background:#eff4fa;
			padding:20px
		}
        .fc-daygrid-event-harness{
            margin-bottom:20px;
        }
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

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

        .navigation-buttons {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .month-title {
            font-size: 1.4em;
            font-weight: 600;
            margin: 0 15px;
        }

        .right-controls {
            display: flex;
            gap: 15px;
        }

        .nav-btn {
            background: transparent !important;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
        }
        .nav-btn svg {
            width: 24px;
            height: 24px;
            fill: var(--primary-color);
        }
        .nav-btn:hover svg {
            fill: var(--secondary-color);
        }

        #searchInput, #familyFilter {
            padding: 8px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
        }

        #langSelect {
            padding: 8px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            background: white;
            width: 80px; 
        }

        #calendar {

            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.33);
            padding: 20px;
        }
		table tbody > tr:nth-child(2n+1) > td, table tbody > tr:nth-child(2n+1) > th, table tbody tr:hover > td, table tbody tr:hover > th {
			background: #eff4fa;
		}
        .event-card {
        border-left: 4px solid;
        padding: 8px;
        margin: 4px 0;
        background: white;
        border-radius: 4px;
        font-size: 0.9em;
        white-space: normal; 
        line-height: 1.4em;
        min-height: 40px; 
        display: flex;
        flex-direction: column;
    }
    .event-title {
        font-weight: bold;
    }

    .event-logo {
        width: 40px;
        height: auto;
        margin-bottom: 5px;
    }
        .spinner {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid var(--secondary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        @media (max-width: 768px) {
            .header-controls {
                flex-direction: column;
                gap: 15px;
            }
            
            .right-controls {
                width: 100%;
                justify-content: space-between;
            }
        }
/* ==========================================
   CANDIDATURE SPONTANÉE
   ========================================== */
[id^="flatchr-spontaneous-"] {
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px 0;
    padding: 60px 0;
}

[id^="flatchr-spontaneous-"] .section-title-styled {
    display: flex;
    align-items: center;
    margin-bottom: 65px;
}

[id^="flatchr-spontaneous-"] .section-title-styled h2 {
    color: #1565c0;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

[id^="flatchr-spontaneous-"] .title-line {
    flex-grow: 1;
    height: 1px;
    background-color: #ccc;
    margin-left: 10px;
}

[id^="flatchr-spontaneous-"] .spontaneous-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[id^="flatchr-spontaneous-"] .spontaneous-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

[id^="flatchr-spontaneous-"] .spontaneous-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

[id^="flatchr-spontaneous-"] .company-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

[id^="flatchr-spontaneous-"] .spontaneous-info h3 {
    color: #0075BF;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

[id^="flatchr-spontaneous-"] .spontaneous-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

[id^="flatchr-spontaneous-"] .apply-btn {
    background: #0075BF;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

[id^="flatchr-spontaneous-"] .apply-btn:hover {
    background: #005a9f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,117,191,0.3);
}

[id^="flatchr-spontaneous-"] .offer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

[id^="flatchr-spontaneous-"] .offer-detail-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 25px;
}

[id^="flatchr-spontaneous-"] .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s;
}

[id^="flatchr-spontaneous-"] .close-btn:hover {
    color: #374151;
}

[id^="flatchr-spontaneous-"] .offer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

[id^="flatchr-spontaneous-"] .offer-header .company-logo {
    width: 60px;
    height: 60px;
}

[id^="flatchr-spontaneous-"] .offer-title-section h1 {
    color: #0075BF;
    font-size: 22px;
    margin-bottom: 5px;
}

[id^="flatchr-spontaneous-"] .offer-date {
    color: #6b7280;
    font-size: 14px;
}

[id^="flatchr-spontaneous-"] .application-form-container h3 {
    color: #0075BF;
    margin-bottom: 20px;
    font-size: 18px;
}

[id^="flatchr-spontaneous-"] .name-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

[id^="flatchr-spontaneous-"] .application-form-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

[id^="flatchr-spontaneous-"] .application-form-container label.required::after {
    content: " *";
    color: #ef4444;
}

[id^="flatchr-spontaneous-"] .application-form-container input,
[id^="flatchr-spontaneous-"] .application-form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

[id^="flatchr-spontaneous-"] .application-form-container input:focus,
[id^="flatchr-spontaneous-"] .application-form-container textarea:focus {
    outline: none;
    border-color: #0075BF;
    box-shadow: 0 0 0 3px rgba(0,117,191,0.1);
}

[id^="flatchr-spontaneous-"] .file-upload {
    margin-bottom: 20px;
}

[id^="flatchr-spontaneous-"] .file-name-display {
    margin-top: 6px;
    font-size: 13px;
    color: #0075BF;
    font-weight: 500;
}

[id^="flatchr-spontaneous-"] .consent-checkbox {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

[id^="flatchr-spontaneous-"] .consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    margin-bottom: 0;
    flex-shrink: 0;
    width: auto;
}

[id^="flatchr-spontaneous-"] .consent-checkbox label {
    font-size: 11px;
    line-height: 1.4;
    color: #6b7280;
    margin-bottom: 0;
}

[id^="flatchr-spontaneous-"] .disclaimer {
    text-align: left !important;
    font-size: 10px !important;
}

[id^="flatchr-spontaneous-"] .submit-application {
    background: #0075BF;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

[id^="flatchr-spontaneous-"] .submit-application:hover {
    background: #005a9f;
}

[id^="flatchr-spontaneous-"] .submit-application:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

[id^="flatchr-spontaneous-"] .success-message {
    background: #10b981;
    color: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
}

/* Responsive - Candidature spontanée */
@media (max-width: 768px) {
    [id^="flatchr-spontaneous-"] .section-title-styled {
        flex-direction: column;
        gap: 10px;
    }

    [id^="flatchr-spontaneous-"] .section-title-styled h2 {
        font-size: 18px;
    }

    [id^="flatchr-spontaneous-"] .title-line {
        width: 100%;
        height: 1px;
    }

    [id^="flatchr-spontaneous-"] .spontaneous-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    [id^="flatchr-spontaneous-"] .company-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    [id^="flatchr-spontaneous-"] .name-fields {
        grid-template-columns: 1fr;
    }

    [id^="flatchr-spontaneous-"] .offer-header {
        flex-direction: column;
        text-align: center;
    }

    [id^="flatchr-spontaneous-"] .offer-detail-content {
        margin: 10px;
        padding: 20px;
    }

    [id^="flatchr-spontaneous-"] {
        padding: 0;
    }

    [id^="flatchr-spontaneous-"] .spontaneous-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    [id^="flatchr-spontaneous-"] .spontaneous-info h3 {
        font-size: 18px;
    }

    [id^="flatchr-spontaneous-"] .spontaneous-description {
        font-size: 13px;
    }
}
