/* ════════════════════════════════
   Avis clients — affichage (fiche produit + accueil).
   Style flat luxe aligné sur le reste du front (guide des tailles, cookie
   banner, boutons catalogue) : Urbanist, hairlines noires, monochrome,
   pas de border-radius ni d'ombre.
═══════════════════════════════════ */

.reviews {
    padding: 40px 5vw 56px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── En-tête : titre + note moyenne ── */
.reviews__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.reviews__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 500;
    margin: 0;
    line-height: 1.15;
}

.reviews__avg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.reviews__avg-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.reviews__star {
    width: 14px;
    height: 14px;
    fill: transparent;
    stroke: #1a1a1a;
    stroke-width: 1.1;
    stroke-linejoin: round;
}
.reviews__star--full { fill: #1a1a1a; }
/* Demi-étoile : remplissage atténué (≥ 0.5 = demi). */
.reviews__star--half { fill: #1a1a1a; fill-opacity: .35; }

.reviews__avg-value {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: #000;
}
.reviews__avg-count {
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: .04em;
    text-transform: lowercase;
    color: #6a7282;
}

/* ── Grille ── */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ── Carte ── */
.review-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: border-color .18s;
}
.review-card:hover { border-color: rgba(0, 0, 0, .35); }

/* Photo (si fournie) */
.review-card__photo {
    display: block;
    background: #fafafa;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    text-decoration: none;
}
.review-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.review-card__photo:hover img { transform: scale(1.03); }

/* Corps de la carte */
.review-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 16px;
    flex: 1;
}

.review-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Étoiles individuelles — monochrome, trait fin */
.review-card__stars {
    display: inline-flex;
    gap: 2px;
}
.review-card__star {
    width: 13px;
    height: 13px;
    fill: transparent;
    stroke: #1a1a1a;
    stroke-width: 1.1;
    stroke-linejoin: round;
}
.review-card__star.is-filled { fill: #1a1a1a; }

/* Badge "Achat vérifié" — tag hairline monochrome */
.review-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid rgba(0, 0, 0, .15);
    color: #000;
    font-family: 'Urbanist', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.review-card__verified svg {
    width: 9px;
    height: 9px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.review-card__heading {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .02em;
    color: #000;
    margin: 0;
    line-height: 1.35;
}

.review-card__text {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: .01em;
    color: #4a5565;
    font-style: normal;
    flex: 1;
}

.review-card__author {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: .03em;
    color: #6a7282;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}
.review-card__author-name {
    font-weight: 500;
    color: #000;
}
.review-card__author-sep {
    color: rgba(0, 0, 0, .25);
    user-select: none;
}

/* ── Variante compacte intégrée à la fiche produit (panneau étroit) ── */
.reviews--product { padding: 28px 0 8px; max-width: none; }
.reviews--product .reviews__head { margin-bottom: 18px; }
.reviews--product .reviews__title { font-size: 1.4rem; text-align: left; }
.reviews--product .reviews__grid { grid-template-columns: 1fr; gap: 14px; }
.reviews--product .review-card__body { padding: 14px 16px 12px; }

@media (max-width: 640px) {
    .reviews { padding: 32px 5vw 44px; }
    .reviews__head { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════
   Dépôt d'avis (fiche produit) — bande discrète + formulaire repliable.
   Même langage : Urbanist, hairlines noires, lowercase / uppercase serré,
   monochrome, pas de border-radius ni d'ombre.
═══════════════════════════════════ */
.review-invite {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 5vw 0;
}
.review-invite__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.review-invite__text {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .04em;
    text-transform: lowercase;
    color: #1a1a1a;
}
.review-invite__btn {
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 11px 26px;
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.review-invite__btn:hover,
.review-invite__btn[aria-expanded="true"] {
    background: #000;
    color: #fff;
}

/* ── Formulaire (déplié par le bouton) ── */
.review-form {
    max-width: 620px;
    padding: 28px 0 6px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: reviewFormIn .22s ease;
}
.review-form[hidden] { display: none; }
@keyframes reviewFormIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.review-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.review-form__field { display: flex; flex-direction: column; gap: 8px; }
.review-form__label {
    font-family: 'Urbanist', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6a7282;
}
.review-form__opt { font-weight: 400; color: #9ca3af; text-transform: none; letter-spacing: .02em; }

.review-form input[type="text"],
.review-form textarea {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: .01em;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .18);
    padding: 8px 0;
    width: 100%;
    transition: border-color .18s;
}
.review-form input[type="text"]::placeholder,
.review-form textarea::placeholder { color: #9ca3af; font-weight: 300; }
.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-bottom-color: #000;
}
.review-form .input--error { border-bottom-color: #b3403f !important; }
.review-form textarea { resize: vertical; min-height: 88px; line-height: 1.6; }

/* Étoiles — monochrome, trait fin */
.review-form__stars { display: inline-flex; gap: 6px; }
.review-form__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.review-form__stars label { cursor: pointer; line-height: 0; }
.review-form__stars label svg {
    width: 21px; height: 21px;
    fill: transparent; stroke: #1a1a1a; stroke-width: 1.1; stroke-linejoin: round;
    transition: fill .15s;
}
.review-form__stars label.is-filled svg { fill: #1a1a1a; }
.review-form__stars input:focus-visible + label svg { outline: 1px solid #000; outline-offset: 3px; }

/* Messages d'erreur inline (FormAjax injecte <ul class="form-errors">) */
.review-form__err:empty { display: none; }
.review-form__err .form-errors {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #b3403f;
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: .02em;
}

/* Honeypot : hors écran, jamais visible ni focusable pour un humain */
.review-form__hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.review-form__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.review-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 12px 28px;
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .18s;
}
.review-form__submit:hover:not(:disabled) { opacity: .8; }
.review-form__submit:disabled { opacity: .55; cursor: default; }
.review-form__submit svg { width: 13px; height: 13px; }
.review-form__submit .btn-icon-spin.spinning { animation: reviewSpin .9s linear infinite; }
@keyframes reviewSpin { to { transform: rotate(360deg); } }
.review-form__cancel {
    background: none;
    border: 0;
    padding: 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: .04em;
    text-transform: lowercase;
    color: #6a7282;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .18s;
}
.review-form__cancel:hover { color: #000; }

/* Message de remerciement après envoi (remplace le formulaire) */
.review-form__done {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 620px;
    border: 1px solid rgba(0, 0, 0, .12);
    padding: 18px 22px;
    margin: 24px 0 6px;
}
.review-form__done svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #000; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.review-form__done p {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .02em;
    color: #1a1a1a;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .review-form__row { grid-template-columns: 1fr; }
    .review-invite__bar { padding: 16px 0; }
    .review-invite__btn { width: 100%; text-align: center; }
}
