/* ============================================
   AVIS - lesmedecinesdouces.fr
   Design tokens from _vars.less:
   @brown: #643a34 (primary)
   @blue: #1A579E (links)
   @green: #50ddbc (accent)
   @main-font: 'Montserrat', verdana, sans-serif
   ============================================ */

/* Layout */
.avis-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: 'Montserrat', verdana, sans-serif;
}

/* ---- Breadcrumb ---- */
.avis-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 24px;
    font-size: 13px;
    color: #868686;
}
.avis-breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 6px;
    color: #cacaca;
}
.avis-breadcrumb a {
    color: #1A579E;
    text-decoration: none;
}
.avis-breadcrumb a:hover {
    text-decoration: underline;
}
.avis-breadcrumb .active {
    color: #4F4F4F;
}

/* ---- Doctor Header ---- */
.avis-doctor-header {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff7f1;
    border-radius: 4px;
    margin-bottom: 32px;
    border: 1px solid #faeadb;
}
.avis-doctor-header__photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.avis-doctor-header__info h1 {
    font-size: 22px;
    margin: 0 0 4px;
    color: #262626;
    font-family: 'Montserrat', verdana, sans-serif;
}
.avis-doctor-header__spe {
    color: #643a34;
    font-size: 15px;
    margin: 0 0 2px;
    font-weight: 500;
}
.avis-doctor-header__address {
    color: #868686;
    font-size: 14px;
    margin: 0 0 8px;
}
.avis-doctor-header__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.avis-doctor-header__count {
    font-size: 14px;
    color: #262626;
    font-weight: 600;
}
.avis-doctor-header__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0 20px;
    border-radius: 4px;
    height: 42px;
    line-height: 42px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-align: center;
    font-family: 'Montserrat', verdana, sans-serif;
}
.btn--primary {
    background: #643a34;
    color: #fff;
}
.btn--primary:hover {
    background: #4e2d28;
}
.btn--outline {
    background: #fff;
    color: #643a34;
    border: 1px solid #643a34;
}
.btn--outline:hover {
    background: #fff7f1;
}
.btn--lg {
    height: 48px;
    line-height: 48px;
    padding: 0 28px;
    font-size: 14px;
}

/* ---- Stars ---- */
.avis-stars {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
}
.avis-stars svg {
    display: block;
}

/* ---- Filters ---- */
.avis-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #F6F6F6;
    border-radius: 4px;
}
.avis-filters__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.avis-filters__sort label {
    font-size: 14px;
    color: #666;
}
.avis-filters__sort select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.avis-filters__note {
    display: flex;
    align-items: center;
    gap: 4px;
}
.avis-filters__label {
    font-size: 14px;
    color: #666;
    margin-right: 4px;
}
.avis-filters__star-btn {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
.avis-filters__star-btn.active,
.avis-filters__star-btn:hover {
    background: #643a34;
    color: #fff;
    border-color: #643a34;
}

/* ---- Distribution ---- */
.avis-distribution {
    margin-bottom: 24px;
}
.avis-distribution__row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.avis-distribution__label {
    width: 36px;
    font-size: 13px;
    color: #666;
    text-align: right;
}
.avis-distribution__bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.avis-distribution__fill {
    height: 100%;
    background: #FFB800;
    border-radius: 4px;
    transition: width .3s;
}
.avis-distribution__count {
    width: 30px;
    font-size: 13px;
    color: #666;
}

/* ---- Review Card ---- */
.review-card {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.review-card:last-child {
    border-bottom: none;
}
.review-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.review-card__author {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.review-card__date {
    font-size: 13px;
    color: #999;
}
.review-card__content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}
.review-card__votes {
    display: flex;
    gap: 8px;
}

/* ---- Vote Buttons ---- */
.vote-btn {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}
.vote-btn:hover {
    border-color: #643a34;
    color: #643a34;
}
.vote-btn.voted {
    background: #fff7f1;
    border-color: #643a34;
    color: #643a34;
}
.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Pagination ---- */
.avis-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}
.avis-pagination__link,
.avis-pagination__current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}
.avis-pagination__link {
    color: #1A579E;
    border: 1px solid #ddd;
}
.avis-pagination__link:hover {
    background: #f0f6ff;
}
.avis-pagination__current {
    background: #643a34;
    color: #fff;
    font-weight: 600;
}

/* ---- Empty State ---- */
.avis-empty {
    text-align: center;
    padding: 48px 20px;
}
.avis-empty h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}
.avis-empty p {
    color: #666;
    margin-bottom: 20px;
}

/* ---- Google Block ---- */
.avis-google-block {
    margin-top: 40px;
    padding: 24px;
    background: #fff5ee;
    border-radius: 4px;
    border-left: 4px solid #643a34;
}
.avis-google-block h2 {
    font-size: 18px;
    margin: 0 0 12px;
    color: #333;
}
.avis-google-block__badge {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}
.avis-google-block__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.avis-google-block__score {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.avis-google-block__count {
    font-size: 14px;
    color: #666;
}
.avis-google-block__summary {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
}
.avis-google-block__summary ul {
    margin: 0;
    padding-left: 20px;
}
.avis-google-block__summary li {
    margin-bottom: 4px;
}
.avis-google-block__cta {
    display: inline-block;
    color: #1A579E;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
}
.avis-google-block__cta:hover {
    text-decoration: underline;
}
.avis-google-block__disclaimer {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ---- Praticiens Proches ---- */
.avis-proches {
    margin-top: 40px;
}
.avis-proches h2 {
    font-size: 18px;
    margin-bottom: 16px;
}
.avis-proches__grid {
    display: grid;
    gap: 12px;
}
.avis-proches__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F6F6F6;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
}
.avis-proches__card:hover {
    background: #fff7f1;
}
.avis-proches__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.avis-proches__info {
    display: flex;
    flex-direction: column;
}
.avis-proches__name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.avis-proches__location {
    font-size: 13px;
    color: #666;
}
.avis-proches__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

/* ---- Hub ---- */
.avis-hub-hero {
    text-align: center;
    padding: 40px 0 32px;
}
.avis-hub-hero h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}
.avis-hub-hero__subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}
.avis-hub-hero__stat {
    font-size: 14px;
    color: #1A579E;
    font-weight: 600;
}

.avis-hub-recent {
    margin-bottom: 40px;
}
.avis-hub-recent h2 {
    font-size: 20px;
    margin-bottom: 16px;
}
.avis-hub-recent__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.avis-hub-recent__card {
    padding: 16px;
    background: #F6F6F6;
    border-radius: 8px;
}
.avis-hub-recent__stars {
    margin-bottom: 8px;
}
.avis-hub-recent__text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
}
.avis-hub-recent__meta {
    font-size: 13px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.avis-hub-recent__meta a {
    color: #1A579E;
    text-decoration: none;
}
.avis-hub-recent__date {
    color: #999;
}

.avis-hub-specialties h2 {
    font-size: 20px;
    margin-bottom: 16px;
}
.avis-hub-specialties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.avis-hub-specialties__card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #F6F6F6;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
}
.avis-hub-specialties__card:hover {
    background: #fff7f1;
}
.avis-hub-specialties__name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.avis-hub-specialties__count {
    font-size: 13px;
    color: #1A579E;
    font-weight: 600;
}

/* ---- Form ---- */
.avis-form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
}
.avis-form {
    max-width: 560px;
}
.avis-form__group {
    margin-bottom: 20px;
}
.avis-form__group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.avis-form__group label small {
    font-weight: 400;
    color: #999;
}
.avis-form__group input,
.avis-form__group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}
.avis-form__group input:focus,
.avis-form__group textarea:focus {
    border-color: #643a34;
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 58, 52, .1);
}
.avis-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.avis-form__stars {
    display: flex;
    gap: 4px;
}
.avis-form__star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.avis-form__counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.avis-form-success {
    text-align: center;
    padding: 48px 20px;
    background: #e8f5e9;
    border-radius: 12px;
    margin: 20px 0;
}
.avis-form-success h2 {
    color: #2e7d32;
    margin-bottom: 8px;
}
.avis-form-error {
    background: #fdecea;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ---- Profil integration ---- */
.profil-avis-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
}
.profil-avis-summary__stars {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
}
.profil-avis-summary__rating {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
}
.profil-avis-summary__count {
    font-size: 14px;
    color: #1A579E;
    text-decoration: none;
}
.profil-avis-summary__count:hover {
    text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .avis-doctor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .avis-doctor-header__actions {
        justify-content: center;
    }
    .avis-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    .avis-form__row {
        grid-template-columns: 1fr;
    }
    .avis-hub-hero h1 {
        font-size: 22px;
    }
}

/* ---- Listing page rating integration ---- */
.listing-page__result--rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 3px 0;
}
.listing-page__result--rating svg {
    display: block;
}
.listing-page__result--rating-text {
    font-size: 12px;
    color: #643a34;
    font-weight: 500;
    margin-left: 4px;
}

/* ---- Profil enriched data ---- */
.profil-enriched-bio {
    margin-top: 12px;
    padding: 16px;
    background: #fff7f1;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.7;
    color: #4F4F4F;
    border-left: 3px solid #643a34;
}
.profil-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.profil-links__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #F6F6F6;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #1A579E;
    text-decoration: none;
    transition: all .2s;
}
.profil-links__item:hover {
    background: #fff7f1;
    border-color: #643a34;
    color: #643a34;
}
