/* PARTIE 1 — STRUCTURE RGAA (NE PAS TOUCHER) */


/* ===== ACCESSIBILITÉ ===== */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* ===== CONTAINER ===== */
.krea3-container {
    max-width: 1200px;
    margin: auto;
}

/* ===== GRID ===== */
.krea3-grid {
    display: grid;
    gap: 20px;
}

/* ===== CARD ===== */
.krea3-card {
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
    transition: all .2s ease;
}

.krea3-card-body {
    padding: 22px;
}

/* ===== TAGS ===== */
.krea3-tags {
    font-size: 13px;
    margin-bottom: 8px;
}

.krea3-sep {
    margin: 0 6px;
}

/* ===== TITLE ===== */
.krea3-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== DATE ===== */
.krea3-date {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 15px;
    gap: 20px;
}
.krea3-date time {
    font-weight: 500;
}
/* ===== FILE ===== */
.krea3-infos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.krea3-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* ===== FOCUS RGAA ===== */
.krea3-link:focus,
.krea3-filters input:focus,
.krea3-filters button:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* ===== PAGINATION ===== */
.krea3-pagination {
    margin-top: 30px;
}

.krea3-count {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
}
.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

#krea3-results.is-loading {
    opacity: 0.5;
    pointer-events: none;
}


/* PARTIE 2 — DESIGN PREMIUM (SURCHARGEABLE) */

/* ===== FILTERS CONTAINER ===== */
.krea3-filters {
    background: #f4f7fa;
    padding: 30px;
    border-radius: 14px;
    margin-bottom: 30px;
}

/* ===== FORM LAYOUT ===== */
.krea3-filters form {
    display: grid;
    gap: 25px;
}

/* ===== INPUT TEXT ===== */
.krea3-filters input[type="text"] {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #cfd8e3;
    font-size: 16px;
}

/* ===== FIELDSET ===== */
.krea3-fieldset {
    border: none;
    padding: 0;
}

.krea3-fieldset legend {
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== CHECKBOX GRID ===== */
.krea3-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ===== CUSTOM CHECKBOX ===== */
.krea3-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.krea3-checkbox input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #0e6769;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.krea3-checkbox input:checked {
    background: #0e6769;
}

.krea3-checkbox input:checked::after {
    content: "✔";
    color: white;
    font-size: 12px;
    position: absolute;
    top: -2px;
    left: 2px;
}

/* ===== PERIOD ===== */
.krea3-period {
    display: flex;
    gap: 15px;
}

.krea3-period input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cfd8e3;
}

/* ===== BUTTONS ===== */
.krea3-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.krea3-actions button {
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    background: #0e6769;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.krea3-actions a {
    padding: 12px 25px;
    border-radius: 10px;
    border: 1px solid #0e6769;
    text-decoration: none;
}

/* ===== CARD DESIGN ===== */
.krea3-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* ===== COLORS ===== */
.krea3-title {
    color: #0d2b41;
}

.krea3-tags {
    color: #6b7280;
}

.krea3-link {
    color: #0e6769;
}

.krea3-meta {
    color: #6b7280;
}

/* ===== COUNT ===== */
.krea3-count {
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===== PAGINATION ===== */
.krea3-pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin-right: 5px;
    text-decoration: none;
}

.krea3-pagination .current {
    background: #0e6769;
    color: white;
}

/* ===== DATEPICKER ===== */

.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: none;
    font-family: inherit;
}

.flatpickr-months {
    background: #0e6769;
    color: white;
    border-radius: 12px 12px 0 0;
}

.flatpickr-current-month {
    font-weight: 600;
}

.flatpickr-monthDropdown-months {
    background: transparent;
    color: white;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: white;
}

.flatpickr-day {
    border-radius: 6px;
}

.flatpickr-day.selected {
    background: #0e6769;
    border-color: #0e6769;
}

.flatpickr-day:hover {
    background: #e6f4f3;
}

.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month,
.flatpickr-current-month .numInputWrapper{color:#fff;fill:#fff;}

/* INPUT STYLE */
.krea3-datepicker {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cfd8e3;
    width: 100%;
    cursor: pointer;
}

/* FOCUS RGAA */
.krea3-datepicker:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* ===== FILE BLOCK ===== */
.krea3-file {
    margin-top: 10px;
}

/* ===== LINK ===== */
.krea3-link {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

/* ===== ICONS ===== */
/* ===== ICONES FA ===== */
.krea3-icon,
.krea3-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* taille */
.krea3-icon {
    font-size: 16px;
    margin-right: 8px;
}

/* externe */
.krea3-external {
    font-size: 12px;
    margin-left: 6px;
    opacity: 0.6;
}

/* couleurs */
.krea3-icon-pdf {
    color: #dc2626;
}

.krea3-date .krea3-icon {
    color: #0e6769;
}
/* ===== COULEURS PAR TYPE ===== */

.krea3-icon-pdf {
    color: #dc2626;
}

.krea3-icon-word {
    color: #2563eb;
}

.krea3-icon-excel {
    color: #16a34a;
}

.krea3-icon-ppt {
    color: #ea580c;
}

.krea3-icon-zip {
    color: #6b7280;
}

.krea3-icon-image {
    color: #7c3aed;
}
/* ===== TEXTE ===== */
.krea3-file-text {
    display: inline;
}

/* ===== META ===== */
.krea3-meta {
    margin-left: 6px;
    font-size: 14px;
    color: #6b7280;
}

/* ===== NOM FICHIER ===== */
.krea3-file-name {
    font-weight: 500;
}

.krea3-search-wrapper {
    position: relative;
}

.krea3-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    margin-top: 4px;
    z-index: 999;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.krea3-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
}

.krea3-autocomplete-item:hover {
    background: #f3f4f6;
}
.krea3-autocomplete {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.krea3-autocomplete-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.krea3-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
}

.krea3-autocomplete-item:hover {
    background: #f3f4f6;
}

.krea3-autocomplete-empty {
    padding: 10px 12px;
    color: #6b7280;
    font-size: 14px;
}

mark {
    background: #fde68a;
    color: #111;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

.krea3-title mark {
    background: #facc15;
}

.krea3-file-name mark {
    background: #fde68a;
}

mark {
    background: rgba(14, 103, 105, 0.2);
    color: #0e6769;
}