/* Container */
.review-view-compact {
    padding: 10px;
}

/* ========================================
   UN SEUL BLOC pour toute la critique
   ======================================== */
.review-complete-card {
    background: white;
    border: 3px solid #6B7BA8;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ========================================
   PARTIE 1 : Layout en 2 zones
   ======================================== */
.review-top-wrapper {
    padding: 20px;
}

/* Zone haute : Image + Titre/Intro côte à côte */
.review-header-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.review-img-left {
    flex-shrink: 0;
    width: 150px;
    height: 210px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.review-img-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-header-content {
    flex: 1;
}

/* Header avec titre + photo sur même ligne */
.review-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.review-heading {
    flex: 1;
    font-size: 1.5em;
    color: #4A8BC2;
    margin: 0;
    font-weight: normal;
}

.title-name {
    font-weight: bold;
}

/* Intro/Accroche (juste à côté de l'image) */
.review-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* Zone basse : Texte principal PLEINE LARGEUR */
.review-body-full {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.review-paragraph {
    margin-bottom: 12px;
}

.review-paragraph:first-child {
    margin-top: 0;
}

/* Photo membre inline */
.review-author-photo-inline {
    flex-shrink: 0;
    width: 60px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.review-author-photo-inline:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.review-author-photo-inline a {
    display: block;
    width: 100%;
    height: 100%;
}

.review-author-photo-inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.review-author-photo-inline:hover img {
    transform: scale(1.08);
}

/* SÉPARATEUR HORIZONTAL */
.horizontal-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

/* PARTIE 2 : Points (fond BLANC) */
.points-dark-section {
    background: white;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.points-col {
    flex: 1;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.points-separator {
    width: 1px;
    background: #d0d0d0;
    align-self: stretch;
    flex-shrink: 0;
}

.points-heading-dark {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
    width: 100%;
}

.point-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    width: 100%;
}

.point-bullet-dark {
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1;
}

.point-entry.positive .point-bullet-dark {
    color: #5cb85c;
}

.point-entry.negative .point-bullet-dark {
    color: #d9534f;
}

.point-desc-dark {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

/* PARTIE 3 : Footer (Note) - FOND GRIS */
.review-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f0f0f0;
    font-size: 14px;
    color: #666;
}

.bar-author-date {
    flex: 1;
}

.bar-author-date strong {
    color: #4A8BC2;
}

.author-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.author-link:hover {
    opacity: 0.7;
}

.review-bottom-bar .bar-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.review-bottom-bar .rating-bar-inline {
    width: 100px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.review-bottom-bar .rating-bar-fill {
    height: 20px;
    background: linear-gradient(90deg, #4A8BC2 0%, #667eea 100%);
    border-radius: 8px;
}

.review-bottom-bar .rating-score {
    font-weight: bold;
    font-size: 1.2em;
    color: #4A8BC2;
}

/* ========================================
   BLOC COMMENTAIRES avec système de réponses
   ======================================== */
.comments-section-final {
    background: white;
    border: 3px solid #6B7BA8;
    border-radius: 15px;
    padding: 15px;
}

.comments-header {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #333;
}

/* Container principal d'un commentaire avec ses réponses */
.comment-main-container {
    margin-bottom: 15px;
}

/* Commentaire principal - Style YouTube */
.comment-box {
    background: transparent;
    padding: 12px 0;
    border-radius: 0;
    margin-bottom: 0;
}

.comment-info {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
}

.comment-info strong {
    color: #030303;
    font-weight: 500;
}

.comment-info span {
    color: #606060;
    font-size: 12px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #0f0f0f;
    margin-bottom: 4px;
}

/* Actions (Likes, Dislikes, Reply) - Style YouTube */
.comment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.action-btn {
    background: none;
    border: none;
    color: #606060;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.action-count {
    font-size: 12px;
    color: #606060;
    font-weight: 500;
    margin-left: -2px;
}

.reply-btn {
    background: none;
    border: none;
    color: #606060;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 18px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.reply-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Formulaire de réponse */
.reply-form-container {
    margin: 10px 0 10px 40px;
    padding: 10px 0;
}

.comment-reply-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.comment-reply-form textarea:focus {
    outline: none;
    border-color: #4A8BC2;
}

.reply-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.cancel-reply-btn,
.submit-reply-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-reply-btn {
    background: #e0e0e0;
    color: #666;
}

.cancel-reply-btn:hover {
    background: #d0d0d0;
}

.submit-reply-btn {
    background: linear-gradient(135deg, #4A8BC2 0%, #667eea 100%);
    color: white;
}

.submit-reply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 139, 194, 0.4);
}

/* Container des réponses */
.replies-container {
    margin-left: 40px;
    margin-top: 8px;
}

/* Réponses (même style que commentaire principal) */
.comment-reply {
    background: transparent;
    padding: 12px 0;
    border-radius: 0;
    margin-bottom: 0;
}

/* Formulaire principal pour nouveau commentaire */
.comment-submit-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
}

.comment-submit-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.comment-submit-form textarea:focus {
    outline: none;
    border-color: #4A8BC2;
}

.comment-submit-form button {
    background: linear-gradient(135deg, #4A8BC2 0%, #667eea 100%);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-submit-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 139, 194, 0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .review-header-section {
        flex-direction: column;
    }
    
    .review-img-left {
        width: 100%;
        height: 250px;
    }
    
    .points-dark-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .points-separator {
        display: none;
    }
    
    .points-col {
        padding: 0;
    }
    
    .review-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-bottom-bar .bar-rating {
        margin-left: 0;
    }
    
    /* Réduire l'indentation sur mobile */
    .replies-container {
        margin-left: 20px;
        padding-left: 10px;
    }
    
    .reply-form-container {
        margin-left: 20px;
    }
}
