﻿:root {
    --gin-primary: #BC70A4;
    --gin-secondary: #BFD641;
    --gin-primary-rgb: 188,112,164;
    --gin-secondary-rgb: 191,214,65;
    /* Variables d’intensité (ajuste selon goût) */
    --header-overlay-top: rgba(0,0,0,0.38); /* assombrit haut */
    --header-overlay-mid: rgba(0,0,0,0.28); /* centre */
    --header-overlay-bot: rgba(0,0,0,0.55); /* bas */
    --header-vignette: radial-gradient(120% 120% at 50% 40%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 80%);
    --halo-opacity: 0.28; /* halo coloré optionnel */
    --header-height-min: 150px;
    --header-padding-y: 14px;
}

/* ===== Conteneur principal ===== */
.header-gradient {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: var(--header-height-min);
    padding: var(--header-padding-y) 0;
    display: flex;
    align-items: stretch;
    background: url("/Pictures/Logos/heroa.png") center/cover no-repeat;
}

    /* Couche overlay (assombrit pour lisibilité) */
    .header-gradient > .header-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, var(--header-overlay-top) 0%, var(--header-overlay-mid) 50%, var(--header-overlay-bot) 100% ), var(--header-vignette);
        pointer-events: none;
        z-index: 1;
    }

    /* Halo coloré subtil (optionnel) */
    .header-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(60% 110% at 50% 30%, rgba(var(--gin-primary-rgb),var(--halo-opacity)) 0%, rgba(255,255,255,0) 70%);
        mix-blend-mode: lighten;
        pointer-events: none;
        z-index: 2;
    }

    /* Ligne d’accent (fine) */
    .header-gradient::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 0;
        height: 2px;
        background: linear-gradient(90deg,var(--gin-primary),var(--gin-secondary));
        border-radius: 2px;
        z-index: 4;
    }

/* Contenu interne */
.header-inner {
    position: relative;
    z-index: 5;
}

.header-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== Logo ===== */
.logo-frame {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(6px) saturate(130%);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 18px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,0.35);
}

.site-logo {
    max-height: 82px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    transition: transform .35s cubic-bezier(.4,.2,.2,1);
}

.logo-frame:hover .site-logo {
    transform: scale(1.05);
}

/* ===== Titre & slogan ===== */
.header-title {
    font-size: clamp(1.9rem, 4.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: .06em;
    background: linear-gradient(90deg,var(--gin-primary), var(--gin-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 0 14px rgba(0,0,0,0.35);
    -webkit-text-stroke: 1px rgba(0,0,0,0.25);
    line-height: 1.15;
    margin-bottom: .25rem;
}

.header-slogan {
    font-size: clamp(.9rem,1.5vw,1.05rem);
    font-weight: 600;
    letter-spacing: .04em;
    color: #f4f5f7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.55);
    margin: 0;
}

/* ===== Zone droite (utilisateur / langue) ===== */
.header-right {
    text-align: right;
}

.culture-wrapper {
    display: flex;
    align-items: center;
}

.culture-select {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(#ffffffdd,#ffffffdd) padding-box, linear-gradient(90deg,var(--gin-primary),var(--gin-secondary)) border-box;
    border: 2px solid transparent;
    color: #333;
    font-weight: 600;
    letter-spacing: .04em;
    border-radius: 14px;
    padding: 8px 38px 8px 14px;
    font-size: .75rem;
    position: relative;
    cursor: pointer;
    line-height: 1;
    min-width: 86px;
}

    .culture-select:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(var(--gin-primary-rgb),0.35);
    }

    .culture-select::-ms-expand {
        display: none;
    }

.culture-wrapper {
    position: relative;
}

    .culture-wrapper::after {
        content: "\f0ac"; /* fa-globe */
        font-family: FontAwesome;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: .85rem;
        color: var(--gin-primary);
        pointer-events: none;
    }

/* ===== User ===== */
.user-meta {
    background: rgba(255,255,255,0.13);
    backdrop-filter: blur(6px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.27);
    padding: 8px 14px 8px 10px;
    border-radius: 16px;
    box-shadow: 0 4px 14px -6px rgba(0,0,0,0.4);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
    background: #ffffff22;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: .9rem;
    text-shadow: 0 2px 4px rgba(0,0,0,.55);
}

    .user-avatar.fallback {
        font-family: Inter, system-ui, sans-serif;
    }

.user-name {
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .04em;
    color: #f2f2f5;
    text-shadow: 0 2px 4px rgba(0,0,0,.55);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-login,
.btn-logout {
    border: 2px solid transparent;
    background: linear-gradient(#fff,#fff) padding-box, linear-gradient(90deg,var(--gin-primary),var(--gin-secondary)) border-box;
    color: #222;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 8px 18px;
    font-size: .7rem;
    line-height: 1;
    border-radius: 14px;
    cursor: pointer;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .btn-login:hover,
    .btn-logout:hover {
        filter: brightness(.98);
        transform: translateY(-2px);
        box-shadow: 0 8px 18px -6px rgba(0,0,0,0.35);
    }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .logo-frame {
        padding: 8px 14px;
    }

    .site-logo {
        max-height: 70px;
    }

    .user-meta {
        padding: 6px 10px;
    }

    .user-name {
        max-width: 110px;
    }
}

@media (max-width: 640px) {
    .header-title {
        -webkit-text-stroke: 0; /* Sur petits écrans le stroke peut rendre flou */
        font-size: clamp(1.7rem, 7vw, 2.15rem);
    }

    .header-slogan {
        font-size: .85rem;
    }

    .culture-select {
        padding: 6px 34px 6px 12px;
    }

    .user-meta {
        gap: 6px;
    }
}
