/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
/* Par defaut Tahoma */
body {
    font-family: "filson-pro", sans-serif !important;
    font-style: normal !important;
    font-weight: 300 !important;
}
group-title {
    font-family: "filson-pro", sans-serif !important;
    font-weight: 300 !important;
    font-style: normal !important;
}

h4, .h4, .survey-welcome, .completed-text{
    font-family: "filson-pro", sans-serif !important;
    font-weight: 300 !important;
    font-style: normal !important;
}
survey-name{
    font-family: "filson-pro", sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
}
.ls-answers label, .ls-answers th, .control-label{
    font-family: "filson-pro", sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

.question-title-container .question-text .ls-label-question {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Reset pour les questions "boilerplate" (textes informatifs, RGPD, etc.) 
   afin qu'elles ne héritent pas du style gras/grand des questions classiques */
.question-container.boilerplate .question-title-container .question-text .ls-label-question {
    font-size: 1rem;
    font-weight: 300;
}

/* On garde le gras localisé sur les <strong> à l'intérieur de ces blocs,
   par exemple pour les titres comme "Responsable du traitement" */
.question-container.boilerplate .question-title-container .question-text .ls-label-question strong {
    font-weight: 700;
}

/* Et on remet une taille de titre correcte pour le <p><strong> centré 
   ("Informations relatives à la protection des données personnelles") si besoin */
.question-container.boilerplate .question-title-container .question-text .ls-label-question p:first-child strong {
    font-size: 1.1rem;
}
.text-primary {
     color: #000000;
}

.text-info {
    color: #57688b;
}

.progress-bar {
     background-color: #57688b;
}

.bg-primary {
    background-color: #7a9dc3 !important;
}

/* Réduit l'espace entre les questions, sans toucher au titre du groupe */
.question-container {
    padding-bottom: 0 !important;
}

.answer-container {
    padding-bottom: 0 !important;
}

.group-outer-container {
    display: block !important;
}

.ls-answers {
    padding-bottom: 0 !important;
}

/* Boutons */

/* Réponses */ 
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    background-color: #7a9dc3;
    border-color: #82a2c4;
}

.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle):hover {
    background-color: #7a9dc3;
    border-color: #7591b0;
}

.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle).active {
    background-color: #7a9dc3;
    border-color: #57688b;
}


.btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) {
    background-color: #7a9dc3;
    border-color: #82a2c4;
}

.btn-group > .btn:last-child:not(:first-child):hover, .btn-group > .dropdown-toggle:not(:first-child):hover {
    background-color: #7a9dc3;
    border-color: #5b7189;
}

.btn-group > .btn:last-child:not(:first-child).active, .btn-group > .dropdown-toggle:not(:first-child).active {
    background-color: #7a9dc3;
    border-color: #57688b;
}

.answer-item input[type="radio"]:checked + label::after,
.radio-item input[type="radio"]:checked + label::after {
    background-color: #7a9dc3 !important;
}

.answer-item input[type="checkbox"]:checked + label::after,
.radio-item input[type="checkbox"]:checked + label::after {
    background-color: #7a9dc3 !important;
}

/* Boutons Oui/Non : blanc par défaut, bleu clair + texte blanc quand sélectionné */
.yesno-button .btn-primary {
    background-color: #ffffff !important;
    border-color: #7a9dc3 !important;
    color: #000000 !important;
}

.yesno-button .btn-primary:hover {
    background-color: #eef3f8 !important;
    border-color: #7a9dc3 !important;
    color: #000000 !important;
}

/* Etat sélectionné (le label juste après l'input coché) */
.yesno-button .btn-check:checked + .btn-primary,
.yesno-button .btn-check:active + .btn-primary {
    background-color: #7a9dc3 !important;
    border-color: #57688b !important;
    color: #ffffff !important;
}

/* Supprime l'ombre de focus disgracieuse au clic/tab */
.yesno-button .btn-check:focus + .btn-primary,
.yesno-button .btn-primary:focus {
    box-shadow: none !important;
}


/* Submit */
/* Bouton suivant */
#ls-button-submit {
    background-color: #ea5345;
    border-color: #ea5345;
}

#ls-button-submit:hover {
    background-color: #d24a3e;
}

.ls-move-btn {
    transition: none;
    box-shadow: none;
}

.ls-move-btn:active {
    transform: none;
}


/* Bannière */
.navbar {
    width: 100%;
    height: auto !important;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid #000 !important;
}

.navbar-brand {
    width: 100%;
    height: auto !important;
    padding: 0;
    font-size: 3rem;
    margin: 0;
    background-color: #f8f8f8;
    max-width: none !important;
    display: block !important;
    overflow-x: hidden;
    overflow-y: visible;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    height: auto !important;
    overflow-x: hidden;
    overflow-y: visible;
}

.logo-container {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}


.logo-container>img {
    min-height: 4rem !important;
    padding: 0;
    line-height: 0;
    display: block;
    object-fit: cover;
    object-position: left top;
}

/* Bloc des liens d'action — toujours fondu dans la bannière, jamais en dessous */
#navbar.navbar-collapse {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    z-index: 10;
}

#navbar .navbar-right {
    float: none !important;
    margin: 0;
    display: flex;
    gap: 1rem;
}

#navbar.navbar-collapse {
    background-color: rgba(248, 248, 248, 0.85);
    border-radius: 0 0 0 4px;
}

/* vue mobile  */
@media (max-width: 767px) {

    .navbar-toggler {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        margin: 0;
        z-index: 15;
        background-color: rgba(248, 248, 248, 0.85);
    }
    
    #navbar.navbar-collapse {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        padding: 0.5rem 1rem;
        margin: 0;
        background-color: #f8f8f8;
        border-radius: 0;
    }

    #navbar .navbar-right {
        flex-direction: column;
        gap: 0.5rem;
    }

}