@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Thème (couleurs et intensités ajustables) */
:root {
    --gin-primary: #BC70A4;
    --gin-secondary: #BFD641;
    --gin-primary-rgb: 188,112,164;
    --gin-secondary-rgb: 191,214,65;
    /* Intensités du décor global (ajuste entre 0.02 et 0.10) */
    --bg-stripe-alpha: 0.035;
    --bg-spot-alpha: 0.07;
    --apply-accent: #BC70A4;
    --apply-shadow: 0, 0, 0;
}

html, body {
    background-color: #ffffff;
    
    /* Motif moderne discret: fines diagonales + halos colorés très doux */
    background-image:
    /* halos doux */
    radial-gradient(280px 160px at 6% 10%, rgba(var(--gin-primary-rgb), var(--bg-spot-alpha)) 0%, rgba(255,255,255,0) 60%), radial-gradient(240px 140px at 92% 22%, rgba(var(--gin-secondary-rgb), calc(var(--bg-spot-alpha) * 0.8)) 0%, rgba(255,255,255,0) 65%),
    /* fines lignes obliques dans les teintes */
    repeating-linear-gradient(135deg, rgba(var(--gin-primary-rgb), var(--bg-stripe-alpha)) 0 1px, rgba(255,255,255,0) 1px 28px), repeating-linear-gradient(45deg, rgba(var(--gin-secondary-rgb), calc(var(--bg-stripe-alpha) * 0.8)) 0 1px, rgba(255,255,255,0) 1px 36px);
    background-attachment: fixed;
    background-size: auto, auto, auto, auto;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/*All gin cards*/
.card {
    margin-bottom: 20px;
}

/*rating*/
.rating-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0 2px;
    cursor: pointer;
}

    .rating-button:focus {
        outline: none;
    }

/*Pagination*/
=========================== */
.gin-pagination-nav {
    display: block;
}

.gin-pagination-list {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.gin-pagination-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(188,112,164,0.22); /* subtil */
    background: transparent;
    color: #6F6A72;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .12s ease, border-color .12s ease, color .12s ease, transform .06s ease;
    box-shadow: none;
    padding: 0 10px;
}

    .gin-pagination-btn:hover:not([disabled]) {
        background: #F8F6FA;
        border-color: rgba(188,112,164,0.35);
        color: #222;
    }

    .gin-pagination-btn.active,
    .gin-pagination-btn[aria-current="page"] {
        background: #BC70A4;
        border-color: #BC70A4;
        color: #fff;
    }

    .gin-pagination-btn[disabled] {
        opacity: .45;
        cursor: default;
    }

.gin-pagination-ellipsis {
    display: inline-block;
    min-width: 20px;
    text-align: center;
    color: #A8A3AB;
    font-weight: 700;
}

/* Variante "ghost": retirer même la bordure des inactifs */
.gin-pagination-nav.ghost .gin-pagination-btn {
    border-color: transparent;
}

    .gin-pagination-nav.ghost .gin-pagination-btn:hover:not([disabled]) {
        background: rgba(188,112,164,0.10);
        border-color: transparent;
    }

/* Compact (optionnel): ajoute .compact sur le <nav> si tu veux encore alléger */
.gin-pagination-nav.compact .gin-pagination-btn {
    min-width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 0.9rem;
    padding: 0 8px;
}


.brand-link.meta-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, var(--gin-primary, #BC70A4), var(--gin-secondary, #BFD641));
    color: #fff;
    font-weight: 600;
    border-radius: 9px;
    padding: 5px 13px 5px 11px;
    box-shadow: 0 2px 10px rgba(188,112,164,0.08);
    text-decoration: none;
    transition: filter .13s, transform .11s, box-shadow .13s;
    cursor: pointer;
    border: none;
    outline: none;
}

    .brand-link.meta-label:hover,
    .brand-link.meta-label:focus {
        filter: brightness(1.07);
        color: #fff;
        box-shadow: 0 6px 20px rgba(191,214,65,0.13);
        transform: translateY(-2px) scale(1.04);
        text-decoration: none;
    }

.meta-label.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f4f4f4;
    color: #bbb;
}

.adminNews-bg {
    background: #ececec;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Pour centrer tes cards/panels et éviter qu'ils collent au bord sur grand écran */
.adminNews-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}


/*Bouton page GinsPublic*/
/* Bouton Apply: contour + transitions douces */
.btn-gin-primary.apply-btn {
    position: relative;
    overflow: hidden; /* nécessaire pour le shimmer */
    border: 2px solid var(--apply-accent);
    transition: border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}

    /* Survol: léger soulignement visuel */
    .btn-gin-primary.apply-btn:hover:not(:disabled) {
        box-shadow: 0 2px 10px rgba(var(--apply-shadow), 0.15), 0 0 0 3px rgba(188,112,164,.15);
        transform: translateY(-1px);
    }

    /* Focus accessible */
    .btn-gin-primary.apply-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(188,112,164,.35);
    }

    /* État disabled: neutre, aucune animation */
    .btn-gin-primary.apply-btn:disabled {
        opacity: .6;
        border-color: #cfcfcf;
        box-shadow: none;
        transform: none;
    }

    /* Quand des changements sont en attente (cliquable): halo respirant + shimmer one-shot */
    .btn-gin-primary.apply-btn.apply-armed {
        border-color: var(--apply-accent);
        animation: apply-breathe 2.8s ease-in-out infinite;
    }

        /* Effet "reflet" (sweep) au moment où le bouton devient armé (une fois) */
        .btn-gin-primary.apply-btn.apply-armed::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
            transform: translateX(-120%);
            animation: apply-shimmer 900ms ease-out 1;
            pointer-events: none;
        }

/* Animation de respiration discrète du halo */
@keyframes apply-breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(188,112,164, 0.0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(188,112,164, 0.13);
    }
}

/* Shimmer qui balaye de gauche à droite une fois */
@keyframes apply-shimmer {
    0% {
        transform: translateX(-120%);
        opacity: .0;
    }

    10% {
        opacity: .35;
    }

    100% {
        transform: translateX(120%);
        opacity: .0;
    }
}

.pinned-pink {
    color: #d26b9a !important; /* remplace par ta variable si tu en as une */
}

#components-reconnect-modal {
    display: none !important;
}