#general
{
    display: flex;
    flex-direction: column;
    margin: auto;
    text-align: left;
    float: none;
}

/* Bouteilles présentoire */
#wine-showcase
{
    display: flex;
    gap: 58px;
    align-items: stretch;
    margin: 48px auto 26px;
    max-width: 980px;
    width: 90%;
}

#wine-view
{
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 620px;
    background: linear-gradient(180deg, #fffdfb 0%, #f3eee8 100%);
    border: 1px solid #dfcec2;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(62, 39, 31, 0.16);
    overflow: hidden;
    perspective: 900px;
    position: relative;
    touch-action: pan-y;
}

#wine-image
{
    height: 570px;
    object-fit: contain;
    transform-origin: center center;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
}

.wine-image-clone
{
    height: 570px;
    left: 50%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    z-index: 2;
}

#wine-info
{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 13px;
    height: 620px;
    color: #2f2825;
    font-size: 1.04em;
    font-family: Georgia, "Times New Roman", serif;
    padding: 10px 0;
}

#wine-name
{
    margin: 0;
    text-align: left;
    font-size: 2em;
    color: #8f171d;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.1;
}

#wine-appellation
{
    margin: -6px 0 8px 0;
    text-align: left;
    color: #6f6660;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

#wine-highlights
{
    display: block;
    margin: 0;
    position: relative;
}

#wine-features
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding-right: 116px;
}

#wine-medals
{
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.wine-medal
{
    display: block;
    height: 100px;
    max-width: none;
    object-fit: contain;
    width: 100px;
}

.wine-tag
{
    border: 1px solid #cfa9a1;
    border-radius: 999px;
    color: #7c171c;
    background: #fff7f5;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78em;
    font-weight: bold;
    letter-spacing: 0.3px;
    padding: 7px 12px;
    text-transform: uppercase;
}

#wine-cepages
{
    margin: 4px 0 8px;
    color: #8f171d;
    font-style: italic;
    font-size: 1.08em;
}

#wine-description
{
    border-top: 1px solid #dfcec2;
    border-bottom: 1px solid #dfcec2;
    flex: 1 1 auto;
    font-style: italic;
    line-height: 1.65;
    margin: 4px 0;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 0;
}

#wine-description p
{
    margin: 0 0 14px;
}

#wine-description p:last-child
{
    margin-bottom: 0;
}

#wine-meta
{
    display: grid;
    gap: 10px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    color: #463e3a;
    font-style: italic;
    margin-top: 4px;
}

#wine-meta p
{
    background: #f8f2ee;
    border-left: 3px solid #8f171d;
    margin: 0;
    padding: 10px 12px;
}

#wine-meta .label
{
    display: block;
    font-weight: bold;
    color: #2f2825;
    font-style: normal;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78em;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.wine-shop-button
{
    align-self: flex-start;
    margin-top: 4px;
}

/* Bouttons de navigation du présentoir */

.wine-nav
{
    align-items: center;
    background: rgba(255, 253, 251, 0.86);
    border: 1px solid #dfcec2;
    border-radius: 50%;
    color: #8f171d;
    cursor: pointer;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3em;
    height: 54px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 6px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    width: 54px;
    z-index: 4;
}

.wine-nav:hover
{
    background: #fffdfb;
    box-shadow: 0 8px 18px rgba(62, 39, 31, 0.14);
}

.wine-nav-prev
{
    left: 18px;
}

.wine-nav-next
{
    right: 18px;
}

/* Sélecteur de vins */

#wine-selector
{
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 10px auto 48px;
    max-width: 980px;
    width: 90%;
}

.wine-selector-row
{
    align-items: center;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 12px 14px;
    scrollbar-width: thin;
}

.wine-selector-thumbs
{
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    margin: 0 auto;
    min-height: 92px;
}

.wine-thumb
{
    align-items: flex-end;
    background: #fffdfb;
    border: 1px solid #dfcec2;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(62, 39, 31, 0.08);
    cursor: pointer;
    display: flex;
    flex: 0 0 64px;
    height: 92px;
    justify-content: center;
    padding: 8px 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.72;
    width: 64px;
}

.wine-thumb img
{
    height: 76px;
    object-fit: contain;
    width: auto;
    display: block;
}

.wine-thumb.active
{
    border-color: #8f171d;
    box-shadow: 0 12px 24px rgba(143, 23, 29, 0.2);
    transform: translateY(-10px);
    opacity: 1;
}

.bottle-slide-right-enter
{
    animation: bottle-slide-right-enter 0.55s ease-out;
}

.bottle-slide-left-enter
{
    animation: bottle-slide-left-enter 0.55s ease-out;
}

.bottle-slide-left-exit
{
    animation: bottle-slide-left-exit 0.5s ease-in forwards;
}

.bottle-slide-right-exit
{
    animation: bottle-slide-right-exit 0.5s ease-in forwards;
}

.fade-in
{
    animation: text-fade 0.5s ease-in-out;
}

@keyframes bottle-slide-right-enter
{
    0% { opacity: 0; transform: translateX(90px) rotate(4deg); }
    100% { opacity: 1; transform: translateX(0) rotate(0deg); }
}

@keyframes bottle-slide-left-enter
{
    0% { opacity: 0; transform: translateX(-90px) rotate(-4deg); }
    100% { opacity: 1; transform: translateX(0) rotate(0deg); }
}

@keyframes bottle-slide-left-exit
{
    0% { opacity: 1; transform: translate(-50%, -50%) translateX(0) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) translateX(-120px) rotate(-5deg); }
}

@keyframes bottle-slide-right-exit
{
    0% { opacity: 1; transform: translate(-50%, -50%) translateX(0) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) translateX(120px) rotate(5deg); }
}

@keyframes text-fade
{
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}
