/* TK Avis Clients ───────────────────────────────────────────────────── */

.tk-reviews-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
}

/* ── Barre de stats ──────────────────────────────────────────────────── */

.tk-reviews-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: linear-gradient(135deg, #0d1b2a, #1e3a5f);
    color: #fff;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.tk-stat          { text-align: center; }
.tk-stat-divider  { width: 1px; height: 50px; background: rgba(255,255,255,.15); }

.tk-stat-stars { display: flex; gap: 3px; justify-content: center; margin-bottom: 4px; }
.tk-star-full  { color: #f97316; font-size: 1.3rem; }
.tk-star-half  { color: #f97316; font-size: 1.3rem; opacity: .6; }
.tk-star-empty { color: rgba(255,255,255,.3); font-size: 1.3rem; }

.tk-stat-num       { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.tk-stat-num span  { font-size: 1rem; font-weight: 400; opacity: .7; }
.tk-stat-label     { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 4px;
                      text-transform: uppercase; letter-spacing: .06em; }

/* ── Grille de cards ─────────────────────────────────────────────────── */

.tk-reviews-grid {
    display: grid;
    gap: 1.25rem;
}
.tk-reviews-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tk-reviews-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tk-reviews-cols-1 { grid-template-columns: 1fr; }

/* ── Card ────────────────────────────────────────────────────────────── */

.tk-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.tk-review-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 3.5rem;
    line-height: 1;
    color: #f97316;
    opacity: .15;
    font-family: Georgia, serif;
}
.tk-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

/* Top : étoiles + badge */
.tk-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tk-review-stars {
    color: #f97316;
    font-size: 1.15rem;
    letter-spacing: 2px;
}
.tk-review-badge {
    font-size: .7rem;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: .2rem .65rem;
    border-radius: 20px;
    letter-spacing: .03em;
    white-space: nowrap;
}

/* Texte */
.tk-review-text {
    margin: 0;
    font-size: .92rem;
    color: #374151;
    line-height: 1.65;
    font-style: italic;
    flex: 1;
}
.tk-review-text p { margin: 0; }

/* Auteur */
.tk-review-author {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-top: .9rem;
    border-top: 1px solid #f3f4f6;
}
.tk-review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f97316, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tk-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tk-review-initial {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}
.tk-review-author-info { min-width: 0; }
.tk-review-name {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tk-review-meta {
    display: block;
    font-size: .78rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .tk-reviews-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tk-reviews-cols-3,
    .tk-reviews-cols-2 { grid-template-columns: 1fr; }
    .tk-reviews-stats  { gap: 1.5rem; padding: 1.25rem; }
    .tk-stat-num       { font-size: 1.5rem; }
    .tk-stat-divider   { width: 40px; height: 1px; }
}

/* ── Formulaire de soumission d'avis ─────────────────────────────────── */

.tk-review-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.tk-review-form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}
.tk-review-form-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0d1b2a;
    margin: 0 0 .4rem;
}
.tk-review-form-sub {
    font-size: .9rem;
    color: #6b7280;
    margin: 0;
}

/* Champs */
.tk-rf-field {
    margin-bottom: 1.1rem;
    position: relative;
}
.tk-rf-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tk-rf-required { color: #ef4444; }

.tk-rf-input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #0d1b2a;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
}
.tk-rf-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.tk-rf-textarea {
    resize: vertical;
    min-height: 110px;
}
.tk-rf-char-count {
    display: block;
    text-align: right;
    font-size: .75rem;
    color: #9ca3af;
    margin-top: .25rem;
}

/* Erreurs */
.tk-rf-error {
    display: block;
    font-size: .78rem;
    color: #ef4444;
    margin-top: .3rem;
    min-height: 1em;
}
.tk-rf-error-global {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .88rem;
    margin-top: 1rem;
    text-align: center;
}

/* Étoiles interactives */
.tk-rf-stars {
    display: flex;
    gap: .35rem;
    margin-top: .2rem;
}
.tk-rf-star {
    background: none;
    border: none;
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .12s, transform .12s;
    -webkit-tap-highlight-color: transparent;
}
.tk-rf-star.active,
.tk-rf-star.hover { color: #f97316; transform: scale(1.15); }

/* Bouton soumettre */
.tk-rf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .95rem 1.5rem;
    background: linear-gradient(135deg, #0d1b2a, #1e3a5f);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: .5rem;
    min-height: 52px;
    transition: opacity .2s, transform .15s;
}
.tk-rf-submit:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px);
}
.tk-rf-submit:disabled { opacity: .6; cursor: not-allowed; }

.tk-rf-submit-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tk-spin .7s linear infinite;
}
.tk-rf-submit.loading .tk-rf-submit-text { opacity: .7; }
.tk-rf-submit.loading .tk-rf-submit-loader { display: block; }

@keyframes tk-spin { to { transform: rotate(360deg); } }

/* Message succès */
.tk-rf-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
}
.tk-rf-success-icon {
    width: 56px;
    height: 56px;
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.tk-rf-success h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #14532d;
    margin: 0 0 .4rem;
}
.tk-rf-success p {
    font-size: .9rem;
    color: #166534;
    margin: 0;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .tk-review-form-wrap { padding: 0 .25rem; }
    .tk-rf-star { font-size: 2.4rem; }
}
