﻿:root {
    --gin-primary: #BC70A4;
    --gin-secondary: #BFD641;
    --gin-primary-rgb: 188,112,164;
    --gin-secondary-rgb: 191,214,65;
    --brand-radius: 18px;
    --brand-shadow: 0 4px 20px rgba(188,112,164,0.10), 0 1.5px 6px rgba(60,0,40,0.06);
    --soft-border: rgba(0,0,0,0.06);
    --brandview-bg: color-mix(in oklab, #fff, var(--gin-secondary) 4%);
    --brandview-card-bg: #fff;
}

.brand-details-container {
    background: #fff;
    border-radius: var(--brand-radius);
    box-shadow: var(--brand-shadow);
    padding: 28px 32px 32px 32px;
    margin-top: 32px;
    margin-bottom: 36px;
    animation: fadeIn .5s;
}

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

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

/* Titres sans dégradé + petit accent discret */
.brand-details-container h1,
.brand-details-container h4 {
    color: #222;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 12px;
    position: relative;
}

    .brand-details-container h1::after,
    .brand-details-container h4::after {
        content: "";
        display: block;
        width: 56px;
        height: 3px;
        background: var(--gin-secondary);
        border-radius: 2px;
        margin-top: 6px;
    }

.brand-details-container .card {
    border-radius: var(--brand-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--soft-border);
    overflow: hidden;
    background: #fff;
}

/* Header de carte sobre (pas de gradient) + liseré gauche vert */
.brand-details-container .card-header {
    background: #fff;
    color: #222;
    font-weight: 600;
    border-bottom: 1px solid var(--soft-border);
    padding: 14px 18px;
    position: relative;
}

    .brand-details-container .card-header::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 4px;
        background: var(--gin-secondary);
        border-radius: 0 4px 4px 0;
    }

    .brand-details-container .card-header h4 {
        color: var(--gin-primary);
        margin: 0;
    }

.brand-details-container .card-body {
    padding: 18px 22px;
    font-size: 1.05rem;
    color: #222;
}

.brand-details-container strong {
    color: var(--gin-primary);
    font-weight: 600;
}

/* Liens: vert principal, hover rose pour cohérence de marque */
.brand-details-container a {
    color: var(--gin-secondary);
    text-decoration: underline;
    font-weight: 600;
    transition: color .13s;
}

    .brand-details-container a:hover {
        color: var(--gin-primary);
    }

/* Logo */
.brand-logo-thumb {
    max-width: 180px;
    max-height: 140px;
    border-radius: 14px;
    border: 3px solid var(--gin-secondary);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 8px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* Pays */
.brand-flag {
    max-width: 36px;
    max-height: 24px;
    border-radius: 8px;
    margin-left: 10px;
    border: 1.5px solid #eee;
    vertical-align: middle;
    box-shadow: 0 1.5px 5px rgba(0,0,0,0.06);
}

/* Messages & loading */
.brand-details-container .spinner-border {
    border-width: 4px;
    width: 3rem;
    height: 3rem;
    margin: 30px auto 12px auto;
    display: block;
    color: var(--gin-primary);
}

/* Alert message */
.brand-details-container .alert {
    border-radius: 13px;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: .1px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .brand-details-container {
        padding: 18px 8px 22px 8px;
    }

        .brand-details-container .card-body {
            padding: 14px 10px;
            font-size: 0.97rem;
        }

    .brand-logo-thumb {
        max-width: 120px;
        max-height: 80px;
        padding: 5px;
    }
}

/* conteneur section */
.brandview {
    background: var(--brandview-bg);
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elev);
}

/* titre principal + accent */
.brandview-title {
    text-align: center;
    margin: .5rem 0 1.25rem;
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--text-strong);
}

    .brandview-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 6px;
        margin: .6rem auto 0;
        border-radius: 8px;
        background: var(--gin-secondary);
    }

/* grille */
.brandview-grid {
    row-gap: 1.25rem;
}

/* cartes */
.brandview-card {
    background: var(--brandview-card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elev);
    overflow: hidden;
}

.brandview-card-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(90deg, color-mix(in oklab, var(--gin-primary), #fff 88%), #fff 40%);
    border-bottom: 1px solid var(--border-soft);
}

.brandview-accent {
    width: 10px;
    height: 18px;
    border-radius: 6px;
    background: var(--gin-secondary);
}

.brandview-section-title {
    margin: 0;
    font-weight: 800;
    color: var(--gin-primary);
}

/* corps */
.brandview-card-body {
    padding: 1rem 1.1rem 1.25rem;
}

.brandview-muted {
    color: var(--text-dim);
}

/* logo */
.brandview-logo-frame {
    width: 230px;
    height: 230px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    margin: .25rem auto 0;
    border: 4px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg, var(--gin-secondary), var(--gin-primary)) border-box;
    box-shadow: var(--shadow-elev);
}

.brandview-logo-img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    border-radius: 16px;
}

/* infos */
.brandview-field {
    margin: .35rem 0;
}

    .brandview-field .label {
        font-weight: 700;
        color: var(--gin-primary);
        margin-right: .25rem;
    }

.brandview-link {
    color: var(--gin-secondary);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

    .brandview-link:hover {
        text-decoration: underline;
    }

.brandview-country-code {
    margin-right: .35rem;
    font-weight: 600;
}

.brandview-flag {
    height: 20px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
    vertical-align: middle;
}

.brandview-flag-emoji {
    font-size: 1.15rem;
    vertical-align: middle;
}

.brandview-edit-btn {
    background: #fff;
    border: 1px solid var(--gin-secondary);
    color: var(--text-strong);
    border-radius: 999px;
    padding: .4rem .8rem;
    margin-top: .5rem;
    box-shadow: var(--shadow-elev);
}

    .brandview-edit-btn:hover {
        background: color-mix(in oklab, var(--gin-secondary), #fff 85%);
    }