﻿.gin-details-container {
    margin-top: 20px;
}

.gin-details-info {
    background-color: #f8f9fa; /* Fond clair pour les informations */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ombre subtile */
}

.gin-details-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto; /* Centrage de l'image */
}

.gin-details-info h5 {
    color: #007bff; /* Couleur du titre */
    margin-bottom: 15px;
}

.gin-details-info p {
    margin-bottom: 10px; /* Espacement entre les paragraphes */
    line-height: 1.5; /* Espacement des lignes */
}

.fa-star {
    color: darkgoldenrod; /* Couleur des étoiles */
}

/* =============== Modern Tabs & Layout =============== */
.gin-details-wrapper {
    --grad: linear-gradient(135deg, var(--gin-primary, #BC70A4), var(--gin-secondary, #BFD641));
    --soft-bg: #FFF7FB;
    --panel-bg: #ffffff;
    --soft-border: rgba(0,0,0,0.06);
    --radius: 18px;
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO */
.gin-hero {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel-bg);
    position: relative;
}

.gin-image-frame {
    border: 4px solid;
    border-image: var(--grad) 1;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    display: inline-block;
}

.gin-main-image {
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
}

.gin-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--gin-on-grad, #222);
    font-weight: 700;
    letter-spacing: .5px;
    background: none;
    -webkit-background-clip: initial;
}

/* Action Bar */
.action-bar .action-pill {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 2px solid var(--gin-primary, #BC70A4);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all .18s;
    color: var(--gin-primary, #BC70A4);
    position: relative;
}

    .action-bar .action-pill:hover {
        background: var(--gin-primary, #BC70A4);
        color: var(--gin-on-primary, #ffffff);
        box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    }

    .action-bar .action-pill.active {
        background: var(--gin-secondary, #BFD641);
        border-color: var(--gin-secondary, #BFD641);
        color: var(--gin-on-secondary, #222222);
        font-weight: 600;
        box-shadow: 0 4px 14px rgba(191,214,65,0.45);
    }

/* Meta Grid */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 6px 14px;
    font-size: 0.85rem;
}

.meta-label {
    background: #f5f5f7;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    letter-spacing: .2px;
}

/* Rating inline */
.rating-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.star-btn {
    background: #fff;
    border: 1px solid var(--gin-primary,#BC70A4);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .15s;
    color: var(--gin-primary,#BC70A4);
    font-size: 0.9rem;
    padding: 0;
}

    .star-btn.filled,
    .star-btn:hover {
        background: var(--gin-primary,#BC70A4);
        color: #fff;
    }

/* Badge sur dégradé: texte contrasté */
.user-rating-badge {
    background: var(--grad);
    color: var(--gin-on-grad, #222);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Tabs */
.gin-tabs {
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, rgba(188,112,164,0.12), rgba(191,214,65,0.15));
    border-radius: 14px;
    padding: 4px 8px;
    gap: 4px;
}

    .gin-tabs .nav-link {
        border: none !important;
        position: relative;
        font-weight: 600;
        color: #555;
        border-radius: 10px;
        padding: 10px 16px;
        transition: .18s;
        background: rgba(255,255,255,0.65);
        backdrop-filter: blur(6px);
    }

        .gin-tabs .nav-link:hover {
            color: #222;
            background: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,.08);
        }


        /* Tabs actifs: texte contrasté */
        .gin-tabs .nav-link.active {
            background: var(--grad);
            color: var(--gin-on-grad, #222);
            box-shadow: 0 4px 16px rgba(0,0,0,.12);
        }

/* Panels */
.soft-panel {
    border: none;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 22px -6px rgba(0,0,0,0.12);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: #222;
}

.sub-heading {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .1rem;
    font-weight: 600;
    color: var(--gin-primary,#BC70A4);
    margin-bottom: 4px;
}

/* Perfect Serve */
.perfect-serve-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    position: relative;
}

.gradient-border {
    background: linear-gradient(#fff,#fff) padding-box, linear-gradient(120deg,var(--gin-primary,#BC70A4),var(--gin-secondary,#BFD641)) border-box;
    border: 2px solid transparent;
}

.perfect-serve-card .card-header {
    background: linear-gradient(90deg, var(--gin-primary,#BC70A4), var(--gin-secondary,#BFD641));
    color: #222;
    font-weight: 600;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .5px;
    background: #f4f4f6;
    border: 1px solid #e3e3e5;
    color: #333;
}

.tonic-pill {
    background: linear-gradient(90deg, rgba(188,112,164,0.12), rgba(191,214,65,0.12));
    border: 1px solid rgba(188,112,164,0.35);
}

.garnish-pill {
    background: #fff;
    border: 1px solid rgba(191,214,65,0.45);
}

.advice-box {
    background: #FFFBEA;
    border: 1px solid #F5E3A4;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.3;
}

.btn-serve {
    background: var(--grad);
    border: none;
    padding: 14px 26px;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 6px 20px -6px rgba(0,0,0,0.25);
    transition: .18s;
}

    .btn-serve:hover {
        filter: brightness(1.02);
        transform: translateY(-2px);
    }

/* Flavors */
.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(90px,1fr));
    gap: 14px;
}

.flavor-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flavor-thumb {
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    border: 2px solid var(--gin-primary,#BC70A4);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .flavor-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

.flavor-label {
    font-size: 0.7rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.1;
}

/* Ingrédients */
.ingredients-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.9rem;
}

    .ingredients-list li {
        padding: 6px 0;
        border-bottom: 1px dashed #eee;
    }

        .ingredients-list li:last-child {
            border-bottom: none;
        }

/* Comments */
.comment-box {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 14px;
}

.other-comment {
    background: #fdfdfd;
    border: 1px solid #eee;
}

.comments-list {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

    /* Scrollbars (optional) */
    .comments-list::-webkit-scrollbar {
        width: 8px;
    }

    .comments-list::-webkit-scrollbar-track {
        background: #f3f3f3;
        border-radius: 10px;
    }

    .comments-list::-webkit-scrollbar-thumb {
        background: linear-gradient(var(--gin-primary,#BC70A4), var(--gin-secondary,#BFD641));
        border-radius: 10px;
    }

/* Responsive tweaks */
@media (max-width: 880px) {
    .meta-grid {
        grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    }

    .gin-main-image {
        max-height: 260px;
    }

    .action-bar .action-pill {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    /* Fond interne unifié */
    .gin-details-body {
        background: linear-gradient(180deg,#ffffff 0%, #fffdfc 60%, rgba(234,222,219,0.35) 100%);
        padding: 18px 18px 32px;
        border-radius: 22px;
        box-shadow: 0 10px 34px -12px rgba(0,0,0,0.18), 0 4px 14px -6px rgba(0,0,0,0.08);
    }

    /* Chaque bloc interne */
    .gin-block + .gin-block {
        margin-top: 1.25rem;
    }

    /* Description améliorée */
    .description-block {
        position: relative;
    }

        .description-block .description-header {
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(90deg,var(--gin-primary,#BC70A4), var(--gin-secondary,#BFD641));
            -webkit-background-clip: text;
            color: transparent;
            margin-bottom: 10px;
        }

        .description-block .desc-paragraph {
            text-align: justify;
            line-height: 1.5;
            margin-bottom: 0.75rem;
            font-size: 0.97rem;
        }

            .description-block .desc-paragraph:first-letter {
                font-size: 1.35rem;
                font-weight: 600;
                padding-right: 4px;
                line-height: 1;
                color: var(--gin-primary,#BC70A4);
            }
}

/* Description card alignée sur le style Perfect Serve */
.description-card {
    border-radius: 18px;
    overflow: hidden;
}

    .description-card .card-header {
        background: linear-gradient(90deg, var(--gin-primary,#BC70A4), var(--gin-secondary,#BFD641));
        color: #222;
        font-weight: 600;
        padding: 12px 18px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

        .description-card .card-header i {
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
        }

    .description-card .description-body {
        padding: 18px 20px 22px;
    }

    .description-card .desc-paragraph {
        line-height: 1.5;
        text-align: justify;
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
    }

        .description-card .desc-paragraph:first-letter {
            font-size: 1.35rem;
            font-weight: 600;
            padding-right: 4px;
            line-height: 1;
            color: var(--gin-primary,#BC70A4);
        }

/*ajout*/
.desc-paragraph {
    text-align: justify;
    line-height: 1.55;
    font-size: 1.03rem;
    margin-bottom: 1.1rem;
    font-weight: 400;
    color: #333;
}

    /* Belle lettrine premium */
    .desc-paragraph:first-letter {
        font-size: 1.45rem;
        font-weight: 700;
        margin-right: 4px;
        color: var(--gin-primary,#BC70A4);
        float: left;
    }

.desc-paragraph {
    position: relative;
}

    .desc-paragraph:not(:last-child)::after {
        content: "";
        display: block;
        width: 40%;
        margin: 0.8rem auto 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    }