* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style-type: none;
    font-family: "Montserrat", sans-serif;
}

a,
a:visited {
    color: #eee;
    text-decoration: none;
}

input,
select {
    outline: none;
    background: #b01735;
    border: none;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #b01735;
    color: #eee;
}

#root {
    transition: 0.3s;
}

i {
    cursor: pointer;
}

.lobby-container {
    background: #3e0018;
    height: 100%;
    min-height: 90vh;
    border-radius: 56px 56px 20px 20px;
    margin: 54px auto 20px;
    padding-bottom: 20px;
    max-width: 1150px;
}
.lobby-container .cancel {
    display: flex;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #eee;
    border-radius: 25px;
    padding: 10px 16px;
    cursor: pointer;
    transition: 0.2s;
}
.lobby-container .cancel i {
    transform: translate(4px, 2px);
    font-size: 0.8rem;
}
.lobby-container .cancel:hover {
    background: #eee;
    color: #3e0018;
}
.lobby-container ul {
    display: flex;
    justify-content: space-around;
    font-size: 2.5rem;
    width: 90%;
    margin: 0 auto 0;
    position: relative;
    color: #3e0018;
}
.lobby-container ul li {
    background: #eae0da;
    padding: 10px 18px;
    width: 70px;
    text-align: center;
    border-radius: 50%;
    margin-top: -34px;
    box-shadow: 0 0 4px #333;
    cursor: pointer;
    transition: 0.3s;
}
.lobby-container ul .search,
.lobby-container ul select,
.lobby-container ul .radio-container {
    border-radius: 40px;
    height: 60px;
    position: absolute;
    top: 45px;
    padding: 0 20px;
    color: #3e0018;
    max-width: 550px;
}
.lobby-container ul .name input {
    left: 0px;
    width: 90%;
    transform-origin: left;
    transform: scaleX(0);
    animation: animInput 0.5s ease forwards;
    font-family: "Montserrat", sans-serif;
}
.lobby-container ul .name input::placeholder {
    font-size: 1.3rem;
    color: #3e0018;
    transform: translateY(2px);
}
@keyframes animInput {
    to {
        transform: scaleX(1);
    }
}
.lobby-container ul .name i {
    transform: translateX(-2px);
}
.lobby-container ul .country i {
    transform: translate(-1px, 1px);
}
.lobby-container ul .country select {
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    animation: animInput2 0.4s ease forwards;
    transform: scaleX(0);
    transform-origin: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #eae0da;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b01735' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    border: none;
    outline: none;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    color: #3e0018;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.lobby-container ul .country select option {
    background: #eae0da;
    color: #3e0018;
}
@keyframes animInput2 {
    to {
        transform: scaleX(1) translateX(-50%);
    }
}
.lobby-container ul .grapes .radio-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    right: 0;
    width: 90%;
    background: #b01735;
    transform-origin: right;
    transform: scaleX(0);
    animation: animInput 0.5s ease forwards;
}
@media screen and (max-width: 650px) {
    .lobby-container ul .grapes .radio-container {
        width: 100%;
    }
}
.lobby-container ul .grapes .radio-container .radio {
    display: flex;
    align-items: center;
}
.lobby-container ul .grapes .radio-container .radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.lobby-container ul .grapes .radio-container .radio label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 9px 16px;
    border: 2px solid #eae0da;
    border-radius: 22px;
    color: #eae0da;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}
.lobby-container ul .grapes .radio-container .radio label:hover {
    background: rgba(234, 224, 218, 0.18);
}
.lobby-container ul .grapes .radio-container .radio input:checked + label {
    background: #eae0da;
    color: #b01735;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
@media screen and (max-width: 650px) {
    .lobby-container ul .grapes .radio-container .radio label {
        font-size: 0.72rem;
        padding: 7px 10px;
    }
}
.lobby-container .title {
    position: absolute;
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    letter-spacing: 2px;
    left: 50%;
    transform: translate(-50%, 18px);
    width: 450px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: #eae0da;
}
.lobby-container h3 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 130px;
}
.lobby-container .list-container {
    display: flex;
    flex-wrap: wrap;
    margin: 72px auto 0;
}
@media screen and (min-width: 850px) {
    .lobby-container .list-container .wine-list {
        width: 50%;
    }
}
.lobby-container .list-container .wine-card {
    background: #eae0da;
    border-radius: 25px;
    padding: 20px;
    overflow: hidden;
    position: relative;
    height: 440px;
    box-shadow: 1px 1px 5px rgba(226, 226, 226, 0.178);
    margin: 14px auto 0;
}
.lobby-container .list-container .wine-card:nth-child(1),
.lobby-container .list-container .wine-card:nth-child(2) {
    margin-top: 14px;
}
@media screen and (min-width: 850px) {
    .lobby-container .list-container .wine-card {
        width: 98%;
    }
}
@media screen and (max-width: 550px) {
    .lobby-container .list-container .wine-card {
        height: 340px;
    }
}
.lobby-container .list-container .wine-card:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100px;
    background: url("./images/card-bg.jpg") center 75% / cover;
    top: 0;
    left: 0;
    opacity: 0.55;
    border-radius: 0 0 120px 45%/60px;
}
.lobby-container .list-container .wine-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 20px 42px;
}
.lobby-container .list-container .wine-card .card-header h2 {
    padding: 0;
    z-index: 20;
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    color: #eee;
}
@media screen and (max-width: 550px) {
    .lobby-container .list-container .wine-card .card-header h2 {
        font-size: 1.3rem;
    }
}
.lobby-container .list-container .wine-card .card-header i {
    margin-right: 6px;
    font-size: 1.3rem;
    z-index: 20;
}
.lobby-container .list-container .container {
    display: grid;
    grid-template-columns: 73% 27%;
}
.lobby-container .list-container .container .text-container .buttons {
    display: flex;
    margin: 24px 0 20px;
    width: 100%;
    justify-content: space-between;
}
.lobby-container .list-container .container .text-container .buttons h4 {
    background: #3e0018;
    border-radius: 20px;
    padding: 10px 10px;
    box-shadow: 0 0 4px #333;
}
@media screen and (max-width: 550px) {
    .lobby-container .list-container .container .text-container .buttons h4 {
        font-size: 0.8rem;
    }
}
.lobby-container .list-container .container .text-container .location {
    margin: 20px 0 20px;
    color: #3e0018;
}
.lobby-container .list-container .container .text-container .location i {
    color: #b01735;
    font-size: 1.4rem;
    margin-right: 6px;
}
.lobby-container .list-container .container .text-container .location span {
    font-size: 1.3rem;
}
.lobby-container .list-container .container .text-container p {
    font-weight: 100;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    overflow: hidden;
    color: #3e0018;
    font-family: "Montserrat", sans-serif;
    line-height: 24px;
}
@media screen and (max-width: 550px) {
    .lobby-container .list-container .container .text-container p {
        -webkit-line-clamp: 4;
    }
}
.lobby-container .list-container .container img {
    margin: 0 auto;
    padding: 20px 0 0 20px;
    max-height: 300px;
}
@media screen and (max-width: 550px) {
    .lobby-container .list-container .container img {
        height: 200px;
    }
}

/* Carte cliquable (lien vers le détail) */
.lobby-container .list-container .wine-list {
    display: block;
    color: inherit;
}
.lobby-container .list-container .wine-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.lobby-container .list-container .wine-list:hover .wine-card {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Page détail d'un vin */
.wine-detail {
    max-width: 1150px;
    margin: 30px auto 40px;
    padding: 0 20px;
}
.wine-detail .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.wine-detail .back-link:hover {
    text-decoration: underline;
}
.wine-detail > h3 {
    text-align: center;
    margin-top: 60px;
}
.wine-detail .detail-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    background: #3e0018;
    border-radius: 30px;
    padding: 40px;
    align-items: center;
}
.wine-detail .detail-card img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    margin: 0 auto;
}
.wine-detail .detail-info h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #eae0da;
}
.wine-detail .detail-info .detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.wine-detail .detail-info .detail-tags span {
    background: #b01735;
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 0 0 4px #333;
}
.wine-detail .detail-info .detail-location {
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.wine-detail .detail-info .detail-location i {
    color: #b01735;
    margin-right: 8px;
}
.wine-detail .detail-info p {
    line-height: 26px;
    font-weight: 300;
    font-size: 1.1rem;
}
@media screen and (max-width: 650px) {
    .wine-detail .detail-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }
    .wine-detail .detail-card img {
        max-height: 320px;
    }
    .wine-detail .detail-info .detail-tags,
    .wine-detail .detail-info .detail-location {
        justify-content: center;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    margin: 20px auto 0;
    max-width: 1150px;
    position: relative;
}
nav img {
    width: 60%;
    cursor: pointer;
    margin-left: 10px;
}
nav ul {
    position: relative;
}
nav ul .fas {
    font-size: 2rem;
    margin: 18px 25px 0 0;
    color: #eae0da;
}
