﻿/* Conteneur principal */
.container-gins {
    padding: 20px;
}
.container-fluid {
    /*background: linear-gradient(140deg, #EADEDB 0%, #BC70A4 50%, #BFD641 75%);*/
    /*min-height: 100vh;*/ /* S'assure que ça couvre toute la hauteur */
}
.row {
    /*background: linear-gradient(140deg, #EADEDB 0%, #BC70A4 50%, #BFD641 75%);*/
    /*background: linear-gradient(to bottom, rgba(234, 222, 219, 0.3) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 1) 70%, rgba(188, 112, 164, 0.3) 100%);
*/
    /*background-color: #ffffff;
    background-image: radial-gradient(circle at 10% 20%, rgba(234, 222, 219, 0.2) 10%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(188, 112, 164, 0.2) 10%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(191, 214, 65, 0.2) 10%, transparent 50%);
    background-size: cover;*/
    background: transparent !important;
    
}
/* Styles globaux des cartes */
.gin-card {
    transition: transform 0.2s ease-in-out; /* Animation de survol */
    cursor: pointer; /* Indique que la carte est cliquable */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 600px;
    margin-bottom: 5px;
    position: relative; /* Important pour placer le ::before */
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
    .gin-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0.2rem;
        padding: 3px; /* Épaisseur de la bordure */
        /*background: linear-gradient(140deg, #EADEDB 0%, #BC70A4 50%, #BFD641 75%);*/
        background: lightgrey;
        -webkit-mask: linear-gradient(white, white) content-box, linear-gradient(white, white);
        -webkit-mask-composite: destination-out;
        mask-composite: exclude;
        pointer-events: none; /* Empêche d'interagir avec */
        transition: background 0.3s ease-in-out;
    }
    .gin-card:hover::before {
        background: grey;/*linear-gradient(140deg, #EADEDB 0%, #BC70A4 50%, #BFD641 75%);*/
        padding: 5px;
    }
    .gin-card:hover {
        transform: scale(1.03); /* Effet de zoom léger au survol */
        box-shadow: 0 10px 8px rgba(0, 0, 0, 0.2); /* Ombre portée pour le relief */

    }

    /* Image de la carte */
    /* Image de la carte */
    .gin-card img {
        width: 100%;
        max-width: 100%; /* S'assure que l'image ne dépasse pas du conteneur */
        height: 400px; /* Garde le ratio de l'image */
        display: inline-block; /* Pour permettre le centrage text-align du conteneur */
    }

.gin-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* L'image est ajustée pour être entièrement visible */
    display: block;
}
        /* Conteneur de l'image */
.gin-card-img-container {
    text-align: center; /* Centre le contenu */
    padding: 10px; /* Ajoute un peu d'espace autour de l'image */
    border: 2px solid darkred; /* Bordure colorée, ajustez la couleur selon le thème */
    margin-bottom: 15px; /* Espacement sous le conteneur d'image */
    width: 100%;
    height: 400px; /* Hauteur fixe pour le conteneur d'image */
    display: flex;
    align-items: center; /* Centre verticalement l'image */
    justify-content: center; /* Centre horizontalement l'image */
    overflow: hidden; /* Empêche les débordements */
    background-color: white;
}

    /* Titre de la carte */
    .gin-card h3 {
        color: #333; /* Couleur de texte plus sombre pour le contraste */
        margin-bottom: 10px; /* Espacement sous le titre */
    }

    /* Liste des caractéristiques */
    .gin-card ul {
        list-style: none; /* Supprime les puces */
        padding: 0; /* Supprime le padding par défaut */
        margin-bottom: 15px; /* Espacement sous la liste */
    }

        .gin-card ul li {
            margin-bottom: 5px; /* Espacement entre les items */
            display: flex; /* Pour aligner les icônes et le texte */
            align-items: center; /* Centre verticalement les éléments */
        }

    /* Icône d'étoile */
    .gin-card i.fa-star,
    .gin-card i.fa-star-half-stroke,
    .gin-card i.fa-regular.fa-star {
        color: darkgoldenrod; /* Couleur des étoiles */
        margin-right: 5px; /* Espacement à droite de l'icône */
    }

    /* Bouton de détails */
    .details-btn-container {
        text-align: center; /* Centre le bouton */
        width: 100%; /* Prend toute la largeur pour forcer le bouton à sa propre ligne */
        margin-top: 10px; /* Espacement au-dessus du bouton */
    }

    .gin-card .btn-primary {
        width: auto; /* Annule la largeur totale définie précédemment */
    }


.gin-card-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap; /* Empêche le retour à la ligne */
    overflow: hidden; /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Ajoute "..." si le texte dépasse */
    max-width: 100%; /* Assure que le texte reste dans la carte */
    font-weight: bold;
    font-size: 0.8rem; /* Taille de police par défaut */
    padding: 4px;
    font-size: clamp(0.5rem, 3vw, 0.8rem);
}
/* Réduire la taille de la police si le texte est trop long */
@media screen and (max-width: 300px) {
    .gin-card-title {
        font-size: 1rem;
    }
}

@media screen and (max-width: 250px) {
    .gin-card-title {
        font-size: 0.9rem;
    }
}


/* Espacement entre les cartes */
.row .col-md-4 {
    margin-bottom: 20px; /* Espacement vertical entre les rangées de cartes */
}

@media (min-width: 768px) {
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }

        .row .col-md-4 {
            padding-right: 10px;
            padding-left: 10px;
        }
}

/*Message*/
.message-success {
    color: green;
    border: 2px solid green;
    padding: 10px;
    border-radius: 5px;
}

.message-error {
    color: red;
    border: 2px solid red;
    padding: 10px;
    border-radius: 5px;
}


/*Color Box*/
.color-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.proposed-colors {
    display: flex;
    flex-wrap: nowrap; /* Empêche le passage à la ligne */
    gap: 10px; /* Espacement entre les couleurs */
    margin-bottom: 10px;
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
}

.color-box {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.selectable:hover {
    border: 2px solid black;
    transform: scale(1.1);
}

.color-edit {
    margin-top: 15px;
}

input[type="color"] {
    border: none;
    width: 50px;
    height: 30px;
    cursor: pointer;
}

button.btn-sm {
    font-size: 0.85rem;
    white-space: nowrap;
}

.gin-info-box {
    background: #F8ECEA;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*Spinner*/
.gin-loader {
    width: 120px;
    height: 200px;
    margin: auto;
}

.liquid {
    animation: fillGin 2.5s ease-in-out infinite;
    transform-origin: bottom;
}

@keyframes fillGin {
    0%, 100% {
        height: 1000px;
        y: 135;
    }

    50% {
        height: 65px;
        y: 70;
    }
}

/*
TEST*/
.gin-card-modern {
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(188,112,164,0.10), 0 1.5px 6px rgba(60,0,40,0.06);
    background: #fff;
    overflow: hidden;
    z-index: 1;
    transition: box-shadow 0.4s cubic-bezier(.2,.8,.2,1);
    min-height: 420px;
    max-width: 320px;
    min-width: 320px;
    height: 420px;
    margin: 10px auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .gin-card-modern:hover {
        box-shadow: 0 6px 32px rgba(188,112,164,0.18), 0 3px 12px rgba(60,0,40,0.12);
    }

.gin-card-header {
    height: 60px;
    width: 100%;
    background: linear-gradient(90deg, var(--gin-primary, #BC70A4), var(--gin-secondary, #BFD641));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gin-card-badge {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.09);
    width: 36px;
    height: 36px;
    border: 3px solid var(--gin-primary, #BC70A4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--gin-primary, #BC70A4);
    font-size: 1rem;
}

.gin-card-image {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: 160px;
    height: 200px;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    border: 2.5px solid var(--gin-primary, #BC70A4);
    transition: filter 0.18s;
}

.gin-card-modern:hover .gin-card-image {
    filter: drop-shadow(0 10px 24px rgba(188,112,164,0.13));
}

.gin-card-content {
    padding: 160px 20px 18px 20px; /* 200 image + 18 top + 12 marge sécurité */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gin-card-title {
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: .02em;
    margin-bottom: 4px;
    text-align: center;
    color: #222;
}

.gin-card-infos {
    display: flex;
    justify-content: center;
    gap: 0.7em;
    align-items: center;
    margin-bottom: 0.2em;
}

.gin-card-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 0 0;
}

    .gin-card-actions .action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        font-size: 1.15rem; /* Taille du bouton, pas de l'icône */
        color: #BC70A4;
        transition: color 0.12s, box-shadow 0.15s;
        outline: none;
        position: relative;
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 14px;
        cursor: pointer;
    }

        .gin-card-actions .action-btn.active {
            color: #BFD641;
            box-shadow: 0 0 0 2.5px #BFD64133;
            background: #F8ECEA;
        }

        .gin-card-actions .action-btn .action-label {
            font-size: 0.78rem;
            color: #888;
            margin-top: 2px;
            line-height: 1;
            text-align: center;
            pointer-events: none;
        }

        .gin-card-actions .action-btn.active .action-label {
            color: #BFD641;
            font-weight: 600;
        }

        .gin-card-actions .action-btn:hover {
            color: #222;
        }

.gin-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 5px;
}

    .gin-card-rating .fa-star,
    .gin-card-rating .fa-regular.fa-star,
    .gin-card-rating .fa-star-half-stroke {
        color: darkgoldenrod !important;
        font-size: 1rem;
    }


/* GinCard Read */
/* Variante de carte pour la page de lecture détaillée */
.gin-card-read {
    /* si un jour tu veux un style différent global, tu peux le mettre ici */
}

/* Conteneur principal texte (titre + rating) */
.gin-read-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ligne note moyenne + nombre de votes */
.gin-read-rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Style du compteur de votes */
.gin-read-votes {
    font-size: 0.8rem;
    color: #999;
}

/* Badges Featured / New dans le header */
.gin-read-chip-featured,
.gin-read-chip-new {
    position: absolute;
    right: 16px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.9);
    color: #BC70A4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gin-read-chip-new {
    right: 16px;
    top: 34px;
    color: #F39C12;
}

.gin-read-chip-featured {
    top: 14px;
}

/* Statistiques sous les boutons (coeur / wishlist / bar) */
.gin-read-social-stats {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #BC70A4;
}

.gin-read-social-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FDF1F7;
    padding: 3px 8px;
    border-radius: 999px;
}

    .gin-read-social-item i {
        font-size: 0.8rem;
    }

/* Ligne commentaires + likes sous la note */
.gin-read-meta-row {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gin-read-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #BC70A4;
    background: #FDF1F7;
    padding: 3px 8px;
    border-radius: 999px;
}

    .gin-read-meta-item i {
        font-size: 0.8rem;
    }
/* Titre un poil plus aéré sur la variante Read */
.gin-card-read .gin-card-title {
    margin-bottom: 6px;
}

/* Ligne meta : déjà bien, on garde, on ajoute juste un léger hover */
.gin-read-meta-row {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.gin-read-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #BC70A4;
    background: #FDF1F7;
    padding: 3px 9px;
    border-radius: 999px;
    transition: box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.gin-read-meta-item i {
    font-size: 0.8rem;
}

/* Version “muted” pour les compteurs à 0 */
.gin-read-meta-item-muted {
    opacity: 0.45;
}

/* Micro-interaction au survol (desktop) */
.gin-card-read:hover .gin-read-meta-item {
    box-shadow: 0 2px 6px rgba(188,112,164,0.16);
    transform: translateY(-1px);
}

/* My Rating : léger rappel de couleur */
.gin-card-read .user-rating button {
    color: #BC70A4;
}

/* Badges Featured/New : tout petit peu plus “pill” */
.gin-read-chip-featured,
.gin-read-chip-new {
    border-radius: 999px;
    padding-inline: 10px;
}

/* ===========================
   THEME / COULEURS
   =========================== */
:root {
    --gin-grad-start: #BC70A4;
    --gin-grad-end: #BFD641;
    --gin-soft-bg: #F8ECEA;
    --gin-soft-bg-2: #FFF7FB; /* encore plus pâle */
    --gin-text: #222;
    --gin-muted: #8a8a8a;
}

/* ===========================
   FILTRES (barre + avancés)
   =========================== */

/* Panel principal (barre de filtres) */
.filters-panel {
    background: linear-gradient(180deg, rgba(248,236,234,0.92), rgba(255,255,255,0.92));
    border: 2px solid rgba(188,112,164,0.20);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(188,112,164,0.10), 0 1.5px 6px rgba(60,0,40,0.06);
    padding: 16px 18px;
}

/* Inputs avec icône (cohérent et moderne) */
.input-with-icon, .select-with-icon {
    position: relative;
}

    .input-with-icon > i,
    .select-with-icon > i {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        color: var(--gin-muted);
        pointer-events: none;
    }

    .input-with-icon > .form-control,
    .select-with-icon > .form-select {
        padding-left: 36px;
    }

/* Champs */
.filters-panel .form-control,
.filters-panel .form-select {
    border-radius: 10px;
    border: 1.5px solid rgba(188,112,164,0.35);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .filters-panel .form-control:focus,
    .filters-panel .form-select:focus {
        border-color: var(--gin-grad-start);
        box-shadow: 0 0 0 3px rgba(188,112,164,0.18);
    }

/* Panneau avancé avec fond pâle */
.filters-advanced {
    background: var(--gin-soft-bg-2);
    border: 1px solid rgba(188,112,164,0.20);
    box-shadow: 0 1px 8px rgba(188,112,164,0.08);
}

/* Onglets */
.filters-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    position: relative;
    padding: 10px 14px;
}

    .filters-tabs .nav-link.active {
        color: #222;
    }

        .filters-tabs .nav-link.active::after {
            content: "";
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: -1px;
            height: 3px;
            background: linear-gradient(90deg, var(--gin-grad-start), var(--gin-grad-end));
            border-radius: 3px;
        }

/* Chips (badges modernes) */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1.5px solid rgba(188,112,164,0.25);
    background: #fff;
    color: #333;
    font-size: .875rem;
    line-height: 1;
}

    .chip i {
        color: var(--gin-grad-start);
    }

.chip-soft {
    background: #fff;
    border-color: rgba(188,112,164,0.25);
}

.chip-light {
    background: linear-gradient(180deg, #fafafa, #ffffff);
}

.chip-accent {
    background: linear-gradient(90deg, rgba(188,112,164,0.10), rgba(191,214,65,0.10));
}

/* Chip toggle (flavors / types) */
.chip-toggle {
    background: #fff;
    border: 1.5px solid rgba(188,112,164,0.30);
    color: #333;
    padding: 6px 12px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .chip-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(188,112,164,0.12);
    }

    .chip-toggle.active {
        border-color: transparent;
        color: #222;
        background: linear-gradient(#fff,#fff) padding-box, linear-gradient(90deg, var(--gin-grad-start), var(--gin-grad-end)) border-box;
        border: 2px solid transparent;
    }

/* Boutons */
.btn-gin-green {
    background-color: var(--gin-grad-end); /* vert du dégradé */
    border: 2px solid var(--gin-grad-end);
    color: #222;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(191,214,65,0.20);
}

    .btn-gin-green:hover {
        filter: brightness(0.98);
        box-shadow: 0 4px 14px rgba(191,214,65,0.24);
    }

.btn-gin-outline-danger {
    background: #fff;
    border: 2px solid #dc3545; /* contour marqué */
    color: #dc3545;
    font-weight: 600;
}

    .btn-gin-outline-danger:hover {
        background: #fff5f5;
        color: #b02a37;
        border-color: #b02a37;
    }

.btn-gin-ghost {
    background: rgba(248,236,234,0.65);
    border: 1.5px solid rgba(188,112,164,0.25);
    color: #333;
}

    .btn-gin-ghost:hover {
        border-color: var(--gin-grad-start);
    }

/* Country/Ingredient multiselect champs */
.country-multi-select .form-control,
.ingredient-multi-select .form-control {
    border-radius: 10px;
    border: 1.5px solid rgba(188,112,164,0.30);
}

    .country-multi-select .form-control:focus,
    .ingredient-multi-select .form-control:focus {
        border-color: var(--gin-grad-start);
        box-shadow: 0 0 0 3px rgba(188,112,164,0.18);
    }

/* Petits ajustements listage pays (flags alignés) */
.country-multi-select .form-check-label .fi {
    transform: translateY(1px);
}

/* Actions bloc */
.filters-actions .btn {
    min-width: 110px;
}

.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);
}

/* Onglet actif avec 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);
}

/* En-têtes cartes (dégradé) avec texte contrasté */
.perfect-serve-card .card-header,
.description-card .card-header {
    background: linear-gradient(90deg, var(--gin-primary,#BC70A4), var(--gin-secondary,#BFD641));
    color: var(--gin-on-grad, #222);
    font-weight: 600;
}

/* Badge de note utilisateur sur dégradé */
.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);
}

/* Etoiles remplies: texte (icône) contrasté si fond sombre */
.star-btn.filled,
.star-btn:hover {
    background: var(--gin-primary,#BC70A4);
    color: var(--gin-on-primary,#fff);
}



