/* homy-platform-reviews.css — shortcode [homy_platform_reviews] */

/* ============================================
   CAROUSEL CONTAINER
   ============================================ */
.homy-pr-carousel {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 40px; /* place pour les dots dessous */
}

/* Sur desktop : on réserve l'espace latéral pour les arrows à côté des cartes */
@media (min-width: 1024px) {
    .homy-pr-carousel {
        padding-left: 56px;
        padding-right: 56px;
    }
}

.homy-pr-viewport {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.homy-pr-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* ============================================
   CARTES — taille en fonction du nb de colonnes
   ============================================ */
.homy-pr-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    flex-shrink: 0;

    /* Mobile : variable --homy-pr-cols-mobile (défaut 1) */
    width: calc(
        (100% - (var(--homy-pr-cols-mobile, 1) - 1) * 24px) / var(--homy-pr-cols-mobile, 1)
    );
}

/* Tablette : variable --homy-pr-cols-tablet (défaut 2) */
@media (min-width: 768px) {
    .homy-pr-card {
        width: calc(
            (100% - (var(--homy-pr-cols-tablet, 2) - 1) * 24px) / var(--homy-pr-cols-tablet, 2)
        );
    }
}

/* Desktop : variable --homy-pr-cols (défaut 3) */
@media (min-width: 1024px) {
    .homy-pr-card {
        width: calc(
            (100% - (var(--homy-pr-cols, 3) - 1) * 24px) / var(--homy-pr-cols, 3)
        );
    }
}

/* ============================================
   QUOTE
   ============================================ */
.homy-pr-quote {
    font-family: "Neue Kabel", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: #2C192D;
    margin: 0;
}

/* ============================================
   META (avatar + nom + rôle)
   ============================================ */
.homy-pr-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.homy-pr-avatar {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    border-radius: 100px !important;
    border: 1px solid #2C192D !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    background: #f0f0f0;
    aspect-ratio: 1 / 1 !important;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

/* Placeholder : avatar par défaut (image SVG) */
.homy-pr-avatar--placeholder {
    background: #f0f0f0 !important;
    object-fit: contain !important;
}

.homy-pr-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.homy-pr-name {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #2C192D;
    line-height: 1.3;
}

.homy-pr-role {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #A17DB3;
    line-height: 1.3;
}

/* ============================================
   ARROWS (desktop only) — flèche simple, noire → bleue au hover
   !important pour battre les styles Elementor / thème
   ============================================ */
.homy-pr-arrow,
.homy-pr-carousel .homy-pr-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: #2C192D !important;
    cursor: pointer !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    transition: color 0.2s, transform 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    font-size: inherit !important;
}

.homy-pr-arrow:hover,
.homy-pr-carousel .homy-pr-arrow:hover {
    color: #3CB4E8 !important;
    transform: translateY(-50%) scale(1.15) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.homy-pr-arrow:focus,
.homy-pr-arrow:active,
.homy-pr-carousel .homy-pr-arrow:focus,
.homy-pr-carousel .homy-pr-arrow:active {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.homy-pr-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.homy-pr-arrow svg {
    width: 36px !important;
    height: 36px !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
    fill: none !important;
    display: block !important;
}

/* Position dans la padding du carrousel */
.homy-pr-arrow--prev { left: 12px !important; }
.homy-pr-arrow--next { right: 12px !important; }

/* Visible uniquement sur desktop */
@media (min-width: 1024px) {
    .homy-pr-arrow,
    .homy-pr-carousel .homy-pr-arrow { display: flex !important; }
}

/* ============================================
   DOTS (toutes tailles, surtout utiles en mobile)
   ============================================ */
.homy-pr-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 0;
}

.homy-pr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(44, 25, 45, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.homy-pr-dot:hover {
    background: rgba(44, 25, 45, 0.5);
}

.homy-pr-dot.is-active {
    background: #2C192D;
    transform: scale(1.3);
}

/* ============================================
   ÉTAT VIDE (aucun avis approuvé)
   ============================================ */
.homy-platform-reviews--empty {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.homy-pr-card--empty {
    text-align: center;
    align-items: center;
    padding: 40px 32px;
}

.homy-pr-empty-text {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #2C192D;
    opacity: 0.7;
    line-height: 1.5;
    margin: 0;
    max-width: 420px;
}
