
/* Notification top */
#notifications-box {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 95;
    gap: 8px;
    width: 90%;
    max-width: 350px;
    pointer-events: none;
}
.notification-modal {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 350px;
    height: auto;
    min-height: 45px;
    pointer-events: auto;
}
.notification-modal.success {
    --notification-dark: #001F0F;
    --notification-clair: #59F3A6;
}
.notification-modal.fail {
    --notification-dark: #b22222;
    --notification-clair: #ffe6e6;
}
.notification-modal.info {
    --notification-dark: #0056b3;
    --notification-clair: #e6f0ff;
}
.notification-content {
    display: flex;
    min-height: 45px;
    box-sizing: border-box;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--notification-dark);
    border-radius: var(--radius-small);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-md);
    padding: 6px 10px;
    animation: fadeInScaleIn var(--transition-flash) ease-in;
}
.notification-content.slide-out {
    animation: fadeOutScaleOut var(--transition-flash) ease-out forwards;
}
.notification-icon {
    font-size: 13px;
    color: var(--notification-clair);
    margin-right: 10px;
    margin-left: 5px;
    background-color: var(--notification-dark);
    border-radius: 50%;
    min-width: 15px;
    min-height: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}
.notification-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}
.notification-title {
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    color: var(--notification-clair);
}
.notification-message {
    font-size: 12px;
    font-weight: 300;
    margin: 0;
    color: var(--notification-clair);
}
.notification-close {
    font-size: 15px;
    color: var(--notification-clair);
    margin-left: 20px;
    margin-right: 10px;
    cursor: pointer;
}
@keyframes fadeInScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes fadeOutScaleOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}




/* Notifis d'upload*/
#uploadNotifications {
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    height: min-content;
    z-index: 65;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.upload-box {
    width: 215px;
    background-color: var(--surface);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.upload-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
    z-index: 2;
    height: 55px;
    min-height: 55px;
}
.upload-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--font-black);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.upload-cancel-button:hover,
.upload-cancel-button:focus-visible {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
}
.upload-cancel-button:active {
    transform: scale(0.96);
}
.upload-cancel-button.hidden {
    display: none;
}
.loading-icon {
    width: auto;
    height: 35px;
    margin-right: 10px;
}
.upload-text {
    color: var(--font-black);
    font-weight: 500;
    font-size: 11px;
    user-select: none;
}
.upload-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: var(--purple-clear);
    z-index: 1;
    transition: width 0.5s ease-in-out, background-color 1s ease;
}


/* Drag and drop */
#full-page-dropzone {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
}
.dropzone-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 500px;
    width: 500px;
    background-color: rgba(248, 248, 248, 0.3);
    border: 2px dashed var(--purple-dark);
    border-radius: var(--radius-big);
}
.dropzone-message h2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--bg-white);
}
.dropzone-message p {
    font-size: 15px;
    font-weight: 500;
    color: var(--bg-white);
}

/* Animations */
@keyframes modalFadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}
.survey-error {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  border: 1px solid red !important;
  border-radius: inherit;
}


/* Feedbacks */
.feedback-modal-background {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 70;
}
#feedback-modal-content {
    width: calc(100% - 20px);
    max-width: 700px;
    height: auto;
    max-height: calc(100% - 20px);
    background-color: var(--surface);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-small-medium);
    box-sizing: border-box;
    gap: 20px;
    overflow-y: auto;
}
#cancelFeedbackBtn {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    color: var(--font-gray);
    font-size: 16px;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    border: none;
    background-color: transparent;
}
#cancelFeedbackBtn:hover {
    background-color: var(--hover-color);
}
#feedback-modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    width: 100%;
    gap: 30px;
}
#feedbackTitle {
    font-size: 20px;
    color: var(--font-black);
    margin: 0;
}
#feedbackDesc {
    color: var(--gray-clear);
    font-size: 13px;
    margin: 0;
}
#feedback-body-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.feedback-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.feedback-input-group h2{
    margin: 0;
    font-weight: 500;
    font-size: 12px;
    color: var(--font-black-clair);
}
.feedback-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    height: var(--height-small);
    font-size: 12px;
}
#feedbackMessage {
    resize: vertical;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: inherit;
    height: 80px;
    box-sizing: border-box;
}
.button-section {
    display: flex;
    justify-content: center;
    align-items: center;
}
.button-section button {
    padding: 0 var(--padding-small-medium);
    height: var(--height-small);
    border: none;
    cursor: pointer;
    border-radius: var(--radius-small);
}
.feedback-input:focus {
    outline: none;
    box-shadow: none; /* Certains navigateurs utilisent une ombre comme indication de focus, cela la supprime */
}
.feedback-star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 5px;
}
.feedback-star-rating input {
    display: none;
}
.feedback-star-rating label {
    cursor: pointer;
    color: var(--gray-clear);
    font-size: 20px;
    transition: color 0.2s;
}
.feedback-star-rating label:hover,
.feedback-star-rating label:hover ~ label,
.feedback-star-rating input:checked ~ label {
    color: var(--golden-yellow);
}
#feedbackSubject {
    height: var(--height-small);
    width: 100%;
    padding: 0 10px;
    background-color: var(--surface);
    cursor: pointer;
}
#feedbackSubject:focus {
    border-color: var(--accent);
}
#feedbackStars-div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#platforms-feedback {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}
.platform-feedback-button {
    display: flex;
    text-decoration: none;
    border-radius: var(--radius-small);
    padding: 0 var(--radius-small);
    color: var(--text-on-accent);
    font-family: inherit;
    transition: background-color 0.2s ease;
    width: fit-content;
    height: var(--height-small);
}
.platform-feedback-button:hover {
    background-color: var(--purple-clear);
}
.platform-feedback-button[data-platform="trustpilot"] {
    border: 1px solid var(--trustPilot-color);
}
.platform-feedback-button[data-platform="google"] {
    border: 1px solid var(--googleDrive-color);
}
.platform-feedback-button[data-platform="facebook"] {
    border: 1px solid var(--facebook-color);
}



.platform-feedback-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}
.platform-feedback-title {
    font-size: 14px;
    margin: 0;
    text-align: left;
}
.platform-feedback-logo {
    height: 16px;
    width: auto;
}

/* Quick Feedback */
.quick-feedback-container {
    position: absolute;
    bottom: 80px;
    left: 10px;
    width: 300px;
    transform: translateX(-100%);
    box-sizing: border-box;
    z-index: 65;
}
.quick-feedback-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    background-color: var(--surface);
    padding: 20px;
    border-radius: var(--radius-small-medium);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: max-content;
}
.quick-feedback-content h3 {
    margin: 0;
    color: var(--font-black);
    font-weight: 400;
    font-size: 14px;
}
.quick-feedback-buttons {
    flex-direction: row;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.quick-feedback-button-yes,
.quick-feedback-button-no,
.quick-feedback-button-send {
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    height: var(--height-mini);
    padding: 0 var(--padding-small);
    border: none;
    border-radius: var(--radius-small);
    background-color: var(--purple-dark);
    color: var(--bg-white);
    cursor: pointer;
    transition: background-color var(--transition-fast) ease;
    font-size: 13px;
    font-weight: 400;
}
.quick-feedback-button-yes:hover,
.quick-feedback-button-no:hover,
.quick-feedback-button-send:hover {
    background-color: var(--purple-dark);
}
.quick-feedback-thanks {
    text-align: center;
    color: var(--font-black);
    font-weight: 500;
}
/* Animations */
@keyframes quickFeedbackSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
@keyframes quickFeedbackSlideOut {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.quick-feedback-slide-in {
    animation: quickFeedbackSlideIn 0.3s ease forwards;
}
.quick-feedback-slide-out {
    animation: quickFeedbackSlideOut 0.3s ease forwards;
}

.tippy-box {
    background-color: var(--font-gray) !important;
    color: var(--bg-white) !important;
    border: 1px solid var(--bg-white) !important;
}

.tippy-box[data-theme~='light-border'] > .tippy-arrow::before {
    color: var(--font-gray) !important;
}
