/* Classe pour empêcher la sélection du texte */
.pvfp-noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}


/* Style des étoiles des notes */
.pvfp-stars-reviews i,
.one-full-star-review {
    font-size: 22px !important;
    color: #ffb300;
}

.one-empty-star-review {
    font-size: 22px !important;
    color: #c3c3c3;
}

.pvfp-stars-reviews span {
    font-size: 20px;
    font-weight: 600;
    margin-left: 6px;
}


/* ---------- Avis des avis des cours ------------- */


/* --- Formulaire de tri --- */
.pvfp_sort_form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px #0000000d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    transition: box-shadow 0.2s ease;
    max-width: 70%;
    margin: 10px auto 35px;
}

.pvfp_sort_form:hover {
  box-shadow: 0 4px 10px #00000014;
}

@media (max-width: 768px) {
    .pvfp_sort_form {
        max-width: 100%;
    }
}



.pvfp_sort_label {
    font-weight: 600;
    color: #222;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pvfp_sort_by_container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pvfp_sort_select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pvfp_sort_select:hover,
.pvfp_sort_select:focus {
    border-color: #f96f33;
    background-color: #fff;
    outline: none;
}



/* --- Boites de chaque avis --- */
.pvfp_review_card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px #0000000d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 70%;
    margin: 15px auto;
}

/* Position relative nécessaire pour le calque de chargement */
.pvfp_course_reviews_container {
    position: relative;
}

.pvfp_review_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px #00000014;
}

@media (max-width: 768px) {
    .pvfp_review_card {
        max-width: 100%;
    }
}


.pvfp_review_avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F96F33;
    background: radial-gradient(circle,rgba(249, 111, 51, 1) 0%, rgba(249, 117, 51, 1) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
}

@media (max-width: 768px) {
    .pvfp_review_avatar {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}



.pvfp_review_content {
    flex: 1;
}

.pvfp_review_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .pvfp_review_header {
        align-items: flex-start;
    }
}


.pvfp_review_header_left {
    display: flex;
    flex-direction: column;
}

.pvfp_review_username {
    font-weight: 600;
    font-size: 18px;
    color: #222;
}


.pvfp_review_verified {
    font-size: 16px;
    color: #28a745;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .pvfp_review_verified {
        align-items: flex-start;
        text-align: end;
        max-width: 38%;
        gap: 0px;
        font-size: 13px;
    }
}

.pvfp_review_verified i {
    color: #28a745;
}

@media (max-width: 768px) {
    .pvfp_review_verified i{
        margin-top: 6px;
    }
}

.pvfp_review_title {
    font-weight: 600;
    color: #333;
    margin: 8px 0 4px;
    font-size: 16px;
}

.pvfp_review_text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.pvfp_review_date {
    font-size: 14px;
    color: #888;
}




/* --- Pagination moderne (même style que les cartes et le tri) --- */
.pvfp-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pvfp-pagination-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pvfp-pagination-inner :focus{
    color: #333;
}

@media (max-width: 768px) {
    .pvfp-pagination-inner {
        gap: 4px;
    }
}


.pvfp-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px #00000014;
}

@media (max-width: 768px) {
    .pvfp-page-btn {
        min-width: 18px;
        height: 28px;
    }
}

.pvfp-page-btn:hover {
    background: #f3f3f3;
    transform: translateY(-1px);
    color: #333;
    border-color: #f96f33;
}

.pvfp-page-btn.active {
    background: #f96f33;
    color: #fff;
    font-weight: 600;
    border-color: #f96f33;
    cursor: default;
}

.pvfp-page-ellipsis {
    color: #999;
    padding: 0 6px;
    font-size: 16px;
}

.pvfp-page-btn.prev,
.pvfp-page-btn.next {
    background: #f9f9f9;
    font-size: 15px;
    padding: 0 12px;
}

.pvfp-page-btn.prev:hover,
.pvfp-page-btn.next:hover {
    background: #eaeaea;
}

/* --- Indicateur de chargement AJAX --- */
/* Message d'erreur seul */
.pvfp-error-reviews {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #555;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 16px;
    max-width: 70%;
    margin: 15px auto;
}
.pvfp-error-reviews {
    color: #d9534f;
}

/* Calque de chargement par-dessus le contenu */
.pvfp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    border-radius: 16px;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}

.pvfp-loading .pvfp-loading-overlay {
    opacity: 1;
}

.pvfp-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f96f33;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: pvfp-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes pvfp-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
