
/* Délai légèrement différent sur cette page */
.scroll-hint { animation: fadeIn 1s ease 1.2s forwards; }

/* ─── APPELLATION SHOWCASE SECTIONS ─── */
.appellation-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.appellation-section:nth-child(odd) {
    background-color: var(--dark);
}

.appellation-section:nth-child(even) {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 50%, var(--dark) 100%);
}

.appellation-section:nth-child(even)::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 58,17 58,52 30,67 2,52 2,17' fill='none' stroke='rgba(170,132,25,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 70px;
    pointer-events: none;
}

.appellation-inner {
    display: flex;
    gap: 70px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.appellation-section:nth-child(even) .appellation-inner {
    flex-direction: row-reverse;
}

/* ─── BOTTLE COLUMN ─── */
.bottle-col {
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.bottle-col.visible {
    opacity: 1;
    transform: translateY(0);
}

.bottle-img {
    max-height: 380px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.7));
    transition: filter 0.4s ease, transform 0.4s ease;
}

.bottle-img:hover {
    filter: drop-shadow(0 30px 60px rgba(170,132,25,0.25));
    transform: translateY(-6px);
}

/* ─── STATS ROW ─── */
.stats-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    border-top: 1px solid rgba(170,132,25,0.2);
    padding-top: 30px;
    width: 100%;
}

.stat-item { text-align: center; }

.stat-item .num {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--gold-light) !important;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item .label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: rgba(250,243,221,0.4) !important;
    text-transform: uppercase;
}

/* ─── WINE LIST COLUMN ─── */
.wine-col {
    flex: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.appellation-section:nth-child(even) .wine-col {
    transform: translateX(-30px);
}

.wine-col.visible {
    opacity: 1;
    transform: translateX(0);
}

.appellation-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--cream) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

.appellation-name::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-top: 10px;
}

.appellation-desc {
    font-size: 0.9rem;
    color: rgba(250,243,221,0.55) !important;
    line-height: 1.8;
    margin: 20px 0 36px;
}

/* ─── WINE ITEMS ─── */
.wine-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(170,132,25,0.15);
}

.wine-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(170,132,25,0.1);
    transition: border-color 0.25s ease;
    cursor: pointer;
    gap: 12px;
}

.wine-list-item:hover { border-bottom-color: rgba(170,132,25,0.4) !important; }

.wine-list-item:hover .wine-item-name { color: var(--cream) !important; }

.wine-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.wine-item-idx {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: rgba(170,132,25,0.5) !important;
    letter-spacing: 0.1em;
    min-width: 24px;
}

.wine-item-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: rgba(250,243,221,0.8) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.wine-item-badge {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gold) !important;
    border: 1px solid rgba(170,132,25,0.35);
    padding: 3px 8px;
    border-radius: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.wine-item-btn {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--gold) !important;
    background: none;
    border: 1px solid rgba(170,132,25,0.3);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.wine-item-btn:hover {
    background: rgba(170,132,25,0.15);
    border-color: var(--gold) !important;
    color: var(--gold-light);
}

/* ─── OTHER APPELLATIONS GRID ─── */
.other-appellations-section {
    padding: 100px 0;
    background-color: var(--dark-2);
    position: relative;
    overflow: hidden;
}

.other-appellations-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(170,132,25,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(170,132,25,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.appellation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.appellation-card {
    background: var(--dark-3);
    border: 1px solid rgba(170,132,25,0.15);
    border-radius: 2px;
    padding: 28px 24px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.appellation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.appellation-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(170,132,25,0.12);
    transform: translateY(-4px);
}

.appellation-card::before {
    content: attr(data-num);
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--mono);
    font-size: 0.6rem;
    color: rgba(170,132,25,0.3) !important;
    letter-spacing: 0.1em;
}

.card-tag {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gold) !important;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--cream) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.card-name::after {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    background: var(--gold);
    margin-top: 8px;
}

.card-desc {
    font-size: 0.82rem;
    color: rgba(250,243,221,0.5) !important;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.card-cuvees {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cuvee-pill {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: rgba(250,243,221,0.45) !important;
    border: 1px solid rgba(170,132,25,0.2);
    padding: 3px 8px;
    border-radius: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.appellation-card:hover .cuvee-pill {
    border-color: rgba(170,132,25,0.4);
    color: rgba(250,243,221,0.7) !important;
}

/* ─── MODAL ─── */
.modal-content {
    background-color: var(--dark-3) !important;
    color: var(--cream) !important;
    font-family: 'Lora', serif;
    border: 1px solid rgba(170,132,25,0.3) !important;
    border-radius: 2px !important;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.modal-header {
    border-bottom: 1px solid rgba(170,132,25,0.2);
    padding: 20px 28px;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold) !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.modal-subtitle {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: rgba(170,132,25,0.6) !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 4px;
}

.btn-close {
    filter: invert(65%) sepia(52%) saturate(600%) hue-rotate(20deg);
    opacity: 0.8;
}

.modal-body {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.modal-body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 160px; height: 160px;
    background: radial-gradient(circle at top left, rgba(170,132,25,0.06), transparent 70%);
    pointer-events: none;
}

.modal-bottle {
    max-height: 280px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

.modal-wine-name {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--cream) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.modal-appellation-name {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--gold) !important;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.modal-text {
    font-size: 0.88rem;
    color: rgba(250,243,221,0.65) !important;
    line-height: 1.9;
    text-align: justify;
}

.modal-divider {
    border: none;
    border-top: 1px solid rgba(170,132,25,0.15);
    margin: 20px 0;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.modal-tag {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(250,243,221,0.5) !important;
    border: 1px solid rgba(170,132,25,0.25);
    padding: 4px 10px;
    border-radius: 1px;
    text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .appellation-inner {
        flex-direction: column !important;
        align-items: center;
        padding: 0 20px;
    }

    .bottle-col {
        flex: none;
        width: 100%;
        max-width: 360px;
    }

    .wine-col { transform: translateX(0) !important; }

    .appellation-cards { grid-template-columns: repeat(2, 1fr); }

    .btn-outline-gold { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 540px) {
    .appellation-cards { grid-template-columns: 1fr; }
    .stats-row { gap: 20px; }
}
