@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* HolyCloud — avis clients (éditorial, navy #162E62) */
.hc-rev {
    --hc-navy: #162E62;
    --hc-ink: #12233f;
    --hc-muted: #5b6b86;
    --hc-line: rgba(22, 46, 98, 0.12);
    --hc-soft: #eef2f8;
    --hc-paper: #f6f8fc;
    position: relative;
    padding: clamp(3.5rem, 6vw, 5.5rem) 0;
    color: var(--hc-ink);
    background:
        radial-gradient(1000px 420px at 8% 0%, rgba(22, 46, 98, 0.07), transparent 60%),
        linear-gradient(180deg, #fbfcfe 0%, var(--hc-paper) 48%, #f4f7fb 100%);
    overflow: hidden;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.hc-rev::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hc-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hc-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.35), transparent 78%);
    pointer-events: none;
    opacity: .55;
}

.hc-rev > .container {
    position: relative;
    z-index: 1;
}

.hc-rev__head {
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.hc-rev__head-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 1rem 2.5rem;
    align-items: end;
}

.hc-rev__title {
    margin: 0;
    max-width: 14ch;
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    color: var(--hc-navy);
}

.hc-rev__lead {
    margin: 0;
    max-width: 38ch;
    color: var(--hc-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.hc-rev__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .72fr);
    gap: clamp(1.75rem, 3vw, 3rem);
    align-items: stretch;
}

.hc-rev__stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hc-rev__viewport {
    position: relative;
    min-height: 280px;
}

.hc-rev__quote {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 1.6rem 1.7rem 1.45rem;
    border: 1px solid var(--hc-line);
    border-left: 3px solid var(--hc-navy);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .45s ease, transform .45s ease;
}

.hc-rev__quote.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

.hc-rev__mark {
    margin: 0 0 .35rem;
    font-family: Outfit, sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: .7;
    color: var(--hc-navy);
    opacity: .28;
}

.hc-rev__kicker {
    margin: 0 0 .55rem;
    font-family: Outfit, "Source Sans 3", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--hc-navy);
}

.hc-rev__text {
    margin: 0;
    max-width: 42ch;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.6;
}

.hc-rev__who {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hc-line);
}

.hc-rev__avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--hc-navy);
    color: #fff;
    font-family: Outfit, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.hc-rev__meta {
    display: grid;
    gap: .12rem;
    min-width: 0;
}

.hc-rev__meta strong {
    font-family: Outfit, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--hc-ink);
}

.hc-rev__meta span {
    color: var(--hc-muted);
    font-size: .86rem;
}

.hc-rev__controls {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}

.hc-rev__nav {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--hc-line);
    border-radius: 4px;
    background: #fff;
    color: var(--hc-navy);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.hc-rev__nav:hover,
.hc-rev__nav:focus-visible {
    background: var(--hc-navy);
    border-color: var(--hc-navy);
    color: #fff;
    outline: none;
}

.hc-rev__counter {
    margin: 0 .35rem 0 .15rem;
    font-family: Outfit, sans-serif;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--hc-navy);
    font-variant-numeric: tabular-nums;
}

.hc-rev__counter-sep {
    margin: 0 .2rem;
    opacity: .4;
}

.hc-rev__progress {
    flex: 1 1 120px;
    min-width: 100px;
    height: 2px;
    background: rgba(22, 46, 98, 0.12);
    border-radius: 1px;
    overflow: hidden;
}

.hc-rev__progress-bar {
    display: block;
    height: 100%;
    width: 16.66%;
    background: var(--hc-navy);
    transition: width .45s ease;
}

.hc-rev__aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    padding: 1.55rem 1.45rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.08), transparent 42%),
        linear-gradient(135deg, #1a376f 0%, #162E62 55%, #0f1f45 100%);
    color: #e8eef8;
}

.hc-rev__aside::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 220px;
    height: 220px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(18deg);
    pointer-events: none;
}

.hc-rev__aside > * {
    position: relative;
    z-index: 1;
}

.hc-rev__rating {
    display: flex;
    align-items: flex-end;
    gap: .9rem;
}

.hc-rev__rating-value {
    margin: 0;
    font-family: Outfit, sans-serif;
    font-size: clamp(3rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .9;
    color: #fff;
}

.hc-rev__rating-meta {
    display: grid;
    gap: .2rem;
    padding-bottom: .15rem;
}

.hc-rev__rating-label {
    margin: 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hc-rev__rating-stars {
    display: flex;
    gap: .2rem;
    margin: 0;
}

.hc-rev__rating-stars span {
    width: 11px;
    height: 11px;
    background: #00b67a;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.hc-rev__rating-count {
    margin: 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, 0.78);
}

.hc-rev__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .7rem;
}

.hc-rev__points li {
    position: relative;
    padding-left: .95rem;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.hc-rev__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 5px;
    height: 5px;
    background: #7eb6ff;
}

.hc-rev__trust {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: .88rem;
    font-weight: 600;
    transition: color .2s ease;
}

.hc-rev__trust:hover,
.hc-rev__trust:focus-visible {
    color: #fff;
    outline: none;
}

.hc-rev__trust img {
    display: block;
    width: 132px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .92;
}

@media (prefers-reduced-motion: reduce) {
    .hc-rev__quote {
        transition: none;
    }
}

@media (max-width: 980px) {
    .hc-rev__head-grid,
    .hc-rev__layout {
        grid-template-columns: 1fr;
    }

    .hc-rev__title {
        max-width: none;
    }

    .hc-rev__viewport {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .hc-rev__quote {
        padding: 1.25rem 1.15rem 1.15rem;
    }

    .hc-rev__text {
        font-size: 1rem;
    }

    .hc-rev__viewport {
        min-height: 320px;
    }

    .hc-rev__aside {
        padding: 1.2rem;
    }
}
