/******************
    User Custom CSS
    ---------------

    Add your custom CSS here.
    This file loads last, allowing you to override other properties.
    It will not be updated, so modifications will be preserved even when inheriting a core template.
******************/


body{
    padding-top: 0px !important;
}

/* ----------- Custom UNIL Header Styling ----------- */

#survey-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-bottom: none !important;
    background-color: #fff; /* Ensure it's not transparent when sticky */
}

/* Inner dynamic content block (e.g., title area) */
#survey-nav-titles {
    padding-top: 100px;
    position: relative;
    z-index: 105;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: all 0.3s ease-in-out;
    background-color: inherit;
    min-height: 102px;
}

/* When sticky behavior is disabled due to insufficient scroll space */
.disableStickyHeader #survey-nav {
    position: relative !important;
}

/* When scrolled past threshold, fix the title block to top */
.scrolledCustom #survey-nav-titles {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/* Class for logo & optionnal link sections */
.navbar-unil {
    padding-bottom: 2px;
    padding-left: 25px;
    background-color: #0078BD;
}

/* UNIL logo section */
#lgunil {
    padding-top: 25px;
}

#lgunil .logo {
    max-width: 200px;
    height: auto;
}

/* ----- Optional link section ----- */

    /* Default state */
    #emet-unit1 {
        padding-top: 12px;
        font: 300 18px "Helvetica Neue", Helvetica, Arial, sans-serif !important;
        color: #fff;
    }

    /* Activated state */
    #emet-unit2 {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
    }

    #emet-unit2 a {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
    }

/* Survey name section */
#surveyname-unil {
    display: flex;
    align-items: center;    /* Centre verticalement */
    padding: 0px 0px 15px 25px;
    font: 400 23px "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: #fff;
    background-color: #0078BD;
    transition: min-height 0.3s ease;
}

/* LimeSurvey navigation section */
#navbar {
    padding: 15px;
}

@media (max-width: 760px) {
    /* Responsive adjustments for smaller screens */

    /* UNIL logo section */
    #lgunil {
        padding-bottom: 10px;
        padding-top: 15px;
    }


    /* ----- Optional emet section ----- */

        /* Default state */
        #emet-unit1 {
            font-size: 18px;
        }

        /* Activated state */
        #emet-unit2 {
            font-size: 18px;
        }

        #emet-unit2 a {
            font-size: 18px;
        }

    /* Class for logo & link sections */
    .navbar-unil {
        padding: 2px 0 2px 7px;
    }

    /* Survey name section */
    #surveyname-unil {
        display: flex;
        justify-content: center; /* Center on mobile */
        align-items: center;
        padding: 12px 0 12px 7px;
        font-size: 18px;
    }

    /* Navigation container */
    .fruity .container-fluid {
        padding: 10px;
    }
    
}


/* -------------------- Custom UNIL Footer ------------------- */

.footer-section {
    margin-top: 4rem;
    padding-left: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: #0A1F30;
}

.footer-title {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: flex-end;
    gap: 2.5rem;
}

.image-partners {
    max-height: 100px;
    max-width: 150px;
    height: auto;
}


/* -------------------- Default ------------------- */

.ls-label-question {
    font-weight: 700;
}

.survey-welcome.text-primary {
    color: black !important;
}

/* Welcome message and description in black */
.fruity .text-descr,
.fruity .text-primary {
    color: #000;
}

.fruity .text-primary {
    background-color: #f2f2f2;
    padding: 12px;
}

.fruity .container-fluid {
    padding-left: 50px;
    padding-right: 50px;
}

body {
    font-size: 16px;
}

/* Common button styling */
.fruity .btn-primary {
    border: 2px solid #f7f7f7;
}

.fruity .btn-default:hover,
.fruity .btn-default:focus,
.fruity .btn-default:active,
.fruity .btn-default.active,
.fruity .open .dropdown-toggle.btn-default {
    color: #444;
    background-color: rgba(68, 68, 68, 0.1);
}

.fruity .btn-info {
    color: #444;
    background-color: #dedede;
    border: 1px solid #dedede;
}

/* Link styling */
.fruity a {
    color: #222;
    text-decoration: underline;
}

.fruity a:hover {
    color: #222;
}

/* Class for disabling hyphenation */
.no_hyphen {
    hyphens: none;
    word-wrap: normal;
}

/* Question number styling */
.question-number {
    color: #444 !important;
    font-weight: 700;
}

/* Wide input fields for specific questions */
.long .form-group.text-item.other-text-item {
    width: 50%;
}

.long .form-control {
    width: 100%;
}
