/* Ma Cave - Accords mets & vins */
.accord-hero { min-height: 300px; }
.accord-hero h1 { max-width: 760px; }
.accord-hero h1 span { display: block; }
.accord-stock { max-width: 430px; }

.cave-nav .nav-link.active {
    color: #fff;
    background: rgba(116,33,63,.28);
    box-shadow: inset 0 0 0 1px rgba(217,138,162,.12);
}

.accord-shell { padding-top: 26px; padding-bottom: 60px; }
.accord-search-panel {
    position: sticky;
    top: 78px;
    z-index: 20;
    margin-bottom: 18px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: rgba(34,12,20,.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.accord-search-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}
.accord-search-head h2 { margin: 0; font-size: 1.14rem; font-weight: 780; }
.accord-search-head .eyebrow { margin-bottom: .25rem; font-size: .64rem; }
.accord-counter {
    display: flex;
    align-items: baseline;
    justify-content: end;
    flex-wrap: wrap;
    gap: .3rem;
    color: var(--muted);
    font-size: .7rem;
}
.accord-counter strong { color: #fff; font-size: 1.05rem; }
.counter-dot { color: #705d64; padding: 0 .15rem; }
.accord-search-box .form-control { font-size: .94rem; }
.accord-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .9rem;
    margin-top: .8rem;
}
.accord-filters .filter-chip { display: inline-flex; align-items: center; gap: .35rem; }
.accord-hint {
    color: #9f8f94;
    font-size: .7rem;
    white-space: nowrap;
}
.accord-hint i { color: var(--wine-300); margin-right: .25rem; }

.accord-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.accord-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(49,16,29,.84), rgba(23,9,14,.96));
    box-shadow: 0 13px 34px rgba(0,0,0,.16);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.accord-card:hover {
    transform: translateY(-2px);
    border-color: rgba(217,138,162,.22);
    background: linear-gradient(145deg, rgba(60,18,34,.88), rgba(25,9,15,.97));
}
.accord-card-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: .75rem;
    padding-bottom: .85rem;
    margin-bottom: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.065);
}
.accord-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(116,33,63,.20);
    border: 1px solid rgba(255,255,255,.07);
    color: #e7a9bb;
    font-size: 1rem;
}
.family-poissons { color: #a9cfe4; background: rgba(58,105,132,.15); }
.family-fromages { color: #ead89d; background: rgba(154,126,42,.13); }
.family-autres { color: #d8b7e8; background: rgba(104,61,126,.14); }
.accord-title-wrap { min-width: 0; }
.source-badge {
    display: inline-block;
    margin-bottom: .26rem;
    color: #8e7c82;
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.accord-card h3 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    line-height: 1.15;
}
.accord-label {
    margin-bottom: .55rem;
    color: #8f7f84;
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.wine-suggestions { display: grid; gap: 6px; }
.wine-suggestion {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-height: 38px;
    padding: .55rem .65rem;
    color: #e2d6d9;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    font-size: .76rem;
    line-height: 1.25;
    transition: .14s ease;
}
.wine-suggestion span { min-width: 0; overflow-wrap: anywhere; }
.wine-suggestion i { flex: 0 0 auto; color: var(--wine-300); font-size: .72rem; }
.wine-suggestion:hover,
.wine-suggestion:focus {
    color: #fff;
    border-color: rgba(217,138,162,.25);
    background: rgba(116,33,63,.22);
}

.accord-empty {
    margin: 1rem 0;
    padding: 3rem 1rem;
    text-align: center;
    border: 1px dashed rgba(255,255,255,.11);
    border-radius: 14px;
    color: #ad9da2;
}
.accord-empty i { display: block; margin-bottom: .7rem; color: var(--wine-300); font-size: 1.8rem; }
.accord-empty h3 { color: #eee5e7; font-size: 1rem; }
.accord-empty p { margin: 0; font-size: .78rem; }

.source-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .8rem;
    margin-top: 18px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: rgba(255,255,255,.018);
}
.source-note > i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--wine-300);
    background: rgba(116,33,63,.18);
}
.source-note strong { display: block; color: #e7dcdf; font-size: .78rem; }
.source-note p { margin: .25rem 0 0; color: #8f8085; font-size: .69rem; line-height: 1.45; }

@media (max-width: 1199.98px) {
    .accord-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .accord-shell { padding-top: 14px; }
    .accord-search-panel { top: 70px; }
    .accord-filter-row { display: block; }
    .accord-hint { margin-top: .55rem; white-space: normal; }
}

@media (max-width: 575.98px) {
    .accord-hero { min-height: 280px; }
    .accord-hero h1 { font-size: 2rem; }
    .accord-hero h1 span { font-size: .88em; }
    .accord-shell { padding-bottom: 42px; }
    .accord-search-panel {
        top: 68px;
        padding: .78rem;
        margin-inline: -2px;
        border-radius: 12px;
    }
    .accord-search-head { align-items: start; }
    .accord-search-head h2 { font-size: .95rem; }
    .accord-counter { max-width: 120px; font-size: .62rem; }
    .accord-counter strong { font-size: .9rem; }
    .accord-counter .counter-dot { display: none; }
    .accord-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }
    .accord-filters::-webkit-scrollbar { display: none; }
    .accord-grid { grid-template-columns: 1fr; gap: 9px; }
    .accord-card { padding: .82rem; border-radius: 12px; }
    .accord-card-head { padding-bottom: .68rem; margin-bottom: .68rem; }
    .accord-card h3 { font-size: 1.04rem; }
    .wine-suggestion { min-height: 44px; padding: .65rem .7rem; font-size: .78rem; }
    .source-note { margin-top: 12px; }
}

/* Tableau des millésimes — volontairement sobre */
.vintage-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.075);
}
.vintage-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 12px;
}
.vintage-heading h2 {
    margin: 0;
    color: #f1e8ea;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}
.vintage-heading p {
    margin: .3rem 0 0;
    color: #8f8085;
    font-size: .72rem;
}
.vintage-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    color: #a9999e;
    font-size: .68rem;
}
.vintage-legend span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}
.rating-dots { color: #2d9964; letter-spacing: .05em; }
.rating-heart { color: #dc684f; font-size: 1rem; line-height: 1; }

.vintage-table-wrap {
    position: relative;
    overflow: auto;
    max-width: 100%;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: #160a0f;
    scrollbar-width: thin;
    scrollbar-color: #5d2739 #160a0f;
}
.vintage-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #ddd1d4;
    font-size: .69rem;
    line-height: 1.1;
}
.vintage-table th,
.vintage-table td {
    height: 38px;
    padding: .42rem .48rem;
    border-right: 1px solid rgba(255,255,255,.055);
    border-bottom: 1px solid rgba(255,255,255,.055);
    text-align: center;
    vertical-align: middle;
    background: #160a0f;
}
.vintage-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    min-width: 54px;
    color: #f2e9eb;
    background: #261019;
    font-size: .67rem;
    font-weight: 800;
}
.vintage-table tbody tr:last-child th,
.vintage-table tbody tr:last-child td { border-bottom: 0; }
.vintage-table tr > *:last-child { border-right: 0; }
.vintage-table tbody tr:hover td,
.vintage-table tbody tr:hover .wine-color { background: #1d0d13; }

.vintage-table .sticky-region {
    position: sticky;
    left: 0;
    z-index: 4;
    width: 146px;
    min-width: 146px;
    max-width: 146px;
    text-align: left;
    background: #1c0c12;
}
.vintage-table thead .sticky-region { z-index: 8; background: #35101f; }
.vintage-table .sticky-color {
    position: sticky;
    left: 146px;
    z-index: 3;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    text-align: left;
    background: #1a0b11;
    box-shadow: 8px 0 14px rgba(0,0,0,.12);
}
.vintage-table thead .sticky-color { z-index: 7; background: #35101f; }
.vintage-table .region-name {
    color: #eee2e5;
    font-weight: 750;
    line-height: 1.2;
}
.vintage-table .wine-color {
    color: #bbaeb2;
    font-weight: 700;
}
.vintage-rating {
    min-width: 58px;
    font-weight: 800;
    letter-spacing: .04em;
}
.vintage-rating.is-dots { color: #2f9966; }
.vintage-rating.is-heart { color: #dc684f; font-size: .95rem; }
.rating-empty { color: #51454a; font-weight: 500; }
.vintage-source {
    margin: .55rem .15rem 0;
    color: #776a6f;
    font-size: .64rem;
}
.vintage-source i { margin-right: .3rem; color: #9b6678; }

@media (max-width: 767.98px) {
    .vintage-section { margin-top: 22px; padding-top: 18px; }
    .vintage-heading { display: block; }
    .vintage-legend {
        justify-content: flex-start;
        margin-top: .75rem;
        gap: .4rem .8rem;
        font-size: .64rem;
    }
    .vintage-table-wrap {
        margin-inline: -4px;
        border-radius: 10px;
    }
    .vintage-table { font-size: .65rem; }
    .vintage-table th,
    .vintage-table td { height: 36px; padding: .38rem .4rem; }
    .vintage-table .sticky-region {
        width: 112px;
        min-width: 112px;
        max-width: 112px;
    }
    .vintage-table .sticky-color {
        left: 112px;
        width: 58px;
        min-width: 58px;
        max-width: 58px;
    }
    .vintage-rating { min-width: 52px; }
}


/* La recherche rapide disparaît dans la section Millésimes. */
.accord-search-panel {
    transition: opacity .18s ease, transform .18s ease;
}
.accord-search-panel.is-hidden-for-vintages {
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .accord-search-panel { transition: none; }
}
