/**
 * Avis Vérifiés – Styles publics
 * Reproduit la maquette validée par l'utilisateur.
 */

.av-container {
    --av-bg-primary: #ffffff;
    --av-bg-secondary: #f7f6f1;
    --av-bg-info: #E6F1FB;
    --av-bg-success: #EAF3DE;
    --av-text-primary: #1a1a1a;
    --av-text-secondary: #6b6b6b;
    --av-text-tertiary: #9a9a9a;
    --av-text-info: #0C447C;
    --av-text-success: #3B6D11;
    --av-border: rgba(0,0,0,0.1);
    --av-border-secondary: rgba(0,0,0,0.18);
    --av-border-info: #185FA5;
    --av-radius-md: 8px;
    --av-radius-lg: 12px;

    background: var(--av-bg-secondary);
    border-radius: var(--av-radius-lg);
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--av-text-primary);
    line-height: 1.5;
    box-sizing: border-box;
    max-width: 100%;
}

.av-container *,
.av-container *::before,
.av-container *::after {
    box-sizing: border-box;
}

.av-card {
    background: var(--av-bg-primary);
    border-radius: var(--av-radius-lg);
    border: 0.5px solid var(--av-border);
    padding: 1.25rem;
    margin-bottom: 12px;
}

/* ---------- HEADER ---------- */
.av-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.av-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--av-radius-md);
    background-color: var(--av-bg-info);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.av-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 22px;
    color: var(--av-text-info);
}

.av-header-info {
    flex: 1;
    min-width: 200px;
}

.av-header-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.av-title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--av-text-primary);
}

.av-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--av-bg-success);
    color: var(--av-text-success);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--av-radius-md);
}

.av-badge-verified svg {
    flex-shrink: 0;
}

.av-header-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--av-text-secondary);
}

.av-header-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.av-note-num {
    font-size: 15px;
    font-weight: 500;
}

.av-note-label {
    font-size: 13px;
    color: var(--av-text-secondary);
}

/* ---------- BOUTONS ---------- */
.av-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--av-radius-md);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    border: 0.5px solid var(--av-border-secondary);
    background: transparent;
    color: var(--av-text-primary);
    transition: all 0.15s;
}

.av-btn:hover {
    background: var(--av-bg-secondary);
}

.av-btn-primary {
    background: var(--av-primary, #185FA5);
    color: #fff;
    border-color: var(--av-primary, #185FA5);
}

.av-btn-primary:hover {
    opacity: 0.9;
    color: #fff;
}

/* ---------- ÉTOILES ---------- */
.av-stars {
    color: var(--av-star, #EF9F27);
    letter-spacing: 1px;
    font-size: 14px;
    line-height: 1;
}
.av-stars-sm { font-size: 14px; }
.av-stars-md { font-size: 16px; }
.av-stars-lg { font-size: 22px; letter-spacing: 3px; }

.av-star-empty {
    color: rgba(0,0,0,0.15);
}

/* ---------- STATS GRID ---------- */
.av-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .av-stats-grid {
        grid-template-columns: 1fr;
    }
}

.av-rating-big {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
    margin: 0;
}

.av-rating-big-num {
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 6px;
}

.av-rating-big-suffix {
    font-size: 18px;
    color: var(--av-text-secondary);
}

.av-rating-big-label {
    font-size: 12px;
    color: var(--av-text-secondary);
    margin-top: 6px;
}

.av-distribution {
    padding: 1rem 1.25rem;
    margin: 0;
}

.av-distribution-title {
    font-size: 13px;
    color: var(--av-text-secondary);
    margin-bottom: 10px;
}

.av-distribution-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

.av-distribution-row:last-child {
    margin-bottom: 0;
}

.av-distribution-label {
    width: 28px;
    color: var(--av-text-secondary);
}

.av-distribution-bar {
    flex: 1;
    height: 8px;
    background: var(--av-bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.av-distribution-fill {
    height: 100%;
}

.av-distribution-count {
    width: 32px;
    text-align: right;
    color: var(--av-text-secondary);
}

/* ---------- FILTRE PAYS – CAROUSEL PLEINE LARGEUR ---------- */
.av-country-filter-wrapper {
    /* Sort des marges du conteneur parent (padding 1.5rem) */
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: 12px;
    background: var(--av-bg-primary);
    border-top: 0.5px solid var(--av-border);
    border-bottom: 0.5px solid var(--av-border);
    padding: 12px 0 14px;
}

.av-country-filter-header {
    padding: 0 1.5rem 8px;
}

.av-country-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--av-text-secondary);
}

.av-country-filter-label svg {
    color: var(--av-text-secondary);
}

/* Carousel */
.av-carousel {
    position: relative;
}

.av-carousel-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 4px 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.av-carousel-track::-webkit-scrollbar {
    display: none;
}

.av-carousel-track .av-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Flèches de navigation */
.av-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--av-bg-primary);
    border: 0.5px solid var(--av-border-secondary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--av-text-primary);
    z-index: 2;
    padding: 0;
    transition: opacity 0.15s, background 0.15s;
}

.av-carousel-arrow:hover {
    background: var(--av-bg-secondary);
}

.av-carousel-arrow-left {
    left: 6px;
}

.av-carousel-arrow-right {
    right: 6px;
}

.av-carousel-arrow.av-arrow-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Masquage des flèches sur mobile (au profit du scroll tactile) */
@media (max-width: 600px) {
    .av-carousel-arrow {
        display: none;
    }
}

.av-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--av-bg-secondary);
    border: 0.5px solid var(--av-border);
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    color: var(--av-text-primary);
    font-size: 12px;
    transition: all 0.15s;
}

.av-pill:hover {
    border-color: var(--av-border-secondary);
    color: var(--av-text-primary);
}

.av-pill-active {
    background: var(--av-bg-info) !important;
    border: 1px solid var(--av-border-info) !important;
    color: var(--av-text-info) !important;
    font-weight: 500;
}

.av-pill-active .av-pill-count {
    color: var(--av-text-info);
    opacity: 0.7;
}

.av-pill-emoji {
    font-size: 13px;
}

.av-pill-count {
    font-size: 11px;
    color: var(--av-text-secondary);
}

.av-pill-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* ---------- FILTRES SECONDAIRES ---------- */
.av-filters-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.av-filters-label {
    font-size: 12px;
    color: var(--av-text-secondary);
}

/* ---------- AVIS ---------- */
.av-review {
    padding: 1rem 1.25rem;
    margin-bottom: 10px;
}

.av-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.av-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;
}

.av-review-meta {
    flex: 1;
    min-width: 0;
}

.av-review-author-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.av-review-author {
    font-weight: 500;
    font-size: 14px;
}

.av-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--av-bg-secondary);
    color: var(--av-text-secondary);
}

.av-verified-mini {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--av-text-success);
}

.av-verified-mini svg {
    color: var(--av-text-success);
}

.av-review-date {
    font-size: 11px;
    color: var(--av-text-tertiary);
    margin-top: 2px;
}

.av-review-content {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
}

.av-review-content p {
    margin: 0 0 8px;
}

.av-review-content p:last-child {
    margin-bottom: 0;
}

/* Photos */
.av-review-photos {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.av-review-photo {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.av-review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Réponse gérant */
.av-owner-reply {
    background: var(--av-bg-secondary);
    border-left: 2px solid var(--av-border-info);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    margin-top: 8px;
}

.av-owner-reply-label {
    font-size: 11px;
    color: var(--av-text-info);
    font-weight: 500;
    margin-bottom: 2px;
}

.av-owner-reply-text {
    font-size: 13px;
    color: var(--av-text-secondary);
    line-height: 1.5;
}

.av-owner-reply-text p {
    margin: 0;
}

.av-review-actions {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--av-text-tertiary);
}

.av-review-action {
    cursor: pointer;
}

/* ---------- PAGINATION ---------- */
.av-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.av-page-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--av-radius-md);
    border: 0.5px solid var(--av-border-secondary);
    background: var(--av-bg-primary);
    color: var(--av-text-primary);
    text-decoration: none;
    font-size: 13px;
}

.av-page-link:hover {
    background: var(--av-bg-secondary);
}

.av-page-active {
    background: var(--av-primary, #185FA5);
    color: #fff;
    border-color: var(--av-primary, #185FA5);
}

.av-page-active:hover {
    background: var(--av-primary, #185FA5);
    color: #fff;
    opacity: 0.9;
}

/* ---------- EMPTY ---------- */
.av-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    color: var(--av-text-secondary);
}

/* ---------- SHORTCODE NOTE INLINE ---------- */
.av-note-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.av-note-count {
    font-size: 12px;
    color: var(--av-text-secondary);
}

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

.av-archive-card {
    background: var(--av-bg-primary);
    border-radius: var(--av-radius-lg);
    border: 0.5px solid var(--av-border);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.15s;
}

.av-archive-card:hover {
    border-color: var(--av-border-secondary);
}

/* ============================================ */
/* HERO MODERNE                                 */
/* ============================================ */

.av-hero {
    --hero-bg: #0F1F1B;
    --hero-text: #F5F1E8;
    --hero-accent: #7DD3A6;

    position: relative;
    overflow: hidden;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: -1.5rem;
    margin-bottom: 12px;
    padding: 64px 1.5rem 56px;
    background: var(--hero-bg);
    color: var(--hero-text);
    border-radius: var(--av-radius-lg) var(--av-radius-lg) 0 0;
    isolation: isolate;
}

/* Pattern de points */
.av-hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--hero-text);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Glow d'ambiance */
.av-hero-bg-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--hero-accent) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.av-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .av-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .av-hero {
        padding: 40px 1.25rem 36px;
    }
}

/* Badge avec point pulsant */
.av-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--hero-accent);
    margin-bottom: 24px;
}

.av-hero-badge-sep {
    opacity: 0.5;
}

.av-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hero-accent);
    position: relative;
    box-shadow: 0 0 0 0 currentColor;
    animation: av-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes av-pulse {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
    50%      { box-shadow: 0 0 0 6px transparent; opacity: 0.7; }
}

/* Slug décoratif */
.av-hero-slug {
    font-family: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--hero-text);
    opacity: 0.35;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

/* Titre */
.av-hero-title {
    font-family: Georgia, 'Times New Roman', 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 500;
    margin: 0 0 24px;
    color: var(--hero-text);
    letter-spacing: -0.02em;
}

.av-hero-title em {
    font-style: italic;
    color: var(--hero-accent);
    font-weight: 500;
}

/* Description */
.av-hero-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--hero-text);
    opacity: 0.7;
    margin: 0 0 28px;
    max-width: 540px;
}

.av-hero-desc strong {
    color: var(--hero-text);
    opacity: 1;
    font-weight: 600;
}

/* CTAs */
.av-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 32px;
}

.av-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.av-hero-btn-primary {
    background: var(--hero-accent);
    color: var(--hero-bg);
}

.av-hero-btn-primary:hover {
    background: var(--hero-text);
    color: var(--hero-bg);
    transform: translateY(-1px);
}

.av-hero-btn-plus {
    font-size: 18px;
    line-height: 1;
}

.av-hero-btn-ghost {
    color: var(--hero-text);
    opacity: 0.8;
    background: transparent;
}

.av-hero-btn-ghost:hover {
    opacity: 1;
    color: var(--hero-text);
}

/* Méta footer */
.av-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--hero-text);
    opacity: 0.5;
    letter-spacing: 0.04em;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.av-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.av-hero-stars {
    color: var(--av-star, #EF9F27);
    letter-spacing: 0;
}

/* Frise de confiance */
.av-hero-trust {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.av-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--hero-text);
    opacity: 0.7;
}

.av-hero-trust-item svg {
    color: var(--hero-accent);
    opacity: 1;
    flex-shrink: 0;
}

/* Aperçu des derniers avis dans le Hero */
.av-hero-preview {
    margin-top: 4px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.av-hero-preview-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hero-text);
    opacity: 0.45;
    margin-bottom: 12px;
}

.av-hero-preview-item {
    padding: 10px 0;
}

.av-hero-preview-item + .av-hero-preview-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.av-hero-preview-item:first-of-type {
    padding-top: 0;
}

.av-hero-preview-item:last-of-type {
    padding-bottom: 0;
}

.av-hero-preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.av-hero-preview-stars {
    color: var(--av-star, #EF9F27);
    font-size: 12px;
    letter-spacing: 1px;
}

.av-hero-preview-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--hero-text);
    opacity: 0.65;
}

.av-hero-preview-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--hero-text);
    opacity: 0.85;
    font-style: italic;
}

/* Stats cards */
.av-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.av-hero-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.av-hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.av-hero-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--hero-accent);
    flex-shrink: 0;
}

.av-hero-stat-body {
    flex: 1;
    min-width: 0;
}

.av-hero-stat-num {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    color: var(--hero-text);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.av-hero-stat-suffix {
    font-size: 16px;
    margin-left: 2px;
}

.av-hero-stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hero-text);
    opacity: 0.5;
}

.av-hero-stat-line {
    position: absolute;
    right: 20px;
    bottom: 14px;
    width: 32px;
    height: 1px;
    background: var(--hero-accent);
    opacity: 0.6;
}

/* Bloc répartition en pleine largeur (mode hero) */
.av-distribution-full {
    margin-top: 0;
}

/* ============================================ */
/* VITRINE PREMIUM                              */
/* ============================================ */

.av-vitrine {
    --av-primary: #185FA5;
    --av-star: #EF9F27;

    position: relative;
    overflow: hidden;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: -1.5rem;
    margin-bottom: 12px;
    padding: 44px 1.5rem 36px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--av-primary) 10%, transparent), transparent),
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    border-radius: var(--av-radius-lg) var(--av-radius-lg) 0 0;
    border-bottom: 0.5px solid var(--av-border);
}

/* Fallback navigateurs sans color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
    .av-vitrine {
        background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
    }
}

.av-vitrine-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, var(--av-primary) 0%, transparent 70%);
    opacity: 0.07;
    pointer-events: none;
}

.av-vitrine > * {
    position: relative;
    z-index: 1;
}

/* Identité */
.av-vitrine-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto 24px;
}

.av-vitrine-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--av-border);
}

.av-vitrine-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 22px;
    color: var(--av-primary);
}

.av-vitrine-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.av-vitrine-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--av-text-primary);
    letter-spacing: -0.01em;
}

.av-vitrine-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--av-bg-success);
    color: var(--av-text-success);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
}

.av-vitrine-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--av-text-secondary);
}

/* Carte score flottante */
.av-vitrine-score-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--av-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

@media (max-width: 600px) {
    .av-vitrine-score-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* Anneau de score */
.av-vitrine-ring {
    position: relative;
    width: 104px;
    height: 104px;
    flex-shrink: 0;
}

.av-vitrine-ring-fill {
    transition: stroke-dasharray 1s ease-out;
}

.av-vitrine-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.av-vitrine-ring-num {
    font-size: 30px;
    font-weight: 700;
    color: var(--av-text-primary);
    line-height: 1;
}

.av-vitrine-ring-max {
    font-size: 14px;
    color: var(--av-text-tertiary);
    margin-left: 1px;
    align-self: flex-end;
    margin-bottom: 6px;
}

.av-vitrine-score-info {
    flex: 1;
    min-width: 0;
}

.av-vitrine-score-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--av-text-primary);
    margin-bottom: 4px;
}

.av-vitrine-score-stars {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.av-vitrine-score-count {
    font-size: 13px;
    color: var(--av-text-secondary);
}

.av-vitrine-cta {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .av-vitrine-cta {
        width: 100%;
        text-align: center;
    }
}

/* Mini-stats */
.av-vitrine-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 920px;
    margin: 20px auto 0;
}

.av-vitrine-stat {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    position: relative;
}

.av-vitrine-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: var(--av-border);
}

.av-vitrine-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--av-text-primary);
    line-height: 1.1;
}

.av-vitrine-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--av-text-tertiary);
    margin-top: 2px;
}

/* ============================================ */
/* BENTO                                        */
/* ============================================ */

.av-bento {
    --av-primary: #185FA5;
    --av-star: #EF9F27;

    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-top: -1.5rem;
    margin-bottom: 12px;
    padding: 1.5rem;
    background: var(--av-bg-secondary);
    border-radius: var(--av-radius-lg) var(--av-radius-lg) 0 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-areas:
        "main main main note"
        "main main main note"
        "s1   s2   s3   note";
    gap: 12px;
}

@media (max-width: 780px) {
    .av-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "main main"
            "note note"
            "s1   s2"
            "s3   s3";
    }
}

@media (max-width: 480px) {
    .av-bento {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "note"
            "s1"
            "s2"
            "s3";
        padding: 1.25rem;
    }
}

.av-bento-tile {
    background: var(--av-bg-primary);
    border: 0.5px solid var(--av-border);
    border-radius: 16px;
    padding: 18px 20px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.av-bento-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

/* Tuile principale */
.av-bento-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.av-bento-main-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.av-bento-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: var(--av-bg-info);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.av-bento-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: var(--av-text-info);
}

.av-bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--av-bg-success);
    color: var(--av-text-success);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
}

.av-bento-main-body {
    flex: 1;
}

.av-bento-name {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--av-text-primary);
    line-height: 1.2;
}

.av-bento-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 13px;
    color: var(--av-text-secondary);
}

.av-bento-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 10px 18px;
    background: var(--av-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.av-bento-cta:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
}

.av-bento-cta-plus {
    font-size: 16px;
    line-height: 1;
}

/* Tuile note (accent couleur pleine) */
.av-bento-note {
    grid-area: note;
    background: var(--av-primary);
    border-color: var(--av-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.av-bento-note:hover {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--av-primary) 35%, transparent);
}

.av-bento-note-num {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.av-bento-note-max {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.7;
}

.av-bento-note-stars {
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    margin: 8px 0 6px;
}

.av-bento-note-stars .av-star-empty {
    color: rgba(255, 255, 255, 0.3);
}

.av-bento-note-label {
    font-size: 12px;
    opacity: 0.85;
}

/* Tuiles stats */
.av-bento-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.av-bento-stat:nth-of-type(3) { grid-area: s1; }
.av-bento-stat:nth-of-type(4) { grid-area: s2; }
.av-bento-stat:nth-of-type(5) { grid-area: s3; }
.av-bento-s1 { grid-area: s1; }
.av-bento-s2 { grid-area: s2; }
.av-bento-s3 { grid-area: s3; }

.av-bento-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--av-bg-info);
    color: var(--av-primary);
    margin-bottom: 2px;
}

.av-bento-stat-num {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--av-text-primary);
    letter-spacing: -0.01em;
}

.av-bento-stat-suffix {
    font-size: 16px;
    font-weight: 600;
}

.av-bento-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--av-text-tertiary);
}

/* ============================================ */
/* FORMULAIRE DE DÉPÔT D'AVIS                   */
/* ============================================ */

.av-form-card {
    padding: 1.5rem;
    margin-top: 1rem;
}

.av-form-title {
    margin: 0 0 1rem;
    font-size: 18px;
    font-weight: 500;
}

.av-form-message {
    padding: 12px 14px;
    border-radius: var(--av-radius-md);
    margin-bottom: 14px;
    font-size: 14px;
}

.av-form-success {
    background: #e6f6ec;
    color: #1f5132;
    border: 1px solid #b6dfc0;
}

.av-form-error {
    background: #fbeaea;
    color: #7c1b1b;
    border: 1px solid #ecbfbf;
}

.av-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .av-form-grid {
        grid-template-columns: 1fr;
    }
}

.av-form-field {
    display: flex;
    flex-direction: column;
}

.av-form-field-full {
    grid-column: 1 / -1;
}

.av-form-field label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--av-text-primary);
}

.av-form-field small {
    font-size: 11px;
    color: var(--av-text-tertiary);
    margin-top: 4px;
}

.av-required {
    color: #d63838;
}

.av-form-field input[type="text"],
.av-form-field input[type="email"],
.av-form-field select,
.av-form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--av-border-secondary);
    border-radius: var(--av-radius-md);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--av-text-primary);
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.av-form-field input:focus,
.av-form-field select:focus,
.av-form-field textarea:focus {
    outline: none;
    border-color: var(--av-primary, #185FA5);
    box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.15);
}

.av-form-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Étoiles interactives */
.av-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 30px;
    line-height: 1;
}

.av-rating-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.av-rating-input label {
    color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    margin: 0 2px;
    padding: 0;
    transition: color 0.15s;
}

.av-rating-input label:hover,
.av-rating-input label:hover ~ label,
.av-rating-input input:checked ~ label {
    color: var(--av-star, #EF9F27);
}

/* RGPD */
.av-form-rgpd label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

.av-form-rgpd input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Bouton submit */
.av-form-submit {
    margin-top: 1rem;
    text-align: right;
}

.av-btn-large {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================ */
/* THÈME ÉDITORIAL                              */
/* ============================================ */

.av-theme-editorial {
    --ed-paper: #FAF8F3;
    --ed-card: #FFFFFF;
    --ed-ink: #211E1A;
    --ed-ink-soft: #6B6459;
    --ed-ink-faint: #A39C8E;
    --ed-line: #E8E3D8;
    --ed-accent: var(--av-primary, #185FA5);

    background: var(--ed-paper);
    padding: 0;
    border-radius: var(--av-radius-lg);
    overflow: hidden;
}

.av-ed-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    align-items: start;
    min-width: 0;
}

.av-ed-layout > * {
    min-width: 0;
}

@media (max-width: 860px) {
    .av-ed-layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- SIDEBAR ---------- */
.av-ed-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-right: 1px solid var(--ed-line);
}

@media (max-width: 860px) {
    .av-ed-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--ed-line);
        min-width: 0;
    }
}

/* Carte identité */
.av-ed-card {
    display: flex;
    flex-direction: column;
}

.av-ed-identity {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.av-ed-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--ed-card);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--ed-line);
    flex-shrink: 0;
}

.av-ed-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--ed-accent);
}

.av-ed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ed-accent);
    padding: 4px 8px;
    border: 1px solid var(--ed-accent);
    border-radius: 4px;
}

.av-ed-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--ed-ink);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.av-ed-sub {
    font-size: 13px;
    color: var(--ed-ink-soft);
    margin: 0 0 20px;
    line-height: 1.5;
}

/* Score */
.av-ed-score {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--ed-line);
    border-bottom: 1px solid var(--ed-line);
    margin-bottom: 16px;
}

.av-ed-score-num {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
    color: var(--ed-ink);
    letter-spacing: -0.02em;
}

.av-ed-score-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.av-ed-stars {
    font-size: 15px;
    letter-spacing: 1px;
}

.av-ed-score-count {
    font-size: 12px;
    color: var(--ed-ink-soft);
}

.av-ed-cta {
    display: block;
    text-align: center;
    padding: 12px 16px;
    background: var(--ed-ink);
    color: var(--ed-paper) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s;
}

.av-ed-cta:hover,
.av-ed-cta:focus,
.av-ed-cta:visited {
    background: var(--ed-accent);
    color: #fff !important;
    text-decoration: none;
}

/* Blocs sidebar */
.av-ed-block {
    min-width: 0;
}

.av-ed-block-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ed-ink-faint);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ed-line);
}

/* Répartition */
.av-ed-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 12px;
}

.av-ed-dist-row:last-child {
    margin-bottom: 0;
}

.av-ed-dist-label {
    width: 12px;
    color: var(--ed-ink-soft);
    font-weight: 600;
}

.av-ed-dist-bar {
    flex: 1;
    height: 6px;
    background: var(--ed-line);
    border-radius: 3px;
    overflow: hidden;
}

.av-ed-dist-fill {
    height: 100%;
    background: var(--ed-accent);
}

.av-ed-dist-count {
    width: 26px;
    text-align: right;
    color: var(--ed-ink-faint);
}

/* Filtre pays vertical (desktop) */
.av-ed-countries {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.av-ed-country {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: var(--ed-ink-soft);
    transition: background 0.15s;
}

.av-ed-country:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--ed-ink);
}

.av-ed-country-active {
    background: var(--ed-ink);
    color: var(--ed-paper);
}

.av-ed-country-active:hover {
    background: var(--ed-ink);
    color: var(--ed-paper);
}

.av-ed-country-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.av-ed-country-count {
    font-size: 11px;
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
}

/* Filtre pays en carousel horizontal (mobile) */
@media (max-width: 860px) {
    .av-ed-block {
        max-width: 100%;
        overflow: hidden;
    }

    .av-ed-countries {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 6px;
    }

    .av-ed-countries::-webkit-scrollbar {
        display: none;
    }

    .av-ed-country {
        flex: 0 0 auto;
        scroll-snap-align: start;
        margin: 0;
        gap: 6px;
        padding: 7px 12px;
        border: 1px solid var(--ed-line);
        border-radius: 999px;
        white-space: nowrap;
    }

    .av-ed-country:hover {
        background: transparent;
        color: var(--ed-ink-soft);
    }

    .av-ed-country-active,
    .av-ed-country-active:hover {
        background: var(--ed-ink);
        border-color: var(--ed-ink);
        color: var(--ed-paper);
    }
}

/* Filtre notes */
.av-ed-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.av-ed-note-pill {
    padding: 5px 11px;
    border: 1px solid var(--ed-line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--ed-ink-soft);
    text-decoration: none;
    transition: all 0.15s;
}

.av-ed-note-pill:hover {
    border-color: var(--ed-ink-soft);
    color: var(--ed-ink);
}

.av-ed-note-active {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-paper);
}

.av-ed-note-active:hover {
    color: var(--ed-paper);
    border-color: var(--ed-ink);
}

/* ---------- COLONNE PRINCIPALE ---------- */
.av-ed-main {
    padding: 32px 36px 36px;
    min-width: 0;
}

@media (max-width: 600px) {
    .av-ed-main {
        padding: 24px 20px 28px;
    }
}

.av-ed-main-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--ed-ink);
}

.av-ed-main-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--ed-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.av-ed-main-meta {
    font-size: 12px;
    color: var(--ed-ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* Avis numérotés */
.av-ed-review {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--ed-line);
}

.av-ed-review:last-of-type {
    border-bottom: none;
}

@media (max-width: 500px) {
    .av-ed-review {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.av-ed-review-num {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--ed-ink-faint);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.av-ed-review-body {
    min-width: 0;
}

.av-ed-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.av-ed-review-stars {
    font-size: 14px;
    letter-spacing: 1px;
}

.av-ed-review-date {
    font-size: 12px;
    color: var(--ed-ink-faint);
}

.av-ed-review-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ed-ink);
    margin-bottom: 14px;
}

.av-ed-review-quote p {
    margin: 0 0 10px;
}

.av-ed-review-quote p:last-child {
    margin-bottom: 0;
}

.av-ed-review-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.av-ed-review-photo {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
}

.av-ed-review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.av-ed-review-author {
    font-size: 13px;
    color: var(--ed-ink-soft);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.av-ed-review-author strong {
    color: var(--ed-ink);
    font-weight: 600;
}

.av-ed-review-dash {
    color: var(--ed-ink-faint);
}

.av-ed-review-loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.av-ed-review-verified {
    color: var(--ed-accent);
    font-weight: 500;
}

/* Réponse gérant */
.av-ed-review-reply {
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--ed-paper);
    border-left: 2px solid var(--ed-accent);
    border-radius: 0 4px 4px 0;
}

.av-ed-review-reply-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ed-accent);
    margin-bottom: 4px;
}

.av-ed-review-reply-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ed-ink-soft);
}

.av-ed-review-reply-text p {
    margin: 0;
}

/* Pagination */
.av-ed-pagination {
    display: flex;
    gap: 4px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.av-ed-page {
    min-width: 34px;
    padding: 7px 10px;
    text-align: center;
    border: 1px solid var(--ed-line);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ed-ink-soft);
    text-decoration: none;
    transition: all 0.15s;
}

.av-ed-page:hover {
    border-color: var(--ed-ink-soft);
    color: var(--ed-ink);
}

.av-ed-page-active {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-paper);
}

.av-ed-page-active:hover {
    color: var(--ed-paper);
}

/* Empty */
.av-ed-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--ed-ink-soft);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
}

/* Formulaire dans le thème éditorial : on enlève la carte arrondie */
.av-theme-editorial .av-form-card {
    margin-top: 32px;
    border: 1px solid var(--ed-line);
    background: var(--ed-card);
}

/* ============================================ */
/* THÈME CONFIANCE (style Trustpilot)           */
/* ============================================ */

.av-theme-confiance {
    --tp-bg: #FFFFFF;
    --tp-surface: #F7F8FA;
    --tp-ink: #191919;
    --tp-ink-soft: #6E7681;
    --tp-ink-faint: #9CA3AF;
    --tp-line: #E5E7EB;
    --tp-green: #00B67A;

    background: var(--tp-surface);
    padding: 20px;
    border-radius: var(--av-radius-lg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- ÉTOILES CARRÉES ---------- */
.av-tp-stars {
    display: inline-flex;
    gap: var(--tp-gap, 3px);
    vertical-align: middle;
}

.av-tp-star {
    position: relative;
    width: var(--tp-size, 30px);
    height: var(--tp-size, 30px);
    background: #DCDCE6;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.av-tp-star-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.av-tp-star-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 14%;
    box-sizing: border-box;
}

/* ---------- EN-TÊTE ---------- */
.av-tp-header {
    background: var(--tp-bg);
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.av-tp-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.av-tp-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-color: var(--tp-surface);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--tp-line);
    flex-shrink: 0;
}

.av-tp-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--tp-green);
}

.av-tp-header-info {
    min-width: 0;
}

.av-tp-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 3px;
    font-size: 24px;
    font-weight: 700;
    color: var(--tp-ink);
    letter-spacing: -0.02em;
}

.av-tp-verified {
    display: inline-flex;
}

.av-tp-website {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--tp-ink-soft);
    text-decoration: none;
}

.av-tp-website:hover {
    color: var(--tp-green);
}

.av-tp-meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--tp-ink-faint);
}

.av-tp-header-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

@media (max-width: 640px) {
    .av-tp-header-score {
        align-items: flex-start;
        width: 100%;
    }
}

.av-tp-score-line {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--tp-ink-soft);
}

.av-tp-score-label {
    font-weight: 700;
}

.av-tp-score-sep {
    color: var(--tp-ink-faint);
}

.av-tp-score-count strong {
    color: var(--tp-ink);
    font-weight: 700;
}

.av-tp-cta {
    margin-top: 2px;
    padding: 10px 20px;
    background: var(--tp-green);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: filter 0.15s;
}

.av-tp-cta:hover {
    filter: brightness(0.93);
    color: #fff !important;
}

/* ---------- BARRE NOTE + RÉPARTITION ---------- */
.av-tp-rating-bar {
    background: var(--tp-bg);
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    padding: 20px 28px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
}

@media (max-width: 640px) {
    .av-tp-rating-bar {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.av-tp-rating-big {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 28px;
    border-right: 1px solid var(--tp-line);
}

@media (max-width: 640px) {
    .av-tp-rating-big {
        border-right: none;
        border-bottom: 1px solid var(--tp-line);
        padding-right: 0;
        padding-bottom: 16px;
    }
}

.av-tp-rating-big-num {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    color: var(--tp-ink);
    letter-spacing: -0.03em;
}

.av-tp-rating-big-side {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.av-tp-rating-big-label {
    font-size: 12px;
    color: var(--tp-ink-faint);
}

.av-tp-dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
    font-size: 13px;
}

.av-tp-dist-row:last-child {
    margin-bottom: 0;
}

.av-tp-dist-label {
    width: 64px;
    color: var(--tp-ink-soft);
    flex-shrink: 0;
}

.av-tp-dist-bar {
    flex: 1;
    height: 10px;
    background: var(--tp-surface);
    border-radius: 3px;
    overflow: hidden;
}

.av-tp-dist-fill {
    height: 100%;
    background: var(--tp-green);
    border-radius: 3px;
}

.av-tp-dist-pct {
    width: 38px;
    text-align: right;
    color: var(--tp-ink-soft);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* ---------- FILTRE PAYS (carousel) ---------- */
.av-tp-filter-block {
    background: var(--tp-bg);
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.av-tp-filter-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tp-ink-faint);
    margin-bottom: 10px;
}

.av-tp-countries {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    max-width: 100%;
}

.av-tp-countries::-webkit-scrollbar {
    display: none;
}

.av-tp-country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 7px 13px;
    background: var(--tp-surface);
    border: 1px solid var(--tp-line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--tp-ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}

.av-tp-country:hover {
    border-color: var(--tp-green);
    color: var(--tp-ink);
}

.av-tp-country-active,
.av-tp-country-active:hover {
    background: var(--tp-green);
    border-color: var(--tp-green);
    color: #fff;
}

.av-tp-country-count {
    font-size: 11px;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

/* ---------- TOOLBAR FILTRES NOTES ---------- */
.av-tp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 4px 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--tp-line);
}

.av-tp-toolbar-title {
    font-size: 19px;
    color: var(--tp-ink);
}

.av-tp-toolbar-title strong {
    font-weight: 800;
}

.av-tp-notes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.av-tp-note-pill {
    padding: 6px 12px;
    background: var(--tp-bg);
    border: 1px solid var(--tp-line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--tp-ink-soft);
    text-decoration: none;
    transition: all 0.15s;
}

.av-tp-note-pill:hover {
    border-color: var(--tp-green);
    color: var(--tp-ink);
}

.av-tp-note-active,
.av-tp-note-active:hover {
    background: var(--tp-ink);
    border-color: var(--tp-ink);
    color: #fff;
}

/* ---------- AVIS ---------- */
.av-tp-review {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--tp-line);
}

@media (max-width: 640px) {
    .av-tp-review {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.av-tp-review-aside {
    display: flex;
    align-items: center;
    gap: 10px;
}

.av-tp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.av-tp-review-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-ink);
}

.av-tp-review-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--tp-ink-faint);
    margin-top: 1px;
}

.av-tp-review-body {
    min-width: 0;
}

.av-tp-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.av-tp-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tp-green);
}

.av-tp-review-date {
    font-size: 12px;
    color: var(--tp-ink-faint);
}

.av-tp-review-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-ink);
}

.av-tp-review-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tp-ink);
}

.av-tp-review-content p {
    margin: 0 0 8px;
}

.av-tp-review-content p:last-child {
    margin-bottom: 0;
}

.av-tp-review-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.av-tp-review-photo {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.av-tp-review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.av-tp-review-exp {
    margin-top: 10px;
    font-size: 12px;
    color: var(--tp-ink-faint);
}

.av-tp-review-reply {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--tp-surface);
    border-radius: 8px;
}

.av-tp-review-reply-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--tp-ink-soft);
    margin-bottom: 4px;
}

.av-tp-review-reply-label strong {
    color: var(--tp-ink);
    font-weight: 700;
}

.av-tp-review-reply-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--tp-ink-soft);
}

.av-tp-review-reply-text p {
    margin: 0;
}

/* ---------- PAGINATION ---------- */
.av-tp-pagination {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.av-tp-page {
    min-width: 36px;
    padding: 8px 11px;
    text-align: center;
    background: var(--tp-bg);
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    font-size: 13px;
    color: var(--tp-ink-soft);
    text-decoration: none;
    transition: all 0.15s;
}

.av-tp-page:hover {
    border-color: var(--tp-green);
    color: var(--tp-ink);
}

.av-tp-page-active,
.av-tp-page-active:hover {
    background: var(--tp-green);
    border-color: var(--tp-green);
    color: #fff;
}

/* ---------- EMPTY ---------- */
.av-tp-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--tp-ink-soft);
    font-size: 15px;
}

/* Formulaire dans le thème confiance */
.av-theme-confiance .av-form-card {
    margin-top: 20px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
}

/* ============================================ */
/* ENRICHISSEMENTS COMMUNS — accroche / frise / aperçu */
/* ============================================ */

/* ---- THÈME CLASSIQUE ---- */
.av-header-accroche {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--av-text-secondary);
    font-style: italic;
}

.av-header-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 0.5px solid var(--av-border);
}

.av-header-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--av-text-secondary);
}

.av-header-trust-item svg {
    color: #3B6D11;
    flex-shrink: 0;
}

/* Aperçu avis — commun classique + vitrine */
.av-recent-card {
    margin-bottom: 12px;
}

.av-recent-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--av-text-tertiary);
    margin-bottom: 12px;
}

.av-recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .av-recent-grid {
        grid-template-columns: 1fr;
    }
}

.av-recent-item {
    padding: 12px 14px;
    background: var(--av-bg-secondary);
    border-radius: var(--av-radius-md);
}

.av-recent-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.av-recent-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--av-text-secondary);
}

.av-recent-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--av-text-primary);
    font-style: italic;
}

/* ---- THÈME VITRINE ---- */
.av-vitrine-accroche {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--av-text-secondary);
    font-style: italic;
    max-width: 600px;
}

.av-vitrine-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 920px;
    margin: 16px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--av-border);
}

.av-vitrine-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--av-text-secondary);
}

.av-vitrine-trust-item svg {
    color: var(--av-primary, #185FA5);
    flex-shrink: 0;
}

/* ---- THÈME BENTO ---- */
.av-bento-accroche {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--av-text-secondary);
    font-style: italic;
}

.av-bento {
    grid-template-areas:
        "main main main note"
        "main main main note"
        "s1   s2   s3   note"
        "recent recent recent trust";
}

@media (max-width: 780px) {
    .av-bento {
        grid-template-areas:
            "main main"
            "note note"
            "s1   s2"
            "s3   s3"
            "recent recent"
            "trust trust";
    }
}

@media (max-width: 480px) {
    .av-bento {
        grid-template-areas:
            "main"
            "note"
            "s1"
            "s2"
            "s3"
            "recent"
            "trust";
    }
}

.av-bento-recent {
    grid-area: recent;
}

.av-bento-recent-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--av-text-tertiary);
    margin-bottom: 10px;
}

.av-bento-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.av-bento-recent-item {
    padding-bottom: 10px;
}

.av-bento-recent-item:not(:last-child) {
    border-bottom: 0.5px solid var(--av-border);
}

.av-bento-recent-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.av-bento-recent-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--av-text-secondary);
}

.av-bento-recent-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--av-text-primary);
    font-style: italic;
}

.av-bento-trust {
    grid-area: trust;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.av-bento-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--av-text-secondary);
}

.av-bento-trust-item svg {
    color: var(--av-primary, #185FA5);
    flex-shrink: 0;
}

/* ---- THÈME ÉDITORIAL ---- */
.av-ed-accroche {
    margin: 0 0 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ed-ink-soft);
    font-style: italic;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ed-line);
}

.av-ed-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--ed-line);
}

.av-ed-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ed-ink-soft);
}

.av-ed-trust-item svg {
    color: var(--ed-accent);
    flex-shrink: 0;
}

/* ---- THÈME CONFIANCE ---- */
.av-tp-accroche {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--tp-ink-soft);
    font-style: italic;
}

.av-tp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--tp-bg);
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    padding: 14px 28px;
    margin-bottom: 12px;
}

.av-tp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tp-ink-soft);
}

.av-tp-trust-item svg {
    color: var(--tp-green);
    flex-shrink: 0;
}

.av-tp-recent {
    background: var(--tp-bg);
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    padding: 18px 28px;
    margin-bottom: 12px;
}

.av-tp-recent-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tp-ink-faint);
    margin-bottom: 12px;
}

.av-tp-recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .av-tp-recent-grid {
        grid-template-columns: 1fr;
    }
}

.av-tp-recent-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.av-tp-recent-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--tp-ink-soft);
}

.av-tp-recent-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--tp-ink);
    font-style: italic;
}

/* ============================================ */
/* MODE SOMBRE — clair / sombre / auto          */
/* ============================================ */

/*
 * Le mode sombre redéfinit les variables de couleur des thèmes.
 * .av-dark  : forcé sombre
 * .av-auto  : sombre uniquement si l'appareil est en mode sombre
 * Les couleurs d'accent (--av-primary, --av-star, --ed-accent, --tp-green)
 * restent inchangées : elles sont définies par l'utilisateur.
 */

/* ---- Variables sombres : thèmes génériques (classique, vitrine, bento, hero secondaire) ---- */
.av-dark {
    --av-bg-primary: #1c1c1f;
    --av-bg-secondary: #161618;
    --av-bg-info: #1e2f42;
    --av-bg-success: #1e3320;
    --av-text-primary: #ECECEC;
    --av-text-secondary: #A8A8AE;
    --av-text-tertiary: #74747C;
    --av-text-info: #7DB6F0;
    --av-text-success: #8FCF6F;
    --av-border: rgba(255, 255, 255, 0.1);
    --av-border-secondary: rgba(255, 255, 255, 0.18);
    --av-border-info: #378ADD;
}

/* ---- Variables sombres : thème éditorial ---- */
.av-dark.av-theme-editorial {
    --ed-paper: #161412;
    --ed-card: #1f1d1a;
    --ed-ink: #ECE8E0;
    --ed-ink-soft: #A39C8E;
    --ed-ink-faint: #6E685C;
    --ed-line: #34302A;
}

/* ---- Variables sombres : thème confiance ---- */
.av-dark.av-theme-confiance {
    --tp-bg: #1c1c1f;
    --tp-surface: #161618;
    --tp-ink: #ECECEC;
    --tp-ink-soft: #A8A8AE;
    --tp-ink-faint: #74747C;
    --tp-line: #34343A;
}

/* ---- Mode AUTO : applique le sombre seulement si l'appareil est en sombre ---- */
@media (prefers-color-scheme: dark) {
    .av-auto {
        --av-bg-primary: #1c1c1f;
        --av-bg-secondary: #161618;
        --av-bg-info: #1e2f42;
        --av-bg-success: #1e3320;
        --av-text-primary: #ECECEC;
        --av-text-secondary: #A8A8AE;
        --av-text-tertiary: #74747C;
        --av-text-info: #7DB6F0;
        --av-text-success: #8FCF6F;
        --av-border: rgba(255, 255, 255, 0.1);
        --av-border-secondary: rgba(255, 255, 255, 0.18);
        --av-border-info: #378ADD;
    }

    .av-auto.av-theme-editorial {
        --ed-paper: #161412;
        --ed-card: #1f1d1a;
        --ed-ink: #ECE8E0;
        --ed-ink-soft: #A39C8E;
        --ed-ink-faint: #6E685C;
        --ed-line: #34302A;
    }

    .av-auto.av-theme-confiance {
        --tp-bg: #1c1c1f;
        --tp-surface: #161618;
        --tp-ink: #ECECEC;
        --tp-ink-soft: #A8A8AE;
        --tp-ink-faint: #74747C;
        --tp-line: #34343A;
    }
}

/* ---- Ajustements ciblés en mode sombre ---- */

/* Les barres de répartition utilisent des couleurs fixes claires : on les garde,
   mais la piste de fond doit être sombre */
.av-dark .av-distribution-bar,
.av-dark .av-tp-dist-bar {
    background: rgba(255, 255, 255, 0.08);
}
@media (prefers-color-scheme: dark) {
    .av-auto .av-distribution-bar,
    .av-auto .av-tp-dist-bar {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* Étoiles vides : un peu plus visibles sur fond sombre */
.av-dark .av-star-empty {
    color: rgba(255, 255, 255, 0.18);
}
@media (prefers-color-scheme: dark) {
    .av-auto .av-star-empty {
        color: rgba(255, 255, 255, 0.18);
    }
}

/* Étoiles carrées Trustpilot : le carré "vide" doit être sombre */
.av-dark .av-tp-star {
    background: #34343A;
}
@media (prefers-color-scheme: dark) {
    .av-auto .av-tp-star {
        background: #34343A;
    }
}

/* Logos / avatars sur fond clair fixe : léger fond sombre à la place */
.av-dark .av-tp-logo,
.av-dark .av-vitrine-logo {
    background-color: #161618;
}
@media (prefers-color-scheme: dark) {
    .av-auto .av-tp-logo,
    .av-auto .av-vitrine-logo {
        background-color: #161618;
    }
}

/* La carte score flottante de Vitrine a un fond blanc explicite : on le repasse en sombre */
.av-dark .av-vitrine-score-card {
    background: #1c1c1f;
}
@media (prefers-color-scheme: dark) {
    .av-auto .av-vitrine-score-card {
        background: #1c1c1f;
    }
}

/* Vitrine : le fond dégradé clair explicite repasse en sombre */
.av-dark.av-theme-confiance,
.av-dark .av-vitrine {
    background: #161618;
}
@media (prefers-color-scheme: dark) {
    .av-auto.av-theme-confiance,
    .av-auto .av-vitrine {
        background: #161618;
    }
}

/* L'aperçu d'avis "recent" : fond de carte sombre */
.av-dark .av-recent-item {
    background: var(--av-bg-secondary);
}

/* Le formulaire de dépôt d'avis : champs sur fond sombre */
.av-dark .av-form-field input[type="text"],
.av-dark .av-form-field input[type="email"],
.av-dark .av-form-field select,
.av-dark .av-form-field textarea {
    background: #161618;
    color: var(--av-text-primary);
    border-color: var(--av-border-secondary);
}
@media (prefers-color-scheme: dark) {
    .av-auto .av-form-field input[type="text"],
    .av-auto .av-form-field input[type="email"],
    .av-auto .av-form-field select,
    .av-auto .av-form-field textarea {
        background: #161618;
        color: var(--av-text-primary);
        border-color: var(--av-border-secondary);
    }
}

/* ============================================ */
/* HEADER & FOOTER GLOBAUX DU SITE              */
/* ============================================ */

/* ---------- HEADER ---------- */
.av-site-header {
    background: #fff;
    border-bottom: 1px solid #e8e8ec;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.av-site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.av-site-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.av-site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.av-site-logo-img {
    display: block;
    max-height: 48px;
    width: auto;
    height: auto;
}

.av-site-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.av-site-tagline {
    font-size: 13px;
    color: #888;
    padding-left: 14px;
    border-left: 1px solid #e0e0e4;
}

@media (max-width: 600px) {
    /* Sur mobile : le slogan passe sous le logo au lieu d'être à côté
       (évite qu'il serre le logo), mais il reste bien visible. */
    .av-site-header-brand {
        flex-wrap: wrap;
    }
    .av-site-tagline {
        flex-basis: 100%;
        padding-left: 0;
        border-left: none;
        margin-top: 2px;
    }
}

/* ---------- BARRE DE RECHERCHE ---------- */
.av-site-search-bar {
    background: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid #e8e8ec;
}

.av-site-search-form {
    max-width: 1100px;
    margin: 0 auto;
}

.av-site-search-field {
    display: flex;
    align-items: center;
    background: #f3f3f5;
    border: 1px solid #e2e2e6;
    border-radius: 10px;
    overflow: hidden;
}

.av-site-search-icon {
    color: #999;
    margin-left: 14px;
    flex-shrink: 0;
}

.av-site-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 12px;
    font-size: 15px;
    color: #1a1a1a;
    background: transparent;
    min-width: 0;
}

.av-site-search-input::placeholder {
    color: #999;
}

.av-site-search-submit {
    border: none;
    background: #1a1a1a;
    color: #fff;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.av-site-search-submit:hover {
    background: #333;
}

@media (max-width: 480px) {
    .av-site-search-submit {
        padding: 13px 16px;
    }
}

/* ---------- FOOTER ---------- */
.av-site-footer {
    background: #14171c;
    color: #c4c7cd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-top: 40px;
}

.av-site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 44px 20px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 720px) {
    .av-site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .av-site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 440px) {
    .av-site-footer-inner {
        grid-template-columns: 1fr;
    }
}

.av-site-footer-brand .av-site-logo-img {
    max-height: 44px;
}

.av-site-footer-brand .av-site-logo-text {
    color: #fff;
}

.av-site-footer-desc {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #8b8f97;
    max-width: 420px;
}

.av-site-footer-col-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}

.av-site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.av-site-footer-links li {
    margin-bottom: 9px;
}

.av-site-footer-links a {
    color: #a4a8af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.av-site-footer-links a:hover {
    color: #fff;
}

.av-site-footer-bottom {
    border-top: 1px solid #262a31;
    padding: 18px 20px;
    text-align: center;
    font-size: 13px;
    color: #6f747c;
}

/* ---------- HEADER : MODE SOMBRE ---------- */
.av-site-header.av-site-dark {
    background: #1c1c1f;
    border-bottom-color: #34343a;
}

.av-site-header.av-site-dark .av-site-logo-text {
    color: #ececec;
}

.av-site-header.av-site-dark .av-site-tagline {
    color: #8b8f97;
    border-left-color: #34343a;
}

.av-site-header.av-site-dark .av-site-search-bar {
    background: #1c1c1f;
    border-bottom-color: #34343a;
}

.av-site-header.av-site-dark .av-site-search-field {
    background: #2a2a2e;
    border-color: #3a3a40;
}

.av-site-header.av-site-dark .av-site-search-input {
    color: #ececec;
}

.av-site-header.av-site-dark .av-site-search-input::placeholder {
    color: #74747c;
}

.av-site-header.av-site-dark .av-site-search-icon {
    color: #74747c;
}

.av-site-header.av-site-dark .av-site-search-submit {
    background: #f3f3f5;
    color: #1a1a1a;
}

.av-site-header.av-site-dark .av-site-search-submit:hover {
    background: #fff;
}

/* Mode AUTO : suit l'appareil */
@media (prefers-color-scheme: dark) {
    .av-site-header.av-site-auto {
        background: #1c1c1f;
        border-bottom-color: #34343a;
    }
    .av-site-header.av-site-auto .av-site-logo-text {
        color: #ececec;
    }
    .av-site-header.av-site-auto .av-site-tagline {
        color: #8b8f97;
        border-left-color: #34343a;
    }
    .av-site-header.av-site-auto .av-site-search-bar {
        background: #1c1c1f;
        border-bottom-color: #34343a;
    }
    .av-site-header.av-site-auto .av-site-search-field {
        background: #2a2a2e;
        border-color: #3a3a40;
    }
    .av-site-header.av-site-auto .av-site-search-input {
        color: #ececec;
    }
    .av-site-header.av-site-auto .av-site-search-input::placeholder {
        color: #74747c;
    }
    .av-site-header.av-site-auto .av-site-search-icon {
        color: #74747c;
    }
    .av-site-header.av-site-auto .av-site-search-submit {
        background: #f3f3f5;
        color: #1a1a1a;
    }
    .av-site-header.av-site-auto .av-site-search-submit:hover {
        background: #fff;
    }
}

/* ============================================ */
/* FILTRES COLLANTS (STICKY) AU SCROLL          */
/* ============================================ */

.av-filters-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--av-bg-primary, #fff);
    /* Léger débord pour masquer le contenu qui passe derrière sur les bords */
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
    /* Ombre douce quand le bloc est "décollé" et flotte au-dessus du contenu */
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.25);
}

/* Dans le bloc sticky, on resserre un peu les marges verticales
   pour que l'ensemble ne prenne pas trop de hauteur à l'écran */
.av-filters-sticky .av-country-filter-wrapper {
    margin-bottom: 0;
    padding-top: 10px;
}

.av-filters-sticky .av-filters-row {
    margin-top: 8px;
    padding-bottom: 10px;
}

/* Mode sombre : le fond du bloc sticky suit le thème */
.av-dark .av-filters-sticky {
    background: var(--av-bg-primary);
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
    .av-auto .av-filters-sticky {
        background: var(--av-bg-primary);
        box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.6);
    }
}

/* Sur mobile, le bloc sticky peut être un peu haut : on autorise
   le carousel pays à rester compact */
@media (max-width: 600px) {
    .av-filters-sticky {
        box-shadow: 0 3px 10px -6px rgba(0, 0, 0, 0.3);
    }
    .av-filters-sticky .av-country-filter-wrapper {
        padding-top: 8px;
    }
}

/* Si l'utilisateur a réduit les animations, rien de spécial à faire :
   position: sticky n'est pas une animation, ça reste accessible. */

/* ============================================ */
/* CONTENEUR PAGE STRUCTURE (pleine largeur)    */
/* ============================================ */

/*
 * La fiche structure prend désormais toute la largeur disponible,
 * avec une petite marge sur les côtés pour ne pas coller aux bords.
 */
.av-single-main {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    padding: 0 24px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .av-single-main {
        padding: 0 12px;
        margin: 1rem 0;
    }
}

/* =================================================================== */
/* ===  THÈME YELP — inspiré des sites d'avis américains            === */
/* =================================================================== */

.av-container.av-theme-yelp {
    --yp-red: #c4302b;
    --yp-red-dark: #8b1f1c;
    --yp-text: #1a1a1a;
    --yp-text-soft: #6a6a6a;
    --yp-border: #e5e5e5;
    --yp-yellow-bg: #fef8e8;
    --yp-yellow-border: #f0d97a;
    --yp-yellow-text: #5a4a08;
    background: #fff;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 18px;
    color: var(--yp-text);
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Bandeau photos ---- */
.av-yp-photos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 4px;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}
.av-yp-photo {
    background-size: cover;
    background-position: center;
    background-color: #d8d8d8;
}
.av-yp-photo-main {
    grid-row: 1 / 3;
    grid-column: 1;
}
.av-yp-photos[data-count="1"] {
    grid-template-columns: 1fr;
    height: 280px;
}
.av-yp-photos[data-count="1"] .av-yp-photo-main { grid-row: 1; }
.av-yp-photos[data-count="2"] { grid-template-columns: 2fr 1fr; height: 220px; }
.av-yp-photos[data-count="2"] .av-yp-photo-main { grid-row: 1; }
.av-yp-photos[data-count="3"] {
    grid-template-columns: 2fr 1fr;
    height: 220px;
}
.av-yp-photos[data-count="3"] .av-yp-photo-main { grid-row: 1 / 3; }

.av-yp-photos-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ---- En-tête ---- */
.av-yp-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.av-yp-head-main {
    flex: 1;
    min-width: 220px;
}
.av-yp-name {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--yp-text);
}
.av-yp-verified {
    display: inline-block;
    background: var(--yp-red);
    color: #fff;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 700;
}
.av-yp-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    font-size: 14px;
}
.av-yp-rating .av-star-full,
.av-yp-rating .av-stars,
.av-yp-rating .av-star-half,
.av-yp-rev-stars .av-star-full,
.av-yp-rev-stars .av-stars {
    color: var(--yp-red) !important;
}
.av-yp-rating .av-star-empty,
.av-yp-rev-stars .av-star-empty {
    color: #e5dcc8 !important;
}
.av-yp-rating-num {
    font-weight: 700;
    font-size: 15px;
}
.av-yp-rating-count {
    color: var(--yp-text);
    font-size: 14px;
}
.av-yp-meta {
    font-size: 14px;
    color: var(--yp-text-soft);
}
.av-yp-cat {
    color: var(--yp-text);
    font-weight: 500;
}
.av-yp-dot {
    color: var(--yp-text-soft);
    margin: 0 3px;
}
.av-yp-write-btn {
    background: var(--yp-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.av-yp-write-btn:hover {
    background: var(--yp-red-dark);
    color: #fff;
}

/* ---- Boutons d'action ---- */
.av-yp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.av-yp-action {
    background: #fff;
    border: 1px solid var(--yp-text);
    color: var(--yp-text);
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.av-yp-action:hover {
    background: #f5f5f5;
    color: var(--yp-text);
}
.av-yp-action-ic {
    font-size: 14px;
}

/* ---- Bandeau highlights jaune ---- */
.av-yp-highlights {
    background: var(--yp-yellow-bg);
    border: 1px solid var(--yp-yellow-border);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.av-yp-highlights-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--yp-yellow-text);
    margin-bottom: 8px;
}
.av-yp-highlights-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.av-yp-highlight {
    background: #fff;
    border: 1px solid #d4ba50;
    color: var(--yp-yellow-text);
    border-radius: 14px;
    padding: 4px 11px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.av-yp-pitch {
    font-size: 15px;
    color: var(--yp-text);
    margin-bottom: 16px;
    line-height: 1.55;
    padding: 10px 0;
    border-top: 1px solid var(--yp-border);
    border-bottom: 1px solid var(--yp-border);
}

/* ---- En-tête section avis ---- */
.av-yp-reviews-head {
    margin: 18px 0 10px;
}
.av-yp-section-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--yp-text);
}

/* ---- Filtres en chips ---- */
.av-yp-filters {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--yp-border);
}
.av-yp-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}
.av-yp-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--yp-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}
.av-yp-chip {
    background: #fff;
    border: 1px solid var(--yp-text);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--yp-text);
    text-decoration: none;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.av-yp-chip:hover {
    background: #f5f5f5;
    color: var(--yp-text);
}
.av-yp-chip-active {
    background: var(--yp-text) !important;
    color: #fff !important;
    border-color: var(--yp-text);
    font-weight: 700;
}
.av-yp-chip-sm {
    padding: 5px 10px;
    font-size: 12.5px;
}

/* ---- Avis ---- */
.av-yp-review {
    padding: 14px 0;
    border-bottom: 1px solid var(--yp-border);
}
.av-yp-rev-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.av-yp-rev-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.av-yp-rev-author {
    flex: 1;
    min-width: 0;
}
.av-yp-rev-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--yp-text);
}
.av-yp-rev-loc {
    font-size: 12px;
    color: var(--yp-text-soft);
}
.av-yp-rev-verified {
    background: #e6f4ed;
    color: #00875c;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.av-yp-rev-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--yp-text-soft);
    margin-bottom: 6px;
}
.av-yp-rev-stars {
    font-size: 14px;
    letter-spacing: 1px;
}
.av-yp-rev-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--yp-text);
}
.av-yp-rev-content {
    font-size: 14px;
    line-height: 1.55;
    color: var(--yp-text);
}
.av-yp-rev-actions {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--yp-text-soft);
    font-weight: 600;
}
.av-yp-rev-action {
    display: inline-block;
}

/* ---- Vide / pagination ---- */
.av-yp-empty {
    padding: 30px 16px;
    text-align: center;
    color: var(--yp-text-soft);
    font-size: 14px;
    background: #fafafa;
    border-radius: 6px;
}

/* ---- Responsive : sur petit écran, la mosaïque photos se simplifie ---- */
@media (max-width: 600px) {
    .av-yp-photos {
        height: 160px;
    }
    .av-yp-name {
        font-size: 22px;
    }
    .av-yp-write-btn {
        width: 100%;
        text-align: center;
    }
    .av-yp-actions {
        gap: 6px;
    }
    .av-yp-action {
        padding: 7px 10px;
        font-size: 12px;
    }
}

/* ---- Yelp : photos d'avis ---- */
.av-yp-rev-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.av-yp-rev-photo {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--yp-border);
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}
.av-yp-rev-photo:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.av-yp-rev-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Yelp : réponse du propriétaire de la structure ---- */
.av-yp-rev-reply {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f9f4ec;
    border-left: 3px solid var(--yp-red);
    border-radius: 0 4px 4px 0;
}
.av-yp-rev-reply-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--yp-text-soft);
    margin-bottom: 4px;
}
.av-yp-rev-reply-label strong {
    color: var(--yp-text);
}
.av-yp-rev-reply-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--yp-text);
}
.av-yp-rev-reply-text p:first-child {
    margin-top: 0;
}
.av-yp-rev-reply-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .av-yp-rev-photo {
        width: 72px;
        height: 72px;
    }
}
