

:root {
    --cou-topbar-height: max(16mm, 6vmin);
}

/* =========================================================
   TOPBAR
   Ligne fixe : logo | COU | langue | utilisateur
   ========================================================= */
.solvyla-cou .cou-topbar {
    position: relative;
    z-index: 10;

    display: grid;
    grid-template-columns:
    var(--cou-sidebar-width)
    minmax(0, 1fr)
    max-content
    max-content;
    grid-template-rows: var(--cou-topbar-height);

    align-items: center;

    width: 100%;
    height: var(--cou-topbar-height);
    min-height: var(--cou-topbar-height);
    max-height: var(--cou-topbar-height);

    column-gap: 3vw;

    background: var(--solvyla-blue-signature);
    overflow: visible;
}


/* =========================================================
   LOGO SOLVYLA
   ========================================================= */

.solvyla-cou .cou-logo {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: var(--cou-sidebar-width);
    height: var(--cou-topbar-height);

    background: transparent;

    overflow: hidden;
}

.solvyla-cou .cou-logo img {
    display: block;

    width: 100% !important;
    height: auto !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: initial !important;
    transform: none !important;
}

/* =========================================================
   TITRE COU
   ========================================================= */
.solvyla-cou .cou-title {
    align-self: center;
    justify-self: center;

    margin: 0;
    padding: 0;

    color: var(--solvyla-white-signature-text, #ffffff);
    font-family: var(--solvyla-font, Inter, system-ui, Arial, sans-serif);
    font-size: 16px;
    font-weight: var(--solvyla-weight-bold, 700);
    line-height: 1;
    text-align: center;
}

/* =========================================================
   MENU LANGUES
   Ferme : Turquoise Royal
   Ouvert : Bleu Signature
   ========================================================= */

.solvyla-cou .cou-language-wrap {
    position: relative;
    justify-self: end;

    margin: 0;
    padding: 0;
}

.solvyla-cou .cou-language-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8vmin;

    padding: 0.8vh 1vw;

    border: 0;
    border-radius: 0.5vmin;

    background: var(--solvyla-blue-turquoise-royal);

    color: #ffffff;

    font-family: var(--solvyla-font, Inter, system-ui, Arial, sans-serif);
    font-size: 1em;
    font-weight: var(--solvyla-weight-bold, 700);

    box-shadow: var(--solvyla-gloss-shadow);

    cursor: pointer;

    transition:
        filter 0.33s ease,
        box-shadow 0.33s ease,
        transform 0.33s ease;
}

.solvyla-cou .cou-language-current,
.solvyla-cou .cou-language-arrow {
    color: #ffffff;
}

.solvyla-cou .cou-language-arrow {
    display: inline-block;

    transition: transform 0.33s ease;
}

.solvyla-cou .cou-language-trigger[aria-expanded="true"]
.cou-language-arrow {
    transform: rotate(180deg);
}

.solvyla-cou .cou-language-trigger:hover {
    filter: brightness(1.12);
}


/* MENU DEPLOYE */

.solvyla-cou .cou-language-menu {
    position: absolute;
    z-index: 50;

    top: calc(100% + 0.5vh);
    right: 0;

    min-width: 100%;

    padding: 0.5vh 0;

    border-radius: 0.5vmin;

    background: var(--solvyla-blue-signature);

    box-shadow: var(--solvyla-gloss-shadow);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-1vh);

    transition:
        opacity 0.33s ease,
        transform 0.33s ease,
        visibility 0s linear 0.33s;
}

.solvyla-cou .cou-language-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);

    transition:
        opacity 0.33s ease,
        transform 0.33s ease,
        visibility 0s linear 0s;
}


/* LANGUES */

.solvyla-cou .cou-language-menu button {
    display: block;
    width: 100%;
    padding: 0.7vh 1vw;
    border: 0;
    border-bottom:
    1px solid rgba(255, 255, 255, 0.42);
    background: transparent;
    color: #ffffff;
    font-family: var(--solvyla-font, Inter, system-ui, Arial, sans-serif);
    font-size: 0.9em;
    font-weight: var(--solvyla-weight-semibold, 600);
    text-align: left;
    cursor: pointer;
    transition:
        filter 0.33s ease,
        box-shadow 0.33s ease,
        transform 0.33s ease;
}

.solvyla-cou .cou-language-menu button:hover {
    filter: brightness(1.20);
    transform: translateX(0.2vw);
    box-shadow:
        inset 0.2vw 0 0 #ffffff;
}
/* =========================================================
   UTILISATEUR
   Ferme : Bleu Signature
   Ouvert : Turquoise Royal
   ========================================================= */

.solvyla-cou .cou-user-wrap {
    position: relative;
    justify-self: end;
    transform: translateX(-2vw);
}

/* =========================================================
   BOUTON UTILISATEUR
   ========================================================= */

.solvyla-cou .cou-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.8vmin;
    padding: 0.6vh 0.8vw;
    border: 0;
    border-radius: 0.5vmin;
    background: var(--solvyla-blue-signature);
    color: #ffffff;
    font-family: var(--solvyla-font, Inter, system-ui, Arial, sans-serif);
    font-size: 1em;
    font-weight: var(--solvyla-weight-bold, 700);
    box-shadow: var(--solvyla-gloss-shadow);
    cursor: pointer;
    transition:
        filter 0.33s ease,
        box-shadow 0.33s ease,
        transform 0.33s ease;
}
.solvyla-cou .cou-user-trigger:hover {
    filter: brightness(1.20);
}

/* =========================================================
   AVATAR
   ========================================================= */

.solvyla-cou .cou-user-avatar {
    position: relative;
    display: block;
    width: 3.4vmin;
    height: 3.4vmin;
    flex: 0 0 3.4vmin;
    border: 0;
    background: transparent;
    overflow: visible;
}

/* TETE */

.solvyla-cou .cou-user-avatar-head {
    position: absolute;
    width: 1.05vmin;
    height: 1.05vmin;
    top: 0.20vmin;
    left: 45%;
    border-radius: 50%;
    background: var(--solvyla-blue-turquoise-royal);
    transform: translateX(-50%);
}

/* BUSTE */

.solvyla-cou .cou-user-avatar-body {
    position: absolute;
    width: 2.15vmin;
    height: 1.35vmin;
    left: 45%;
    bottom: 0.25vmin;
    border-radius:
        1.1vmin
        1.1vmin
        0.18vmin
        0.18vmin;
    background: var(--solvyla-blue-turquoise-royal);
    transform: translateX(-50%);
}

/* =========================================================
   CRAYON
   ========================================================= */

.solvyla-cou .cou-user-avatar-pencil {
    position: absolute;
    width: 1.45vmin;
    height: 0.38vmin;
    right: -0.05vmin;
    bottom: 0.35vmin;
    border-radius: 0.10vmin;
    background: var(--solvyla-blue-turquoise-royal);
    transform: rotate(-45deg);
    transform-origin: center;
}

/* POINTE DU CRAYON */

.solvyla-cou .cou-user-avatar-pencil::after {
    content: "";
    position: absolute;
    left: -0.35vmin;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 0.19vmin solid transparent;
    border-bottom: 0.19vmin solid transparent;
    border-right:
        0.38vmin solid
        var(--solvyla-blue-turquoise-royal);
    transform: translateY(-50%);
}


/* =========================================================
   FUTURE PHOTO UTILISATEUR
   ========================================================= */

.solvyla-cou .cou-user-avatar img {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}


/* =========================================================
   NOM UTILISATEUR
   ========================================================= */

.solvyla-cou .cou-user-current {
    display: block;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}


/* =========================================================
   MENU UTILISATEUR DEPLOYE
   Fond Sous-menu : Turquoise Royal
   ========================================================= */

.solvyla-cou .cou-user-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.5vh);
    right: 0;
    min-width: max-content;
    padding: 0.5vh 0;
    border-radius: 0.5vmin;
    background: var(--solvyla-blue-turquoise-royal);
    box-shadow: var(--solvyla-gloss-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1vh);
    transition:
        opacity 0.33s ease,
        transform 0.33s ease,
        visibility 0s linear 0.33s;
}

/* MENU OUVERT */

.solvyla-cou .cou-user-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity 0.33s ease,
        transform 0.33s ease,
        visibility 0s linear 0s;
}

/* =========================================================
   BOUTONS DU MENU UTILISATEUR
   ========================================================= */

.solvyla-cou .cou-user-menu button {
    display: block;

    width: 100%;
    padding: 0.7vh 1vw;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-family: var(--solvyla-font, Inter, system-ui, Arial, sans-serif);
    font-size: 0.9em;
    font-weight: var(--solvyla-weight-semibold, 600);
    text-align: left;
    white-space: nowrap;

    cursor: pointer;
    transition:
        filter 0.33s ease,
        box-shadow 0.33s ease,
        transform 0.33s ease;
}

/* HOVER PREMIUM */

.solvyla-cou .cou-user-menu button:hover {
    filter: brightness(1.20);
    transform: translateX(0.2vw);
    box-shadow:
        inset 0.2vw 0 0 #ffffff;
}
/* =========================================================
   JONCTION PREMIUM
   TOPBAR / SIDEBAR / WORKSPACE
   ========================================================= */
/* Fusion bleue dans l'arrondi */

.solvyla-cou .cou-workspace::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -2.7;
    width: 2.7vmin;
    height: 2.7vmin;
    border-top-right-radius: 2.7vmin;
    background:
        linear-gradient(
            135deg,
            #087cff 0%,
            #168cff 35%,
            #0593df 68%,
            #15bbe3 100%
        );
    pointer-events: none;
}



