/* =========================================================================
 * Preuves : réalisations, avis clients, badge Google (inc/preuves.php)
 * Page /realisations/ (.pv) + composants réutilisés sur l'accueil.
 * ========================================================================= */

.pv {
    --pv-ink: #0b0b14;
    --pv-navy: #12126b;
    --pv-navy-600: #1c1c86;
    --pv-surface: #f6f7f9;
    --pv-line: rgba(12, 12, 30, 0.1);
    --pv-muted: #5b5b6b;
    --pv-ease: cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--pv-ink);
    background: #fff;
}

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

.pv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .pv-container {
        padding: 0 24px;
    }
}

.pv-hero {
    padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
}

.pv-eyebrow {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pv-navy);
}

.pv-display {
    margin: 0;
    font-family: 'Anton', 'Arial Narrow', system-ui, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2.4rem, 6.4vw, 4.4rem);
    line-height: 0.95;
}

.pv-lead {
    margin: 18px 0 0;
    max-width: 38rem;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--pv-muted);
}

.pv-badge-row {
    margin-top: 22px;
}

.pv-section {
    padding: clamp(32px, 6vw, 72px) 0;
}

.pv-section--surface {
    background: var(--pv-surface);
}

.pv-head {
    margin-bottom: 28px;
}

.pv-title {
    margin: 0;
    font-family: 'Anton', system-ui, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    line-height: 1;
}

.pv-empty {
    padding: 40px 0;
    color: var(--pv-muted);
    text-align: center;
}

.pv-review-cta {
    margin: 22px 0 0;
    font-weight: 600;
}

.pv-review-cta a {
    color: var(--pv-navy);
}

.pv-cta {
    padding: clamp(48px, 7vw, 88px) 0;
    background: var(--pv-navy);
    color: #fff;
    text-align: center;
}

.pv-cta h2 {
    margin: 0 0 22px;
    font-family: 'Anton', system-ui, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.pv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--pv-navy);
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms var(--pv-ease), box-shadow 200ms ease;
}

.pv-btn:active {
    transform: scale(0.97);
}

/* ---------- Filtres ---------- */
.real-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.real-filter {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(12, 12, 30, 0.16);
    background: #fff;
    color: #0b0b14;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.real-filter:active {
    transform: scale(0.97);
}

.real-filter.is-active {
    background: #0b0b14;
    border-color: #0b0b14;
    color: #fff;
}

/* ---------- Grille ---------- */
.real-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

@media (max-width: 560px) {
    .real-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.real-item {
    margin: 0;
}

.real-item[hidden] {
    display: none;
}

.real-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f2f2f5;
    cursor: zoom-in;
    text-align: left;
    font: inherit;
}

.real-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

.real-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
    color: #fff;
}

.real-caption strong {
    font-size: 0.98rem;
    line-height: 1.25;
}

.real-caption span {
    font-size: 0.8rem;
    opacity: 0.85;
}

@media (max-width: 560px) {
    .real-caption {
        padding: 30px 10px 10px;
    }
    .real-caption span {
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .real-card:hover img {
        transform: scale(1.04);
    }
}

.real-card:focus-visible {
    outline: 3px solid #12126b;
    outline-offset: 3px;
}

/* ---------- Agrandissement ---------- */
.real-dialog {
    width: min(960px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.real-dialog::backdrop {
    background: rgba(8, 8, 16, 0.72);
}

.real-dialog[open] {
    animation: realIn 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes realIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
}

.real-dialog img {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #f2f2f5;
}

.real-dialog-text {
    padding: 16px 20px 20px;
}

.real-dialog-text h2 {
    margin: 0;
    font-size: 1.2rem;
}

.real-dialog-meta {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: #5b5b6b;
}

.real-dialog-text p:last-child:not(:empty) {
    margin: 10px 0 0;
}

.real-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ---------- Badge Google ---------- */
.g-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(12, 12, 30, 0.12);
    color: #0b0b14;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.5);
    transition: border-color 200ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.g-badge:active {
    transform: scale(0.97);
}

.g-badge-logo {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

.g-badge-score {
    font-weight: 800;
}

.g-badge-count {
    color: #5b5b6b;
}

@media (hover: hover) and (pointer: fine) {
    .g-badge:hover {
        border-color: #0b0b14;
    }
}

/* ---------- Étoiles ---------- */
.stars {
    color: #f5a524;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stars-off {
    color: #d9d9df;
}

/* ---------- Avis ---------- */
.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.avis-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(12, 12, 30, 0.1);
}

.avis-card blockquote {
    margin: 12px 0 16px;
    padding: 0;
    border: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #0b0b14;
    font-style: normal;
}

.avis-card blockquote p {
    margin: 0 0 0.6em;
}

.avis-card blockquote p:last-child {
    margin-bottom: 0;
}

.avis-card figcaption {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
    color: #5b5b6b;
}

.avis-card figcaption strong {
    color: #0b0b14;
    font-size: 0.95rem;
}

.avis-src {
    font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
    .real-dialog[open] {
        animation: none;
    }
    .real-card img {
        transition: none;
    }
}
