/* =========================================================
   Page : /pages/mets-vins.php
   Style CMS blanc / noir / rouge
   ========================================================= */

:root {
    --mv-bg: #f5f5f7;
    --mv-card: #ffffff;
    --mv-card-2: #fafafa;
    --mv-text: #111111;
    --mv-text-soft: #5b5f6a;
    --mv-border: #e8e8ec;
    --mv-black: #111111;
    --mv-red: #ff2b2b;
    --mv-red-dark: #d90f0f;
    --mv-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --mv-radius-lg: 24px;
    --mv-radius-md: 18px;
    --mv-radius-sm: 14px;
}

.mv-page-card {
    background: transparent;
}

.mv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid var(--mv-border);
    border-radius: 28px;
    box-shadow: var(--mv-shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.mv-head__content {
    flex: 1 1 auto;
}

.mv-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 43, 43, 0.08);
    color: var(--mv-red-dark);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.mv-title {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.05;
    color: var(--mv-black);
    letter-spacing: -0.02em;
}

.mv-subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--mv-text-soft);
    max-width: 900px;
}

.mv-badge {
    flex: 0 0 auto;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #111111 0%, #262626 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.mv-badge__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    font-size: 1.3rem;
}

.mv-badge__title {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
}

.mv-badge__sub {
    font-size: 0.92rem;
    line-height: 1.4;
    opacity: 0.82;
    margin-top: 4px;
}

.mv-card {
    background: var(--mv-card);
    border: 1px solid var(--mv-border);
    border-radius: var(--mv-radius-lg);
    box-shadow: var(--mv-shadow);
}

.mv-card--controls {
    padding: 22px;
    margin-bottom: 24px;
}

.mv-controls {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 0.8fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.mv-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mv-field label,
.mv-rangeHead label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mv-black);
}

.mv-input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--mv-border);
    border-radius: 16px;
    background: #fff;
    color: var(--mv-black);
    padding: 0 16px;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mv-input:focus {
    border-color: rgba(255, 43, 43, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 43, 43, 0.08);
}

.mv-field--range {
    justify-content: center;
}

.mv-rangeHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mv-rangeValue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #111111;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.mv-range {
    width: 100%;
    accent-color: var(--mv-red);
    cursor: pointer;
}

.mv-rangeLabels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--mv-text-soft);
    font-size: 0.82rem;
}

.mv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.mv-btn {
    appearance: none;
    border: 1px solid var(--mv-border);
    background: #fff;
    color: var(--mv-black);
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mv-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.mv-btn--primary {
    background: linear-gradient(135deg, var(--mv-red) 0%, var(--mv-red-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 43, 43, 0.22);
}

.mv-btn--ghost {
    background: #fafafa;
}

.mv-tip {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 43, 43, 0.16);
    background: linear-gradient(135deg, rgba(255,43,43,0.04) 0%, rgba(0,0,0,0.02) 100%);
    color: #5b5f6a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mv-results {
    margin-bottom: 24px;
}

.mv-empty {
    padding: 48px 24px;
    border: 2px dashed rgba(255, 43, 43, 0.18);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(255,43,43,0.05), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    text-align: center;
}

.mv-empty__icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.mv-empty__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mv-black);
    margin-bottom: 8px;
}

.mv-empty__sub {
    color: var(--mv-text-soft);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 820px;
    margin: 0 auto;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mv-wine {
    position: relative;
    padding: 22px;
    overflow: hidden;
}

.mv-wine::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--mv-red), #111111);
    opacity: 0.95;
}

.mv-pillScore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: 0.86rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.mv-pillScore.is-3 {
    background: rgba(255, 43, 43, 0.10);
    color: var(--mv-red-dark);
    border-color: rgba(255, 43, 43, 0.18);
}

.mv-pillScore.is-2 {
    background: rgba(17, 17, 17, 0.06);
    color: #222;
    border-color: rgba(17, 17, 17, 0.08);
}

.mv-pillScore.is-1 {
    background: #fafafa;
    color: #666;
    border-color: var(--mv-border);
}

.mv-wine__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.mv-wine__title {
    font-size: 1.14rem;
    font-weight: 800;
    color: var(--mv-black);
    line-height: 1.3;
    margin-bottom: 6px;
}

.mv-wine__sub {
    color: var(--mv-text-soft);
    font-size: 0.93rem;
    line-height: 1.5;
}

.mv-stars {
    flex: 0 0 auto;
    color: #ffb400;
    font-size: 1.05rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.mv-bullet {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid var(--mv-border);
    margin-bottom: 12px;
}

.mv-bullet__ico {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--mv-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-bullet__txt {
    color: var(--mv-text);
    font-size: 0.94rem;
    line-height: 1.55;
}

.mv-profile {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 1px solid var(--mv-border);
}

.mv-profileHead {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--mv-black);
}

.mv-profileHead > :first-child {
    white-space: nowrap;
}

.mv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 43, 43, 0.07);
    color: #a10d0d;
    font-size: 0.86rem;
    font-weight: 700;
    border: 1px solid rgba(255, 43, 43, 0.12);
    white-space: nowrap;
    flex-shrink: 0;
}

.mv-bar {
    height: 12px;
    border-radius: 999px;
    background: #ededf1;
    overflow: hidden;
    position: relative;
}

.mv-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111111 0%, var(--mv-red) 100%);
}

.mv-barLabels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--mv-text-soft);
}

.mv-ctaRow {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.mv-ctaRow .mv-btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.mv-ctaRow .mv-chip {
    flex: 0 0 auto;
    white-space: nowrap;
}

.mv-cta {
    background: #111111;
    color: #fff;
    border-color: #111111;
}

.mv-cta:hover {
    background: var(--mv-red-dark);
    border-color: var(--mv-red-dark);
    color: #fff;
}

.mv-card--footer {
    padding: 18px;
}

.mv-foot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mv-foot__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid var(--mv-border);
}

.mv-foot__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 43, 43, 0.08);
    flex: 0 0 auto;
}

.mv-foot__title {
    font-weight: 800;
    color: var(--mv-black);
    margin-bottom: 4px;
}

.mv-foot__sub,
.muted {
    color: var(--mv-text-soft);
}

/* Responsive */
@media (max-width: 1200px) {
    .mv-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mv-head {
        flex-direction: column;
    }

    .mv-badge {
        width: 100%;
        min-width: 0;
    }

    .mv-foot {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mv-head,
    .mv-card--controls,
    .mv-card--footer {
        padding: 18px;
    }

    .mv-controls {
        grid-template-columns: 1fr;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .mv-actions {
        flex-direction: column;
    }

    .mv-btn,
    .mv-cta {
        width: 100%;
    }

    .mv-wine__top,
    .mv-profileHead,
    .mv-ctaRow {
        flex-direction: column;
        align-items: flex-start;
    }
}