/* ============================================================
            BLOC AVIS — tous les sélecteurs sont préfixés review__
            Peut être copié dans n'importe quelle page sans conflit.
            ============================================================ */

:root {
    --review-purple: #2563eb;
    --review-purple-light: #dbeafe;
    --review-purple-dark: #1d4ed8;
    --review-text: #1e293b;
    --review-text-muted: #6b7280;
    --review-border: #e5e7eb;
    --review-success: #047857;
    --review-success-light: #d1fae5;
    --review-bg: #f8fafc;
    --review-white: #ffffff;
    --review-radius: 10px;
    --review-star: #fbbf24;
}

body::before {
    content: "";
    position: fixed;
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(
        circle,
        rgba(15, 23, 42, 0.07) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}
body::after {
    content: "";
    position: fixed;
    bottom: -100px;
    left: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle,
        rgba(217, 119, 6, 0.05) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

/* Hero */
.review__hero {
    text-align: center;
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.review__logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.review__logo-icon {
    width: 44px;
    height: 44px;
    background: var(--review-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 19px;
}
.review__logo-text {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--review-text);
    letter-spacing: -0.5px;
}
.review__logo-text span {
    color: var(--review-purple);
}
.review__hero h1 {
    font-family: "Sora", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--review-text);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}
.review__hero p {
    font-size: 15px;
    color: var(--review-text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 300px;
}

.review__stars-deco {
    display: flex;
    gap: 5px;
    margin-bottom: 28px;
}
.review__stars-deco i {
    font-size: 22px;
    color: var(--review-star);
}

.review__btn-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--review-purple);
    color: #fff;
    border: none;
    border-radius: var(--review-radius);
    padding: 14px 32px;
    font-family: "Sora", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.15s;
    width: 100%;
    max-width: 280px;
}
.review__btn-trigger:hover {
    background: var(--review-purple-dark);
    transform: translateY(-1px);
}
.review__btn-trigger:active {
    transform: scale(0.98);
}

/* Overlay */
.review__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 30, 0.52);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.review__overlay.open {
    display: flex;
}
@media (min-width: 600px) {
    .review__overlay {
        align-items: center;
        padding: 20px;
    }
}

/* Modal */
.review__modal {
    background: var(--review-white);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 440px;
    padding: 24px 22px 30px;
    animation: review__slideUp 0.28s cubic-bezier(0.34, 1.06, 0.64, 1) both;
    max-height: 92vh;
    overflow-y: auto;
}
@media (min-width: 600px) {
    .review__modal {
        border-radius: 24px;
        animation: review__fadeScale 0.25s ease both;
    }
}
@keyframes review__slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes review__fadeScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes review__fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review__modal-handle {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 99px;
    margin: 0 auto 18px;
    display: block;
}
@media (min-width: 600px) {
    .review__modal-handle {
        display: none;
    }
}

.review__modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.review__modal-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.review__modal-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--review-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 13px;
}
.review__modal-logo-name {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--review-text);
}
.review__modal-logo-name span {
    color: var(--review-purple);
}
.review__btn-close {
    background: #f3f4f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--review-text-muted);
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.review__btn-close:hover {
    background: #e5e7eb;
}

.review__price-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.review__price-old {
    font-family: "Sora", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #3c3f44;
    text-decoration: line-through;
    line-height: 1;
}
.review__price-free {
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--review-success);
    background: var(--review-success-light);
    padding: 3px 9px;
    border-radius: 99px;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.review__modal-title {
    font-family: "Sora", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--review-text);
    margin-bottom: 10px;
}

/* Étoiles interactives */
.review__star-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.review__star-rating i {
    font-size: 26px;
    color: #e5e7eb;
    cursor: pointer;
    transition:
        color 0.15s,
        transform 0.1s;
}
.review__star-rating i:hover,
.review__star-rating i.review__star-active {
    color: var(--review-star);
}
.review__star-rating i:hover {
    transform: scale(1.15);
}

.review__label {
    font-size: 13px;
    color: var(--review-text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}
.review__label strong {
    color: var(--review-text);
    font-weight: 600;
}

/* Chip téléchargement */
.review__download-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* background: var(--review-success-light); */
    /* border-radius: 70px; */
    /* padding: 6px 12px; */
    margin-top: 14px;
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}
.review__download-chip i {
    font-size: 11px;
}

/* Textarea */
.review__textarea {
    width: 100%;
    border: 2px solid var(--review-border);
    border-radius: var(--review-radius);
    padding: 12px 14px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: var(--review-text);
    outline: none;
    resize: none;
    min-height: 100px;
    transition: border-color 0.2s;
    background: #fff;
    line-height: 1.55;
}
.review__textarea:focus {
    border-color: var(--review-purple);
}

.review__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 16px;
}
.review__hint {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}
.review__hint i {
    font-size: 10px;
}
.review__char-count {
    font-size: 11px;
    color: #9ca3af;
}

/* Bouton soumettre */
.review__btn-submit {
    width: 100%;
    background: var(--review-purple);
    color: #fff;
    border: none;
    border-radius: var(--review-radius);
    padding: 13px;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s,
        opacity 0.2s,
        transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.review__btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.review__btn-submit:not(:disabled):hover {
    background: var(--review-purple-dark);
}
.review__btn-submit:not(:disabled):active {
    transform: scale(0.98);
}
.review__modal-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--review-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden; /* Pour que l'image reste dans les limites */
}
.review__modal-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section partage */
.review__share-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--review-border);
}
.review__share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--review-text);
    font-family: "Sora", sans-serif;
    margin-bottom: 4px;
}
.review__share-sub {
    font-size: 12px;
    color: var(--review-text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}
.review__share-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review__share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s;
    flex: 1;
}
.review__share-btn:hover {
    transform: translateY(-2px);
}
.review__share-btn:active {
    transform: scale(0.93);
}
.review__share-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: filter 0.15s;
}
.review__share-btn:hover .review__share-icon {
    filter: brightness(1.1);
}
.review__share-icon.wh {
    background: #25d366;
}
.review__share-icon.fb {
    background: #1877f2;
}
.review__share-icon.ig {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}
.review__share-icon.other {
    background: #6b7280;
}
.review__share-name {
    font-size: 10px;
    font-weight: 600;
    font-family: "Sora", sans-serif;
    color: var(--review-text-muted);
}
.review__share-required {
    margin-bottom: 16px;
    padding: 12px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.review__share-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    margin-bottom: 12px;
}

.review__share-buttons-required {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.review__share-btn-req {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.review__share-btn-req i {
    font-size: 14px;
}

.review__share-btn-req:active {
    transform: scale(0.95);
}

/* Couleurs spécifiques */
.review__share-btn-req:nth-child(1) {
    background: #25d366;
    color: white;
}
.review__share-btn-req:nth-child(2) {
    background: #1877f2;
    color: white;
}
.review__share-btn-req:nth-child(3) {
    background: #e4405f;
    color: white;
}
.review__share-btn-req:nth-child(4) {
    background: #6b7280;
    color: white;
}

.review__share-btn-req:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
