@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap');
@import 'flowbite/dist/flowbite.css';

@tailwind base;
@tailwind components;
@tailwind utilities;


:root {
    --custom-cyan: #4fbbd2;
}
.focus\:outline-custom-cyan:focus {
    outline-color: var(--custom-cyan) !important;
}


/**
********************************
sidebar / abonne
********************************
**/
.initiales-sidebar{
    padding-left: 8px;
}

/**
********************************
Tableaux / abonne
********************************
**/
.icons{
    display: flex;
}


/**
********************************
Profil / abonne
********************************
**/
.select2-container--default .select2-selection--multiple {
    border: 1px solid #cececece !important;
    padding: 5px;
    min-height: 38px;
    max-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #6285c4 !important;
    color: #fff;
    border: 1px solid #6285c4 !important;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background-color: transparent;
    border-right: 1px solid #aaa;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    border-right: 0 !important;
    color: #fff !important;
}
.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0px!important;
    margin-bottom: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    cursor: default;
    padding-right: 5px;
    font-size: 12px;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #4fbbd2 !important;
    box-shadow: 0 0 3px #4fbbd2 !important;
    outline: none !important;
}

#eye-blocked-2::before {
    content: "\e807";
    font-family: cfnews, sans-serif;
    font-style: normal;
    font-size: 16px;
}

#eye-blocked-2.open::before {
    content: "\e807";
}

#eye-blocked-3::before {
    content: "\e807";
    font-family: cfnews, sans-serif;
    font-style: normal;
    font-size: 16px;
}

#eye-blocked-3.open::before {
    content: "\e807";
}


input[type="checkbox"].site-checkbox {
    display: none;
}

.site-checkbox-group label {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #d1d5db;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.site-checkbox-group label:hover {
    background-color: #e5e7eb;
    border-color: #4b5563;
}

input[type="checkbox"].site-checkbox:checked + label {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}


input[type="checkbox"].site-checkbox:checked + label::before {
    content: "✔";
    font-size: 16px;
    margin-right: 8px;
    font-weight: bold;
    color: white;
}


.hidden-field {
    display: none;
}

.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/**
********************************
Demande une action Données insuff / abonne
********************************
**/
.comment-row {
    transition: all 0.3s ease;
}

tr[data-id]:hover {
    cursor: pointer;
    background-color: #f9fafb;
}

/**
********************************
Add Operation / abonne
********************************
**/
:root {
    --notification-border: #13568f;
    --notification-max-width: 550px;
    --notification-min-width: 280px;
}

.notification-container {
    position: fixed;
    top: 91px;
    right: 8px;
    z-index: 1000;
    max-width: var(--notification-max-width);
    min-width: var(--notification-min-width);
    width: auto;
    margin: 0 10px;
}

.notification-content {
    position: relative;
    border: 1px solid var(--notification-border);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    background: white;
    margin: 10px 0;
}

.notification-body {
    color: #1a1a1a;
    font-size: clamp(11px, 1vw, 13px);
    line-height: 1.4;
    word-break: break-word;
    hyphens: none;
    white-space: normal;
    overflow-wrap: normal;
    padding-right: 10px;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--notification-border);
    font-size: 22px;
    cursor: pointer;
    padding: 1px 5px;
    transition: all 0.2s ease;
    line-height: 1;
}

.notification-close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

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

@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 5px;
        max-width: 95vw;
        min-width: unset;
    }

    .notification-close {
        top: 6px;
        right: 6px;
        font-size: 20px;
    }
}

/*
*****************************************************
ABONNE / ADD
*****************************************************
 */
/* Container FAQ qui suit le scroll */
.faq-scroll-container {
    position: absolute;
    right: 25px;
    z-index: 40;
    transition: all 0.3s ease;
}

.faq-trigger {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    min-width: 30px;
    max-width: 60px;
    padding: 8px 9px;
    background-color: #06b6d4;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.faq-trigger:hover {
    transform: scale(1.05);
}

.faq-trigger.morphing {
    border-radius: 12px;
    width: 774px;
    min-width: 856px;
    max-width: 856px;
    height: auto;
    min-height: 688px;
    background-color: white;
    color: #374151;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    padding: 16px;
    align-items: flex-start;
    justify-content: flex-start;
}

.faq-text-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-text-vertical span {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-trigger.morphing .faq-text-vertical {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.notification-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.notification-content.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1e40af;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #6b7280;
}

.notification-body {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

@keyframes morphIn {
    0% {
        transform: scale(1);
        border-radius: 8px;
        width: 60px;
        height: 44px;
        background-color: #06b6d4;
    }
    50% {
        transform: scale(1.1);
        border-radius: 10px;
    }
    100% {
        transform: scale(1.1);
        border-radius: 12px;
        width: 280px;
        height: 120px;
        background-color: white;
    }
}

@keyframes morphOut {
    0% {
        transform: scale(1.1);
        border-radius: 12px;
        width: 280px;
        height: 120px;
        background-color: white;
    }
    50% {
        transform: scale(1.05);
        border-radius: 10px;
    }
    100% {
        transform: scale(1);
        border-radius: 8px;
        width: 60px;
        height: 44px;
        background-color: #06b6d4;
    }
}
